/*
 * Cookie notice — first visit, opaque panel + dimmed page.
 * Paths relative to this file: assets/css/components/
 */

.cookie-notice {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	box-sizing: border-box;
	pointer-events: none;
}

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

.cookie-notice:not([hidden]) {
	pointer-events: auto;
}

.cookie-notice__backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0);
	transition: background-color 0.4s ease;
}

.cookie-notice.cookie-notice--visible .cookie-notice__backdrop {
	background-color: rgba(0, 0, 0, 0.58);
}

.cookie-notice__dialog {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	display: inline-block;
	width: auto;
	max-width: calc(100vw - 32px);
	padding: 32px 28px 32px;
	vertical-align: middle;
	border-radius: 24px;
	border: 1px solid rgba(100, 100, 102, 0.25);
	background-color: #09090b;
	overflow: hidden;
	isolation: isolate;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.08),
		0 24px 80px rgba(0, 0, 0, 0.45);
	opacity: 0;
	transform: translateY(14px) scale(0.985);
	transition:
		opacity 0.4s ease,
		transform 0.4s ease;
}

.cookie-notice.cookie-notice--visible .cookie-notice__dialog {
	opacity: 1;
	transform: translateY(0) scale(1);
}

/* Top-right — smooth, saturated radial colour */
.cookie-notice__glow--tr {
	position: absolute;
	top: -38%;
	right: -28%;
	width: 95%;
	height: 85%;
	z-index: 0;
	pointer-events: none;
	border-top-right-radius: inherit;
	background:
		radial-gradient(
			ellipse 85% 75% at 88% 8%,
			rgba(120, 210, 255, 0.55) 0%,
			rgba(100, 160, 255, 0.32) 22%,
			rgba(140, 120, 255, 0.22) 42%,
			rgba(80, 200, 220, 0.12) 62%,
			rgba(20, 40, 80, 0) 88%
		),
		radial-gradient(
			ellipse 70% 60% at 72% 28%,
			rgba(255, 180, 240, 0.28) 0%,
			rgba(160, 140, 255, 0.18) 38%,
			rgba(40, 90, 140, 0) 78%
		),
		radial-gradient(
			circle at 100% 0%,
			rgba(200, 240, 255, 0.35) 0%,
			rgba(100, 180, 255, 0.12) 45%,
			rgba(9, 9, 11, 0) 72%
		);
	opacity: 1;
}

/* Letters spot (same asset as home / article cards) */
.cookie-notice__letters {
	position: absolute;
	top: 0;
	right: 0;
	width: 240px;
	height: 160px;
	z-index: 0;
	pointer-events: none;
	border-top-right-radius: inherit;
	overflow: hidden;
	background-image: url("../../image/home-offer-spot.png");
	background-repeat: no-repeat;
	background-size: 220% auto;
	background-position: 88% 8%;
	opacity: 0.32;
	mask-image: radial-gradient(ellipse 100% 90% at 92% 12%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 58%, rgba(0, 0, 0, 0) 88%);
	-webkit-mask-image: radial-gradient(ellipse 100% 90% at 92% 12%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 58%, rgba(0, 0, 0, 0) 88%);
}

/* Bottom-left — smooth colour wash */
.cookie-notice__glow--bl {
	position: absolute;
	bottom: -42%;
	left: -32%;
	width: 95%;
	height: 90%;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(
			ellipse 80% 70% at 18% 88%,
			rgba(90, 220, 200, 0.38) 0%,
			rgba(70, 160, 255, 0.28) 28%,
			rgba(160, 110, 255, 0.18) 52%,
			rgba(9, 9, 11, 0) 82%
		),
		radial-gradient(
			ellipse 55% 50% at 8% 100%,
			rgba(255, 150, 200, 0.22) 0%,
			rgba(60, 140, 220, 0.14) 48%,
			rgba(9, 9, 11, 0) 78%
		);
	opacity: 1;
}

.cookie-notice__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 32px;
	box-sizing: border-box;
	width: fit-content;
	max-width: min(38rem, calc(100vw - 64px));
	min-width: min(100%, 280px);
}

.cookie-notice__title {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	background-image: linear-gradient(90deg, #e6e7eb 0%, #bdd3fa 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

.cookie-notice__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.45;
	background-image: linear-gradient(90deg, rgba(230, 231, 235, 0.95) 0%, rgba(189, 211, 250, 0.88) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

.cookie-notice__actions {
	display: flex;
	flex-flow: row nowrap;
	align-items: stretch;
	justify-content: center;
	gap: 16px;
	align-self: center;
	width: fit-content;
	max-width: 100%;
}

.cookie-notice__btn {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	flex: 0 0 auto;
	min-width: fit-content;
	width: auto;
	max-width: none;
	height: 60px;
	padding: 0 clamp(8px, 1.5vw, 14px) 0 clamp(10px, 1.8vw, 16px);
	border-radius: 4px;
	font: inherit;
	font-size: clamp(11px, 0.35rem + 1.5vw, 16px);
	line-height: 1.15;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.cookie-notice__btn:active {
	transform: translateY(1px);
}

button.cookie-notice__btn {
	appearance: none;
	-webkit-appearance: none;
	border: none;
	text-align: left;
}

.cookie-notice__btn--outline {
	color: #bdd3fa;
	border: 1px solid rgba(189, 211, 250, 0.55);
	background-color: transparent;
}

.cookie-notice__btn--outline:hover,
.cookie-notice__btn--outline:focus-visible {
	border-color: rgba(189, 211, 250, 0.85);
	color: #e6e7eb;
	outline: none;
}

.cookie-notice__btn--solid {
	color: #0c111b;
	border: 1px solid #c6d9f7;
	background-color: #c6d9f7;
}

.cookie-notice__btn--solid:hover,
.cookie-notice__btn--solid:focus-visible {
	background-color: #d4e4fb;
	border-color: #d4e4fb;
	outline: none;
}

.cookie-notice__btn-label {
	flex: 0 1 auto;
	padding-right: 10px;
	overflow: visible;
}

.cookie-notice__btn-icon {
	flex: 0 0 auto;
	width: clamp(22px, 4.2vw, 29.5px);
	height: clamp(22px, 4.2vw, 29.5px);
	border-radius: 3px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: clamp(22px, 4.2vw, 29.5px) clamp(22px, 4.2vw, 29.5px);
}

.cookie-notice__btn-icon--light {
	background-image: url("../../image/btn-arrow-light.png");
}

.cookie-notice__btn-icon--dark {
	background-image: url("../../image/btn-arrow-dark.png");
}

@media (max-width: 640px) {
	.cookie-notice__dialog {
		padding: 28px 20px 28px;
	}

	.cookie-notice__title {
		font-size: clamp(24px, 6vw, 32px);
	}

	.cookie-notice__inner {
		max-width: calc(100vw - 40px);
	}

	.cookie-notice__actions {
		flex-wrap: wrap;
	}

	.cookie-notice__btn {
		flex: 1 1 100%;
	}
}
