.cookie-banner,
.cookie-modal-backdrop {
	font-family: "Manrope", sans-serif;
}

.cookie-banner {
	position: fixed;
	left: 50%;
	bottom: 1.2rem;
	z-index: 2200;
	width: min(1040px, calc(100% - 2rem));
	transform: translateX(-50%);
	color: #ffffff;
	background:
		radial-gradient(circle at top left, rgba(167, 139, 250, 0.22), transparent 34%),
		linear-gradient(145deg, rgba(10, 4, 21, 0.98), rgba(28, 10, 53, 0.98) 58%, rgba(17, 7, 38, 0.98));
	border: 1px solid rgba(167, 139, 250, 0.42);
	border-radius: 18px;
	box-shadow:
		0 24px 70px rgba(10, 4, 21, 0.42),
		0 0 28px rgba(167, 139, 250, 0.22);
	padding: 1.25rem;
	animation: cookie-slide-up 0.34s ease both;
}

.cookie-banner[hidden],
.cookie-modal-backdrop[hidden] {
	display: none;
}

.cookie-banner-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: end;
}

.cookie-banner-content {
	padding-right: 2.3rem;
}

.cookie-banner-title,
.cookie-modal-title,
.cookie-policy-section h2 {
	margin: 0;
	color: #ffffff;
	font-weight: 800;
	line-height: 1.15;
}

.cookie-banner-title {
	font-size: 1.15rem;
	margin-bottom: 0.4rem;
}

.cookie-banner-text {
	margin: 0;
	max-width: 760px;
	color: rgba(255, 255, 255, 0.86);
	font-size: 0.94rem;
	line-height: 1.55;
}

.cookie-policy-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: 0.85rem;
	font-size: 0.88rem;
}

.cookie-policy-links a {
	color: #ddd6fe;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: rgba(196, 181, 253, 0.48);
	text-underline-offset: 0.22rem;
}

.cookie-policy-links a:hover,
.cookie-policy-links a:focus-visible {
	color: #ffffff;
	text-decoration-color: #ffffff;
}

.cookie-banner-actions,
.cookie-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	justify-content: flex-end;
}

.cookie-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border-radius: 999px;
	border: 1px solid transparent;
	padding: 0.78rem 1rem;
	font: inherit;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}

.cookie-btn:hover {
	transform: translateY(-2px);
}

.cookie-btn:focus-visible,
.footer-cookie-button:focus-visible {
	outline: 3px solid rgba(196, 181, 253, 0.72);
	outline-offset: 3px;
}

.cookie-btn-primary {
	color: #ffffff;
	background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 52%, #4c1d95 100%);
	box-shadow: 0 14px 30px rgba(109, 40, 217, 0.38), 0 0 20px rgba(167, 139, 250, 0.24);
}

.cookie-btn-primary:hover,
.cookie-btn-primary:focus-visible {
	box-shadow: 0 16px 34px rgba(109, 40, 217, 0.48), 0 0 28px rgba(167, 139, 250, 0.32);
}

.cookie-btn-light {
	color: #1f114a;
	background: #ffffff;
	border-color: rgba(255, 255, 255, 0.82);
	box-shadow: 0 10px 24px rgba(255, 255, 255, 0.08);
}

.cookie-btn-light:hover,
.cookie-btn-light:focus-visible {
	background: #f5f3ff;
}

.cookie-btn-ghost {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(196, 181, 253, 0.34);
}

.cookie-btn-ghost:hover,
.cookie-btn-ghost:focus-visible {
	background: rgba(167, 139, 250, 0.18);
	border-color: rgba(196, 181, 253, 0.72);
}

.cookie-banner-close,
.cookie-modal-close {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba(196, 181, 253, 0.34);
	color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
	font: inherit;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.cookie-banner-close:hover,
.cookie-banner-close:focus-visible,
.cookie-modal-close:hover,
.cookie-modal-close:focus-visible {
	background: rgba(167, 139, 250, 0.2);
	border-color: rgba(196, 181, 253, 0.8);
	transform: scale(1.04);
	outline: none;
}

.cookie-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 2300;
	display: grid;
	place-items: center;
	padding: 1rem;
	background: rgba(5, 2, 12, 0.72);
	backdrop-filter: blur(12px);
	animation: cookie-fade-in 0.24s ease both;
}

.cookie-modal {
	position: relative;
	width: min(720px, 100%);
	max-height: min(88vh, 780px);
	overflow-y: auto;
	color: #ffffff;
	background:
		radial-gradient(circle at top left, rgba(167, 139, 250, 0.2), transparent 36%),
		linear-gradient(155deg, #0a0415 0%, #1a0433 58%, #110726 100%);
	border: 1px solid rgba(167, 139, 250, 0.44);
	border-radius: 20px;
	box-shadow:
		0 28px 90px rgba(0, 0, 0, 0.5),
		0 0 42px rgba(167, 139, 250, 0.25);
	padding: clamp(1.15rem, 3vw, 1.75rem);
	animation: cookie-pop-in 0.28s ease both;
}

.cookie-modal-header {
	padding-right: 2.4rem;
	margin-bottom: 1.1rem;
}

.cookie-modal-title {
	font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.cookie-modal-intro {
	margin-top: 0.5rem;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.96rem;
	line-height: 1.55;
}

.cookie-category-list {
	display: grid;
	gap: 0.75rem;
	margin: 1.15rem 0;
}

.cookie-category {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: center;
	padding: 1rem;
	border: 1px solid rgba(196, 181, 253, 0.22);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.07);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.cookie-category h3 {
	margin: 0 0 0.3rem;
	color: #ffffff;
	font-size: 1rem;
}

.cookie-category p {
	margin: 0;
	color: rgba(255, 255, 255, 0.76);
	font-size: 0.9rem;
	line-height: 1.45;
}

.cookie-switch {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	color: #ddd6fe;
	font-size: 0.82rem;
	font-weight: 800;
	cursor: pointer;
	user-select: none;
}

.cookie-switch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.cookie-switch-track {
	position: relative;
	width: 52px;
	height: 30px;
	flex: 0 0 auto;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(196, 181, 253, 0.35);
	box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.22);
	transition: background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.cookie-switch-thumb {
	position: absolute;
	top: 4px;
	left: 4px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.32);
	transition: transform 0.24s ease;
}

.cookie-switch input:checked + .cookie-switch-track {
	background: linear-gradient(135deg, #8b5cf6, #6d28d9);
	border-color: rgba(196, 181, 253, 0.82);
	box-shadow: 0 0 16px rgba(167, 139, 250, 0.28);
}

.cookie-switch input:checked + .cookie-switch-track .cookie-switch-thumb {
	transform: translateX(22px);
}

.cookie-switch input:focus-visible + .cookie-switch-track {
	outline: 3px solid rgba(196, 181, 253, 0.72);
	outline-offset: 3px;
}

.cookie-switch input:disabled + .cookie-switch-track {
	opacity: 0.8;
	cursor: not-allowed;
}

.cookie-switch-disabled {
	cursor: not-allowed;
}

.cookie-modal-actions {
	padding-top: 0.9rem;
	border-top: 1px solid rgba(196, 181, 253, 0.16);
}

.footer-cookie-button {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0;
	border: 0;
	color: #c4b5fd;
	background: transparent;
	font: inherit;
	font-size: 0.9rem;
	cursor: pointer;
	transition: color 0.3s ease, transform 0.3s ease;
}

.footer-cookie-button:hover {
	color: #ffffff;
	transform: translateX(3px);
}

.cookie-policy-page {
	background:
		radial-gradient(circle at 18% 18%, rgba(167, 139, 250, 0.18), transparent 28%),
		linear-gradient(180deg, rgba(248, 244, 255, 0.96) 0%, rgba(245, 240, 255, 0.94) 100%);
}

.cookie-policy-layout {
	display: grid;
	gap: 1rem;
	max-width: 900px;
}

.cookie-policy-section {
	padding: clamp(1.2rem, 3vw, 1.7rem);
	border: 1px solid rgba(167, 139, 250, 0.28);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 18px 45px rgba(76, 29, 149, 0.1), 0 0 22px rgba(167, 139, 250, 0.08);
}

.cookie-policy-section h2 {
	color: #1f114a;
	font-size: 1.25rem;
	margin-bottom: 0.65rem;
}

.cookie-policy-section p,
.cookie-policy-section li {
	color: rgba(31, 41, 55, 0.86);
}

.cookie-policy-section ul {
	list-style: disc;
	padding-left: 1.2rem;
}

.cookie-policy-section li + li {
	margin-top: 0.45rem;
}

.cookie-policy-section a {
	color: #4c1d95;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 0.2rem;
}

.cookie-policy-section .footer-cookie-button {
	color: #4c1d95;
	font-size: inherit;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 0.2rem;
}

.cookie-policy-section .footer-cookie-button:hover {
	color: #6d28d9;
	transform: none;
}

body.cookie-modal-open {
	overflow: hidden;
}

@keyframes cookie-slide-up {
	from {
		opacity: 0;
		transform: translate(-50%, 18px);
	}
	to {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

@keyframes cookie-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes cookie-pop-in {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.cookie-banner,
	.cookie-modal-backdrop,
	.cookie-modal {
		animation: none;
	}

	.cookie-btn,
	.cookie-banner-close,
	.cookie-modal-close,
	.cookie-switch-track,
	.cookie-switch-thumb,
	.footer-cookie-button {
		transition: none;
	}
}

@media (max-width: 760px) {
	.cookie-banner {
		bottom: 0;
		width: 100%;
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 18px 18px 0 0;
		padding: 1rem;
	}

	.cookie-banner-inner,
	.cookie-category {
		grid-template-columns: 1fr;
	}

	.cookie-banner-content {
		padding-right: 2rem;
	}

	.cookie-banner-actions,
	.cookie-modal-actions {
		justify-content: stretch;
	}

	.cookie-btn {
		width: 100%;
	}

	.cookie-switch {
		justify-content: space-between;
		width: 100%;
	}
}

@media (max-width: 460px) {
	.cookie-policy-links {
		flex-direction: column;
		gap: 0.35rem;
	}

	.cookie-modal {
		border-radius: 16px;
	}
}
