/* BHFE Cookie Consent — banner + preferences modal.
   Scoped under .bhcc. The bhfe theme applies global !important styles to
   button/a:hover (blank backgrounds plus ::before overlays), so every
   interactive element here is re-hardened with scoped !important rules and
   ::before/::after kills. */

.bhcc {
	--bhcc-navy: #17365D;
	--bhcc-navy-dark: #0F2540;
	--bhcc-gold: #E9A63A;
	--bhcc-gold-dark: #B87E1F;
	--bhcc-border: #DEE4EA;
	font-family: Georgia, "Times New Roman", serif;
	box-sizing: border-box;
}

.bhcc *,
.bhcc *::before,
.bhcc *::after {
	box-sizing: inherit;
}

.bhcc a::before,
.bhcc a::after,
.bhcc button::before,
.bhcc button::after {
	content: none !important;
	display: none !important;
}

/* ---------- Banner ---------- */

.bhcc-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2147483647; /* JivoChat tops out at 2147483646 — the banner must beat it */
	background: var(--bhcc-navy-dark);
	border-top: 3px solid var(--bhcc-gold);
	color: #fff;
	box-shadow: 0 -8px 30px rgba(15, 37, 64, 0.35);
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.28s ease, transform 0.28s ease;
}

.bhcc-banner.bhcc-show {
	opacity: 1;
	transform: translateY(0);
}

.bhcc-banner[hidden] {
	display: none;
}

.bhcc-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 18px 24px calc(18px + env(safe-area-inset-bottom, 0px));
	display: flex;
	align-items: center;
	gap: 28px;
}

.bhcc-copy {
	flex: 1 1 auto;
	min-width: 240px;
}

.bhcc .bhcc-heading {
	margin: 0 0 4px !important;
	font-size: 17px;
	line-height: 1.3;
	font-weight: 700;
	color: #fff;
}

.bhcc .bhcc-msg {
	margin: 0 !important;
	font-size: 14.5px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.88);
}

.bhcc .bhcc-msg a,
.bhcc .bhcc-policy-link {
	color: var(--bhcc-gold) !important;
	background: transparent !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

.bhcc .bhcc-msg a:hover,
.bhcc .bhcc-policy-link:hover {
	color: #f3bd66 !important;
	background: transparent !important;
	text-decoration: underline !important;
}

.bhcc-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	flex: 0 0 auto;
}

/* ---------- Buttons (theme-proofed) ---------- */

.bhcc .bhcc-btn {
	display: inline-block !important;
	min-width: 0;
	font-family: Georgia, "Times New Roman", serif !important;
	font-size: 15px !important;
	line-height: 1.2 !important;
	font-weight: 700 !important;
	padding: 12px 22px !important;
	border-radius: 8px !important;
	cursor: pointer !important;
	text-align: center !important;
	text-decoration: none !important;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.bhcc .bhcc-accept {
	background: var(--bhcc-gold) !important;
	color: var(--bhcc-navy-dark) !important;
	border: 2px solid var(--bhcc-gold) !important;
}

.bhcc .bhcc-accept:hover,
.bhcc .bhcc-accept:focus {
	background: #d6942c !important;
	border-color: #d6942c !important;
	color: var(--bhcc-navy-dark) !important;
}

.bhcc .bhcc-decline {
	background: transparent !important;
	color: #fff !important;
	border: 2px solid rgba(255, 255, 255, 0.55) !important;
}

.bhcc .bhcc-decline:hover,
.bhcc .bhcc-decline:focus {
	background: rgba(255, 255, 255, 0.12) !important;
	color: #fff !important;
	border-color: #fff !important;
}

.bhcc .bhcc-link {
	background: transparent !important;
	border: 0 !important;
	padding: 10px 4px !important;
	font-family: Georgia, "Times New Roman", serif !important;
	font-size: 14.5px !important;
	color: rgba(255, 255, 255, 0.85) !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
	cursor: pointer !important;
}

.bhcc .bhcc-link:hover,
.bhcc .bhcc-link:focus {
	color: var(--bhcc-gold) !important;
	background: transparent !important;
	text-decoration: underline !important;
}

/* ---------- Modal ---------- */

.bhcc-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483647; /* later sibling of the banner, so it stacks above it at the same z */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.bhcc-modal[hidden] {
	display: none;
}

.bhcc-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 37, 64, 0.55);
}

.bhcc-dialog {
	position: relative;
	background: #fff;
	border-radius: 12px;
	max-width: 560px;
	width: 100%;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 26px 28px;
	box-shadow: 0 24px 60px rgba(15, 37, 64, 0.35);
	outline: none;
}

.bhcc .bhcc-mtitle {
	margin: 0 0 14px !important;
	padding: 0 36px 0 0 !important;
	font-family: Georgia, "Times New Roman", serif !important;
	font-size: 23px !important;
	line-height: 1.25 !important;
	color: var(--bhcc-navy) !important;
}

.bhcc .bhcc-x {
	position: absolute !important;
	top: 14px !important;
	right: 14px !important;
	width: 34px !important;
	height: 34px !important;
	padding: 0 !important;
	border: 1px solid var(--bhcc-border) !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: var(--bhcc-navy) !important;
	font-size: 20px !important;
	line-height: 1 !important;
	cursor: pointer !important;
}

.bhcc .bhcc-x:hover,
.bhcc .bhcc-x:focus {
	background: #f2f5f8 !important;
	color: var(--bhcc-navy) !important;
}

.bhcc-cat {
	border: 1px solid var(--bhcc-border);
	border-radius: 8px;
	padding: 13px 15px;
	margin: 0 0 10px;
}

.bhcc-cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.bhcc .bhcc-cat-label {
	display: flex !important;
	align-items: center;
	gap: 9px;
	cursor: pointer;
	margin: 0 !important;
}

.bhcc .bhcc-cat-label input[type="checkbox"] {
	width: 17px;
	height: 17px;
	margin: 0 !important;
	accent-color: var(--bhcc-navy);
	cursor: pointer;
}

.bhcc-cat-name {
	font-size: 15.5px;
	font-weight: 700;
	color: var(--bhcc-navy);
}

.bhcc-badge {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #7A5A16;
	background: #FBF3E0;
	border: 1px solid #E7CD96;
	border-radius: 999px;
	padding: 3px 10px;
	white-space: nowrap;
}

.bhcc .bhcc-cat-desc {
	margin: 7px 0 0 !important;
	font-size: 13.5px;
	line-height: 1.5;
	color: #4a5a6a;
}

.bhcc .bhcc-gpc-note {
	margin: 7px 0 0 !important;
	font-size: 12.5px;
	line-height: 1.45;
	color: #8a6d1f;
	font-style: italic;
}

.bhcc-mactions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.bhcc .bhcc-save {
	background: var(--bhcc-navy) !important;
	color: #fff !important;
	border: 2px solid var(--bhcc-navy) !important;
}

.bhcc .bhcc-save:hover,
.bhcc .bhcc-save:focus {
	background: var(--bhcc-navy-dark) !important;
	border-color: var(--bhcc-navy-dark) !important;
	color: #fff !important;
}

.bhcc .bhcc-mpolicy {
	margin: 14px 0 0 !important;
	font-size: 13px;
}

.bhcc .bhcc-mpolicy a {
	color: var(--bhcc-gold-dark) !important;
	background: transparent !important;
	text-decoration: underline !important;
}

.bhcc-lock {
	overflow: hidden;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
	.bhcc-wrap {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		padding-top: 15px;
	}

	.bhcc-actions {
		width: 100%;
	}

	.bhcc .bhcc-btn {
		flex: 1 1 calc(50% - 5px);
		padding: 13px 10px !important;
	}

	.bhcc .bhcc-link {
		flex: 1 1 100%;
		text-align: center !important;
	}

	.bhcc-dialog {
		padding: 20px 18px;
	}
}

@media (max-width: 560px) {
	.bhcc .bhcc-btn {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bhcc-banner {
		transition: none;
		transform: none;
	}
}

@media print {
	.bhcc {
		display: none !important;
	}
}
