#cookie-banner {
  position: fixed;
  inset: 0;
  background-color: #fff9;
  z-index: 1000;
  display: none;
}

.banner-bg {
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 2em 1em 2em;
}

.banner-wrapper {
  display: grid;
  justify-content: center;
  max-width: 1000px;
  margin: auto;
  gap: 1em;
}

.banner-wrapper > * {
  margin: 0;
}

.banner-buttons-wrapper {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 1em;
}

.banner-buttons-wrapper.banner-buttons-wrapper button {
  border-radius: 30px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  border: none;
}

.banner-buttons-wrapper button:hover,
.banner-buttons-wrapper button:active {
  box-shadow: 0 0 0 2px #000, 0 0 0 4px #fff;
}

#banner-icon {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 10px;
  left: 10px;
  display: block;
  cursor: pointer;
  z-index: 500;
  border-radius: 8px;
  color: #c4c4c4;
  padding: 6px;
}

#banner-icon:hover {
  color: #c9aa23;
}

#banner-icon svg {
  height: 100%;
  width: 100%;
}

.banner-wrapper a {
  text-decoration: underline;
}

.explanation {
  max-height: 50dvh;
  overflow: auto;
  padding-inline: 1em;
  border-radius: 8px;
}

.cookies-optional-required.tawk {
  position: fixed;
  bottom: 1em;
  right: 1em;
  background-color: var(--wp--preset--color--attention);
  max-width: 400px;
  border-radius: 2em;

  color: var(--wp--preset--color--white-bg);

  details {
    display: grid;
    padding: 0.5em;

    &:open {
      padding: 1em;
      gap: 1em;
    }

    summary {
      list-style: none;
      user-select: none;
      cursor: pointer;
      display: flex;
      justify-content: center;

      &::-webkit-details-marker {
        display: none;
      }
    }

    .details-content {
      text-align: center;

      .buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1em;
      }

      button {
        border: none;
        border-radius: 1em;
        padding: 1em 2em;
        background-color: #fff;
        color: #333;
        font-weight: 600;
        cursor: pointer;
      }
    }
  }
}

@media screen and (max-width: 450px) {
  .banner-buttons-wrapper {
    grid-template-columns: auto;
  }
}
