.hide {
  display: none;
}

.container {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: #201f1feb;
  @include flex-align(center, center);
}

.modalContent {
  background-color: white;
  box-shadow: 0px 8px 8px -4px rgba(27, 27, 28, 0.02), 0px 20px 24px -4px rgba(27, 27, 28, 0.05);
  padding: var(--cookieModal-mobile-padding, 1.6rem 1.6rem 3.2rem);
  max-width: 63.4rem;
  margin: 0 auto;
  height: 100vh;
  overflow-y: scroll;
  border-radius: 0.8rem;


  @include min(tablet) {
    height: auto;
  }

  .modalCookieHeader {
    display: flex;
    position: relative;
    padding-bottom: 1.6rem;
    border-bottom: 1.5px solid #dedede;

    > img {
      width: var(--cookieModal-mobile-img-width, 12.1rem);
      height: var(--cookieModal-mobile-img-height, 3.2rem);
    }

    > button {
      position: absolute;
      right: 2px;
      top: 2px;

      > svg {
        fill: #64646d;
        color: #64646d;
      }
    }
  }

  .modalTextHeader {
    margin-top: 1.6rem;
    margin-bottom: 1.6rem;

    span {
      font-size: var(--cookieModal-mobile-privacy-size, 1.6rem);
      font-weight: var(--cookieModal-mobile-privacy-weight, 700);
      line-height: var(--cookieModal-mobile-privacy-Lineheight, 2.7rem);
      color: var(--cookieModal-mobile-privacy-color, #1c1a28);
    }
    p {
      font-weight: 400;
      font-size: var(--cookieModal-mobile-privacy-text-size, 1.4rem);
      line-height: var(--cookieModal-mobile-privacy-text-Lineheight, 2.2rem);
      color: var(--cookieModal-mobile-privacy-text-color, #515156);
      margin-top: var(--cookieModal-mobile-privacy-text-margin-top, 1.6rem);
    }
  }

  .cookieLink {
    margin: 0px 3px;
    color: var(--cookieModal-cookieLink-color, #165af8);
    font-weight: var(--cookieModal-cookieLink-weight, 600);
    text-decoration: var(--cookieModal-cookieLink-underline, underline);
  }

  .modalButtons {
    display: flex;
    flex-direction: column;
    padding: var(--cookieModal-button-padding, 0rem);
    gap: var(--cookieModal-button-gap, 0.8rem);

    a {
      font-size: 1.4rem;
      line-height: 1.8rem;
      font-weight: 700;
      &:last-child {
        border-radius: 0.8rem;
        background-color: #fff;
        color: #1b1b1c;
        border: 1.5px solid #1b1b1c;

        &:hover {
          // background: none;
        }
      }
    }
  }

  .mainBox {
    padding-top: 1.4rem;

    .mainTitle {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-weight: var(--cookieModal-mainTitle-weight, 700);
      font-size: var(--cookieModal-mainTitle-size, 1.6rem);
      line-height: var(--cookieModal-mainTitle-lineHeight, 2.7rem);
      margin-bottom: var(--cookieModal-mainTitle-margin-bottom, 1.6rem);
      color: var(--cookieModal-mainTitle-color, #1b1b1c);

      @include min(tablet) {
        font-size: var(--cookieModal-desktop-mainTitle-size, 1.6rem);
        line-height: var(--cookieModal-desktop-mainTitle-lineHeight, 2.7rem);
      }
    }
  }

  .menageArrow {
    transform: rotate(180deg);
  }

  .lastButton {
    padding-top: 1.6rem;

    > a {
      width: 100%;
      font-size: 1.4rem;
      line-height: 1.8rem;
      font-weight: 700;
      color: #1c1a28;
      padding: 0.8rem 1.6rem;
    }
  }

  @include min(tablet) {
    // border-radius: 1.6rem;
    padding: var(--cookieModal-desktop-padding, 2.4rem);
    overflow-y: scroll;
    max-height: 98vh;
    &::-webkit-scrollbar {
      width: 3px;
    }
    &::-webkit-scrollbar-track {
      background: transparent;
    }
    &::-webkit-scrollbar-thumb {
      background: #888;
      border-radius: 10px;
    }
    &::-webkit-scrollbar-thumb:hover {
      background: #555;
    }
    .modalCookieHeader {
      justify-content: center;
      padding-bottom: 2.4rem;
      border: none;
      > img {
        width: var(--cookieModal-desktop-img-width, 15.1rem);
        height: var(--cookieModal-desktop-img-height, 4rem);
      }
      > button {
        right: -16px;
        top: -16px;
      }
    }
    .modalTextHeader {
      margin-top: 0px;
      margin-bottom: 0px;
      font-size: var(--cookieModal-privacy-size, 1.6rem);

      > span {
        font-size: var(--cookieModal-desktop-privacy-size, 1.6rem);
        line-height: var(--cookieModal-desktop-privacy-Lineheight, 2.7rem);
      }
    }
    .modalButtons {
      flex-direction: row;
      padding: var(--cookieModal-desktop-button-padding, 1.6rem 0px);
      gap: var(--cookieModal-desktop-button-gap, 0.8rem);

      a {
        font-size: 2rem;
        line-height: 2rem;
        
        min-height: 6rem;
        margin-bottom: 0px;
      }
    }
    .mainBox {
      padding-top: 8px;
    }
    .lastButton {
      padding-bottom: 0rem;
      > a {
        width: auto;
        font-size: 2rem;
        line-height: 2rem;
        min-height: 6rem;
      }
    }
  }
}
