.consent-banner {
    position: fixed;
    bottom: 0;
    background-color: #FFFFFF;
    color: #000000;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    border-radius: 4px;
    margin: 10px auto;
    border: 1px solid #d6d6d6;
}

.consent-banner h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-family: Bricolage Grotesque;
    font-weight: 600;
    line-height: 1.5;
}

.consent-banner p {
    margin: 0 0 8px;
    font-size: 16px;
    font-family: Noto Sans;
    display: inline-block;
    line-height: 1.5;
}

.consent-banner a {
    cursor: pointer;
    display: inline-block;
    color: #23297F;
    transition: background-position 300ms ease;
    font-weight: 600;
}

.consent-banner a:hover {
    color: #585AB3;
}

.consent-banner-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.consent-banner-button {
    gap: var(--dl-space-space-halfunit);
    fill: #FFFFFF;
    color: #FFFFFF;
    cursor: pointer;
    display: inline-flex;
    transition: 0.3s;
    align-items: center;
    font-weight: bold;
    white-space: nowrap;
    border-color: #23297F;
    border-width: 1px;
    padding-top: var(--dl-space-space-halfunit);
    padding-left: var(--dl-space-space-oneandhalfunits);
    border-radius: var(--dl-radius-radius-buttonradius);
    padding-right: var(--dl-space-space-oneandhalfunits);
    padding-bottom: var(--dl-space-space-halfunit);
    justify-content: center;
    background-color: #23297F;
    font-family: Noto Sans;
}

.consent-banner-button:hover {
    border-color: #585AB3;
    background-color: #585AB3;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #000000;
    font-weight: bold;
    padding: 5px;
    line-height: 1;
    z-index: 1010;
}

.close-button:hover {
  background-color: #bcbcbc;
}

.dropdown {
  display: none;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
  padding-inline: 4px;
}

.dropdown.active {
  display: block;
}

.dropdown h2 {
  display: none;
}

.dropdown p {
  margin-bottom: 10px;
}

.cookie-category {
  /* margin: 10px; */
  font-family: Noto Sans;
  font-size: 16px;
}

.checkbox-switch {
  display: inline-block;
  position: relative;
  width: 46px;
  height: 25px;
}

.checkbox-input {
  display: none;
}

.checkbox-label {
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 25px;
  background-color: #757575;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cookie-category strong {
  font-size: 16px;
  margin-bottom: 2px;
}

.checkbox-label:before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

.checkbox-input:checked + .checkbox-label {
  background-color: #4fbf26;
}

.checkbox-input:disabled + .checkbox-label {
  background-color: #ccc;
}

.checkbox-input:checked + .checkbox-label:before {
  transform: translateX(21px);
}

.cookie-category strong {
  margin-top: 4px;
}

.cookie-category .cookie-description {
  font-size: 14px;
  color: #555;
  display: block;
  line-height: 1.4;
  text-align: left;
  margin-top: 4px;
  margin-bottom: 10px;
}

.checkbox-button {
    flex-direction: row-reverse;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.dropdown .consent-banner-buttons {
  margin-top: 24px;
}


@media (max-width: 768px) {
    .consent-banner {
        width: 95%;
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .consent-banner {
        padding: 24px;
        border-radius: 5px;
    }

    .consent-banner h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .consent-banner p {
        font-size: 16px;
        margin: 0 0 10px;
    }

    .consent-banner-buttons {
        gap: 10px;
        flex-direction: column;
        padding-inline: 24px;
    }

    .consent-banner-button {
        height: 40px;
        width: 100%;
        font-size: 16px;
        justify-content: center;
    }

    .dropdown {
        padding: 0;
        margin-top: 16px;
    }

    .dropdown p {
      margin-top: 10px;
    }

    .cookie-category {
      margin-top: 6px;
    }

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

    .checkbox-input {
      display: none;
    }

    .checkbox-label {
      position: absolute;
      top: 0;
      left: 0;
      width: 38px;
      height: 20px;
      background-color: #757575;
      border-radius: 20px;
      cursor: pointer;
      transition: background-color 0.3s;
    }

    .cookie-category strong {
      font-size: 16px;
    }

    .cookie-category .cookie-description {
      margin-top: 4px;
      margin-bottom: 12px;
    }

    .checkbox-label:before {
      content: "";
      position: absolute;
      top: 2px;
      left: 2px;
      width: 16px;
      height: 16px;
      background-color: #fff;
      border-radius: 50%;
      transition: transform 0.3s;
    }

    .checkbox-input:checked + .checkbox-label {
      background-color: #4fbf26;
    }

    .checkbox-input:disabled + .checkbox-label {
      background-color: #ccc;
    }

    .checkbox-input:checked + .checkbox-label:before {
      transform: translateX(18px);
    }
}
