/* advanced-cookie-policy.css */

/* ==============================
   COOKIE BANNER
   ============================== */
#acp-cookie-banner {
  display: none; /* Nasconde il banner */
  position: fixed;
  bottom: 10px;
  background: #32373C;
  color: #fff;
  padding: 15px;
  z-index: 9999;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-family: Arial, sans-serif;
}

.acp-banner-left {
  left: 10px;
  width: 466px;
}

.acp-banner-center {
  left: 50%;
  transform: translateX(-50%);
  width: auto;
}

.acp-banner-right {
  right: 10px;
  width: 466px;
}

/* Pulsanti del banner */
#acp-cookie-banner button {
  background: #28a745;
  color: #fff;
  border: none;
  padding: 10px 15px;
  margin: 5px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}

#acp-cookie-banner button:hover {
  background: #d3d3d3; /* grigio chiaro */
  color: #000;
}

/* ==============================
   MODAL PREFERENZE COOKIE
   ============================== */
#acp-preference-modal {
  display: none; /* Nasconde il modal */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  /* Il JS applica inline `display: flex` al click */
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  z-index: 10000;
  font-family: Arial, sans-serif;
}

/* Titolo del modal */
#acp-preference-modal h2 {
  width: 100%;
  margin: 0 0 20px;
  font-size: 1.8em;
  color: #fff;
  text-align: center;
}

/* Form delle preferenze */
#acp-preference-modal form#acp-preference-form {
  /* Manteniamo lo sfondo scuro dell'overlay, senza layer aggiuntivi */
  margin: 0;
  padding: 0;
}

/* Label e checkbox */
#acp-preference-modal label {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 1em;
}

/* Pulsanti Salva/Annulla nel modal */
#acp-preference-modal form#acp-preference-form button {
  display: inline-block;     /* Affiancati uno accanto all'altro */
  background: #28a745;        /* Verde */
  color: #fff;
  border: none;
  padding: 10px 15px;
  margin: 5px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}

#acp-preference-modal form#acp-preference-form button:hover {
  background: #d3d3d3;        /* Grigio chiaro */
  color: #000;
}

/* ==============================
   IFRAME PLACEHOLDER
   ============================== */
.iframe-placeholder {
  text-align: center;
  background: #f9f9f9;
  padding: 15px;
  border: 1px solid #ccc;
  color: #333;
  font-size: 14px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.iframe-placeholder button {
  background: #28a745;
  color: #fff;
  border: none;
  padding: 10px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.iframe-placeholder button:hover {
  background: #d3d3d3;
  color: #000;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
  .acp-banner-center {
    left: 2.5%;
    transform: none;
    width: 95%;
  }
}
/* ==============================
   CHECKBOXES
   ============================== */
/* stile elegante per il gruppo di checkbox */
.acp-cookie-blocks {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
  padding: 0;
}
.acp-cookie-blocks .acp-checkbox {
  flex: 1 1 250px;
  margin: 5px 10px;
  padding: 8px 12px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.acp-cookie-blocks .acp-checkbox input {
  margin-right: 8px;
  vertical-align: middle;
}
.acp-cookie-blocks .acp-checkbox:hover {
  background: #f1f1f1;
  border-color: #ccc;
}
/* Griglia responsive per i cookie-blocks */
.acp-cookie-blocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 1em 0;
}

/* Stile di ciascuna “card” checkbox */
.acp-cookie-block-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px;
  transition: box-shadow .2s ease, border-color .2s ease;
}

/* Hover della card */
.acp-cookie-block-item:hover {
  border-color: #bbb;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

/* Allineamento checkbox e testo */
.acp-cookie-block-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* Ridimensiona il checkbox */
.acp-cookie-block-item input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
}

/* Stile del testo */
.acp-cookie-block-label {
  font-size: 14px;
  color: #333;
}
/* Decline button styling */
.acp-btn-decline-all,
.acp-btn-decline {
    background: #dc3545;      /* rosso scuro per “rifiuta” */
    color: #fff;
    border: none;
    padding: 10px;
    margin: 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: background .2s;
}
.acp-btn-decline-all:hover,
.acp-btn-decline:hover {
    background: #aaa;         /* grigio chiaro al passaggio */
    color: #000;
}
