.google-average-rating-wrapper {
  --font-bold: ITC Avant Garde Gothic W05 Bol, helvetica, arial, sans-serif;

  width: 100%;
  height: 100%;
  align-items: center;
  display: flex;
  text-align: center;
  margin: 0 1rem 1rem 1rem;
  justify-content: center;
  padding: 24px;

  .average-rating {
    display: flex;
    flex-flow: column;
    align-items: center;

    .google-image {
      img {
        width: 207.6px;
        height: 40px;
      }
      .a-img-mobile {
        display: block;
      }
      .a-img {
        display: none;
      }
      .image-text {
        font-size: 18px;
        font-weight: 700;
        color: #1A1A1A;
        line-height: 20px;
        margin-left: 5px;
        display: inline-block;
      }
    }
    .star-rating {
      margin: 10px 0;
      display: flex;
      gap: 8px;

      .rating {
        font-weight: 300;
        font-size: 24px;
        color: #1A1A1A;
        font-family: "ITC Avant Garde Gothic W05 Bol", helvetica, arial, sans-serif;
      }

    }

    .text {
      font-weight: 400;
      line-height: 20px;
      .small-text {
        color: #212b36;
        margin-bottom: 10px;
        font-size: 16px;
        font-family: var(--font-bold);
      }
      .description-text {
        color: #212b36;
        margin-bottom: 0;
        font-size: 14px;
      }
    }
  }
}

.google-ratings-carousel-wrapper {
  width: 100%;
  height: 100%;
  padding: 8px;

  .reviews-block {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .reviews-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin: 0;
    padding: 20px 19px 20px 18px;

    .reviews-title {
      display: flex;
      align-items: center;
      gap: 12px;

      a:hover {
        text-decoration: none;
      }

      .g-logo {
        width: 24px !important;
        height: 24px;
        display: inline-block !important;
        vertical-align: middle;
      }

      .name {
        font-size: 16px;
        line-height: 20px;
        font-weight: 500;
        color: #212B36;
      }
    }

    .fetched-global-rating {
      padding-top: 0;
      display: flex;
      align-items: center;
      flex-flow: row;
      gap: 8px;

      span.ratings {
        font-size: 24px;
        font-weight: 700;
        color: #1A1A1A;
        font-family: var(--font-bold);
      }

      span.total_review {
        font-size: 12px;
        font-weight: 500;
        color: #212B36;
      }

    }

  }

  .google-reviews-carousel {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 0 40px 16px;
    flex: 1 1 auto;
  }

  .review-card {
    background: #F6F6F8;
    border-radius: 8px;
    padding: 16px;
    margin: 0 5px;
    display: flex;
    flex-direction: column;
    gap: 24px;

    @media (min-width: 768px) and (max-width: 1199px)  {
      margin: 0;
    }

    .review-text {
      line-height: 20px;
      color: #191919;
      margin-bottom: 0;
      min-height: 0;
      font-weight: 400;

      p {
        margin-bottom: 0;
        font-size: 14px;
      }

      a.read-more {
        color: #1A1A1A80;
        font-size: 14px;
        line-height: 20px;
        font-weight: 300;
        font-family: var(--font-bold);
      }
    }

    .review-footer {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .user-profile {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 0;
    }

    .author-photo {
      width: 40px !important;
      height: 40px;
      border-radius: 40%;
      margin-right: 0;
      border: 2px solid #FFFFFF;
    }

    .author-name {
      font-weight: 600;
      font-size: 16px;
      line-height: 20px;
      color: #1A1A1A;
      font-family: var(--font-bold);
    }

    .meta-data {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .google-info {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .g-logo {
      width: 24px !important;
      height: 24px;
      display: inline-block !important;
      vertical-align: middle;
    }

    .date {
      font-size: 12px;
      color: #00000080;
      font-weight: 400;
      line-height: normal;
    }

  }

  .google-reviews-carousel .owl-nav div {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 40%;

    svg rect {
      fill: #404043;
    }

    &.disabled {
      svg rect {
        fill: #89898C;
      }
    }

    &.owl-prev {
      left : 8px !important;
      @media (min-width: 768px) and (max-width: 1199px) {
        left : 0 !important;
      }
    }
    &.owl-next {
      right: 8px !important;
      @media (min-width: 768px) and (max-width: 1199px) {
        right : 0 !important;
      }
    }
  }
}

@media (min-width: 768px) {
  .google-average-rating-wrapper {
    .average-rating {
      .google-image {
        .a-img-mobile {
          display: none;
        }
        .a-img {
          display: block;
        }
      }
    }
  }
}
