/* Avviso statistiche (Google Analytics) - overlay fisso in basso, non modale, nessun impatto sul layout. */
.cr-consent {
	position: fixed;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	z-index: 10000; /* sopra le barre fisse di scheda veicolo e riepilogo, solo finché non si sceglie */
	box-sizing: border-box;
	width: calc(100% - 32px);
	max-width: 880px;
	display: flex;
	align-items: center;
	gap: 0.75rem 1.25rem;
	padding: 0.75rem 0.75rem 0.75rem 1.1rem;
	background: #ffffff;
	color: #111827;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
	font-family: var(--cr-font, inherit);
	font-size: 0.875rem;
	line-height: 1.4;
}
.cr-consent[hidden] { display: none !important; }
.cr-consent__text { margin: 0; flex: 1 1 auto; min-width: 0; color: #111827; }
.cr-consent__link { color: #111827; text-decoration: underline; text-underline-offset: 2px; margin-left: 0.25rem; }
.cr-consent__link:hover { text-decoration-thickness: 2px; }
.cr-consent__actions { display: flex; gap: 0.5rem; flex: 0 0 auto; }
.cr-consent__btn {
	min-height: 40px;
	min-width: 84px;
	padding: 0 1rem;
	border-radius: 10px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.cr-consent__btn--ok {
	background: var(--cr-consent-ok-bg, #111827);
	color: var(--cr-consent-ok-fg, #ffffff);
	border: 1px solid var(--cr-consent-ok-bg, #111827);
}
.cr-consent__btn--deny {
	background: #ffffff;
	color: #111827;
	border: 1px solid #6b7280;
}
.cr-consent__btn--deny:hover { background: #f3f4f6; }
.cr-consent__btn:focus-visible,
.cr-consent__link:focus-visible,
.cr-consent-open:focus-visible {
	outline: 2px solid #111827;
	outline-offset: 2px;
}
@media (max-width: 767px) {
	.cr-consent {
		bottom: max(8px, env(safe-area-inset-bottom));
		width: calc(100% - 16px);
		flex-wrap: wrap;
		gap: 0.5rem 0.75rem;
		padding: 0.65rem 0.75rem;
		font-size: 0.8125rem;
	}
	.cr-consent__text { flex: 1 1 100%; }
	.cr-consent__actions { flex: 1 1 100%; }
	.cr-consent__btn { flex: 1 1 0; min-height: 44px; }
}
