/* Cookie consent banner — bottom-pinned strip, brand colors, mobile-friendly.
   Loaded only for visitors in GDPR/CCPA scope (see inc/cookie-consent.php). */

:root {
	--examprep-consent-bg:        #002E62;
	--examprep-consent-fg:        #ffffff;
	--examprep-consent-muted:     rgba(255, 255, 255, 0.82);
	--examprep-consent-primary:   var(--color-brand-action, #0c71c3);
	--examprep-consent-primary-fg:#ffffff;
	--examprep-consent-ghost-bd:  rgba(255, 255, 255, 0.6);
	--examprep-consent-shadow:    0 -1px 0 rgba(226, 232, 240, 0.5), 0 -6px 20px rgba(71, 85, 105, 0.22);
	--examprep-consent-radius:    6px;
}

.examprep-consent-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	background: var(--examprep-consent-bg);
	color: var(--examprep-consent-fg);
	box-shadow: var(--examprep-consent-shadow);
	font-family: inherit;
	font-size: 0.8125rem;
	line-height: 1.3;
	transform: translateY(100%);
	transition: transform 0.24s ease-out;
}

.examprep-consent-banner[data-visible="true"] {
	transform: translateY(0);
}

.examprep-consent-banner__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 8px 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

@media (min-width: 768px) {
	.examprep-consent-banner__inner {
		flex-direction: row;
		align-items: center;
		gap: 20px;
	}
}

.examprep-consent-banner__copy {
	flex: 1 1 auto;
	min-width: 0;
}

.examprep-consent-banner__title {
	margin: 0 0 2px;
	font-weight: 600;
	font-size: 0.875rem;
	line-height: 1.2;
	color: var(--examprep-consent-fg);
}

.examprep-consent-banner__body {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.3;
	color: var(--examprep-consent-muted);
}

.examprep-consent-banner__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.examprep-consent-banner__btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: var(--examprep-consent-radius);
	padding: 7px 14px;
	font-size: 0.8125rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;
	transition: filter 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.examprep-consent-banner__btn:focus-visible {
	outline: 2px solid var(--examprep-consent-primary);
	outline-offset: 2px;
}

.examprep-consent-banner__btn--primary {
	background: var(--examprep-consent-primary);
	color: var(--examprep-consent-primary-fg);
}

.examprep-consent-banner__btn--primary:hover {
	filter: brightness(0.94);
}

.examprep-consent-banner__btn--ghost {
	background: transparent;
	color: var(--examprep-consent-fg);
	border-color: var(--examprep-consent-ghost-bd);
}

.examprep-consent-banner__btn--ghost:hover {
	background: rgba(255, 255, 255, 0.08);
}

.examprep-consent-banner__manage {
	color: var(--examprep-consent-fg);
	text-decoration: underline;
	text-decoration-color: var(--examprep-consent-ghost-bd);
	font-size: 0.8125rem;
	margin-left: 4px;
}

.examprep-consent-banner__manage:hover,
.examprep-consent-banner__manage:focus {
	text-decoration-color: var(--examprep-consent-primary);
}

/* /cookie-preferences/ page */

.examprep-consent-prefs {
	padding: 48px 20px 64px;
}

.examprep-consent-prefs__container {
	max-width: 760px;
	margin: 0 auto;
}

.examprep-consent-prefs__container h1 {
	margin: 0 0 12px;
}

.examprep-consent-prefs__lede {
	margin: 0 0 32px;
	color: #4a5568;
	font-size: 1.0625rem;
	line-height: 1.55;
}

.examprep-consent-prefs__form {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.examprep-consent-prefs__row {
	border-top: 1px solid #e2e8f0;
	padding: 20px 0;
}

.examprep-consent-prefs__row:last-of-type {
	border-bottom: 1px solid #e2e8f0;
}

.examprep-consent-prefs__switch {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	cursor: pointer;
	user-select: none;
}

.examprep-consent-prefs__switch input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.examprep-consent-prefs__switch-slider {
	flex: 0 0 44px;
	width: 44px;
	height: 24px;
	background: #cbd5e0;
	border-radius: 999px;
	position: relative;
	transition: background 0.18s ease;
	margin-top: 2px;
}

.examprep-consent-prefs__switch-slider::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	background: #ffffff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0,0,0,0.18);
	transition: transform 0.18s ease;
}

.examprep-consent-prefs__switch input:checked + .examprep-consent-prefs__switch-slider {
	background: #002E62;
}

.examprep-consent-prefs__switch input:checked + .examprep-consent-prefs__switch-slider::after {
	transform: translateX(20px);
}

.examprep-consent-prefs__switch input:focus-visible + .examprep-consent-prefs__switch-slider {
	box-shadow: 0 0 0 3px rgba(0, 46, 98, 0.28);
}

.examprep-consent-prefs__switch input:disabled + .examprep-consent-prefs__switch-slider {
	opacity: 0.6;
	cursor: not-allowed;
}

.examprep-consent-prefs__switch-label {
	font-size: 1rem;
}

.examprep-consent-prefs__switch-label strong {
	display: block;
	font-weight: 600;
	margin-bottom: 2px;
}

.examprep-consent-prefs__switch-label em {
	color: #4a5568;
	font-style: normal;
	font-size: 0.875rem;
	margin-left: 4px;
}

.examprep-consent-prefs__desc {
	margin: 8px 0 0 60px;
	color: #4a5568;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.examprep-consent-prefs__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 24px 0 12px;
}

.examprep-consent-prefs__btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: var(--examprep-consent-radius);
	padding: 12px 22px;
	font-size: 1rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
}

.examprep-consent-prefs__btn--primary {
	background: #002E62;
	color: #ffffff;
}

.examprep-consent-prefs__btn--primary:hover {
	filter: brightness(1.08);
}

.examprep-consent-prefs__btn--secondary {
	background: transparent;
	color: #002E62;
	border-color: #cbd5e0;
}

.examprep-consent-prefs__btn--secondary:hover {
	background: #f7fafc;
}

.examprep-consent-prefs__status {
	margin: 12px 0 0;
	min-height: 1.5em;
	font-size: 0.9375rem;
	color: #15803d;
}

.examprep-consent-prefs__status[data-state="error"] {
	color: #b91c1c;
}

.examprep-consent-prefs__footer {
	margin: 24px 0 0;
	font-size: 0.9375rem;
	color: #4a5568;
}
