/* =====================================================================
   FADLIVE Affiliate — Cookie consent modal
   Self-contained styles (independent of Tailwind purge) so the modal
   renders correctly even though compiled app.css only ships used classes.
   ===================================================================== */

.fd-cookie {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}
.fd-cookie.is-open { display: flex; }

.fd-cookie__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(11, 11, 10, 0.55);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	animation: fdCookieFade 0.25s ease both;
}

.fd-cookie__panel {
	position: relative;
	width: min(560px, 100%);
	max-height: 90vh;
	overflow: auto;
	background: #FCFCFB;
	border: 1px solid #E7E7E4;
	border-radius: 1.25rem;
	box-shadow: 0 30px 70px -20px rgba(11, 11, 10, 0.45);
	padding: 1.75rem 1.75rem 1.5rem;
	animation: fdCookiePop 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fd-cookie__title {
	font-family: "Playfair Display", Georgia, Cambria, serif;
	font-size: 1.5rem;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #0B0B0A;
	margin: 0 0 0.5rem;
}
.fd-cookie__desc {
	font-size: 0.9rem;
	line-height: 1.55;
	color: #4B4B46;
	margin: 0 0 1.25rem;
}

.fd-cookie__list {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.fd-cookie__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1rem;
	background: #F4F3F0;
	border: 1px solid #E7E7E4;
	border-radius: 0.9rem;
}
.fd-cookie__name {
	font-weight: 600;
	color: #0B0B0A;
	font-size: 0.9rem;
	margin: 0;
}
.fd-cookie__note {
	font-size: 0.78rem;
	line-height: 1.4;
	color: #63635C;
	margin: 0.2rem 0 0;
}

/* Toggle switch */
.fd-cookie__switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	flex-shrink: 0;
}
.fd-cookie__switch input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.fd-cookie__track {
	width: 42px;
	height: 24px;
	border-radius: 999px;
	background: #CFCFC9;
	transition: background 0.2s ease;
	position: relative;
}
.fd-cookie__track::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(11, 11, 10, 0.3);
	transition: transform 0.2s ease;
}
.fd-cookie__switch input:checked + .fd-cookie__track { background: #1F8A6B; }
.fd-cookie__switch input:checked + .fd-cookie__track::after { transform: translateX(18px); }
.fd-cookie__switch input:focus-visible + .fd-cookie__track { outline: 2px solid #CBA765; outline-offset: 2px; }
.fd-cookie__switch.is-locked {
	font-size: 0.72rem;
	font-weight: 600;
	color: #125744;
	background: #F1FAF6;
	border: 1px solid #DDF2E9;
	padding: 0.3rem 0.6rem;
	border-radius: 999px;
}

.fd-cookie__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
}
.fd-cookie__actions .fd-btn { flex: 1 1 auto; margin: 0; }
.fd-cookie__link {
	background: none;
	border: none;
	color: #635C5C;
	font-size: 0.82rem;
	text-decoration: underline;
	cursor: pointer;
	padding: 0.4rem 0.2rem;
}
.fd-cookie__link:hover { color: #0B0B0A; }
.fd-cookie__close {
	position: absolute;
	top: 0.75rem;
	right: 0.9rem;
	width: 32px;
	height: 32px;
	border: none;
	background: none;
	color: #84847C;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
}
.fd-cookie__close:hover { color: #0B0B0A; background: #F4F3F0; }

html.fd-cookie-locked { overflow: hidden; }

@keyframes fdCookieFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fdCookiePop {
	from { opacity: 0; transform: translateY(14px) scale(0.98); }
	to { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
	.fd-cookie__panel { padding: 1.25rem 1.1rem; }
	.fd-cookie__actions .fd-btn { flex-basis: 100%; }
}
