.cookie-modal-open {
	overflow: hidden;
}

.cookie-banner[hidden],
.cookie-settings[hidden] {
	display: none !important;
}

/* =========================
   BANNER
   ========================= */
.cookie-banner {
	position: fixed;
	left: 18px;
	right: 18px;
	bottom: 18px;
	z-index: 9999;
	display: block;
	opacity: 0;
	transform: translateY(18px);
	pointer-events: none;
	transition:
		opacity 0.22s ease,
		transform 0.22s ease;
}

.cookie-banner.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.cookie-banner__box {
	max-width: 980px;
	margin: 0 auto;
	background: rgba(12, 15, 24, 0.96);
	border: 1px solid rgba(255, 215, 110, 0.18);
	border-radius: 18px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
	backdrop-filter: blur(14px);
	padding: 18px 18px 16px;
	color: #f3f5f8;
}

.cookie-banner__title {
	margin: 0 0 8px;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	color: #fff;
}

.cookie-banner__text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: rgba(243, 245, 248, 0.88);
}

.cookie-banner__text a {
	color: #ffd76e;
	text-decoration: none;
	font-weight: 700;
}

.cookie-banner__text a:hover {
	text-decoration: underline;
}

.cookie-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.cookie-btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: 12px;
	padding: 10px 14px;
	font-size: 0.94rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition:
		transform 0.18s ease,
		opacity 0.18s ease,
		border-color 0.18s ease,
		background 0.18s ease;
}

.cookie-btn:hover {
	transform: translateY(-1px);
}

.cookie-btn--primary {
	background: linear-gradient(135deg, #f5d36d, #dba83b);
	color: #161616;
}

.cookie-btn--ghost {
	background: rgba(255, 255, 255, 0.04);
	color: #f3f5f8;
	border-color: rgba(255, 255, 255, 0.12);
}

.cookie-btn--secondary {
	background: rgba(255, 215, 110, 0.08);
	color: #ffd76e;
	border-color: rgba(255, 215, 110, 0.22);
}

/* =========================
   MODAL
   ========================= */
.cookie-settings {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(3, 5, 10, 0.72);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.cookie-settings.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.cookie-settings__dialog {
	width: 100%;
	max-width: 720px;
	background: #0f1420;
	border: 1px solid rgba(255, 215, 110, 0.16);
	border-radius: 20px;
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
	color: #f3f5f8;
	overflow: hidden;
}

.cookie-settings__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 20px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-settings__title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 800;
	color: #fff;
}

.cookie-settings__subtitle {
	margin: 6px 0 0;
	font-size: 0.94rem;
	line-height: 1.55;
	color: rgba(243, 245, 248, 0.8);
}

.cookie-settings__close {
	appearance: none;
	border: 0;
	background: transparent;
	color: rgba(243, 245, 248, 0.82);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	padding: 2px 6px;
	border-radius: 10px;
}

.cookie-settings__close:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.cookie-settings__body {
	padding: 16px 20px;
}

.cookie-settings__footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	padding: 16px 20px 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cookie-option:last-child {
	border-bottom: 0;
}

.cookie-option__info {
	flex: 1 1 auto;
}

.cookie-option__title {
	margin: 0 0 6px;
	font-size: 1rem;
	font-weight: 800;
	color: #fff;
}

.cookie-option__desc {
	margin: 0;
	font-size: 0.93rem;
	line-height: 1.55;
	color: rgba(243, 245, 248, 0.78);
}

/* =========================
   SWITCH
   ========================= */
.cookie-switch {
	position: relative;
	display: inline-flex;
	width: 52px;
	height: 30px;
	flex: 0 0 auto;
}

.cookie-switch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.cookie-switch__slider {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	transition:
		background 0.18s ease,
		border-color 0.18s ease;
}

.cookie-switch__slider::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.18s ease;
}

.cookie-switch input:checked + .cookie-switch__slider {
	background: linear-gradient(135deg, #f5d36d, #dba83b);
	border-color: transparent;
}

.cookie-switch input:checked + .cookie-switch__slider::before {
	transform: translateX(22px);
}

.cookie-switch input:disabled + .cookie-switch__slider {
	opacity: 0.7;
	cursor: not-allowed;
}

.cookie-switch input:disabled + .cookie-switch__slider::before {
	background: #f5f5f5;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 640px) {
	.cookie-banner {
		left: 12px;
		right: 12px;
		bottom: 12px;
	}

	.cookie-banner__box {
		padding: 16px 14px 14px;
		border-radius: 16px;
	}

	.cookie-banner__actions {
		flex-direction: column;
	}

	.cookie-btn {
		width: 100%;
	}

	.cookie-settings__header,
	.cookie-settings__body,
	.cookie-settings__footer {
		padding-left: 16px;
		padding-right: 16px;
	}

	.cookie-option {
		align-items: flex-start;
		flex-direction: column;
	}
}
