/* Overlay */
#cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(3px);
  display: none;
  z-index: 99998;
}

/* Banner */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px; /* desktop default */
  width: 360px;
  background: #ffffff;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  display: none;
  z-index: 99999;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222;
  border: 1px solid #e6e6e6;
}

/* Titolo e testo */
#cookie-banner h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

#cookie-banner p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.4;
}

/* Categorie */
#cookie-categories {
  margin-top: 10px;
  padding: 14px 14px;
  background: #fafafa;
  border-radius: 10px;
  max-height: none;   /* ← niente limite */
  overflow: visible;  /* ← niente scroll */
  font-size: 14px;
  border: 1px solid #eee;
}


#cookie-categories label {
  display: block;
  margin-bottom: 6px;
}

#cookie-categories input[type="checkbox"] {
  margin-right: 6px;
}

/* Bottoni */
.cookie-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.cookie-btn {
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  transition: all 0.2s ease;
}

/* Accetta tutti */
.cookie-accept {
  background: #0078ff;
  color: #fff;
  border-color: #0070ee;
}
.cookie-accept:hover {
  background: #0064d1;
}

/* Solo necessari */
.cookie-reject {
  background: #f3f3f3;
  color: #333;
  border-color: #e0e0e0;
}
.cookie-reject:hover {
  background: #e7e7e7;
}

/* Salva preferenze */
.cookie-customize {
  background: #ffffff;
  color: #0078ff;
  border-color: #cfe2ff;
}
.cookie-customize:hover {
  background: #f0f7ff;
}

/* Footer link */
.cookie-footer-link {
  font-size: 12px;
  margin-top: 8px;
  text-align: center;
  color: #666;
}

/* 📱 Mobile: banner centrato */
@media (max-width: 768px) {
  #cookie-banner {
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 420px;
  }
}

.cookie-remove-all {
    background: #444;
    color: #fff;
}
.cookie-remove-all:hover {
    background: #333;
}

