.cookie-alert {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	transform: translateY(100%);
	opacity: 0;
	visibility: hidden;
	transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s;
}

.cookie-alert.is-visible {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
}

.cookie-alert.is-hiding {
	transform: translateY(100%);
	opacity: 0;
}

.cookie-alert__inner {
	/* Figma Glass: Refraction 80, Depth 20, Dispersion 50, Frost 25, Splay 0 */
	--glass-refraction: 80;
	--glass-depth: 20;
	--glass-dispersion: 50;
	--glass-frost: 25;
	--glass-splay: 0;

	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 22px 24px;
	border-radius: 20px 20px 0 0;
	background: rgba(235, 243, 255, calc(0.15 + var(--glass-frost) * 0.004));
	border: 1px solid rgba(255, 255, 255, calc(0.35 + var(--glass-depth) * 0.008));
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.65),
		inset 0 calc(var(--glass-depth) * 1px) calc(var(--glass-depth) * 2px) rgba(255, 255, 255, 0.18),
		inset 0 0 calc(var(--glass-depth) * 3px) rgba(255, 255, 255, calc(var(--glass-depth) * 0.008)),
		0 -8px 32px rgba(17, 17, 56, 0.08);
	-webkit-backdrop-filter: blur(calc(var(--glass-frost) * 0.8px)) saturate(calc(140% + var(--glass-dispersion) * 0.6%));
	backdrop-filter: blur(calc(var(--glass-frost) * 0.8px)) saturate(calc(140% + var(--glass-dispersion) * 0.6%));
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.cookie-alert__inner {
		background: rgba(235, 243, 255, 0.92);
	}
}

/* Depth + refraction band at edges */
.cookie-alert__inner::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	box-shadow:
		inset 0 0 calc(var(--glass-depth) * 1.2px) rgba(255, 255, 255, 0.45),
		inset 0 0 calc(var(--glass-refraction) * 0.2px) rgba(56, 128, 255, calc(var(--glass-dispersion) * 0.003)),
		inset 0 0 calc(var(--glass-refraction) * 0.25px) rgba(255, 72, 120, calc(var(--glass-dispersion) * 0.0025));
}

/* Top edge highlight (Splay 0 — narrow, no spread) */
.cookie-alert__inner::after {
	content: "";
	position: absolute;
	top: 0;
	left: 16px;
	right: 16px;
	height: 1px;
	border-radius: inherit;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		rgba(235, 243, 255, 0.4) 0%,
		rgba(235, 243, 255, 0.4, calc(0.45 + var(--glass-splay) * 0.005)) 50%,
		rgba(235, 243, 255, 0.4) 100%
	);
}

.cookie-alert__inner > * {
	position: relative;
	z-index: 1;
}

.cookie-alert__title {
	font-weight: 600;
	font-size: 20px;
	line-height: 110%;
	letter-spacing: -0.04em;
	color: #111138;
	margin-bottom: 13px;
}

.cookie-alert__text {
	font-size: 14px;
	line-height: 130%;
	color: #111138;
}

.cookie-alert__text a {
	color: var(--color-light-blue);
	text-decoration: underline;
}

.cookie-alert__text a:hover {
	text-decoration: none;
}

.cookie-alert__btn {
	flex-shrink: 0;
	text-transform: uppercase;
	align-self: flex-start;
}

@media screen and (min-width: 992px) {
	.cookie-alert__inner {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: 40px;
	}

	.cookie-alert__content {
		flex: 1;
		max-width: 780px;
	}

	.cookie-alert__btn {
		align-self: flex-end;
	}
}
