/**
 * BKM Cookie Consent
 *
 * Follows the bkm_base theme: charcoal #384148, Montserrat, square-cornered
 * outline buttons with a 0.35s transition (see theme css/buttons.css).
 */

.bkm-cc {
	--bkm-cc-charcoal: #384148;
	--bkm-cc-charcoal-dark: #2d3439;
	--bkm-cc-slate: #565e63;
	--bkm-cc-light: #e7e8e9;

	display: none;
	position: fixed;
	z-index: 99999;
	right: 0;
	bottom: 0;
	left: 0;
	box-sizing: border-box;
	max-height: 100vh;
	overflow-y: auto;
	padding: 24px 20px;
	background-color: var(--bkm-cc-charcoal);
	border-top: 3px solid var(--bkm-cc-slate);
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
	color: #fff;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	line-height: 1.6;
}

/* Shown only when the head script found no stored choice, or on reopen. */
html.bkm-cc-ask .bkm-cc,
.bkm-cc.is-open {
	display: block;
}

.bkm-cc *,
.bkm-cc *::before,
.bkm-cc *::after {
	box-sizing: border-box;
}

.bkm-cc__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 40px;
	align-items: center;
	justify-content: space-between;
	max-width: 1200px;
	margin: 0 auto;
}

.bkm-cc__copy {
	flex: 1 1 420px;
	min-width: 0;
}

.bkm-cc__title {
	margin: 0 0 6px;
	color: #fff;
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bkm-cc__text {
	margin: 0;
	color: var(--bkm-cc-light);
	font-size: 14px;
	line-height: 1.6;
}

.bkm-cc__link {
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

.bkm-cc__link:hover,
.bkm-cc__link:focus {
	color: var(--bkm-cc-light);
}

/* Actions ---------------------------------------------------------------- */

.bkm-cc__actions {
	display: flex;
	flex: 0 1 auto;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.bkm-cc__btn {
	display: inline-block;
	margin: 0;
	padding: 10px 18px;
	background: none;
	border: solid 1px rgba(255, 255, 255, 1);
	outline: none;
	color: #fff;
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: all 0.35s;
}

.bkm-cc__btn--ghost:hover,
.bkm-cc__btn--ghost:focus {
	background-color: #fff;
	color: var(--bkm-cc-charcoal);
	transition: none;
}

.bkm-cc__btn--solid {
	background-color: #fff;
	color: var(--bkm-cc-charcoal);
}

.bkm-cc__btn--solid:hover,
.bkm-cc__btn--solid:focus {
	background-color: var(--bkm-cc-light);
	color: var(--bkm-cc-charcoal-dark);
	transition: none;
}

/* Mirrors the theme's .a_state:active nudge. */
.bkm-cc__btn:active {
	padding-top: 11px;
	padding-bottom: 9px;
}

.bkm-cc__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Preferences ------------------------------------------------------------ */

.bkm-cc__prefs {
	max-width: 1200px;
	margin: 24px auto 0;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.bkm-cc__prefs[hidden] {
	display: none;
}

.bkm-cc__groups {
	display: grid;
	gap: 18px 32px;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.bkm-cc__group {
	margin: 0;
	padding: 0;
}

.bkm-cc__group-head {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-bottom: 4px;
	cursor: pointer;
}

.bkm-cc__group:first-child .bkm-cc__group-head {
	cursor: default;
}

.bkm-cc__check {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #fff;
	cursor: inherit;
}

.bkm-cc__check:disabled {
	opacity: 0.5;
}

.bkm-cc__group-name {
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bkm-cc__group-state {
	color: rgba(255, 255, 255, 0.5);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bkm-cc__group-desc {
	margin: 0;
	color: var(--bkm-cc-light);
	font-size: 13px;
	line-height: 1.55;
}

.bkm-cc__prefs-actions {
	margin-top: 20px;
}

/* Reopen link (shortcode) ------------------------------------------------ */

.bkm-cc-reopen {
	cursor: pointer;
}

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

@media screen and (max-width: 767px) {
	.bkm-cc {
		padding: 20px 16px;
	}

	.bkm-cc__inner {
		gap: 16px;
	}

	.bkm-cc__actions {
		width: 100%;
	}

	.bkm-cc__btn {
		flex: 1 1 auto;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bkm-cc__btn {
		transition: none;
	}
}
