/* 14/10/2026 — Avviso cookie della demo (assets/js/gtg-banner-cookie.js).
 * In basso a destra (a sinistra c'è il menu laterale); sugli smartphone a tutta larghezza, sopra i pulsanti fissi «?» del tour e lente.
 * z-index 1005: sotto le finestre modali UIkit (1010), la ricerca (1090+) e il tour (Driver.js 10000+), così non li copre mai. */
#gtg-avviso-cookie {
	position: fixed; right: 16px; bottom: 16px; z-index: 1005;
	box-sizing: border-box; width: 400px; max-width: calc(100vw - 32px);
	display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
	padding: 14px 16px; border-radius: 12px;
	background: #1e293b; color: #f1f5f9; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
	font: 400 14px/1.5 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; text-align: left;
	animation: gtg-ac-entra .25s ease-out;
}
#gtg-avviso-cookie .gtg-ac-testo { margin: 0; color: inherit; font: inherit; }
#gtg-avviso-cookie strong { color: #fff; font-weight: 600; }
#gtg-avviso-cookie a { color: #6ee7b7; text-decoration: underline; white-space: nowrap; }
#gtg-avviso-cookie a:hover { color: #a7f3d0; }
#gtg-avviso-cookie .gtg-ac-ok {
	align-self: flex-end; min-height: 40px; padding: 8px 18px; margin: 0;
	border: 0; border-radius: 8px; background: #008457; color: #fff; cursor: pointer;
	font: 600 14px/1.2 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; text-transform: none;
}
#gtg-avviso-cookie .gtg-ac-ok:hover { background: #006d47; }
/* !important: main.min.css e login_page.min.css di Altair hanno «a, button { outline: 0 !important }» (debug 1, 14/10/2026: prima il focus non si vedeva) */
#gtg-avviso-cookie a:focus-visible, #gtg-avviso-cookie .gtg-ac-ok:focus-visible { outline: 2px solid #fff !important; outline-offset: 2px; }
@keyframes gtg-ac-entra { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #gtg-avviso-cookie { animation: none; } }
@media (max-width: 767px) {
	#gtg-avviso-cookie { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; padding: 12px 14px; font-size: 13px; }
	/* pulsanti fissi in basso a sinistra (tour «?», lente della ricerca): l'avviso sale sopra di loro */
	body:has(.gtg-tour-fisso, .gtg-cerca-solo-lente) #gtg-avviso-cookie { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}
@media print { #gtg-avviso-cookie { display: none !important; } }
