/**
 * Klaro consent UI — restyled to ENACT (teal #00747A, IBM Plex Serif 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 #00747A;
	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: #e6eef0;
	color: #00595e;
}
.klaro .cm-btn.cm-btn-success,
.klaro .cn-buttons button.cm-btn-success { background: #00747A; color: #fff; }
.klaro .cm-btn.cm-btn-success:hover { background: #005f64; }
.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 #00747A; outline-offset: 2px; }
.klaro .cn-learn-more, .klaro .cm-link {
	background: none; border: none; padding: 0; margin-right: 16px;
	color: #00747A; font-size: 13px; text-decoration: underline; cursor: pointer;
}
.klaro a { color: #00747A; }

/* ---- 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: 'IBM Plex Serif', 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: #00747A; }

/* switches */
.klaro .cm-list-input:checked + .cm-list-label .slider { background-color: #00747A; }
.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,
.enact-consent-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: #00747A; }
.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 #00747A; 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: 'IBM Plex Serif', 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: #00747A; 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; }
