/* Banner cookie + modale "preferenze". Brand-coerente (#1653A0 / #FBCA36).
   Mostrato finché non c'è scelta in localStorage (chiave: comeser_cookie_consent). */

#cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 720px;
  z-index: 9000;
  background: #ffffff;
  border: 1px solid #e3e6ea;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15, 22, 36, 0.18);
  padding: 18px 20px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1a1d20;
  font-size: 14px;
  line-height: 1.55;
  animation: cookie-slide-up 0.3s ease-out;
}
#cookie-banner[hidden] { display: none; }

@keyframes cookie-slide-up {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

#cookie-banner h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #1653A0;
  display: flex;
  align-items: center;
  gap: 8px;
}
#cookie-banner h3::before { content: '🍪'; font-size: 18px; }
#cookie-banner p { margin: 0 0 12px; }
#cookie-banner a { color: #1653A0; text-decoration: underline; }

#cookie-banner .cb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
#cookie-banner button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  border: 0;
  transition: background 0.15s ease, transform 0.1s ease;
}
#cookie-banner button:hover { transform: translateY(-1px); }
#cookie-banner .cb-accept {
  background: #1653A0;
  color: #fff;
}
#cookie-banner .cb-accept:hover { background: #0f3d78; }
#cookie-banner .cb-reject {
  background: #f6f7f9;
  color: #1a1d20;
  border: 1px solid #e3e6ea;
}
#cookie-banner .cb-reject:hover { background: #e9ecf2; }

@media (max-width: 480px) {
  #cookie-banner { padding: 16px; bottom: 12px; }
  #cookie-banner .cb-actions { flex-direction: column; align-items: stretch; }
  #cookie-banner button { width: 100%; }
}
