/* cookies */
section.cookies-gate{
	position:fixed;
	inset:0;
	z-index:200000;
	display:flex;
	align-items:flex-end;
	justify-content:center;
	width:100%;
	height:100dvh;
	margin:0;
	padding:2rem;
	overflow:auto;
	color:rgb(var(--n) / 1);
	background:rgb(var(--n) / .55);
	backdrop-filter:blur(8px);
	-webkit-backdrop-filter:blur(8px);
	opacity:0;
	visibility:hidden;
	pointer-events:none;
	transition:
		opacity .35s ease,
		visibility .35s ease;
}

section.cookies-gate.is-visible{
	opacity:1;
	visibility:visible;
	pointer-events:auto;
}

body.popup-open section.cookies-gate.is-visible{
	opacity:0;
	visibility:hidden;
	pointer-events:none;
}

.cookies-box{
	width:min(42rem,100%);
	margin:0;
	padding:1.5rem;
	color:rgb(var(--n) / 1);
	background:rgb(var(--b) / 1);
	border-radius:.5rem;
	box-shadow:0 1.5rem 4rem rgb(var(--n) / .25);
	opacity:0;
	transform:translateY(1.5rem) scale(.98);
	transition:
		opacity .35s ease,
		transform .45s cubic-bezier(.22,1,.36,1);
}

.cookies-gate.is-visible .cookies-box{
	opacity:1;
	transform:translateY(0) scale(1);
}

.cookies-box h4{
	margin:0 0 .75rem;
	color:rgb(var(--n) / 1);
	font-size:1rem;
	font-weight:800;
	line-height:1.15;
	text-transform:uppercase;
	letter-spacing:.04em;
}

.cookies-box p{
	margin:0;
	color:rgb(var(--n) / .75);
	font-size:1rem;
	line-height:1.45;
}

.cookies-actions{
	display:flex;
	flex-wrap:wrap;
	align-items:center;
	gap:.75rem;
	margin-top:1.25rem;
}

.cookies-actions button{
	margin:0;
	font:inherit;
	cursor:pointer;
}

.cookies-accept{
	color:rgb(var(--b) / 1);
	background:rgb(var(--n) / 1);
}

.cookies-more{
	color:rgb(var(--n) / 1);
	background:rgb(var(--b-d) / 1);
}

.cookies-box [data-close-cookies-editor]{
	margin-top:1rem !important;
}

body.cookies-locked{
	overflow:hidden;
}

@media (max-width:767px){
	section.cookies-gate{
		align-items:flex-end;
		padding:
			1rem
			5%
			calc(1rem + env(safe-area-inset-bottom));
	}

	.cookies-box{
		width:100%;
		max-height:calc(100dvh - 2rem - env(safe-area-inset-bottom));
		padding:1.25rem;
		overflow:auto;
		border-radius:.35rem;
	}

	.cookies-actions{
		align-items:stretch;
		flex-direction:column;
	}

	.cookies-actions button{
		width:100%;
	}
}

@media (prefers-reduced-motion:reduce){
	section.cookies-gate,
	.cookies-box{
		transition:none;
	}
}
