aside#cookies {
  a {
    text-decoration: none;
    color: #3CA091;
  }
  position: fixed;
  background-color: rgba(33, 33, 33, 0.46);
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 10000;

  > section#basic {
    display: flex;
    justify-content: space-between;
    max-width: 656px;
    border-radius: 20px;
    background-color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: relative;
    overflow: hidden;
    padding: 32px 0 32px 32px;

    @media only screen and (max-width: 767px) {
      padding: 16px;
      max-width: 320px;
    }

    > main {
      max-width: 349px;

      @media only screen and (max-width: 767px) {
        max-width: 100%;
      }

      > header {
        position: relative;

        &:after {
          background: url('../../assets/banner-title-underlines-small.svg');
          content: "";
          height: 19px;
          left: 74px;
          position: absolute;
          top: 21px;
          width: 172px;
        }
      }

      > main {
        margin-top: 32px;
        line-height: 24px;

        strong {
          text-decoration: underline;
        }
      }

      > footer {
        display: flex;
        justify-content: space-between;
        margin-top: 24px;

        @media screen and (max-width: 767px) {
          flex-wrap: wrap;
        }

        .cookie-accept-all {
          @media screen and (max-width: 767px) {
            flex: 1 0 100%;
          }
        }

        .cookie-accept-mandatory, .cookie-settings {
          margin-left: 8px;
          margin-top: 0;

          @media screen and (max-width: 767px) {
            flex: 0 0 46%;
            margin-top: 8px;
            margin-left: 0;
          }
          @media screen and (max-width: 301px) {
            flex: 0 0 100%;
          }
        }
      }
    }

    > aside {
      max-width: 254px;
      margin-left: -40px !important;
      margin-top: -24px !important;

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

      > img {
        max-width: 100%;
        border: 0;
      }
    }
  }

  button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: none;
    padding: 0 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    height: 48px;

    &.primary {
      box-shadow: 0 4px 20px -5px var(--primary) !important;
      background-color: var(--primary);
      color: #fff;
    }

    &.secondary {
      background-color: var(--background-secondary);
      color: var(--primary);
    }
  }
}
#cookies section#settings {
  display: none;
  position: fixed;
  z-index: 10003;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
}
#cookie-policy-settings-save {
  color: #3CA091;
  background-color: #ecf1f6;
}
#cookie-policy-settings-all {
  background-color: #3CA091;
  color: #ecf1f6;
}

.cookie-policy-settings {
  background-color: white;
  max-width: 800px;
  max-height: 90%;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  display: flex;
  flex-direction: column;

  @media only screen and (max-width: 767px) {
    max-height: 100%;
    max-width: 100%;
    border-radius: 0;
  }
}

.cookie-policy-settings-header {
  padding: 40px 40px 16px;
  border-bottom: 1.5px solid #e0e9f0;
  display: flex;
  justify-content: space-between;
  align-items: center;

  @media only screen and (max-width: 767px) {
    padding: 16px;
  }
}

.cookie-policy-settings-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 2rem;

  &.cookie-policy-settings-title-legal {
    display: flex;
    align-items: center;
    width: 100%;
    flex-grow: 1;
    text-align: center;
    padding-right: 72px;
  }
}

.cookie-policy-settings-title-arrow {
  display: none;
  width: 48px;
  height: 48px;
  background-color: #f4f7fa;
  border-radius: 100%;
  position: relative;
  text-align: center;
  cursor: pointer;

  &:hover {
    background-color: #e0e9f0;
  }

  &:active {
    background-color: #cedae4;
  }

  img {
    min-width: 24px;
    min-height: 24px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
  }
}

.cookie-policy-settings-content {
  padding: 8px 40px 8px;
  overflow-y: auto;

  @media only screen and (max-width: 767px) {
    padding-right: 16px;
    padding-left: 16px;
  }
}

.cookie-policy-settings-options {
  margin-top: 16px;
}

.cookie-policy-settings-option {
  .cookie-policy-settings-option-header {
    display: flex;
    align-items: center;
    padding: 16px 0;
    #accept-technical-cookie{
      background-color: #FAF8F8;
    }

    .cookie-policy-settings-option-buttons {
      height: 48px;
      background-color: #DCDCDC;
      padding: 0;
      display: inline-flex;
      border-radius: 12px;

      button {
        height: 42px;
        width: 42px;
        border-radius: 10px;
        border: none;

        img {
          font-size: 24px;
          color: #62717b;
        }

        &[data-selected="false"] {
          background-color: transparent;
        }

        &[data-selected="true"] {
          background-color: #FAF8F8;

          &[data-value="false"] img {
            color: #c80000;
          }

          &[data-value="true"] img {
            color: #2da771;
          }
        }

        &:first-child {
          margin-right: 1.5px;
        }

        &:last-child {
          margin-left: 1.5px;
        }
      }

      &[data-disabled="true"] button {
        pointer-events: none;
        background-color: rgba(98, 113, 123, 0.3);

        i {
          color: #62717b !important;
        }
      }
    }

    .cookie-policy-settings-option-title {
      margin-left: 24px;
      font-size: 16px;
      font-weight: 600;
      flex-grow: 1;
    }

    .cookie-policy-settings-option-chevron {
      font-size: 12px;
      padding: 12px;
      border-radius: 50%;
      background-color: rgba(223, 232, 240, 0.3);
      transition: transform 0.5s;

      &.description-open {
        transform: rotate(180deg);
      }
    }
  }

  .cookie-policy-settings-option-description {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;

    &[data-visible="false"] {
      max-height: 0;
    }

    &[data-visible="true"] {
      max-height: 500px;
    }
  }
}

.cookie-policy-settings-actions {
  padding: 24px 40px 40px;
  border-top: 1.5px solid #e0e9f0;
  display: flex;
  justify-content: end;

  @media only screen and (max-width: 767px) {
    padding: 16px;
  }

  @media only screen and (max-width: 575px) {
    flex-direction: column;
  }

  button {
    &:not(:first-child) {
      margin-left: 16px;

      @media only screen and (max-width: 575px) {
        margin-left: 0;
        margin-bottom: 16px;
        order: -1;
      }
    }
  }
}

