/**
 * BoxHome - Cookie consent bar
 *
 * Kept in its own versioned file (loaded as cookie-consent.css?v=1 from
 * common/header.twig) rather than appended to stylesheet.css, because
 * stylesheet.css is served without a cache-busting query string. A visitor
 * holding a stale stylesheet.css would otherwise see the bar unstyled.
 *
 * Bump the ?v= in header.twig whenever this file changes.
 *
 * Hidden by default here and revealed by JS via .bh-cookie-open on <body>, so
 * the bar never flashes for visitors who have already answered. Being
 * position:fixed it contributes no layout shift (CLS).
 */
#bh-cookie-bar {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	/* Theme's highest z-index is 999999 (.background-hidden / .overlay). */
	z-index: 1000000;
	background-color: #303030;
	color: #fff;
	border-top: 2px solid #288d95;
	padding: 14px 0;
	padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
	box-shadow: 0 -2px 12px rgba(0, 0, 0, .25);
	font-size: 13px;
	line-height: 1.5;
}
.bh-cookie-open #bh-cookie-bar {
	display: block;
}
.bh-cookie-inner {
	display: flex;
	align-items: center;
	gap: 20px;
}
.bh-cookie-text {
	flex: 1 1 auto;
}
.bh-cookie-text strong {
	display: block;
	font-size: 15px;
	margin-bottom: 3px;
}
#bh-cookie-bar a {
	color: #eee410;
	text-decoration: underline;
}
#bh-cookie-bar a:hover,
#bh-cookie-bar a:focus {
	color: #fff;
}
.bh-cookie-actions {
	flex: 0 0 auto;
	display: flex;
	gap: 10px;
}
#bh-cookie-bar .bh-cookie-btn {
	min-width: 120px;
	padding: 9px 18px;
	border: 1px solid transparent;
	border-radius: 3px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}
/* Accept and reject are deliberately equal in visual weight. */
#bh-cookie-bar .bh-cookie-accept {
	background-color: #288d95;
	border-color: #288d95;
	color: #fff;
}
#bh-cookie-bar .bh-cookie-accept:hover {
	background-color: #1f7079;
	border-color: #1f7079;
}
#bh-cookie-bar .bh-cookie-reject {
	background-color: transparent;
	border-color: #fff;
	color: #fff;
}
#bh-cookie-bar .bh-cookie-reject:hover {
	background-color: #fff;
	color: #303030;
}
#bh-cookie-bar .bh-cookie-btn:focus-visible {
	outline: 2px solid #eee410;
	outline-offset: 2px;
}
@media (max-width: 767px) {
	.bh-cookie-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}
	.bh-cookie-actions {
		gap: 8px;
	}
	#bh-cookie-bar .bh-cookie-btn {
		flex: 1 1 0;
		min-width: 0;
	}
}
