.background {
  background: linear-gradient(16.92deg, #f9f6e7 -4.7%, #ffffff 52.33%, #dddaee 110.01%);
  margin: var(--operator-template-five-margin-mobile-container, 0rem);

  @include min(tablet) {
    background: linear-gradient(98.12deg, #f9f6e7 0%, #ffffff 50.23%, #dddaee 100%);
    margin-top: var(--operator-template-five-margin-top-desktop-container, 0rem);
    margin-bottom: var(--operator-template-five-margin-bottom-desktop-container, 0rem);
  }
}

.container {
  display: grid;
  padding: 4rem 1.6rem;

  margin: var(--operator-template-five-margin-mobile, 1.6rem);

  @include min(tablet) {
    margin: 0 auto;
    max-width: 1620px;

    grid-template-columns: 24rem;
  }

  @include min(laptop) {
    padding: 5rem 3rem;
    margin-top: var(--operator-template-five-margin-top-desktop, 0rem);
    margin-bottom: var(--operator-template-five-margin-bottom-desktop, 0rem);
  }

  @include min(desktop) {
    padding: 5rem 12rem;
  }
}

.topSection {
  grid-column: 1/2;

  > a {
    display: flex;
    justify-content: center;

    > img {
      width: 11.6rem;
      height: 11.6rem;
      background-color: white;
      border: 1.5px solid #e9e9e9;
      border-radius: 16px;

      @include min(tablet) {
        width: 20.8rem;
        height: 20.8rem;
      }
    }
  }

  @include min(tablet) {
    padding: 1.6rem;
    background-color: white;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.05);
  }
}

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

  @include min(tablet) {
    margin-top: -5.5rem;
    display: grid;
    grid-template-rows: min-content;
    grid-row: 2/5;
    grid-column: 2/4;
    margin-left: 4.8rem;
  }
}

.operatorBanner {
  grid-row: 3;

  > div {
    padding: 0;
    gap: 2.4rem;
    grid-template-columns: 1fr;
    background-color: #ffffff;

    > img {
      display: none;
    }

    > div {
      text-align: center;
      box-shadow: none;

      > div {
        flex-direction: column;
        border-radius: 16px;

        > a {
            width: 100% !important;
          > span {
            font-weight: 700;
            font-size: 16px;
            line-height: 24px;
            color: #1c1a28 !important;
            text-transform: capitalize;
            display: block;
            width: auto;
            text-align: center !important;

            @include min(tablet) {
              font-size: 18px;
              line-height: 28px;
            }
          }

          > p {
            color: #1c1a28;
            text-align: center !important;
          }
        }
      }
    }

    > a {
      width: 100%;
      font-size: 18px;
      line-height: 20px;
      border-radius: 12px;
      padding: 22px 24px;
    }

    @include min(tablet) {
      border: none;
      padding-top: 0rem;
    }
  }

  @include min(tablet) {
    grid-row: 2;
    grid-column: 1/2;
    background-color: white;
    padding: 1.6rem;
    padding-top: 0rem;
    border-bottom-left-radius: 1.6rem;
    border-bottom-right-radius: 1.6rem;
    box-shadow: 2px 2px 7px rgb(0 0 0 / 5%);
  }
}

.name {
  display: flex;
  justify-content: center;
  padding-top: 1.6rem;
  padding-bottom: 0.8rem;

  > h1 {
    margin: 0;
    font-weight: 700;
    font-size: 24px;
    line-height: 34px;
    color: #1c1a28;
    text-transform: capitalize;
    text-align: center;

    @include min(tablet) {
      font-size: 32px;
      line-height: 42px;
      text-align: unset;
    }
  }

  > img {
    margin-left: 0.8rem;
    color: #165af8;
    flex: none;
    width: 1.6rem;
    height: 1.6rem;
    margin-left: 4px;

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

  @include min(tablet) {
    justify-content: unset;
    padding-top: 0rem;
    padding-bottom: 1.6rem;
  }
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;

  > div:last-child {
    display: flex;
    align-items: center;
    width: fit-content;
    font-weight: 700;
    font-size: 18px;
    line-height: 28px;
    border-radius: 100px;
    border: 1px solid #e9e9e9;
    margin-bottom: 1.6rem;
    padding: 4px 8px;

    > svg {
      width: 18.35px;
      height: 17.49px;
      margin-right: 5.82px;
    }

    > span {
      font-size: 1.6rem;
      line-height: 2.7rem;

      @include min(tablet) {
        font-weight: 800;
        font-size: 18px;
        line-height: 28px;
      }
    }

    @include min(tablet) {
      padding: 4px 8px;
      font-weight: 800;
      background: #fbfbfb;
      margin-bottom: 0rem;
    }
  }

  @include min(tablet) {
    align-items: start;
    grid-row: 1;
    grid-column: 2/4;
    margin-top: 5rem;
    margin-left: 4.8rem;
    margin-bottom: 2.4rem;
  }
}

.decs {
  font-weight: 400;
  font-size: 16px;
  line-height: 27px;
  color: #3e3c47;
  margin-top: 3.2rem;

  @include min(tablet) {
    margin-bottom: 4rem;
    margin-top: 0;
  }
}

.ratings {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  width: 75vw;
  gap: 0.8rem;
  margin-top: 3.2rem;

  @include min(tablet) {
    margin-top: 0rem;
    display: grid;
    width: auto;
    grid-template-columns: 1fr 1fr 1fr;
    overflow: hidden;
    overflow-x: auto;
  }

  > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: transparent;
    border-radius: 0;
    border: none;
    padding: 0;
    min-height: 97px;
    min-width: 149px;
    border-right: 1px solid #e9e9e9;

    &:last-child {
      border: none;
    }

    &:not(:first-child) {
      padding-left: 1.6rem;
    }
  }
}

.ratingLabel {
  font-weight: 600;
  font-size: 16px;
  line-height: 27px;
  color: #3e3c47;
  padding-bottom: 0.8rem;
}

.ratingValue {
  font-weight: 700;
  font-size: 28px;
  line-height: 38px;
  padding-bottom: 0.95rem;
  color: #1c1a28;

  > span {
    font-weight: 700;
    font-size: 24px;
    line-height: 34px;
    color: #1c1a28;
  }
}

.ratingInactive {
  display: flex;
  align-items: center;
  background-color: #fbfbfb !important;
  color: #6b6a72 !important;
  align-items: center;

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

.featureImage {
  display: none;

  @include min(laptop) {
    display: block;
    grid-row: 1/5;
    grid-column: 4/5;

    > img {
      width: 41.3rem;
      height: 41.3rem;
      min-width: 41.3rem;
    }
  }
}
