/* New aloesmart bonus page */

#page-wr:has(.a-bonus-container) {
  padding-top: 0 !important;

  @media screen and (min-width: 1024px) {
    padding-top: 20px !important;
  }
}

.a-bonus-container {
  display: flex;
  flex-direction: column;
  width: calc(100% + 36px);
  margin-left: -18px;
  font-family: "RF Dewi";
  font-weight: 400;
  color: #4d6460;

  @media screen and (min-width: 360px) {
    position: relative;
  }
  @media screen and (min-width: 1024px) {
    width: calc(100% + 4rem);
    margin-left: -2rem;
  }
}

/* Atomic classes */

.aloe-hgroup {
  display: flex;
  flex-direction: column;
  gap: 17px;
  text-align: center;
  @media screen and (min-width: 1024px) {
    gap: 30px;
  }

  p {
    font-size: 14px;
    line-height: 21px;
    @media screen and (min-width: 1024px) {
      font-size: 20px;
      line-height: 148%;
    }
  }
}

.aloe-h1 {
  font-family: "SangBleu Sunrise Med";
  font-size: clamp(28px, 6vw, 38px);
  line-height: 107%;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #213d38;

  @media screen and (min-width: 1024px) {
    font-size: 62px;
    line-height: 93%;
    letter-spacing: 0;
  }
}

.aloe-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  border: 1px solid transparent;
  padding: 11px 17px 13px;
  font-family: "RF Dewi";
  font-size: 14px;
  line-height: 21px;
  font-weight: 600;
  text-align: center;
  border-radius: 16px;
  background-color: #3dc869;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.3s ease-in-out;
  cursor: pointer;

  &:hover,
  &:focus-visible {
    color: #fff;
    opacity: 0.8;
  }

  @media screen and (min-width: 1024px) {
    font-size: 16px;
    line-height: 24px;
  }
}
.aloe-button--lg {
  min-height: 64px;
  border-radius: 20px;
  padding: 18px 25px;
  font-size: 16px;
  line-height: 24px;
  @media screen and (min-width: 1024px) {
    min-height: 80px;
    border-radius: 32px;
    padding: 18px 61px;
    font-size: 18px;
    line-height: 27px;
    &.aloe-button--icon::after {
      width: 30px;
      height: 30px;
    }
  }
}
.aloe-button--full {
  width: 100%;
}
.aloe-button--outline {
  border-color: #213d38;
  background-color: transparent;
  color: #213d38;
  &:hover,
  &:focus-visible {
    color: #213d38;
  }
}
.aloe-button--white {
  background-color: #fff;
  color: #213d38;
  &:hover,
  &:focus-visible {
    color: #213d38;
  }
}
.aloe-button--icon {
  &::after {
    content: "";
    width: 24px;
    height: 24px;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    background-color: currentColor;
  }
}
.aloe-button--tg::after {
  mask-image: url("../img/tg-icon.svg");
}
.aloe-button--apple::after {
  mask-image: url("../img/apple-icon.svg");
}
.aloe-button--gplay::after {
  mask-image: url("../img/gplay-icon.svg");
}

/* Hero section */

.a-bonus-hero {
  position: relative;
  display: flex;
  justify-content: center;
  border-radius: 40px;
  padding: 44px 24px;
  background-color: #cbe9ff;

  @media screen and (min-width: 1024px) {
    justify-content: flex-start;
    min-height: 424px;
    padding: 0 56px;
    background-color: transparent;
    &::before,
    &::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      z-index: -1;
      width: 77.4%;
      height: 77.8%;
      border-radius: 64px;
      background-color: #cbe9ff;
    }
    &::after {
      left: unset;
      right: 0;
      width: 25.2%;
      height: 41.7%;
    }
  }
}

.a-bonus-hero__content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 460px;

  @media screen and (min-width: 1024px) {
    display: grid;
    grid-template-columns: 49.1% auto;
    grid-template-rows: auto 1fr;
    column-gap: 77px;
    row-gap: 39px;
    max-width: 1445px;
    margin: 0 auto;
    padding-right: 83px;
    &::before,
    &::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      z-index: -1;
      width: 25.2%;
      height: 31%;
      border-radius: 64px;
      background-color: #cbe9ff;
    }
    &::after {
      left: unset;
      right: 0;
      width: 77.4%;
      height: 67%;
    }
  }

  .aloe-h1 {
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
    letter-spacing: 0;

    @media screen and (min-width: 1024px) {
      max-width: initial;
      margin-top: 5.6rem;
      font-size: clamp(40px, 3.33vw, 62px);
      line-height: 107%;
      text-align: left;
    }
  }
}

.a-bonus-hero__cover {
  display: flex;
  justify-content: center;

  @media screen and (min-width: 1024px) {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    height: fit-content;
    padding: 6px 0 6px;
  }

  img {
    aspect-ratio: 312/231;
    width: 100%;

    @media screen and (min-width: 1024px) {
      aspect-ratio: 557/413;
    }
  }
}

.a-bonus-hero__controls {
  display: flex;
  flex-direction: column;
  gap: 12px;

  @media screen and (min-width: 1024px) {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 20px;
    height: fit-content;
  }

  .aloe-button {
    @media screen and (min-width: 1024px) {
      flex-grow: 1;
      flex-shrink: 0;
      min-width: 211px;
    }
  }
}

/* Badges section */

.a-bonus-badge-section {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 51px;
  padding: 0 23px 0 24px;
  width: 100%;
  max-width: 600px;
  margin: 51px auto 0;
  @media screen and (min-width: 1024px) {
    gap: 30px;
    max-width: 1024px;
    margin: 113px auto 0;
    padding: 0 17px 88px 5.9%;
  }

  &::before,
  &::after {
    content: "";
    position: absolute;
    top: 34px;
    left: 12px;
    width: 23px;
    height: 25px;
    background-image: url("../img/star-decor.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    @media screen and (min-width: 1024px) {
      top: 99px;
      left: 199px;
    }
  }
  &::after {
    left: unset;
    top: 103px;
    right: 7px;
    width: 32px;
    height: 35px;
    @media screen and (min-width: 1024px) {
      top: 287px;
      right: -36px;
      width: 20px;
      height: 22px;
    }
  }

  .aloe-h1 {
    @media screen and (min-width: 1024px) {
      padding-left: 15px;
    }
  }
}

@media screen and (min-width: 1024px) {
  .a-bonus-badge-section::before,
  .a-bonus-badge-section::after {
    top: 99px;
    left: 199px;
  }
  .a-bonus-badge-section::after {
    top: 287px;
    left: unset;
    right: -36px;
    width: 20px;
    height: 22px;
  }
}

.a-bonus-badges {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 7px;
  row-gap: 10px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  @media screen and (min-width: 1024px) {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 25px;
    max-width: 921px;
  }

  &::before,
  &::after {
    position: absolute;
    top: -21px;
    left: -85px;
    width: 32px;
    height: 35px;
    background-image: url("../img/star-decor.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
  }
  &::after {
    top: unset;
    right: 240px;
    bottom: -85px;
    left: unset;
    width: 37px;
    height: 39px;
  }
}

@media screen and (min-width: 1024px) {
  .a-bonus-badges::before,
  .a-bonus-badges::after {
    content: "";
  }
}

.a-bonus-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  aspect-ratio: 153 / 226;
  width: 100%;
  mask-image: url("../img/badge-bg.svg");
  mask-size: contain;
  mask-repeat: no-repeat;
  background-color: #eaecdf;
  color: #000;

  @media screen and (min-width: 1024px) {
    aspect-ratio: 210 / 312;
  }

  &.a-bonus-badge--light {
    background-color: #bff6ab;
  }
  &.a-bonus-badge--medium {
    background-color: #3cd169;
  }
  &.a-bonus-badge--ultra {
    background-color: #1a5632;
    color: #fff;
    .a-bonus-badge__nums {
      color: #fff;
    }
  }
}

.a-bonus-badge__top {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  height: 70%;
  padding-top: 5px;
  font-size: clamp(15px, 4.1vw, 20px);
  line-height: 148%;
}

.a-bonus-badge__nums {
  display: block;
  height: fit-content;
  font-family: "SangBleu Sunrise";
  font-size: clamp(62px, 17vw, 86px);
  line-height: 107%;
  letter-spacing: -0.01em;
  text-align: center;
  color: #213d38;
  small {
    font-size: 0.5em;
    line-height: 0;
  }
}

.a-bonus-badge__bottom {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 30%;
  padding-bottom: 16%;
  font-size: clamp(15px, 4.1vw, 20px);
  line-height: 148%;
  font-weight: 600;
}

/* Account section */

.a-bonus-account {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 47px;
  border-radius: 36px;
  padding: 30px 24px;
  background-color: #bff6ab;
  color: #213d38;

  @media screen and (min-width: 1024px) {
    align-items: flex-start;
    width: 100%;
    max-width: 1328px;
    margin: 48px auto 0;
    border-radius: 64px;
    padding: 58px 56px;
    transform: translateX(-2px);
  }
}

.a-bonus-account__wrapper {
  display: flex;
  flex-direction: column;
  max-width: 460px;
  @media screen and (min-width: 1024px) {
    display: grid;
    grid-template-columns: 1fr 31.1%;
    column-gap: 16px;
    width: 100%;
    max-width: 1173px;
  }
}

.a-bonus-account__hgroup {
  display: flex;
  flex-direction: column;
  gap: 24px;

  @media screen and (min-width: 1024px) {
    gap: 32px;
  }

  .aloe-h1 {
    font-size: clamp(28px, 6vw, 38px);
    line-height: 135%;
    @media screen and (min-width: 1024px) {
      font-size: 62px;
      line-height: 93%;
    }
  }
  p {
    font-size: 15px;
    line-height: 148%;
    font-weight: 600;
    @media screen and (min-width: 1024px) {
      font-size: 24px;
      line-height: 148%;
    }
  }
}

.a-bonus-account__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 30px;

  @media screen and (min-width: 1024px) {
    columns: 2;
    gap: 21px;
    display: block;
    margin-top: 34px;
    margin-right: -33px;
  }

  li {
    position: relative;
    padding-top: 2px;
    padding-left: 32px;
    min-height: 23px;
    font-size: 14px;
    line-height: 148%;
    @media screen and (min-width: 1024px) {
      margin-bottom: 18px;
      font-size: 16px;
      line-height: 24px;
    }

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: -1px;
      width: 22px;
      height: 23px;
      mask-image: url("../img/star-decor.svg");
      mask-repeat: no-repeat;
      mask-position: center;
      mask-size: contain;
      background-color: #3dd269;
      @media screen and (min-width: 1024px) {
        top: 3px;
      }
    }
  }
}

.a-bonus-account__cover {
  margin-top: 26px;

  @media screen and (min-width: 1024px) {
    grid-column: 2;
    grid-row: 1 / 4;
    margin: auto 0;
    transform: translateY(9px);
  }

  img {
    aspect-ratio: 312 / 264;
    width: 100%;
  }
}

.a-bonus-account__button {
  margin: 34px auto 0;
  @media screen and (min-width: 1024px) {
    margin-top: 40px;
    margin-left: 0;
  }
}

/* How it works */

.a-bonus-how {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 27px;
  width: 100%;
  margin: 54px auto 0;
  border-radius: 36px;
  padding-right: 25px;
  padding-bottom: 59px;
  padding-left: 24px;
  background-color: #fff;
  @media screen and (min-width: 1024px) {
    gap: 84px;
    margin: 102px auto 0;
    border-radius: 64px;
    padding-bottom: 136px;
  }
}

.a-bonus-how__title {
  max-width: 80%;
  text-align: center;
}

.a-bonus-how__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 14px;
  row-gap: 15px;
  max-width: 460px;
  @media screen and (min-width: 1024px) {
    row-gap: 77px;
    max-width: 1132px;
    padding-right: 25px;
    padding-left: 24px;
  }
}

.a-bonus-how-item {
  display: flex;
  flex-direction: column;
  @media screen and (min-width: 1024px) {
    display: grid;
    grid-template-columns: 92px 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 5px;
  }
}

.a-bonus-how-item__icon {
  @media screen and (min-width: 1024px) {
    grid-row: 1 / 3;
    padding-top: 7px;
    img {
      width: 92px;
      height: 92px !important;
    }
  }
}

.a-bonus-how-item__title {
  margin-top: 3px;
  font-family: "SangBleu Sunrise";
  font-size: clamp(18px, 5vw, 24px);
  line-height: 107%;
  letter-spacing: -0.02em;
  color: #213d38;
  @media screen and (min-width: 1024px) {
    font-size: 28px;
  }
}

.a-bonus-how-item__text {
  margin-top: 8px;
  font-size: clamp(13px, 3.6vw, 16px);
  line-height: 148%;
  @media screen and (min-width: 1024px) {
    margin-top: 11px;
    font-size: 18px;
  }
  @media screen and (min-width: 1300px) {
    max-width: 90%;
  }
}

/* In your phone */

.a-bonus-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -120px;
  border-radius: 36px;
  padding-top: 168px;
  padding-right: 23px;
  padding-bottom: 36px;
  padding-left: 23px;
  background-color: #ffefc3;
  @media screen and (min-width: 1024px) {
    border-radius: 64px;
    padding-top: 164px;
    padding-bottom: 34px;
  }
}

.a-bonus-phone__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  @media screen and (min-width: 1024px) {
    display: grid;
    grid-template-columns: 568px auto;
    grid-template-rows: repeat(2, auto) 1fr;
    align-items: flex-start;
    column-gap: 97px;
    max-width: 1073px;
  }
}

.a-bonus-phone__title {
  max-width: 90%;
  margin-bottom: 11px;
  text-align: center;
  @media screen and (min-width: 421px) {
    max-width: initial;
  }
  @media screen and (min-width: 1024px) {
    margin-top: 17.8%;
    text-align: left;
    letter-spacing: -0.01em;
  }
}

.a-bonus-phone__cover {
  transform: translateX(21px);

  @media screen and (min-width: 500px) {
    margin: 15px 0 10px;
    transform: translateX(50px);
  }
  @media screen and (min-width: 1024px) {
    grid-column: 2;
    grid-row: 1 / 4;
    margin: 0;
    transform: none;
  }

  img {
    aspect-ratio: 298 / 389;
    width: 299px;
    @media screen and (min-width: 1024px) {
      aspect-ratio: 408 / 552;
      width: 100%;
      max-width: 408px;
    }
  }
}

.a-bonus-phone__text {
  max-width: 460px;
  margin-top: 15px;
  font-size: clamp(14px, 3.6vw, 18px);
  line-height: 148%;
  text-align: center;
  @media screen and (min-width: 1024px) {
    margin-top: 38px;
    font-size: 20px;
    text-align: left;
  }
}

.a-bonus-phone__controls {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  max-width: 460px;
  margin-top: 16px;
  @media screen and (min-width: 1024px) {
    gap: 12px;
    margin-top: 39px;
    max-width: 491px;
  }
}

.a-bonus-phone__button {
  flex-grow: 1;
  padding: 18px 16px;
}

/* Discounts section */

.a-bonus-discounts-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 49px 24px 0;
  @media screen and (min-width: 1024px) {
    gap: 72px;
    padding-top: 107px;
  }
}

.a-bonus-discounts-section__title {
  max-width: 80%;
  text-align: center;
  @media screen and (min-width: 1024px) {
    max-width: 960px;
  }
}

.a-bonus-discounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 460px;
  @media screen and (min-width: 1024px) {
    max-width: 600px;
  }
  @media screen and (min-width: 1300px) {
    display: flex;
    gap: 10px;
    max-width: 1380px;
  }
}

.a-bonus-discount {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  min-height: 178px;
  height: auto;
  border-radius: 24px;
  padding: 14px 20px 23px;
  background-color: #f8f8fd;

  @media screen and (min-width: 1024px) {
    flex-shrink: 1;
    flex-basis: 50%;
    min-height: 252px;
    padding: 29px 30px 23px;
  }
  @media screen and (min-width: 1300px) {
    &:first-child {
      order: -2;
    }
  }

  &.a-bonus-discount--span {
    grid-column: 1 / span 2;
    .a-bonus-discount__icons {
      margin-right: -4px;
      img {
        transform: translateY(-2px);
      }
    }
  }
  &.a-bonus-discount--wide {
    @media screen and (min-width: 1024px) {
      .a-bonus-discount__icons {
        margin-right: -10px;
      }
    }
    @media screen and (min-width: 1300px) {
      &:nth-child(3) {
        order: -1;
      }
      flex-basis: 77%;
    }
  }

  &::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 24px;
    height: 12px;
    background-image: url("../img/bonus-discount-decor.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translateX(-50%);
  }
  &:nth-child(3) {
    &::after {
      display: none;
    }
  }
  &:nth-child(4),
  &:nth-child(5) {
    &::after {
      top: -10px;
      bottom: unset;
    }
  }
}

@media screen and (min-width: 1300px) {
  .a-bonus-discount::after {
    top: 50%;
    right: -20px;
    bottom: unset;
    left: unset;
    width: 30px;
    height: 20px;
    transform: translateY(-50%) rotate(90deg);
  }
  .a-bonus-discount:nth-child(3)::after {
    display: block;
  }
  .a-bonus-discount:nth-child(4)::after,
  .a-bonus-discount:nth-child(5)::after {
    top: 50%;
  }
  .a-bonus-discount:last-child::after {
    display: none;
  }
}

.a-bonus-discount__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  @media screen and (min-width: 1024px) {
    min-height: 58px;
  }
}

.a-bonus-discount__nums {
  font-family: "SangBleu Sunrise Med";
  font-size: clamp(28px, 7.5vw, 34px);
  line-height: 104%;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #3dc869;
  @media screen and (min-width: 1024px) {
    font-size: 48px;
    line-height: 108%;
  }
}

.a-bonus-discount__icons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-right: -7px;

  @media screen and (min-width: 1024px) {
    gap: 16px;
    margin-right: -14px;
  }

  &.a-bonus-discount__icons--hidden-mobile {
    display: none;
    @media screen and (min-width: 1024px) {
      display: flex;
    }
  }

  img._hidden-mobile {
    display: none;
    @media screen and (min-width: 1024px) {
      display: block;
      & + img {
        display: none;
      }
    }
  }

  img {
    @media screen and (min-width: 1024px) {
      width: 58px;
      height: 58px;
    }
  }
}

.a-bonus-discount__text {
  margin-top: 28px;
  font-size: clamp(13px, 3.4vw, 16px);
  line-height: 148%;
  color: rgba(33, 61, 56, 0.8);

  @media screen and (min-width: 1024px) {
    margin-top: 45px;
  }

  &.a-bonus-discount__text--wide {
    width: calc(100% + 13px);
  }
  &.a-bonus-discount__text--narrow {
    width: 80%;
    @media screen and (min-width: 1024px) {
      width: calc(100% + 13px);
    }
  }

  a {
    color: #3dc869;
    &:hover,
    &:focus-visible {
      text-decoration: underline;
    }
  }
}

.a-bonus-discount__controls {
  margin-top: 11px;
  @media screen and (min-width: 1024px) {
    margin-top: 15px;
  }
}

.a-bonus-discount__link {
  font-size: clamp(13px, 3.4vw, 16px);
  line-height: 148%;
  font-weight: 600;
  text-decoration: underline;
  color: #213d38;
  &:hover,
  &:focus-visible {
    text-decoration: none;
  }
}
