  /* Style per la modale e overlay */
  body {
    margin: 0;
    font-family: sans-serif;
  }

  .cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: none; /* inizialmente nascosta */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 10px;
    overflow: auto;
  }

  .cookie-overlay.show {
    display: flex;
  }

  .cookie-modal {
    background-color: #fff;
    color: #222;
    padding: 20px;
    border-radius: 10px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
    margin: auto;
  }

  .cookie-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    color: #9fe870;
    cursor: pointer;
  }

  .cookie-close:hover {
    color: #000;
  }

  .cookie-modal h2 {
    margin-top: 0;
    font-size: 20px;
  }

  .cookie-section {
    margin-top: 20px;
  }

  .cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
    border-bottom: 1px solid #eee;
  }

  .switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    vertical-align: middle;
  }

  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    border-radius: 20px;
    transition: 0.3s;
  }

  .slider:before {
    content: "";
    position: absolute;
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
  }

  input:checked + .slider {
    background-color: #00b894;
  }

  input:checked + .slider:before {
    transform: translateX(20px);
  }

  .arrow {
    font-size: 12px;
    margin-left: 10px;
    transform: rotate(0deg);
    transition: transform 0.3s;
  }

  .arrow.open {
    transform: rotate(90deg);
  }

  .cookie-suboptions {
    display: none;
    padding-left: 20px;
    margin-top: 10px;
  }

  .cookie-suboptions.show {
    display: block;
  }

  .suboption {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
  }

  .cookie-buttons {
    display:flex;
    justify-content: flex-end;
    position: relative;
    gap: 10px;
    width: 100%;
  
  }

  .cookie-buttons button {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    flex: 1;
    margin-top: 20px;
    
  }

  .btn-accept {
    background-color: #9fe870;
    color: #264d0c;
    border-color: red;
  }

  .btn-reject {
    background-color: #9fe870;  
    color: #264d0c;           
    
  }

  .btn-save {
    background-color: #9fe870;
    color: #264d0c;
  }

  .btn-closepopup {
    color: #9fe870;
  }

  .btn-save:hover {
    background-color: whitesmoke;
    border: 2px solid #9fe870 !important;
    border-color: #9fe870 !important;
    transform: scale(1.05);
  }

  .btn-reject:hover {
      background-color: whitesmoke;
      border: 2px solid #9fe870 !important;
    border-color: #9fe870 !important;
      transform: scale(1.05);
  }

  .btn-accept:hover {
    background-color: whitesmoke;
    border: 2px solid #9fe870 !important;
    border-color: #9fe870 !important;
    transform: scale(1.05);
  }