/*
 * BE-10 cookie consent (C-18; inc/consent.php, assets/js/consent.js). Loaded without blocking:
 * the banner stays display:none (inline #eh-cc-crit) until this file applies.
 * Banner: bottom of the viewport, inside the page container, no scrim (not a cookie wall).
 * Drawer: the feedback drawer pattern, 400px from the right, full screen under 690px.
 * z-index: banner 95 (over content, Back to top and the Feedback tab, under the mobile menu),
 * toast 1000, drawer 9993–9994 (above the feedback drawer).
 */
.eh-cc, .eh-cc-d { font-family: var(--wp--preset--font-family--sans); color: var(--wp--preset--color--ink); }
.eh-cc *, .eh-cc *::before, .eh-cc *::after, .eh-cc-d *, .eh-cc-d *::before, .eh-cc-d *::after { box-sizing: border-box; }

/* ---------- Banner ---------- */
html.eh-cc-ask .eh-cc {
	display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
	background: var(--wp--preset--color--white); border-top: var(--wp--custom--eh--border);
	box-shadow: 0 -8px 24px rgba(26, 26, 26, .06);
	animation: eh-cc-in var(--wp--custom--eh--motion);
}
@keyframes eh-cc-in { from { transform: translateY(100%); } to { transform: none; } }
.eh-cc__in {
	max-width: 1320px; margin: 0 auto; padding: 28px var(--wp--custom--eh--margin);
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--wp--preset--spacing--s) var(--wp--preset--spacing--2-xl); align-items: center;
}
.eh-cc__h { margin: 0; font-family: var(--wp--preset--font-family--serif); font-size: 28px; font-weight: 500; line-height: 1.1; color: var(--wp--preset--color--ink); }
.eh-cc__p { max-width: 720px; margin: var(--wp--preset--spacing--2-xs) 0 0; font-size: var(--wp--preset--font-size--small); line-height: 1.6; color: var(--wp--preset--color--ink); }
.eh-cc__links { display: flex; flex-wrap: wrap; gap: 0 var(--wp--preset--spacing--m); margin-top: 10px; }
.eh-cc__link, .eh-cc__link:visited {
	display: inline-flex; align-items: center; min-height: var(--wp--custom--eh--tap); margin: 0; padding: 0; border: 0; background: none;
	font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--wp--preset--color--ink);
	text-decoration: underline; text-underline-offset: 3px; cursor: pointer; transition: color var(--wp--custom--eh--motion);
}
@media (hover: hover) and (pointer: fine) { .eh-cc__link:hover { color: var(--wp--preset--color--blue); background: none; } }
.eh-cc__acts { display: flex; gap: var(--wp--preset--spacing--xs); }

/* Buttons. Reject's look is only in .eh-cc__btn--reject: to make it match Accept (legal check),
   change that one rule to the primary colours. */
.eh-cc__btn {
	display: inline-flex; align-items: center; justify-content: center; min-width: 200px; min-height: var(--wp--custom--eh--control);
	margin: 0; padding: 12px 24px; border: var(--wp--custom--eh--border-strong); border-radius: 0;
	font-family: var(--wp--preset--font-family--sans); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.3; text-align: center;
	cursor: pointer; transition: background var(--wp--custom--eh--motion), border-color var(--wp--custom--eh--motion), color var(--wp--custom--eh--motion);
}
.eh-cc__btn--primary { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white); }
.eh-cc__btn--reject, .eh-cc__btn--line { background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); }
@media (hover: hover) and (pointer: fine) { .eh-cc__btn:hover { background: var(--wp--preset--color--blue); border-color: var(--wp--preset--color--blue); color: var(--wp--preset--color--white); } }
.eh-cc__btn:active { background: var(--wp--preset--color--blue-pressed); border-color: var(--wp--preset--color--blue-pressed); color: var(--wp--preset--color--white); }
.eh-cc button:focus-visible, .eh-cc a:focus-visible, .eh-cc-d button:focus-visible, .eh-cc-d a:focus-visible { outline: var(--wp--custom--eh--focus); outline-offset: 2px; }

/* Never covered: lift Back to top, the Feedback tab and any sticky bottom bar above the banner. */
html.eh-cc-ask .ct-back-to-top { bottom: calc(var(--eh-cc-h, 0px) + 24px) !important; }
html.eh-cc-ask .eh-fb__tab { top: calc((100% - var(--eh-cc-h, 0px)) / 2); }
html.eh-cc-ask [data-eh-sticky-bottom] { bottom: var(--eh-cc-h, 0px) !important; }

@media (max-width: 999.98px) {
	.eh-cc__in { grid-template-columns: minmax(0, 1fr); padding: 24px var(--wp--custom--eh--margin-tablet); }
}
@media (max-width: 689.98px) {
	.eh-cc__in { gap: var(--wp--preset--spacing--s); padding: 20px var(--wp--custom--eh--margin-mobile) 24px; }
	.eh-cc__h { font-size: 26px; }
	.eh-cc__p { font-size: 14px; }
	.eh-cc__acts { flex-direction: column; gap: 10px; }
	.eh-cc__acts .eh-cc__btn { width: 100%; min-width: 0; }
}

/* ---------- Drawer ---------- */
.eh-cc-d [hidden] { display: none !important; }
html.eh-cc-open { overflow: hidden; }
.eh-cc-d__scrim { position: fixed; inset: 0; z-index: 9993; background: rgba(26, 26, 26, .4); opacity: 0; transition: opacity var(--wp--custom--eh--motion); }
.eh-cc-d__panel {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 9994; width: 400px; max-width: 100%;
	display: flex; flex-direction: column; background: var(--wp--preset--color--white);
	box-shadow: -8px 0 32px rgba(26, 26, 26, .12);
	transform: translateX(100%); transition: transform var(--wp--custom--eh--motion);
}
.admin-bar .eh-cc-d__panel { top: var(--wp-admin--admin-bar--height, 0px); }
.eh-cc-d.is-open .eh-cc-d__scrim { opacity: 1; }
.eh-cc-d.is-open .eh-cc-d__panel { transform: none; }

.eh-cc-d__top { display: flex; align-items: center; justify-content: space-between; padding: var(--wp--preset--spacing--s) var(--wp--preset--spacing--s) 0 var(--wp--preset--spacing--l); }
.eh-cc-d__cap { font-size: var(--wp--preset--font-size--label); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--wp--preset--color--stone); }
.eh-cc-d__x { width: var(--wp--custom--eh--tap); height: var(--wp--custom--eh--tap); margin: 0; padding: 0; border: 0; background: none; color: var(--wp--preset--color--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: color var(--wp--custom--eh--motion); }
@media (hover: hover) and (pointer: fine) { .eh-cc-d__x:hover { color: var(--wp--preset--color--blue); background: none; } }

.eh-cc-d__body { flex: 1; overflow: auto; padding: var(--wp--preset--spacing--2-xs) var(--wp--preset--spacing--l) var(--wp--preset--spacing--m); display: flex; flex-direction: column; gap: var(--wp--preset--spacing--m); }
.eh-cc-d__h { margin: 0; font-family: var(--wp--preset--font-family--serif); font-size: 36px; font-weight: 500; line-height: 1.05; color: var(--wp--preset--color--ink); }
.eh-cc-d__h:focus { outline: none; }
.eh-cc-d__h:focus-visible { outline: var(--wp--custom--eh--focus); outline-offset: 2px; }
.eh-cc-d__lede { margin: var(--wp--preset--spacing--2-xs) 0 0; font-size: var(--wp--preset--font-size--small); line-height: 1.6; color: var(--wp--preset--color--stone); }
.eh-cc-d__row { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--2-xs); padding-top: 20px; border-top: var(--wp--custom--eh--border); }
.eh-cc-d__rh { display: flex; align-items: center; justify-content: space-between; gap: var(--wp--preset--spacing--s); min-height: var(--wp--custom--eh--tap); }
.eh-cc-d__rt { margin: 0; font-family: var(--wp--preset--font-family--sans); font-size: var(--wp--preset--font-size--body); font-weight: 600; line-height: 1.3; color: var(--wp--preset--color--ink); }
.eh-cc-d__rd { margin: 0; font-size: 14px; line-height: 1.6; color: var(--wp--preset--color--ink); }
.eh-cc-d__on { padding: 6px 10px; background: var(--wp--preset--color--paper); font-size: var(--wp--preset--font-size--label); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; color: var(--wp--preset--color--ink); }
.eh-cc-d__who { margin: 0; font-size: var(--wp--preset--font-size--meta); line-height: 1.6; color: var(--wp--preset--color--stone); }
.eh-cc-d__who a, .eh-cc-d__who a:visited { color: var(--wp--preset--color--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Switch: the word On/Off beside it, so colour is never the only cue. */
.eh-cc-d__sw {
	display: inline-flex; align-items: center; gap: 10px; min-height: var(--wp--custom--eh--tap); margin: 0; padding: 0 0 0 var(--wp--preset--spacing--2-xs);
	border: 0; background: none; font-family: inherit; font-size: var(--wp--preset--font-size--meta); font-weight: 500; color: var(--wp--preset--color--ink); cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .eh-cc-d__sw:hover { background: none; color: var(--wp--preset--color--ink); } }
.eh-cc-d__tr { position: relative; width: 48px; height: 28px; border: 1px solid var(--wp--preset--color--stone); border-radius: 14px; background: var(--wp--preset--color--white); transition: background var(--wp--custom--eh--motion), border-color var(--wp--custom--eh--motion); }
.eh-cc-d__kn { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--wp--preset--color--stone); transition: left var(--wp--custom--eh--motion), background var(--wp--custom--eh--motion); }
.eh-cc-d__sw[aria-checked="true"] .eh-cc-d__tr { background: var(--wp--preset--color--blue); border-color: var(--wp--preset--color--blue); }
.eh-cc-d__sw[aria-checked="true"] .eh-cc-d__kn { left: 23px; background: var(--wp--preset--color--white); }

.eh-cc-d__foot { display: flex; flex-direction: column; gap: 10px; padding: 20px var(--wp--preset--spacing--l) var(--wp--preset--spacing--m); border-top: var(--wp--custom--eh--border); }
.eh-cc-d__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.eh-cc-d__foot .eh-cc__btn { width: 100%; min-width: 0; padding: 12px 16px; }

@media (max-width: 689.98px) {
	.eh-cc-d__panel { width: 100%; }
	.eh-cc-d__top { padding: 12px 8px 0 var(--wp--custom--eh--margin-mobile); }
	.eh-cc-d__body { padding: var(--wp--preset--spacing--2-xs) var(--wp--custom--eh--margin-mobile) var(--wp--preset--spacing--m); }
	.eh-cc-d__foot { padding: var(--wp--preset--spacing--s) var(--wp--custom--eh--margin-mobile) 20px; }
}
@media (prefers-reduced-motion: reduce) {
	html.eh-cc-ask .eh-cc { animation: none; }
	.eh-cc *, .eh-cc-d__panel, .eh-cc-d__scrim, .eh-cc-d * { transition: none !important; }
}
