/* ============================================================
   Cookie consent banner – Consulenza Radiofonica
   Premium dark UI + yellow accent, matches the site style.
   ============================================================ */

.crq-cc,
.crq-cc *,
.crq-cc-reopen {
	font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	box-sizing: border-box;
}

/* ----- container ----- */
.crq-cc {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}
.crq-cc[hidden] { display: none; }

.crq-cc__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(2px);
}

/* ----- box ----- */
.crq-cc__box {
	position: relative;
	width: 100%;
	max-width: 560px;
	margin: 20px;
	background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
	border: 1px solid #2a2a2a;
	border-radius: 16px;
	padding: 26px 26px 22px;
	color: #fff;
	box-shadow: 0 0 0 1px rgba(255, 203, 5, 0.18),
	            0 30px 80px -20px rgba(255, 203, 5, 0.22),
	            0 20px 50px -12px rgba(0, 0, 0, 0.7);
	animation: crqCcUp 0.3s ease both;
}
@keyframes crqCcUp {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

.crq-cc__title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 800;
	color: #fff;
	line-height: 1.3;
}

.crq-cc__text {
	margin: 0 0 18px;
	font-size: 13.5px;
	line-height: 1.55;
	color: #b8b8b8;
}
.crq-cc__text a {
	color: #ffcb05;
	text-decoration: underline;
}

/* ----- actions ----- */
.crq-cc__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.crq-cc__btn {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 11px 22px;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: transform 0.05s ease, background 0.15s ease, opacity 0.15s ease;
}
.crq-cc__btn:active { transform: translateY(1px); }

.crq-cc__btn--primary {
	background: linear-gradient(90deg, #ffcb05, #ffd633);
	color: #111;
}
.crq-cc__btn--primary:hover { opacity: 0.9; }

.crq-cc__btn--ghost {
	background: transparent;
	color: #d0d0d0;
	border: 1.5px solid #3a3a3a;
}
.crq-cc__btn--ghost:hover {
	border-color: #ffcb05;
	color: #fff;
}

/* ----- preferences categories ----- */
.crq-cc__cats {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 20px;
	max-height: 48vh;
	overflow-y: auto;
}

.crq-cc__cat {
	background: #1c1c1c;
	border: 1px solid #2a2a2a;
	border-radius: 10px;
	padding: 12px 14px;
}

.crq-cc__cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	cursor: pointer;
}

.crq-cc__cat-desc {
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: #8a8a8a;
}

/* checkbox styled as a toggle */
.crq-cc__cat-head input {
	appearance: none;
	flex: 0 0 auto;
	width: 40px;
	height: 22px;
	border-radius: 999px;
	background: #3a3a3a;
	position: relative;
	cursor: pointer;
	transition: background 0.15s ease;
}
.crq-cc__cat-head input::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.15s ease;
}
.crq-cc__cat-head input:checked {
	background: #ffcb05;
}
.crq-cc__cat-head input:checked::after {
	transform: translateX(18px);
}
.crq-cc__cat-head input:disabled {
	background: #ffcb05;
	opacity: 0.5;
	cursor: not-allowed;
}

/* ----- floating reopen button ----- */
.crq-cc-reopen {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 99998;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid #2a2a2a;
	background: #161616;
	cursor: pointer;
	box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.7);
	transition: transform 0.1s ease, border-color 0.15s ease;
}
.crq-cc-reopen[hidden] { display: none; }
.crq-cc-reopen svg { display: block; }
.crq-cc-reopen:hover {
	transform: scale(1.06);
	border-color: #ffcb05;
}

/* ----- responsive ----- */
@media (max-width: 600px) {
	.crq-cc__box { margin: 12px; padding: 22px 18px 18px; }
	.crq-cc__actions { justify-content: stretch; }
	.crq-cc__btn { flex: 1 1 auto; text-align: center; }
}
