:root {
	--cookie-green: #008001;
	--cookie-green-hover: #006a01;
	--cookie-ink: #313131;
	--cookie-surface: #fbfcf9;
	--cookie-border: #b9bdb3;
	--cookie-focus: #7ac67b;
}

.cookie-consent[hidden],
.cookie-consent-settings[hidden] {
	display: none !important;
}

.cookie-consent {
	position: fixed;
	z-index: 100000;
	right: clamp(16px, 4vw, 72px);
	bottom: clamp(16px, 3vw, 48px);
	left: clamp(16px, 20vw, 340px);
	font-family: 'Inter-Regular', sans-serif;
	color: var(--cookie-ink);
	background: var(--cookie-surface);
	border: 1px solid color-mix(in srgb, var(--cookie-green) 18%, var(--cookie-border));
	box-shadow: 0 18px 48px rgba(26, 38, 22, 0.2);
	animation: cookie-consent-enter 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cookie-consent__content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(180px, 230px);
	gap: clamp(24px, 3vw, 48px);
	align-items: end;
	padding: clamp(22px, 2.5vw, 38px);
}

.cookie-consent__copy {
	display: grid;
	gap: 12px;
	max-width: 78ch;
}

.cookie-consent__title {
	margin: 0;
	font-family: 'Inter-SemiBold', sans-serif;
	font-size: clamp(20px, 1.6vw, 26px);
	line-height: 1.2;
	color: var(--cookie-ink);
}

.cookie-consent__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--cookie-ink);
}

.cookie-consent__text a {
	color: var(--cookie-ink);
	text-decoration: underline;
	text-decoration-color: var(--cookie-green);
	text-underline-offset: 3px;
}

.cookie-consent__text a:hover {
	color: var(--cookie-green);
}

.cookie-consent__actions {
	display: grid;
	gap: 10px;
}

.cookie-consent__button {
	min-height: 48px;
	padding: 12px 18px;
	font-family: 'Inter-SemiBold', sans-serif;
	font-size: 14px;
	line-height: 1.2;
	color: var(--cookie-ink);
	border: 1px solid var(--cookie-green);
	border-radius: 0;
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.cookie-consent__button:hover {
	transform: translateY(-1px);
}

.cookie-consent__button:focus-visible,
.cookie-consent__text a:focus-visible,
.cookie-consent-settings:focus-visible {
	outline: 3px solid var(--cookie-focus);
	outline-offset: 3px;
}

.cookie-consent__button--accept {
	color: #f9fff6;
	background: var(--cookie-green);
}

.cookie-consent__button--accept:hover {
	background: var(--cookie-green-hover);
	border-color: var(--cookie-green-hover);
}

.cookie-consent__button--decline {
	background: #ffffff;
}

.cookie-consent__button--decline:hover {
	background: #f0f4ec;
}

.cookie-consent-settings {
	font: inherit;
	font-size: 13px;
	color: inherit;
	background: transparent;
	border: 0;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.footer_info_block .cookie-consent-settings {
	display: block;
	margin-top: 6px;
	color: #ffffff;
}

@keyframes cookie-consent-enter {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 860px) {
	.cookie-consent {
		left: 16px;
		right: 16px;
		bottom: 16px;
	}

	.cookie-consent__content {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.cookie-consent__actions {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.cookie-consent {
		left: 0;
		right: 0;
		bottom: 0;
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
	}

	.cookie-consent__content {
		padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
	}

	.cookie-consent__text {
		font-size: 13px;
		line-height: 1.5;
	}

	.cookie-consent__actions {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cookie-consent {
		animation: none;
	}

	.cookie-consent__button {
		transition: none;
	}
}
