.bm-cookie-consent[hidden],
.bm-cookie-consent__modal[hidden] {
	display: none !important;
}

.bm-cookie-consent,
.bm-cookie-policy-actions {
	--bm-cookie-black: var(--bm-black, #000000);
	--bm-cookie-dark: var(--bm-dark, #444444);
	--bm-cookie-mid: var(--bm-mid, #5e5e5e);
	--bm-cookie-yellow: var(--bm-yellow, #f9c923);
	--bm-cookie-gold: var(--bm-gold, #d49100);
	--bm-cookie-surface: #ffffff;
	--bm-cookie-border: #d8d8d8;
	--bm-cookie-radius: 5px;
}

.bm-cookie-consent {
	position: relative;
	z-index: 99999;
	font-family: Tahoma, Geneva, sans-serif;
	color: var(--bm-cookie-black);
}

.bm-cookie-consent__banner {
	position: fixed;
	right: 16px;
	bottom: 16px;
	left: 16px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 18px;
	align-items: end;
	max-width: 1080px;
	margin: 0 auto;
	padding: 18px;
	background: var(--bm-cookie-surface);
	border: 1px solid var(--bm-cookie-gold);
	border-radius: var(--bm-cookie-radius);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.bm-cookie-consent__brand {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 700;
	color: var(--bm-cookie-yellow);
	text-transform: uppercase;
}

.bm-cookie-consent__title {
	margin: 0 0 8px;
	font-size: 22px;
	line-height: 1.2;
	color: var(--bm-cookie-yellow);
}

.bm-cookie-consent__text,
.bm-cookie-consent__modal-intro {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--bm-cookie-dark);
}

.bm-cookie-consent__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin: 12px 0 0;
	font-size: 14px;
}

.bm-cookie-consent__links a,
.bm-cookie-policy-actions a {
	color: var(--bm-cookie-yellow);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bm-cookie-consent__links a:hover,
.bm-cookie-consent__links a:focus-visible {
	color: #ffffff;
}

.bm-cookie-consent__actions,
.bm-cookie-consent__modal-actions,
.bm-cookie-policy-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bm-cookie-consent__actions {
	justify-content: flex-end;
	min-width: 250px;
}

.bm-cookie-consent__button,
.bm-cookie-policy-actions .bm-cookie-consent__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 14px;
	border: 1px solid var(--bm-cookie-black);
	border-radius: var(--bm-cookie-radius) !important;
	background: #ffffff;
	box-shadow: none;
	color: var(--bm-cookie-black);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.bm-cookie-consent__button--primary {
	background: var(--bm-cookie-yellow);
}

.bm-cookie-consent__button--secondary {
	background: #ffffff;
}

.bm-cookie-consent__button--ghost {
	border-color: var(--bm-cookie-border);
	background: transparent;
}

.bm-cookie-consent__button:hover,
.bm-cookie-consent__button:focus-visible {
	background: var(--bm-cookie-gold);
	border-color: var(--bm-cookie-black);
	color: var(--bm-cookie-black);
	outline: 2px solid transparent;
}

.bm-cookie-consent__button:focus-visible,
.bm-cookie-consent__close:focus-visible,
.bm-cookie-consent__choice:focus-within {
	box-shadow: 0 0 0 3px rgba(249, 201, 35, 0.45);
}

.bm-cookie-consent__modal {
	position: fixed;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.54);
	z-index: 100000;
}

.bm-cookie-consent__modal-panel {
	width: min(680px, 100%);
	max-height: min(760px, calc(100vh - 32px));
	overflow: auto;
	padding: 20px;
	background: var(--bm-cookie-surface);
	border: 1px solid var(--bm-cookie-gold);
	border-radius: var(--bm-cookie-radius);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.bm-cookie-consent__modal-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 10px;
}

.bm-cookie-consent__modal-head h2 {
	margin: 0;
	font-size: 22px;
	line-height: 1.2;
	color: var(--bm-cookie-black);
}

.bm-cookie-consent__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--bm-cookie-border);
	border-radius: var(--bm-cookie-radius);
	background: #ffffff;
	color: var(--bm-cookie-black);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.bm-cookie-consent__choices {
	display: grid;
	gap: 10px;
	margin: 18px 0;
}

.bm-cookie-consent__choice {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	padding: 12px;
	border: 1px solid var(--bm-cookie-border);
	border-radius: var(--bm-cookie-radius);
	background: #ffffff;
}

.bm-cookie-consent__choice input {
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--bm-cookie-yellow);
}

.bm-cookie-consent__choice strong,
.bm-cookie-consent__choice small {
	display: block;
}

.bm-cookie-consent__choice strong {
	margin-bottom: 3px;
	color: var(--bm-cookie-black);
}

.bm-cookie-consent__choice small {
	color: var(--bm-cookie-dark);
	line-height: 1.45;
}

.bm-cookie-consent__choice--disabled {
	background: #fafafa;
}

.bm-cookie-status {
	padding: 12px 14px;
	margin: 16px 0;
	border-left: 5px solid var(--bm-cookie-yellow);
	background: #ffffff;
	color: var(--bm-cookie-dark);
}

.bm-cookie-policy-actions {
	align-items: center;
	margin: 14px 0 24px;
}

.bm-cookie-policy-actions .bm-cookie-consent__button {
	border-color: var(--bm-cookie-black);
	background: #ffffff;
	color: var(--bm-cookie-black);
}

.bm-cookie-policy-actions .bm-cookie-consent__button--primary,
.bm-cookie-policy-actions .bm-cookie-consent__button--secondary {
	background: var(--bm-cookie-yellow);
	color: var(--bm-cookie-black);
}

@media (max-width: 760px) {
	.bm-cookie-consent__banner {
		grid-template-columns: 1fr;
		right: 10px;
		bottom: 10px;
		left: 10px;
		padding: 14px;
	}

	.bm-cookie-consent__actions,
	.bm-cookie-consent__modal-actions,
	.bm-cookie-policy-actions {
		display: grid;
		grid-template-columns: 1fr;
		min-width: 0;
	}

	.bm-cookie-consent__button {
		width: 100%;
	}
}

@media (prefers-color-scheme: dark) {
	.bm-cookie-consent,
	.bm-cookie-policy-actions {
		--bm-cookie-surface: #111111;
		--bm-cookie-border: #555555;
		--bm-cookie-black: #ffffff;
		--bm-cookie-dark: #e6e6e6;
	}

	.bm-cookie-consent__button,
	.bm-cookie-policy-actions .bm-cookie-consent__button,
	.bm-cookie-consent__close,
	.bm-cookie-consent__choice {
		background: #1b1b1b;
		color: #ffffff;
	}

	.bm-cookie-consent__button--primary,
	.bm-cookie-policy-actions .bm-cookie-consent__button--primary,
	.bm-cookie-policy-actions .bm-cookie-consent__button--secondary {
		background: var(--bm-cookie-yellow);
		color: #000000;
	}
}
