.parentContainer {
  max-width: var(--main-container-max, 96rem);
  margin: 0 1.6rem;
  border: 1.5px solid #e9e9e9;
  background-color: #ffffff;
  padding: 1.6rem;
  border-radius: 1.6rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  position: relative;

  @include min(tablet) {
    padding: 0rem;
    margin-top: var(--payment-template-one-margin-top-desktop, 1.6rem);
    margin-bottom: var(--payment-template-one-margin-bottom-desktop, 1.6rem);
  }

  @include min(laptop) {
    margin: 0 auto;
  }
}

.templateThreeParentContainer {
  padding: 2.4rem;

  @include min(tablet) {
    margin-top: 1.6rem;
  }
}

.container {
  > ul {
    padding-top: 1.6rem;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 0.8rem;

    > li > p:nth-child(2) {
      font-weight: 700;
      font-size: 1.6rem;
      line-height: 2.7rem;
      color: #33313d;
    }

    @include min(tablet) {
      padding: 2.4rem;
      grid-gap: 1.6rem;
    }
  }
}

.topSection {
  display: flex;
  flex-direction: column;

  > img {
    position: absolute;
    top: -1.8rem;
    left: 1.6rem;
    width: 9.6rem;
    min-width: 9.6rem;
    height: 9.6rem;
    border-radius: 1.6rem;
    border: 1px solid #e9e9e9;
    background-color: #ffffff;

    @include min(tablet) {
      width: 17.9rem;
      min-width: 17.9rem;
      height: 17.9rem;
      position: static;
    }
  }

  @include min(tablet) {
    padding: 2.4rem 2.4rem 0rem;
    flex-direction: row;
  }
}

.topContent {
  margin-top: 7.8rem;

  > div:nth-child(2) {
    display: none;
    width: fit-content;
    color: #1c1a28;
    padding: 0.4rem 0.8rem;
    background: #fbfbfb;
    border: 1.5px solid #e9e9e9;
    border-radius: 10rem;
    font-weight: 700;
    font-size: 2rem;
    line-height: 3rem;

    > span {
      font-size: 1.8rem;
      line-height: 2.8rem;
    }

    @include min(tablet) {
      display: flex;
      align-items: center;
      margin-top: 1.6rem;
    }
  }

  @include min(tablet) {
    margin-top: 4rem;
    min-height: 10rem;
    margin-left: 4.8rem;
  }
}

.name {
  display: flex;

  > h1 {
    margin: 0;
    font-weight: 700;
    font-size: 2.4rem;
    line-height: 3.4rem;
    color: #1c1a28;

    @include min(tablet) {
      font-size: 3.2rem;
      line-height: 4.2rem;
    }
  }

  > svg {
    width: 1.6rem;
    height: 1.6rem;
    margin-left: 0.4rem;

    @include min(tablet) {
      width: 2.4rem;
      height: 2.4rem;
      margin-left: 0.8rem;
    }
  }
}

.desc {
  padding-top: 1.6rem;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 2.7rem;
  color: #3e3c47;

  @include min(tablet) {
    padding: 1.6rem 2.4rem 0rem;
  }
}

.ratingInactive {
  background-color: #fbfbfb !important;
  color: #6b6a72 !important;
  font-weight: 700;
  font-size: 2rem !important;
  line-height: 3rem !important;

  > svg {
    margin-right: 6.32px;
    color: var(--icons-rating-color, #ffdb20);
  }

  > span {
    margin-top: -0.3rem;
  }
}

.cta:not(:empty) {
  margin-top: 1.6rem;

  > div {
    > a > svg {
      display: none;
      @include min(tablet) {
        display: inline-flex;
      }
    }
  }

  @include min(tablet) {
    margin-top: 2.4rem;
  }
}

.templateOneCta {
  > div {
    grid-template-columns: 1fr;
    margin-top: 2.4rem;
    padding: 1.6rem;
    background-color: #f6f6f6;
    border: 1px solid #e9e9e9;
    border-radius: 12px;

    > img {
      display: none;
    }

    > div {
      flex-direction: column;

      > span {
        font-weight: 700;
        font-size: 1.6rem;
        line-height: 2.4rem;
        color: #5545a9;
        display: block;
        padding-bottom: 0.8rem;
      }

      > div > span {
        color: #1c1a28;
        font-weight: 500;
        font-size: 1.6rem;
        line-height: 2.7rem;
      }
    }

    > a {
      width: 100%;
      font-weight: 700;
      font-size: 1.8rem;
      line-height: 2rem;
      padding: 2rem;
      border-radius: 1.2rem;

      @include min(tablet) {
        padding: 2.2rem 2.4rem;
      }
    }

    @include min(tablet) {
      margin-top: 0rem;
      padding: 1.6rem 2.4rem;
      background-color: #1c1a28;
      border-radius: 0px 0px 1.6rem 1.6rem;
      grid-template-columns: 0.1fr 1fr auto;

      > img {
        display: block;
      }

      > a > svg {
        display: none;
        @include min(tablet) {
          display: inline-flex;
        }
      }

      > div {
        > span {
          font-weight: 700;
          font-size: 1.6rem;
          line-height: 2.4rem;
          color: #5ce482;
          text-transform: uppercase;
        }

        > div > span {
          font-weight: 700;
          font-size: 1.6rem;
          line-height: 2.7rem;
          color: #ffffff;
        }
      }
    }
  }
}

.templateThreeContainer {
  > ul {
    padding: 1.6rem 0rem 0rem;

    @include min(tablet) {
      padding: 3.8rem 0rem 0rem;
    }
  }
}

.templateThreeTopSection {
  padding-bottom: 0rem;

  > img {
    position: absolute;

    @include min(tablet) {
      top: -2.4rem;
      left: 2.4rem;
    }
  }

  @include min(tablet) {
    padding: 0rem;
  }
}

.templateThreeTopContent {
  margin-top: 7rem;
  @include min(tablet) {
    margin-top: 3.3rem;
    min-height: 10rem;
    margin-left: 23.5rem;
  }
}

.contReadText {
  font-weight: 600;
  text-decoration: underline;
}
