/* Cookie banner */
.cookie-banner {
	position: fixed;
	inset: 0;
	z-index: 12000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(1rem, 3vw, 2rem);
	background: rgba(var(--bkgd-color09-rgb, 0, 0, 0), 0.58);
	color: var(--text-color01, #ffffff);
	font-family: var(--main-font01, sans-serif);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.cookie-banner.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.cookie-banner[hidden] {
	display: none !important;
}

.cookie-banner__inner {
	display: flex;
	flex-direction: column;
	gap: clamp(1rem, 3vw, 2rem);
	align-items: stretch;
	width: min(100%, 800px);
	margin: 0 auto;
	padding: clamp(1.1rem, 2.5vw, 1.5rem);
	background: rgba(var(--bkgd-color08-rgb, 50, 48, 50), 0.96);
	border: 1px solid rgba(var(--bkgd-color01-rgb, 255, 255, 255), 0.14);
	border-radius: 8px;
	box-shadow: 0 1.25rem 3rem rgba(var(--bkgd-color09-rgb, 0, 0, 0), 0.28);
	backdrop-filter: blur(18px);
	transform: translateY(1rem);
	transition: transform 0.25s ease;
}

.cookie-banner.is-visible .cookie-banner__inner {
	transform: translateY(0);
}

html.has-cookie-banner-lock,
body.has-cookie-banner-lock {
	overscroll-behavior: none;
}

.cookie-banner__content {
	flex: 1 1 auto;
	min-width: 0;
}

.cookie-banner__text {
	margin: 0;
	color: var(--text-color02, #e0e3e0);
	font-size: 1.05rem;
	font-weight: 300;
	line-height: 1.55;
}

.cookie-banner__policy {
	display: inline-block;
	margin-left: 0.35rem;
	color: var(--main-color01, #009c96);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.cookie-banner__options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	margin-top: 1rem;
}

.cookie-banner__option {
	display: inline-flex;
	position: relative;
	gap: 0.65rem;
	align-items: center;
	min-height: 2rem;
	margin: 0;
	color: var(--text-color01, #ffffff);
	cursor: pointer;
}

.cookie-banner__option--locked {
	cursor: default;
	opacity: 0.78;
}

.cookie-banner__option input[type="checkbox"] {
	display: block;
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	opacity: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
}

.cookie-banner__checkbox {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.45rem;
	height: 1.45rem;
	background: rgba(var(--bkgd-color01-rgb, 255, 255, 255), 0.08);
	border: 1px solid rgba(var(--bkgd-color01-rgb, 255, 255, 255), 0.28);
	border-radius: 4px;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.cookie-banner__checkbox::before {
	content: "";
	width: 0.65rem;
	height: 0.38rem;
	border: solid var(--text-color01, #ffffff);
	border-width: 0 0 2px 2px;
	opacity: 0;
	transform: rotate(-45deg) translateY(-1px);
	transition: opacity 0.2s ease;
}

.cookie-banner__option input[type="checkbox"]:checked + .cookie-banner__checkbox {
	background: var(--main-color01, #009c96);
	border-color: var(--main-color01, #009c96);
}

.cookie-banner__option input[type="checkbox"]:checked + .cookie-banner__checkbox::before {
	opacity: 1;
}

.cookie-banner__option input[type="checkbox"]:focus-visible + .cookie-banner__checkbox {
	outline: 2px solid var(--main-color01, #009c96);
	outline-offset: 3px;
}

.cookie-banner__option-text {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.2;
}

.cookie-banner__option-text small {
	color: var(--text-color03, #9c9e9e);
	font-size: 0.84rem;
	font-weight: 300;
	line-height: 1.25;
}

.cookie-banner__actions {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 0.55rem;
	margin-top: -0.25rem;
}

	.cookie-banner .cookie-banner__button {
		margin: 0;
		min-width: 8.5rem;
		min-height: 2.75rem;
		height: auto;
		font-size: 0.95rem;
	}

	.cookie-banner__button--primary {
		background: #006f6b;
		border-color: #006f6b;
		color: #ffffff;
	}

	.cookie-banner__button--primary:hover,
	.cookie-banner__button--primary:focus-visible {
		background: #005f5b;
		border-color: #005f5b;
		color: #ffffff;
	}

.cookie-banner__button--secondary {
	color: var(--text-color01, #ffffff);
	border-color: rgba(var(--bkgd-color01-rgb, 255, 255, 255), 0.34);
}

.cookie-banner__button--secondary:hover,
.cookie-banner__button--secondary:focus-visible {
	border-color: var(--main-color01, #009c96);
	color: var(--main-color01, #009c96);
}

@media (max-width: 560px) {
	.cookie-banner {
		padding: 0.75rem;
	}

	.cookie-banner__inner {
		max-height: calc(100vh - 1.5rem);
		overflow: auto;
		padding: 1rem;
		gap: 0.9rem;
	}

	.cookie-banner__text {
		font-size: 0.98rem;
		line-height: 1.45;
	}

	.cookie-banner__options {
		flex-direction: column;
		gap: 0.65rem;
		margin-top: 0.8rem;
	}

	.cookie-banner__actions {
		gap: 0.45rem;
		margin-top: 0.35rem;
	}

		.cookie-banner .cookie-banner__button {
			flex: 0 1 auto;
			width: auto;
			min-width: 0;
			min-height: 2.75rem;
			height: auto;
			padding-right: 0.75rem;
			padding-left: 0.75rem;
			font-size: 0.78rem;
	}
}
