/**
 * Cookie consent banner and "enable to use" prompt (parts/v3-consent.php).
 * Sitewide, so self-contained like the call-back dialog: own tokens, px sizes
 * (legacy html is 10px) and its own resets.
 * Mobile first: a bottom sheet on phones (the call-back trigger rides above
 * it), a corner card bottom left from 768px, above the trigger.
 */
.acma-ck {
	--ck-navy: #071a33;
	--ck-royal: #005f9f;
	--ck-blue: #005f9f;
	--ck-ink: #0e1622;
	--ck-text: #3f4a57;
	--ck-line: #dde2e8;
	--ck-surface: #f3f5f8;
	--ck-ease: cubic-bezier(.2, .7, .1, 1);
	position: fixed; z-index: 100001;
	left: 0; right: 0; bottom: 0;
	margin: 0; padding: 0;
	font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 15px; font-weight: 400; line-height: 1.5;
	color: var(--ck-text);
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
}
.acma-ck[hidden] { display: none; }
/* Before v3-consent.js runs: header.php found no stored choice, so the banner paints with the page. */
html.acma-ck-pre .acma-ck[hidden] { display: block; }
.acma-ck * { font-family: inherit; letter-spacing: normal; text-transform: none; box-sizing: border-box; }
.acma-ck :is(p, label, legend, span, a) { font-size: inherit; font-weight: 400; line-height: inherit; margin: 0; }

.acma-ck__panel {
	max-height: 80vh; overflow-y: auto; overscroll-behavior: contain;
	padding: 20px 20px calc(18px + env(safe-area-inset-bottom, 0px));
	border-radius: 20px 20px 0 0;
	background: #fff;
	box-shadow: 0 -18px 50px -20px rgba(4, 13, 28, .45), 0 0 0 1px var(--ck-line);
	animation: acma-ck-up .42s var(--ck-ease) both;
}
@supports (height: 1dvh) { .acma-ck__panel { max-height: 80dvh; } }

.acma-ck .acma-ck__title { margin-bottom: 6px; color: var(--ck-ink); font-size: 17px; font-weight: 700; line-height: 1.3; }
.acma-ck__title:focus { outline: none; }
.acma-ck__title:focus-visible { outline: 3px solid var(--ck-royal); outline-offset: 3px; border-radius: 4px; }
.acma-ck .acma-ck__text a,
.acma-ck .acma-ck__more {
	color: var(--ck-blue); font-weight: 600;
	text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.acma-ck .acma-ck__text a:hover,
.acma-ck .acma-ck__more:hover { color: var(--ck-royal); }
.acma-ck a:focus-visible { outline: 3px solid var(--ck-royal); outline-offset: 2px; border-radius: 3px; }
.acma-ck .acma-ck__more { display: inline-block; margin-top: 12px; font-size: 14px; }

/* ── Choices ───────────────────────────────────────────────────────────── */
.acma-ck__choose { margin: 14px 0 0; }
.acma-ck__choose[hidden] { display: none; }
.acma-ck__cats { margin: 0; padding: 0; border: 0; min-width: 0; }
.acma-ck .acma-ck__legend {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.acma-ck__cat {
	display: grid; grid-template-columns: 44px 1fr; gap: 2px 12px; align-items: center;
	padding: 12px 0; border-top: 1px solid var(--ck-line);
}
.acma-ck .acma-ck__cat label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; cursor: pointer; }
.acma-ck .acma-ck__name { color: var(--ck-ink); font-weight: 600; }
.acma-ck .acma-ck__always { color: var(--ck-text); font-size: 14px; }
.acma-ck .acma-ck__desc { grid-column: 2; font-size: 14px; line-height: 1.45; }

/* Switch: a native checkbox, drawn as a track and knob. */
.acma-ck .acma-ck__switch {
	appearance: none; -webkit-appearance: none;
	position: relative; width: 44px; height: 26px; margin: 0;
	border-radius: 999px; border: 0;
	background: #6f7a88;
	cursor: pointer;
	transition: background-color .2s;
}
.acma-ck .acma-ck__switch::after {
	content: ""; position: absolute; top: 3px; left: 3px;
	width: 20px; height: 20px; border-radius: 50%;
	background: #fff; box-shadow: 0 1px 3px rgba(4, 13, 28, .3);
	transition: transform .2s var(--ck-ease);
}
.acma-ck .acma-ck__switch:checked { background: var(--ck-royal); }
.acma-ck .acma-ck__switch:checked::after { transform: translateX(18px); }
.acma-ck .acma-ck__switch:disabled { cursor: not-allowed; }
.acma-ck .acma-ck__switch:focus-visible { outline: 3px solid var(--ck-royal); outline-offset: 3px; }

/* ── Buttons: three of equal weight, one style ─────────────────────────── */
.acma-ck__actions { display: grid; gap: 8px; margin-top: 14px; }
.acma-ck .acma-ck__btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 46px; width: 100%; margin: 0; padding: 8px 12px;
	border: 1.5px solid var(--ck-navy); border-radius: 999px;
	background: #fff; color: var(--ck-navy);
	font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.acma-ck .acma-ck__btn:hover { background: var(--ck-navy); color: #fff; }
.acma-ck .acma-ck__btn:focus-visible { outline: 3px solid var(--ck-royal); outline-offset: 3px; }
.acma-ck .acma-ck__btn[aria-expanded="true"] { background: var(--ck-surface); }
.acma-ck .acma-ck__btn[aria-expanded="true"]:hover { background: var(--ck-navy); }
.acma-ck .acma-ck__save { margin-top: 4px; }

@media (min-width: 340px) {
	.acma-ck__actions { grid-template-columns: 1fr 1fr; }
	.acma-ck__actions > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Screen reader announcement, said once. */
.acma-ck-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Phones: the call-back trigger sits above the sheet. */
@media (max-width: 767.98px) {
	html.acma-ck-on .acma-cb-trigger { bottom: calc(var(--acma-ck-h, 0px) + 12px); }
	/* With the choices open the sheet is tall: hide it rather than push it onto the header. */
	html.acma-ck-tall .acma-cb-trigger { visibility: hidden; }
}

/* ── Corner card from 768px: bottom left, above the call-back trigger ──── */
@media (min-width: 768px) {
	.acma-ck {
		right: auto; left: 24px;
		bottom: calc(92px + env(safe-area-inset-bottom, 0px));
		width: clamp(440px, 23vw, 500px);
	}
	.acma-ck__panel {
		max-height: calc(100vh - 140px);
		max-height: calc(100dvh - 140px);
		padding: 22px 22px 20px;
		border-radius: 20px;
		box-shadow: 0 30px 70px -30px rgba(4, 13, 28, .5), 0 0 0 1px var(--ck-line);
	}
	@supports (height: 1dvh) { .acma-ck__panel { max-height: calc(100dvh - 140px); } }
}
@media (min-width: 2200px) {
	.acma-ck { font-size: 16px; }
	.acma-ck .acma-ck__title { font-size: 19px; }
	.acma-ck .acma-ck__btn { min-height: 50px; font-size: 16px; }
}

/* Slide only, no fade: text faded in from opacity 0 counts as painted only once visible, which
   made the banner a late LCP (CWV pass 2026-11-17). */
@keyframes acma-ck-up { from { transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) {
	.acma-ck__panel { animation: none; }
	.acma-ck .acma-ck__switch,
	.acma-ck .acma-ck__switch::after,
	.acma-ck .acma-ck__btn { transition: none; }
}
