/* =====================================================================
   TSC — Cookie banner (consenso granulare, accessibile)
   ===================================================================== */

.tsc-cookie {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 99999;
	display: flex;
	justify-content: center;
	padding: clamp(12px, 3vw, 28px);
	pointer-events: none;
}
.tsc-cookie[hidden] { display: none; }
/* L'attributo hidden deve vincere sulle regole display di .btn / .tsc-cookie__options */
.tsc-cookie [hidden] { display: none !important; }

.tsc-cookie__panel {
	pointer-events: auto;
	width: 100%;
	max-width: 720px;
	background: #0E0E0E;
	color: #FAF8F1;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	padding: clamp(20px, 3vw, 32px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	font-family: "Manrope", system-ui, sans-serif;
	animation: tsc-cookie-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes tsc-cookie-in {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}

.tsc-cookie__head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 14px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.tsc-cookie__logo { height: 52px; width: auto; flex-shrink: 0; }
.tsc-cookie__title {
	font-family: "Fraunces", Georgia, serif;
	font-size: clamp(19px, 3vw, 24px);
	margin: 0;
	color: #fff;
}
.tsc-cookie__desc {
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.72);
	margin: 0 0 20px;
}
.tsc-cookie__desc a { color: #E8B23B; text-decoration: underline; }

.tsc-cookie__options {
	display: grid;
	gap: 12px;
	margin: 0 0 22px;
	padding: 18px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.tsc-cookie__opt {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.85);
	cursor: pointer;
}
.tsc-cookie__opt input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: #E63B30; }
.tsc-cookie__opt strong { color: #fff; }

.tsc-cookie__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.tsc-cookie__actions .btn {
	flex: 1 1 auto;
	min-width: 130px;
	justify-content: center;
	cursor: pointer;
	font-family: "Manrope", system-ui, sans-serif;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 600;
	padding: 14px 20px;
	border-radius: 4px;
	border: 1px solid transparent;
	transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.tsc-cookie__actions .btn--ink { background: #FAF8F1; color: #0E0E0E; }
.tsc-cookie__actions .btn--ink:hover { background: #E63B30; color: #fff; }
.tsc-cookie__actions .btn--ghost {
	background: transparent; color: #FAF8F1; border-color: rgba(255, 255, 255, 0.3);
}
.tsc-cookie__actions .btn--ghost:hover { border-color: #FAF8F1; }

/* Focus visibile (accessibilità) */
.tsc-cookie__actions .btn:focus-visible,
.tsc-cookie__opt input:focus-visible {
	outline: 3px solid #E8B23B;
	outline-offset: 3px;
}

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

@media (max-width: 600px) {
	.tsc-cookie__actions .btn { flex-basis: 100%; }
}
