@charset "UTF-8";
/* Overlay scuro */
/* Overlay */
.cookie-banner {
    position: fixed;
    inset: 0; /* top, right, bottom, left = 0 */
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;

    display: none; /* gestito via JS */
}

/* Box centrale */
.cookie-banner-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 90%;
    max-width: 600px;
    max-height: 80vh;

    background: #fff;
    padding: 20px;
    border-radius: 8px;

    overflow-y: auto; /* 🔥 scroll interno */
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* Contenitore centrale */
.cookie-banner > * {
    background: #fff;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;

    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);

    overflow-y: auto; /* 🔥 scroll se non ci sta */
}

/* Testo */
.cookie-banner-text {
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Opzioni */
.cookie-option {
    margin-bottom: 10px;
}

/* Pulsanti */
.cookie-buttons {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #007bff;
    color: white;
}

.cookie-btn:hover {
    background: #0056b3;
}

/* Overlay */
.cc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9999;
    display: none;
}

/* Modale */
.cc-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 92%;
    max-width: 720px;
    max-height: 85vh;

    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,.35);

    display: flex;
    flex-direction: column;
}

/* Titolo */
.cc-title {
    padding: 20px;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
}

/* Corpo scrollabile */
.cc-body {
    padding: 20px;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cc-body h3 {
    margin-top: 20px;
    font-size: 1rem;
}

/* Link */
.cc-links {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.cc-links a {
    font-size: 0.9rem;
}

/* Footer */
.cc-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Pulsanti */
.cc-btn {
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.cc-btn.primary {
    background: #000;
    color: #fff;
}

.cc-btn.secondary {
    background: #e5e5e5;
    color: #000;
}

.cc-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-switch label {
  position: absolute;
  cursor: pointer;
  background: #ccc;
  border-radius: 34px;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: 0.4s;
}

.cc-switch label::after {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.4s;
}

/* attivo: quando input è checked O label ha classe active */
.cc-switch input:checked + label,
.cc-switch label.active {
  background: #4caf50;
}

.cc-switch input:checked + label::after,
.cc-switch label.active::after {
  left: calc(100% - 3px);
  transform: translateX(-100%);
  bottom: 2px;
  top: 4px;
}

