.cubs-consent[hidden],
.cubs-consent [hidden],
.cubs-consent-reopen[hidden] {
	display: none !important;
}

.cubs-consent {
	--cubs-consent-bg: #fff;
	--cubs-consent-text: #202020;
	--cubs-consent-muted: #575757;
	--cubs-consent-accent: #b80035;
	--cubs-consent-accent-hover: #91002a;
	--cubs-consent-border: #d8d8d8;
	position: relative;
	z-index: 2147483000;
	color: var(--cubs-consent-text);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

.cubs-consent *,
.cubs-consent *::before,
.cubs-consent *::after,
.cubs-consent-reopen {
	box-sizing: border-box;
}

.cubs-consent__banner {
	position: fixed;
	right: 20px;
	bottom: 20px;
	left: 20px;
	display: flex;
	max-width: 1180px;
	margin: 0 auto;
	padding: 20px 24px;
	align-items: center;
	gap: 24px;
	background: var(--cubs-consent-bg);
	border: 1px solid var(--cubs-consent-border);
	border-radius: 6px;
	box-shadow: 0 10px 35px rgba(0, 0, 0, 0.22);
}

.cubs-consent__copy {
	flex: 1 1 auto;
}

.cubs-consent__copy h2,
.cubs-consent__modal h2 {
	margin: 0 0 8px;
	color: var(--cubs-consent-text);
	font: 700 22px/1.25 Arial, Helvetica, sans-serif;
	text-transform: none;
}

.cubs-consent__copy p,
.cubs-consent__modal p {
	margin: 0;
	color: var(--cubs-consent-muted);
	font: 400 15px/1.5 Arial, Helvetica, sans-serif;
}

.cubs-consent a,
.cubs-consent a:visited {
	color: var(--cubs-consent-accent);
	text-decoration: underline;
}

.cubs-consent__actions,
.cubs-consent__modal-actions {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 10px;
}

.cubs-consent__button,
.cubs-consent-reopen {
	min-height: 44px;
	padding: 10px 16px;
	color: #222;
	font: 700 14px/1.2 Arial, Helvetica, sans-serif;
	text-align: center;
	text-transform: none;
	background: #f2f2f2;
	border: 1px solid #aaa;
	border-radius: 4px;
	cursor: pointer;
	appearance: none;
}

.cubs-consent__button:hover,
.cubs-consent__button:focus-visible,
.cubs-consent-reopen:hover,
.cubs-consent-reopen:focus-visible {
	background: #e5e5e5;
	outline: 3px solid rgba(184, 0, 53, 0.28);
	outline-offset: 2px;
}

.cubs-consent__button--primary,
.cubs-consent__button--primary:hover,
.cubs-consent__button--primary:focus-visible {
	color: #fff;
	background: var(--cubs-consent-accent);
	border-color: var(--cubs-consent-accent);
}

.cubs-consent__button--primary:hover,
.cubs-consent__button--primary:focus-visible {
	background: var(--cubs-consent-accent-hover);
}

.cubs-consent__button--link {
	background: transparent;
	border-color: transparent;
	text-decoration: underline;
}

.cubs-consent__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.58);
	backdrop-filter: blur(2px);
}

.cubs-consent__modal {
	position: fixed;
	top: 50%;
	left: 50%;
	width: min(680px, calc(100% - 32px));
	max-height: min(780px, calc(100vh - 32px));
	padding: 28px;
	overflow: auto;
	background: var(--cubs-consent-bg);
	border: 1px solid var(--cubs-consent-border);
	border-radius: 6px;
	box-shadow: 0 16px 55px rgba(0, 0, 0, 0.35);
	transform: translate(-50%, -50%);
}

.cubs-consent__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 44px;
	height: 44px;
	padding: 0;
	color: #333;
	font: 400 30px/1 Arial, Helvetica, sans-serif;
	background: transparent;
	border: 0;
	border-radius: 3px;
	cursor: pointer;
}

.cubs-consent__close:focus-visible {
	outline: 3px solid rgba(184, 0, 53, 0.28);
}

.cubs-consent__modal > p {
	padding-right: 36px;
}

.cubs-consent__category {
	display: flex;
	margin-top: 18px;
	padding: 16px;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	background: #f7f7f7;
	border: 1px solid var(--cubs-consent-border);
	border-radius: 4px;
}

label.cubs-consent__category {
	cursor: pointer;
}

.cubs-consent__category strong,
.cubs-consent__category span {
	display: block;
}

.cubs-consent__category strong {
	margin-bottom: 4px;
	font-size: 16px;
}

.cubs-consent__category span span,
.cubs-consent__category p {
	color: var(--cubs-consent-muted);
	font-size: 14px;
}

.cubs-consent__category input[type="checkbox"] {
	flex: 0 0 auto;
	width: 25px;
	height: 25px;
	margin: 0;
	accent-color: var(--cubs-consent-accent);
}

.cubs-consent__always-on {
	flex: 0 0 auto;
	color: #286319;
	font-size: 13px;
	font-weight: 700;
}

.cubs-consent__modal-actions {
	margin-top: 22px;
}

.cubs-consent__policy-link {
	margin-top: 18px !important;
}

.cubs-consent-reopen {
	position: fixed;
	right: 14px;
	bottom: 14px;
	z-index: 2147482000;
	min-height: 38px;
	padding: 8px 12px;
	font-size: 12px;
	background: #fff;
	box-shadow: 0 3px 14px rgba(0, 0, 0, 0.2);
}

.cubs-consent-modal-open {
	overflow: hidden;
}

@media (max-width: 850px) {
	.cubs-consent__banner {
		align-items: stretch;
		flex-direction: column;
		gap: 16px;
	}

	.cubs-consent__actions {
		width: 100%;
	}

	.cubs-consent__actions .cubs-consent__button {
		flex: 1 1 180px;
	}
}

@media (max-width: 480px) {
	.cubs-consent__banner {
		right: 10px;
		bottom: 10px;
		left: 10px;
		padding: 17px;
	}

	.cubs-consent__actions,
	.cubs-consent__modal-actions {
		flex-direction: column;
	}

	.cubs-consent__actions .cubs-consent__button,
	.cubs-consent__modal-actions .cubs-consent__button {
		width: 100%;
		flex-basis: auto;
	}

	.cubs-consent__modal {
		width: calc(100% - 20px);
		max-height: calc(100vh - 20px);
		padding: 22px 17px;
	}

	.cubs-consent__category {
		padding: 14px;
	}

	.cubs-consent__always-on {
		max-width: 90px;
		text-align: right;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cubs-consent *,
	.cubs-consent-reopen {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
