/* Cookie consent bar + footer "Cookie settings" button. Tokens: bb-tokens.css */
.bb-consent[hidden] { display: none; }
.bb-consent {
	position: fixed;
	z-index: 99990;
	left: var(--bb-space-4);
	right: var(--bb-space-4);
	bottom: max(var(--bb-space-4), env(safe-area-inset-bottom));
	max-width: 680px;
	display: flex;
	flex-direction: column;
	gap: var(--bb-space-3);
	padding: var(--bb-space-4);
	background: var(--bb-cream);
	color: var(--bb-ink);
	border: 1px solid var(--bb-line);
	border-radius: var(--bb-radius-md);
	box-shadow: var(--bb-shadow-md);
	font-family: var(--bb-font-body);
	opacity: 0;
	transform: translateY(8px);
	box-sizing: border-box;
}
.bb-consent.is-open {
	opacity: 1;
	transform: none;
	transition: opacity var(--bb-duration-ui) var(--bb-ease), transform var(--bb-duration-ui) var(--bb-ease);
}
.bb-consent__text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	max-width: 60ch;
	text-wrap: pretty;
}
.bb-consent__link {
	display: inline-block;
	color: var(--bb-olive-900);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	padding-block: 11px; /* 44px+ tap height without growing the line box much */
	margin-block: -11px;
}
.bb-consent__link:hover { color: var(--bb-olive-700); }
.bb-consent__actions { display: flex; gap: var(--bb-space-3); }
.bb-consent__btn {
	flex: 1 1 0;
	min-height: 44px;
	padding: 0 var(--bb-space-5);
	border-radius: var(--bb-radius-pill);
	border: 1.5px solid var(--bb-olive-700);
	font-family: var(--bb-font-body);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background var(--bb-duration-fast) var(--bb-ease), color var(--bb-duration-fast) var(--bb-ease);
}
.bb-consent__btn--accept { background: var(--bb-olive-700); color: var(--bb-cream); }
.bb-consent__btn--accept:hover { background: var(--bb-olive-900); border-color: var(--bb-olive-900); }
.bb-consent__btn--decline { background: transparent; color: var(--bb-olive-900); border-color: var(--bb-olive-900); }
.bb-consent__btn--decline:hover { background: var(--bb-sage-100); }
.bb-consent__btn:active { transform: translateY(1px); }
.bb-consent__btn--accept:active { background: var(--bb-olive-900); }
.bb-consent__btn--decline:active { background: var(--bb-sage-100); }
.bb-consent :focus-visible { outline: 3px solid var(--bb-under); outline-offset: 3px; }

@media (min-width: 768px) {
	.bb-consent {
		left: var(--bb-space-5);
		bottom: max(var(--bb-space-5), env(safe-area-inset-bottom));
		flex-direction: row;
		align-items: center;
		gap: var(--bb-space-5);
		padding: var(--bb-space-4) var(--bb-space-5);
	}
	.bb-consent__actions { flex: 0 0 auto; }
	.bb-consent__btn { flex: 0 0 auto; min-width: 108px; }
}

@media (prefers-reduced-motion: reduce) {
	.bb-consent, .bb-consent.is-open { transition: none; transform: none; }
}

/* Footer "Cookie settings": looks like the footer links (see .bb-footer-grid li a). */
.bb-footer .bb-cookie-settings {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0;
	margin: 0;
	background: none;
	border: 0;
	border-radius: 0;
	color: var(--bb-cream);
	font: inherit;
	cursor: pointer;
	text-align: left;
}
.bb-footer .bb-cookie-settings:hover { color: var(--bb-peach-100); }
