#cookie-banner {
  display: none;

  .cookie-banner-overlay {
    .cookie-banner-overlay-inner {
      max-height: 100%;
      padding: 14px;
      overflow: scroll;

      ::-webkit-scrollbar {
        display: none;
      }

      @media only screen and (min-width: 768px) {
        padding: 0 0 84px;
      }

      .cookie-banner-wrapper {
        padding: 16px;
        border-radius: 16px;
        background-color: #fff;

        @media only screen and (min-width: 768px) {
          max-width: 648px;
          margin: 0 auto;
          padding: 40px;
        }

        .cookie-banner-inner {
          display: flex;
          flex-direction: column;
          gap: 24px;

          @media only screen and (min-width: 768px) {
            gap: 40px;
          }
        }
      }
    }
  }
}

#cookie-banner-prefs {
  display: none;

  .cookie-banner-overlay {
    .cookie-banner-overlay-inner {
      max-height: 100%;
      overflow: scroll;

      @media only screen and (min-width: 768px) {
        padding-bottom: 100px;
      }

      .cookie-banner-prefs-wrapper {
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 16px 28px;
        background-color: #fff;

        @media only screen and (min-width: 768px) {
          gap: 40px;
          max-width: 648px;
          padding: 40px;
          border-radius: 16px;
        }

        #cookie-banner-prefs-form {
          display: flex;
          flex-direction: column;
          gap: 16px;

          .cookie-banner-prefs-checkbox-item {
            display: flex;
            flex-direction: column;
            gap: 8px;

            > label {
              display: flex;
              align-items: center;
              gap: 12px;
              margin: 0;
              font-size: 15px;
              font-weight: 600;
              line-height: 24px;
              color: #333b42;

              &:has(input:disabled) {
                color: #6b778c;
              }

              > input {
                all: unset;
                box-sizing: border-box;

                position: relative;
                display: inline-block;
                width: 20px;
                height: 20px;
                font-family: "Font Awesome 6 Free";
                font-size: 12px;
                font-weight: 900;
                color: #fff;
                border-radius: 4px;
                border: 1px solid #b4b9c1;
                background-color: #fff;

                /* Transitions */
                transition-property: border-color, background-color, color;
                transition-duration: 0.3s;

                &:checked {
                  border-color: #008a00;
                  background-color: #008a00;

                  &::after {
                    content: "\2713";
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                  }
                }

                &:disabled {
                  cursor: not-allowed;
                  opacity: 0.5;
                }
              }
            }

            p {
              margin: 0;
              font-size: 12px;
              line-height: 1.5;
              letter-spacing: 0.01em;
              color: #6b778c;
            }
          }
        }
      }
    }
  }
}

/* Common */
.cookie-banner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 20, 20, 0.4);
}

.cookie-banner-header {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 24px;

  @media only screen and (min-width: 768px) {
    flex-direction: row;
    gap: 60px;
  }

  > img {
    object-fit: contain;

    &.mobile-image {
      display: block;

      @media only screen and (min-width: 768px) {
        display: none;
      }
    }

    &.desktop-image {
      display: none;

      @media only screen and (min-width: 768px) {
        display: block;
      }
    }
  }

  .cookie-banner-header-content {
    display: flex;
    flex-direction: column;
    gap: 8px;

    > h3 {
      margin: 0;
      font-size: 16px;
      font-weight: 700;
      line-height: 1.5;
      letter-spacing: 0.02em;
      color: #152a49;

      @media only screen and (min-width: 768px) {
        font-size: 24px;
        line-height: 1.4;
        letter-spacing: 0.01em;
      }
    }

    > p {
      margin: 0;
      font-size: 12px;
      line-height: 1.5;
      letter-spacing: 0.01em;
      color: #6b778c;

      > button {
        font-weight: 600;
        text-decoration-line: underline;
        color: #152a49;
      }
    }
  }
}

.cookie-banner-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 16px;

  @media only screen and (min-width: 768px) {
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .btn {
    width: 100%;
  }
}
