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

.bpc-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(--bpc-line);
	border-radius: var(--bpc-radius-l);
	background: var(--bpc-ink-2);
	box-shadow: var(--bpc-shadow-card);
	color: var(--bpc-white);
	font-family: var(--bpc-font-body);
}

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

.bpc-consent__title {
	margin: 0 0 8px;
	color: var(--bpc-orange-bright);
	font: 700 15px/1.2 var(--bpc-font-label);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.bpc-consent__text {
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 16px;
	line-height: 1.45;
}

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

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

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

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

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

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

	.bpc-consent__text {
		font-size: 15px;
	}
}

/* Link «Preferenze cookie» nel piè di pagina, accanto alla privacy */

.bpc-footer__consent {
	padding: 0;
	border: 0;
	background: none;
	color: rgba(255, 255, 255, 0.86);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.bpc-footer__consent::before {
	content: "·";
	display: inline-block;
	margin-inline: 8px;
	color: var(--bpc-dim);
	text-decoration: none;
}

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