/**
 * Klaro consent UI — restyled to GEBA (blue #003478, League Spartan titles).
 * Klaro ships unstyled here (klaro-no-css.js) so this is the whole look.
 * @package astra-child
 */
.klaro { font-family: Helvetica, Verdana, Arial, sans-serif; }

/* ---- bottom notice ---- */
.klaro .cookie-notice:not(.cookie-modal-notice) {
	position: fixed;
	left: 24px; bottom: 24px;
	z-index: 9999;
	width: 400px;
	max-width: calc(100vw - 40px);
	background: #fff;
	color: #222;
	border-top: 4px solid #003478;
	border-radius: 6px;
	box-shadow: 0 12px 34px rgba(0,0,0,.26);
	padding: 22px 24px 18px;
	box-sizing: border-box;
}
.klaro .cookie-notice .cn-body { margin: 0; padding: 0; }
.klaro .cn-body p, .klaro .cookie-modal p { font-size: 14px; line-height: 1.55; margin: 0 0 14px; }
.klaro .cn-body .cn-ok { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin-top: 10px; }

/* buttons */
.klaro .cm-btn,
.klaro .cn-buttons button {
	font-family: Helvetica, Verdana, Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .3px;
	text-transform: uppercase;
	border: none;
	border-radius: 20px;
	padding: 10px 22px;
	cursor: pointer;
	background: #e8edf5;
	color: #00275a;
}
.klaro .cm-btn.cm-btn-success,
.klaro .cn-buttons button.cm-btn-success { background: #003478; color: #fff; }
.klaro .cm-btn.cm-btn-success:hover { background: #00275a; }
.klaro .cm-btn.cm-btn-decline,
.klaro .cm-btn.cn-decline { background: transparent; color: #5b6770; text-decoration: underline; padding-left: 4px; padding-right: 4px; margin: 0; }

/* Klaro ships .cn-buttons / .cm-buttons as display:block, so the buttons sit
   flush against each other. Lay them out as a flex row with a real gap. */
.klaro .cn-buttons,
.klaro .cm-modal .cm-footer-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	justify-content: flex-end;
}
.klaro .cn-buttons > *,
.klaro .cm-modal .cm-footer-buttons > * { margin: 0; }
@media (max-width: 767.9px) {
	.klaro .cn-buttons,
	.klaro .cm-modal .cm-footer-buttons { justify-content: center; gap: 10px; }
}
.klaro .cm-btn:focus-visible, .klaro a:focus-visible { outline: 2px solid #003478; outline-offset: 2px; }
.klaro .cn-learn-more, .klaro .cm-link {
	background: none; border: none; padding: 0; margin-right: 16px;
	color: #003478; font-size: 13px; text-decoration: underline; cursor: pointer;
}
.klaro a { color: #003478; }

/* ---- settings modal ---- */
.klaro .cookie-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; }
.klaro .cookie-modal .cm-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); }
.klaro .cookie-modal .cm-modal {
	position: relative;
	background: #fff;
	color: #222;
	width: 640px; max-width: 92vw;
	max-height: 86vh; overflow-y: auto;
	border-radius: 6px;
	box-shadow: 0 16px 44px rgba(0,0,0,.32);
}
.klaro .cookie-modal .cm-header { padding: 26px 30px 6px; border-bottom: 1px solid #eee; }
.klaro .cookie-modal .cm-header h1,
.klaro .cookie-notice h1 {
	font-family: 'League Spartan', system-ui, sans-serif;
	font-weight: 300;
	font-size: 24px;
	line-height: 1.25;
	color: #222;
	margin: 0 0 10px;
}
.klaro .cookie-modal .cm-body { padding: 18px 30px; }
.klaro .cookie-modal .cm-footer { padding: 16px 30px 24px; border-top: 1px solid #eee; }
.klaro .cookie-modal .cm-footer-buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: flex-end; }
.klaro .cookie-modal ul.cm-services, .klaro .cookie-modal ul.cm-purposes { list-style: none; margin: 0; padding: 0; }
.klaro .cookie-modal li.cm-service, .klaro .cookie-modal li.cm-purpose { padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.klaro .cookie-modal li.cm-service:last-child { border-bottom: none; }
.klaro .cm-service .cm-list-title, .klaro .cm-purpose .cm-list-title { font-weight: 700; font-size: 15px; color: #222; }
.klaro .cm-service .cm-list-description, .klaro .cm-purpose .cm-list-description { font-size: 13.5px; line-height: 1.5; color: #5b6770; }
.klaro .cm-caret { color: #003478; }

/* switches */
.klaro .cm-list-input:checked + .cm-list-label .slider { background-color: #003478; }
.klaro .cm-list-label .slider { background-color: #c3ccd1; }
.klaro .cm-list-input.only-required + .cm-list-label .slider { background-color: #9fb4b6; }
.klaro .cm-list-label .cm-switch { height: 24px; }

@media (max-width: 767.9px) {
	.klaro .cookie-notice:not(.cookie-modal-notice) {
		left: 0; right: 0; bottom: 0;
		width: auto; max-width: none;
		border-radius: 12px 12px 0 0;
		padding: 20px 18px 16px;
	}
}

/* YouTube placeholder shown while consent is withheld */
.klaro .cm-placeholder {
	background: #f2f6f7;
	border: 1px dashed #b9ccce;
	border-radius: 4px;
	padding: 24px;
	text-align: center;
	font-size: 14px;
	color: #40585b;
}

/* ---- Klaro 0.7.x internals: real switch markup is
   input.cm-list-input + label.cm-list-label > span.cm-switch > div.slider ---- */
.klaro .cm-list-input { position: absolute; opacity: 0; width: 0; height: 0; }
.klaro .cm-list-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	cursor: pointer;
}
.klaro .cm-list-label .cm-switch {
	position: relative;
	flex: 0 0 auto;
	width: 44px; height: 24px;
	display: inline-block;
}
.klaro .cm-list-label .cm-switch .slider {
	position: absolute; inset: 0;
	background: #c3ccd1;
	border-radius: 24px;
	transition: background .2s ease;
}
.klaro .cm-list-label .cm-switch .slider::before {
	content: "";
	position: absolute;
	top: 3px; left: 3px;
	width: 18px; height: 18px;
	background: #fff;
	border-radius: 50%;
	transition: transform .2s ease;
	box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.klaro .cm-list-input:checked + .cm-list-label .cm-switch .slider,
.klaro .cm-list-label .cm-switch .slider.active { background: #003478; }
.klaro .cm-list-input:checked + .cm-list-label .cm-switch .slider::before,
.klaro .cm-list-label .cm-switch .slider.active::before { transform: translateX(20px); }
.klaro .cm-list-input:focus-visible + .cm-list-label .cm-switch .slider { outline: 2px solid #003478; outline-offset: 2px; }
.klaro .cm-list-input.half-checked + .cm-list-label .cm-switch .slider { background: #7fb0b3; }
.klaro .cm-list-input.half-checked + .cm-list-label .cm-switch .slider::before { transform: translateX(10px); }

/* close button in the modal header (was rendering as a raw blue box) */
.klaro .cm-header button,
.klaro .cookie-modal .cm-header button.hide {
	position: absolute;
	top: 16px; right: 18px;
	width: 30px; height: 30px;
	display: inline-flex; align-items: center; justify-content: center;
	background: transparent;
	border: none; border-radius: 50%;
	color: #5b6770;
	cursor: pointer; padding: 0;
}
.klaro .cm-header button:hover { background: #eef2f3; color: #222; }
.klaro .cm-header button svg { stroke: currentColor; }
.klaro .cm-header { position: relative; }
.klaro .cm-header .title span { font-family: 'League Spartan', system-ui, sans-serif; }

/* purposes list: give the group row the same switch treatment, indent services */
.klaro .cm-purpose > div > .cm-list-label { font-weight: 700; }
.klaro .cm-purpose ul.cm-services { margin-left: 4px; padding-left: 14px; border-left: 2px solid #eef2f3; }
.klaro .cm-caret a { color: #003478; font-size: 13px; text-decoration: none; }

/* keep the action buttons reachable on short screens */
.klaro .cookie-modal .cm-footer {
	position: sticky;
	bottom: 0;
	background: #fff;
}
.klaro .cm-powered-by { display: none; }
.klaro .cookie-modal .cm-body > p:first-child { margin-top: 0; }

/* Consent-gated YouTube placeholder: self-hosted video poster + play button +
   info bubble (shown until the youtube service is accepted) */
.geba-yt-placeholder {
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	background: #003478 center / cover no-repeat;
	border: none;
	padding: 0;
	cursor: pointer;
	margin: 0 auto;
	overflow: hidden;
}
.geba-yt-placeholder::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.25);
	transition: background 0.2s ease;
}
.geba-yt-placeholder:hover::after { background: rgba(0, 0, 0, 0.12); }
.geba-yt-placeholder__play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 86px;
	height: 86px;
	border-radius: 50%;
	background: rgba(0, 52, 120, 0.85);
	z-index: 1;
	transition: background 0.2s ease, transform 0.2s ease;
}
.geba-yt-placeholder__play::before {
	content: "";
	position: absolute;
	left: 54%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 16px 0 16px 28px;
	border-color: transparent transparent transparent #fff;
}
.geba-yt-placeholder:hover .geba-yt-placeholder__play {
	background: #dda63a;
	transform: translate(-50%, -50%) scale(1.06);
}
.geba-yt-placeholder__bubble {
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	z-index: 1;
	max-width: calc(100% - 40px);
	background: rgba(0, 0, 0, 0.65);
	color: rgba(255, 255, 255, 0.92);
	font-family: Helvetica, sans-serif;
	font-size: 13px;
	line-height: 1.4;
	padding: 8px 16px;
	border-radius: 18px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
/* Our branded placeholder replaces Klaro's contextual notice — hide the duplicate */
.klaro.cm-as-context-notice, .klaro .context-notice { display: none !important; }
