/* Cookie consent bar — gradient strip */
.cookie-notice {
	--cookie-grad-deep: #245654;
	--cookie-grad-mid: #358f8a;
	--cookie-grad-light: #5ec9c3;

	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99990;
	padding: 18px 0;
	overflow: hidden;
	background: linear-gradient(
		115deg,
		var(--cookie-grad-deep) 0%,
		var(--cookie-grad-mid) 38%,
		var(--medik-accent, #47aaa5) 62%,
		var(--cookie-grad-light) 100%
	);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow:
		0 -16px 48px rgba(36, 86, 84, 0.35),
		0 -4px 16px rgba(46, 61, 60, 0.15);
	transform: translateY(0);
	opacity: 1;
	transition: transform 0.35s ease, opacity 0.35s ease;
}

.cookie-notice::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 70% 120% at 0% 100%, rgba(255, 255, 255, 0.14) 0%, transparent 55%),
		radial-gradient(ellipse 50% 80% at 100% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
	pointer-events: none;
}

.cookie-notice::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(255, 255, 255, 0.35) 50%,
		transparent 100%
	);
	pointer-events: none;
}

.cookie-notice.is-hiding {
	transform: translateY(100%);
	opacity: 0;
	pointer-events: none;
}

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

.cookie-notice__container {
	position: relative;
	z-index: 1;
}

.cookie-notice__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 28px;
}

.cookie-notice__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	color: rgba(255, 255, 255, 0.92);
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 14px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.cookie-notice__icon svg {
	width: 36px;
	height: 36px;
}

.cookie-notice__text {
	margin: 0;
	flex: 1 1 260px;
	max-width: 680px;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.92);
	text-shadow: 0 1px 2px rgba(36, 86, 84, 0.25);
}

.cookie-notice__text a {
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.55);
	text-underline-offset: 3px;
	transition: text-decoration-color 0.15s ease, opacity 0.15s ease;
}

.cookie-notice__text a:hover {
	text-decoration-color: #fff;
	opacity: 1;
}

.cookie-notice__btn {
	flex-shrink: 0;
	min-height: 46px;
	padding: 0 32px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--cookie-grad-deep, #245654);
	background: linear-gradient(180deg, #fff 0%, #ecf9f8 100%);
	border: 1px solid rgba(255, 255, 255, 0.65);
	border-radius: var(--medik-radius, 8px);
	box-shadow:
		0 4px 20px rgba(0, 0, 0, 0.18),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cookie-notice__btn:hover {
	background: #fff;
	transform: translateY(-2px);
	box-shadow:
		0 8px 28px rgba(0, 0, 0, 0.22),
		inset 0 1px 0 rgba(255, 255, 255, 1);
}

.cookie-notice__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

@media (max-width: 600px) {
	.cookie-notice {
		padding: 10px 0 max(10px, env(safe-area-inset-bottom));
	}

	.cookie-notice__inner {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
		gap: 10px;
	}

	.cookie-notice__icon {
		margin: 0 auto;
		width: 42px;
		height: 42px;
		border-radius: 12px;
	}

	.cookie-notice__icon svg {
		width: 28px;
		height: 28px;
	}

	.cookie-notice__text {
		flex: 0 0 auto;
		max-width: none;
		font-size: 13px;
		line-height: 1.45;
	}

	.cookie-notice__btn {
		width: 100%;
		min-height: 40px;
		padding: 0 18px;
	}
}
