/* ── Cookie Consent Banner ─────────────────────────────── */

.sp-cc-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: rgba(0, 0, 0, 0.45);
	padding: 1rem;
	animation: sp-cc-fade-in 0.3s ease;
}

.sp-cc-overlay--hide {
	animation: sp-cc-fade-out 0.3s ease forwards;
}

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

@keyframes sp-cc-fade-out {
	from { opacity: 1; }
	to   { opacity: 0; }
}

.sp-cc {
	background: #fff;
	border-radius: 1rem;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
	max-width: 640px;
	width: 100%;
	padding: 1.5rem;
	font-family: Nunito, system-ui, sans-serif;
	color: #1E3A5F;
	max-height: 90vh;
	overflow-y: auto;
}

.sp-cc__title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	font-weight: 800;
	color: #15293F;
}

.sp-cc__desc {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #3a5a7c;
}

.sp-cc__links {
	margin-bottom: 1rem;
	font-size: 0.8rem;
}

.sp-cc__links a {
	color: #E63946;
	text-decoration: underline;
}

/* ── Action buttons ──────────────────────────────────────── */

.sp-cc__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.sp-cc__btn {
	border: none;
	border-radius: 0.5rem;
	padding: 0.65rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s, transform 0.1s;
}

.sp-cc__btn:active {
	transform: scale(0.97);
}

.sp-cc__btn--accept {
	background: #E63946;
	color: #fff;
}

.sp-cc__btn--accept:hover {
	background: #c62f3b;
}

.sp-cc__btn--reject {
	background: #e8eef4;
	color: #1E3A5F;
}

.sp-cc__btn--reject:hover {
	background: #d4dee8;
}

.sp-cc__btn--customize {
	background: transparent;
	color: #1E3A5F;
	text-decoration: underline;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
}

.sp-cc__btn--save {
	background: #1E3A5F;
	color: #fff;
	width: 100%;
	margin-top: 0.75rem;
}

.sp-cc__btn--save:hover {
	background: #15293F;
}

/* ── Customize panel ─────────────────────────────────────── */

.sp-cc__panel {
	margin-top: 1rem;
	border-top: 1px solid #e8eef4;
	padding-top: 1rem;
}

.sp-cc__category {
	padding: 0.75rem 0;
	border-bottom: 1px solid #f0f3f7;
}

.sp-cc__category:last-of-type {
	border-bottom: none;
}

.sp-cc__cat-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.sp-cc__cat-head strong {
	font-size: 0.9rem;
}

.sp-cc__cat-desc {
	margin: 0.25rem 0 0;
	font-size: 0.8rem;
	color: #6b8aab;
}

.sp-cc__always {
	font-size: 0.75rem;
	color: #6b8aab;
	font-weight: 600;
}

/* ── Toggle switch ───────────────────────────────────────── */

.sp-cc__toggle {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 24px;
	flex-shrink: 0;
}

.sp-cc__toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.sp-cc__slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background: #ccd6e0;
	border-radius: 24px;
	transition: background 0.2s;
}

.sp-cc__slider::before {
	content: '';
	position: absolute;
	width: 18px;
	height: 18px;
	left: 3px;
	bottom: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s;
}

.sp-cc__toggle input:checked + .sp-cc__slider {
	background: #E63946;
}

.sp-cc__toggle input:checked + .sp-cc__slider::before {
	transform: translateX(18px);
}

/* ── Reopen button (bottom-left) ─────────────────────────── */

.sp-cc-reopen {
	position: fixed;
	bottom: 1rem;
	left: 1rem;
	z-index: 99998;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: #1E3A5F;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
	transition: background 0.15s, transform 0.15s;
}

.sp-cc-reopen:hover {
	background: #15293F;
	transform: scale(1.08);
}

/* ── Mobile ──────────────────────────────────────────────── */

@media (max-width: 600px) {
	.sp-cc {
		padding: 1.25rem 1rem;
		border-radius: 0.75rem;
	}

	.sp-cc__title {
		font-size: 1.1rem;
	}

	.sp-cc__actions {
		flex-direction: column;
	}

	.sp-cc__btn {
		width: 100%;
		text-align: center;
	}

	.sp-cc__btn--customize {
		text-align: center;
	}
}
