  #cookie-preferences-button {
  position: fixed;
  bottom: 20px!important;
  right: 20px!important;
  width: 48px!important;
    height: 48px!important;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  padding: 10px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
}
#cookie-preferences-button:hover {
  background: #f8f8f8!important;
  opacity: 1!important;
}

    /* Nakładka (overlay) */
    #cookie-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.6);
      z-index: 9998;
    }
  
    /* Baner na dole */
    #cookie-banner {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #333;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    max-width: 1008px;
    width: 90%;
    z-index: 9999;
    font-family: "Lato", sans-serif;
    display: none;
    }
  
    #cookie-banner p {
      margin-bottom: 20px;
    }
  
    .cookie-buttons {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
      font-family: "Lato", sans-serif;
    }
  
    .cookie-buttons button {
      padding: 15px 20px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 700;
    }
  
    .btn-primary {
        background: #0073e6;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 5px;
        font-weight: 700;
        cursor: pointer;
    }
  
    .btn-secondary {
      background: #e6e6e6;
      color: #333;
      padding: 15px 20px;
      border:none;
        border-radius: 5px;
        font-weight: 700;
        cursor: pointer;
    }
  
    /* Modal z preferencjami */
    #cookie-modal {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #fff;
        max-width: 700px;
        max-height: 76vh;
        width: 100%;
        padding: 30px 30px 30px 30px;
        border-radius: 10px;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
        z-index: 10000;
        font-family: "Lato", sans-serif;
    }
  
    #cookie-modal h2 {
        margin-top: 25px;
        padding-left: 15px;
    }

    .cookie-modal-wrapper{
        overflow-x: auto;
        height: auto;
        max-height: 50vh;
        position: relative;
    }

    /* .cookie-modal-wrapper:after{
        content:"";
        display: block;
        width: 100%;
        height: 40px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
        position: absolute;
        bottom: calc(100% - 1px);
    } */
  
    .cookie-category {
      margin-bottom: 15px;
      padding: 15px;
      background: #f8f8f8;
      border-radius: 8px;
      /* border-left: 4px solid #0073e6; */
    }

    .cookie-category small{
        padding-left: 36px!important;
        display: block;
    }

  
    .cookie-category label {
        font-weight: bold;
    display: block;
    margin-bottom: 5px;
    position: relative;
    }
  
    .cookie-category input[type="checkbox"] {
        margin-left: 28px!important;
        position: relative;
    }
  
    .locked {
      opacity: 0.6;
      pointer-events: none;
    }
  
    .cookie-modal-buttons {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 20px;
    }

   /* Hide the browser's default checkbox */
.cookie-category input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.cookie-category .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px!important;
  width: 25px!important;
  background-color: #e8e8e8;
}

/* On mouse-over, add a grey background color */
.cookie-category:hover input ~ .checkmark {
  background-color: #eee;
}

/* When the checkbox is checked, add a blue background */
.cookie-category input:checked ~ .checkmark {
  background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.cookie-category .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.cookie-category input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.cookie-category .checkmark:after {
  left: 9px!important;
  top: 5px!important;
  width: 5px!important;
  height: 10px!important;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.cookie-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #000;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 0;
    height: 0;
}

.cookie-close:hover{
    opacity:0.8;
    background-color: transparent!important;
}
