/* ============================================================
   Cookie banner - child theme
   Accetta e Rifiuta hanno pari evidenza (requisito Garante Privacy)
   ============================================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #1a1a1a;
  color: #fff;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .25);
}

.cookie-text {
  flex: 1 1 320px;
  margin: 0;
}
.cookie-text p { margin: 0; }
.cookie-text a {
  color: #7db9ff;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-buttons button {
  padding: 10px 20px;
  border: 1px solid #fff;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.cookie-buttons button:hover {
  background: rgba(255, 255, 255, .12);
}
/* "Accetta" non deve essere piu' appariscente di "Rifiuta":
   entrambi restano leggibili e di pari evidenza. */
.cookie-buttons button.primary {
  background: #fff;
  color: #1a1a1a;
  border-color: #fff;
}
.cookie-buttons button.primary:hover {
  background: #e6e6e6;
}

/* Pulsante per riaprire il banner */
.cookie-reopen {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 99998;
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

@media (max-width: 600px) {
  .cookie-banner { padding: 16px; gap: 14px; }
  .cookie-buttons { width: 100%; }
  .cookie-buttons button { flex: 1 1 auto; }
}

.cookie-banner[hidden],
.cookie-reopen[hidden] {
  display: none !important;
}