/* --- Banner dei cookie (inc/consent.php, assets/js/consent.js) ---------- */

.ecv-consent {
	position: fixed;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	left: 16px;
	z-index: 45;
	width: min(480px, calc(100vw - 32px));
	padding: 22px 22px 20px;
	border: 1px solid var(--ecv-hair);
	border-radius: 22px;
	background: var(--ecv-navy-darker);
	box-shadow: var(--ecv-shadow-card);
	color: var(--ecv-white);
}

.ecv-consent[hidden] {
	display: none;
}

.ecv-consent__title {
	margin: 0 0 8px;
	font: 700 21px/1.1 var(--ecv-font-display);
}

.ecv-consent__text {
	margin: 0;
	color: var(--ecv-muted);
	font-size: 14px;
	line-height: 1.55;
}

.ecv-consent__text a {
	color: var(--ecv-white);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ecv-consent__actions {
	display: flex;
	gap: 10px;
	margin-top: 18px;
}

.ecv-consent__actions .ecv-button {
	flex: 1 1 0;
}

@media (prefers-reduced-motion: no-preference) {
	.ecv-consent {
		animation: ecv-consent-in 0.6s var(--ecv-ease) both;
	}
}

@keyframes ecv-consent-in {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
}

@media (max-width: 560px) {
	.ecv-consent {
		bottom: calc(12px + env(safe-area-inset-bottom, 0px));
		left: 12px;
		width: calc(100vw - 24px);
		padding: 18px 18px 16px;
	}

	.ecv-consent__text {
		font-size: 13.5px;
	}
}

/* Link «Preferenze cookie» nel piè di pagina */

.ecv-footer__legal {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px 18px;
}

.ecv-footer__consent {
	padding: 0;
	border: 0;
	background: none;
	color: var(--ecv-muted);
	font: inherit;
	letter-spacing: inherit;
	cursor: pointer;
}

.ecv-footer__consent:hover {
	color: var(--ecv-white);
}

.ecv-footer__consent[hidden] {
	display: none;
}
