

:root {   
  --cl-p: #555;
  --clgrey: #f3f3ed;
  --cl-white: white; 
  --cl-softgrey: #aaa; 
  --boxshadow: -1px -1px 4px rgb(184, 184, 184), 1px 1px 4px rgb(184, 184, 184); 
  --shadow-nav: 0 2px 6px rgba(40, 40, 40, 0.3);
  --bradius:5px;
}


    .cookie-wrapper {
      position: fixed;
      bottom: 24px;
      left: 24px;
      z-index: 9999;
      max-width: 480px;
      width: calc(100% - 48px);
    }

    /* Banner aperto */
    .cookie-banner {
      background: #ffffff;
      border-top: 4px solid var(--cl-green);
      border-left:1px solid var(--cl-softgrey);
      border-right:1px solid var(--cl-softgrey);
      border-bottom:1px solid var(--cl-softgrey);
      border-radius: 6px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
      padding: 22px 22px 18px;
      animation: slideUp 0.35s cubic-bezier(0.22,1,0.36,1);
    }
    .btn-row {padding-top:22px;}

    @keyframes slideUp {
      from { opacity: 0; transform: translateY(20px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* Header: icona + titolo */

    .cb-icon {
      width: 20px;
      height: 20px;
      color: var(--cl-green);
      flex-shrink: 0;
    }

    .cb-title {
      font-size: 14px;
      letter-spacing: 0.06em;
      color: var(--cl-green);
    }

    /* Testo informativo */
    .cb-text {
      font-size: 14px;
      line-height: 1.6;
      color: var(--cl-p);
      margin-bottom: 18px;
    }

    .cb-text a {
      color: var(--cl-txt);
      text-decoration: underline;
    }

    .cb-text a:hover { color: var(--green); }

    /* Bottoni principali */
    .cb-btn {
      font-family: var(--font-normal);
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 9px 18px;
      border-radius: 4px;
      border: none;
      cursor: pointer;
      transition: background 0.2s, color 0.2s, transform 0.15s;
      white-space: nowrap;
    }

    .cb-btn:active { transform: scale(0.97); }

    .cb-btn-primary {
      background: var(--green);
      color: white;
    }

    .cb-btn-primary:hover { background: var(--green); }

    .cb-btn-secondary {
      background: transparent;
      color: var(--green);
      border: 1.5px solid var(--green);
    }

    .cb-btn-secondary:hover {
      background: var(--green);
      color: white;
    }

    /* Pulsante "Continua senza accettare" */
    .cb-btn-skip {
      background: none;
      border: 1px solid var(--cl-softgrey);
      font-family: var(--font-normal);
      font-size: 12px;
      color: var(--cl-softgrey);
      padding: 6px;
      border-radius:var(--bradius); 
      transition: color 0.2s, border 0.2s;
      white-space: nowrap;      
      max-width:200px;   
      flex:0;        
    }

    .cb-btn-skip:hover { color: var(--green); border: 1px solid var(--green);}

    /* Pulsante back */
    .cb-btn-back {
      background: none;
      border: 1px solid var(--cl-softgrey);
      border-radius: var(--bradius);      
      font-size: 12px;
      color: var(--cl-p);     
      padding: 9px 11px;     
      transition: border-color 0.2s, color 0.2s;
      flex-shrink: 0;
    }

    .cb-btn-back:hover {
      border-color: var(--green);
      color: var(--green);
    }

    /* ---- Pannello personalizzazione ---- */
    .cb-customize { margin-bottom: 14px; }

    /* Topbar: back + abilita/disabilita tutto */
    .cb-customize-topbar { margin-bottom: 12px; padding-bottom:10px; border-bottom:1px solid var(--cl-softgrey);}

    

    /* Pulsanti testuali abilita/disabilita tutto */
    .cb-btn-toggle-all {
      background: none;
      border: none;
      font-family: var(--font-normal);
      font-size: 11px;
      font-weight: 600;      
      text-transform: uppercase;
      color: var(--green);
      padding: 0;           
      transition: color 0.2s;
    }

    .cb-btn-toggle-all:hover { color: var(--green); }

    /* Singola riga cookie */
    .cookie-item {
      padding: 10px 0;
      border-bottom: 1px solid #f0f0f0;
    }

    .cookie-item:last-child { border-bottom: none; }

    /* Colonna sinistra: nome + descrizione */
    .cookie-item-info { flex: 1; }

    .cookie-item-name {
      font-size: 14px;
      font-weight: 600;
      color: var(--cl-txt);
    }

    .cookie-item-desc {
      font-size: 12px;
      color: #999;
      line-height: 1.5;
      margin-top: 3px;
      text-align: justify;
    }

    /* Badge "Sempre attivi" */
    .cookie-item-badge {
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      padding: 2px 7px;
      border-radius: 3px;
      background: var(--clgrey);
      color: #888;
      white-space: nowrap;
      border:1px solid var(--cl-softgrey);
    }

    /* Toggle switch */
    .cb-toggle {
      position: relative;
      width: 36px;
      height: 20px;
      flex-shrink: 0;
    }

    .cb-toggle input { opacity: 0; width: 0; height: 0; }

    .cb-toggle-slider {
      position: absolute;
      inset: 0;
      background: #ddd;
      border-radius: 20px;
      cursor: pointer;
      transition: background 0.25s;
    }

    .cb-toggle-slider::before {
      content: '';
      position: absolute;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: white;
      left: 3px;
      top: 3px;
      transition: transform 0.25s;
    }

    .cb-toggle input:checked + .cb-toggle-slider { background: var(--green); }
    .cb-toggle input:checked + .cb-toggle-slider::before { transform: translateX(16px); }
    .cb-toggle input:disabled + .cb-toggle-slider { opacity: 0.5; cursor: not-allowed; }

    /* =============================================
       ICONA ICONIZZATA
    ============================================= */
    .cookie-icon-bubble {
      width: 52px;
      height: 52px;
      border-radius: 50%;
      background: var(--cl-white);      
      border:1px solid var(--cl-softgrey);
      box-shadow: 0 4px 16px rgba(74,124,109,0.35);
      cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s;
      animation: popIn 0.3s cubic-bezier(0.22,1,0.36,1);
    }

    .cookie-icon-bubble:hover {
      transform: scale(1.08);
      box-shadow: 0 6px 20px rgba(74,124,109,0.45);
    }

    @keyframes popIn {
      from { opacity: 0; transform: scale(0.6); }
      to   { opacity: 1; transform: scale(1); }
    }

    .cookie-icon-bubble svg {
      width: 26px;
      height: 26px;
     color:var(--green);
    }
@media (max-width: 600px) {
    .cookie-wrapper {
    bottom: 16px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: 100%;
    }

    .cookie-banner { padding: 18px 16px 16px; }

    .cb-actions { flex-wrap: wrap; }

    .cb-btn { flex: 1; text-align: center; }

    .cb-btn-skip { width: 100%; text-align: center; }
}




/* STILI GENERALI */
.spc-btw {justify-content: space-between;}

/* gap style */
.gap5 {gap:5px;}
.gap10 {gap:10px;}
.gap16 {gap:16px;}
.gap20 {gap:20px;}
.gap30 {gap:30px;}
.gap50 {gap:50px;}
.gap100 {gap:100px;}

/* text style */
.fsize-gen {font-size:16px;}
.bold {font-weight:600;}
.txt-w {color:var(--cl-white);}
.txt-dark {color:var(--cl-txt);}
.txt-brand {color:var(--green);}


.hidden {
  display: none;
}

