/* Barber Brahim (Pilot 003) - consent banner. Reuses the theme's own
   design tokens (cream/ink/gold) and button visual language
   (gold-fill primary / outline secondary, see style.css's
   is-style-bb-fill / is-style-bb-outline-dark) rather than inventing a
   new visual system - a slim, non-blocking bottom bar, never a
   full-screen modal or backdrop, so it can never behave as a cookie
   wall. `position: fixed` keeps it out of document flow entirely, so
   showing/hiding it causes no layout shift to the page underneath. */

.bb-consent-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
	border-top: 1px solid var(--wp--preset--color--line, rgba(255,255,255,0.15));
	box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
	padding: 1rem 1.25rem;
}
.bb-consent-banner[hidden] {
	display: none;
}
.bb-consent-banner__inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.bb-consent-banner__text {
	margin: 0;
	flex: 1 1 320px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--wp--preset--color--cream);
}
.bb-consent-banner__text a {
	color: var(--wp--preset--color--gold);
	text-decoration: underline;
}
.bb-consent-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	flex: 0 0 auto;
}
.bb-consent-banner__btn {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 0.65rem 1.2rem;
	border-radius: 3px;
	cursor: pointer;
	white-space: nowrap;
	/* Equal footprint regardless of label length, so "Alleen
	   noodzakelijk" and "Statistieken toestaan" occupy identical space
	   on desktop too, not just matching padding/fill. */
	min-width: 210px;
	text-align: center;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
/* PILOT 003 GA4 + CONSENT FINAL CORRECTION ROUND: both choices now get
   the identical solid-fill treatment (same size, same border-radius,
   same font-weight, same visual "weight" of a filled button) instead
   of a prominent gold fill against a plain outline - only the fill hue
   differs (gold vs cream), never which one merely has a border. Order
   in markup/tab sequence is unchanged: "Alleen noodzakelijk" first,
   "Statistieken toestaan" second - this block only corrects visual
   equivalence, not order or wording. */
.bb-consent-banner__btn--primary {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--ink);
	border: 1.5px solid var(--wp--preset--color--gold);
}
.bb-consent-banner__btn--primary:hover {
	background: var(--wp--preset--color--gold-deep);
	border-color: var(--wp--preset--color--gold-deep);
}
.bb-consent-banner__btn--secondary {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--ink);
	border: 1.5px solid var(--wp--preset--color--cream);
}
.bb-consent-banner__btn--secondary:hover {
	background: var(--wp--preset--color--sand);
	border-color: var(--wp--preset--color--sand);
}
.bb-consent-banner__btn:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
	.bb-consent-banner__btn {
		transition: none;
	}
}

/* Footer "Cookievoorkeuren" control - same subtle visual weight as the
   existing "Powered by NextGenBuilds" credit line beside it, reset from
   a native <button> to plain inline text so it doesn't introduce a
   new visual element into the existing footer row. */
.bb-footer__cookie-btn {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	font: inherit;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.bb-footer__cookie-btn:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
}

@media (max-width: 560px) {
	/* PILOT 003 GA4 + CONSENT FINAL CORRECTION ROUND - root cause: once
	   .bb-consent-banner__inner switches to flex-direction: column
	   here, the CROSS axis becomes horizontal and the MAIN axis becomes
	   vertical - so .bb-consent-banner__text's own `flex: 1 1 320px`
	   (fine as a width-basis in the row layout above) gets reinterpreted
	   as a 320px HEIGHT basis, forcing the banner to an unacceptable
	   height on mobile. Overriding the basis back to `auto` here (text
	   sizes to its own content) is the whole fix - confirmed live. */
	.bb-consent-banner__text {
		flex: 0 1 auto;
	}
	.bb-consent-banner__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 0.6rem;
	}
	.bb-consent-banner__actions {
		flex-direction: column;
		gap: 0.5rem;
	}
	.bb-consent-banner__btn {
		width: 100%;
		text-align: center;
	}
}
