/* Analytics consent banner -- inc/consent.php, assets/js/consent.js.
 * Accept and Decline are the SAME component: same size, weight, colour, order of
 * appearance; nothing pre-selected, no close button. */
.it-consent {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 9999;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
	gap: 12px 20px;
	padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
	background: var(--it-surface, #fff);
	color: var(--it-text, #16191e);
	border-top: 1px solid var(--it-line, #d6dae0);
	box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
	font-size: var(--it-fs-sm, 14px);
	line-height: 1.5;
}
.it-consent[hidden] { display: none; }
.it-consent__text { margin: 0; max-width: 62ch; }
.it-consent__text a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.it-consent__actions { display: flex; gap: 12px; }
.it-consent__btn {
	min-width: 150px; min-height: 44px;
	padding: 10px 18px;
	border: 1px solid var(--it-text, #16191e);
	border-radius: 8px;
	background: var(--it-surface, #fff);
	color: var(--it-text, #16191e);
	font: inherit; font-weight: 600;
	cursor: pointer;
}
.it-consent__btn:hover { background: var(--it-surface-2, #f3f4f6); }
.it-consent__btn:focus-visible,
.it-consent__text a:focus-visible { outline: 2px solid var(--it-accent-press, #a96500); outline-offset: 2px; }
.it-consent__btn[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--it-text, #16191e); }
html.it-consent-open body { padding-bottom: var(--it-consent-h, 120px); }

@media (max-width: 600px) {
	.it-consent { justify-content: stretch; }
	.it-consent__actions { width: 100%; }
	.it-consent__btn { flex: 1 1 0; min-width: 0; }
}

/* Footer "Analytics settings": a button that looks and behaves like its neighbour links. */
.it-footer .it-footer__consent {
	padding: 0; border: 0; background: none; cursor: pointer;
	font: inherit; font-size: var(--it-fs-sm, 14px);
	color: var(--it-text-muted);
}
.it-footer .it-footer__consent:hover,
.it-footer .it-footer__consent:focus-visible {
	color: var(--it-accent-press);
	text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.it-footer .it-footer__consent:focus-visible { outline: 2px solid var(--it-accent-press); outline-offset: 2px; border-radius: 2px; }
