/* State Consent Banner */
.scb,
.scb * {
	box-sizing: border-box;
}

.scb {
	font-family: var(--scb-font-body, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
	font-size: 15px;
	line-height: 1.5;
	color: var(--scb-text, #fff);
	-webkit-font-smoothing: antialiased;
}

.scb p,
.scb h2 {
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
}

/* ---------- Banner ---------- */
.scb-banner {
	position: fixed;
	z-index: 2147483000;
	background: var(--scb-bg, #182738);
	box-shadow: 0 -2px 24px rgba(0, 0, 0, 0.22);
	padding: 20px 24px;
	display: flex;
	gap: 16px 32px;
	animation: scb-rise 0.28s ease-out;
}

.scb-banner--bar {
	left: 0;
	right: 0;
	bottom: 0;
	align-items: center;
	justify-content: space-between;
	border-top: 3px solid var(--scb-accent, #0db3b2);
}

.scb-banner--left,
.scb-banner--right {
	bottom: 20px;
	width: min(420px, calc(100vw - 32px));
	flex-direction: column;
	border-radius: 18px;
	border-top: 3px solid var(--scb-accent, #0db3b2);
	box-shadow: 0 8px 36px rgba(0, 0, 0, 0.3);
}

.scb-banner--left { left: 20px; }
.scb-banner--right { right: 20px; }

.scb-copy {
	flex: 1 1 0;
	max-width: 74ch;
	min-width: 0;
}

.scb .scb-title {
	font-family: var(--scb-font-heading, system-ui, sans-serif);
	font-size: 20px;
	font-weight: 500;
	letter-spacing: -0.005em;
	line-height: 1.25;
	margin-bottom: 4px !important;
}

.scb-body {
	opacity: 0.92;
}

.scb-policy {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

.scb .scb-gpc {
	margin-top: 8px !important;
	padding-left: 10px;
	border-left: 3px solid var(--scb-accent, #0db3b2);
	font-size: 13.5px;
}

/* ---------- Buttons ---------- */
.scb-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	flex-shrink: 0;
}

.scb-banner--bar .scb-actions {
	justify-content: flex-end;
	max-width: 60%;
}

.scb-btn {
	appearance: none;
	font: inherit;
	font-weight: 500;
	line-height: 1.25;
	min-height: 46px;
	padding: 10px 22px;
	border-radius: var(--scb-radius, 999px);
	border: 2px solid var(--scb-accent, #0db3b2);
	cursor: pointer;
	text-align: center;
	transition: filter 0.15s ease;
}

/* Accept, reject and opt-out share one style on purpose: no choice is made harder to pick. */
.scb-btn--solid {
	background: var(--scb-accent, #0db3b2);
	color: var(--scb-accent-text, #182738);
}

.scb-btn--ghost {
	background: transparent;
	color: var(--scb-text, #fff);
	border-color: color-mix(in srgb, var(--scb-text, #fff) 55%, transparent);
}

.scb-btn:hover { filter: brightness(1.08); }

.scb-btn:focus-visible,
.scb-pill:focus-visible,
.scb-close:focus-visible,
.scb-switch:focus-visible,
.scb-policy:focus-visible {
	outline: 3px solid var(--scb-text, #fff);
	outline-offset: 2px;
}

/* ---------- Reopen button ---------- */
.scb-pill {
	position: fixed;
	z-index: 2147482000;
	left: 16px;
	bottom: 16px;
	appearance: none;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 14px;
	border: 0;
	border-radius: 999px;
	background: var(--scb-bg, #182738);
	color: var(--scb-text, #fff);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
	cursor: pointer;
}

/* ---------- Preferences panel ---------- */
.scb-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483600;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.scb-panel {
	background: var(--scb-bg, #182738);
	width: min(560px, 100%);
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	border-radius: 18px;
	padding: 28px;
	box-shadow: 0 16px 60px rgba(0, 0, 0, 0.45);
	outline: none;
}

.scb-panel-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.scb .scb-panel .scb-title { font-size: 26px; }

.scb-close {
	appearance: none;
	background: none;
	border: 0;
	color: inherit;
	font-size: 28px;
	line-height: 1;
	width: 44px;
	height: 44px;
	cursor: pointer;
	border-radius: 6px;
}

.scb-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	padding: 16px 0;
	border-bottom: 1px solid rgba(128, 128, 128, 0.35);
}

.scb-row-title {
	display: block;
	font-weight: 600;
	cursor: pointer;
}

.scb-row-desc {
	opacity: 0.85;
	font-size: 14px;
}

.scb-switch {
	appearance: none;
	flex-shrink: 0;
	width: 46px;
	height: 26px;
	margin: 2px 0 0;
	border-radius: 999px;
	background: rgba(128, 128, 128, 0.55);
	position: relative;
	cursor: pointer;
	transition: background 0.15s ease;
}

.scb-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.15s ease;
}

.scb-switch:checked { background: var(--scb-accent, #0db3b2); }
.scb-switch:checked::after { transform: translateX(20px); }
.scb-switch:disabled { opacity: 0.55; cursor: not-allowed; }

.scb-panel .scb-actions {
	margin: 20px 0 12px;
	justify-content: flex-end;
}

@keyframes scb-rise {
	from { transform: translateY(16px); opacity: 0; }
	to { transform: none; opacity: 1; }
}

@media (max-width: 860px) {
	.scb-banner--bar {
		flex-direction: column;
		align-items: stretch;
		padding: 16px;
	}
	.scb-banner--bar .scb-actions { max-width: none; }
	.scb-banner .scb-btn { flex: 1 1 auto; }
	.scb-banner--left,
	.scb-banner--right { left: 16px; right: 16px; bottom: 16px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
	.scb-banner { animation: none; }
	.scb-switch,
	.scb-switch::after,
	.scb-btn { transition: none; }
}

@media print {
	.scb { display: none !important; }
}
