.reviews__top {
  margin-bottom: 30px;
}

.reviews__all {
  display: flex;
  width: 100%;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  background: #F4F4F4;
  border-radius: 10px;
  padding: 16px 32px;
  box-sizing: border-box;
}

.all-reviews__stats-table {
  width: 100%;
  max-width: 346px;
  border-spacing: 0 8px;
  border-collapse: separate;
}

.all-reviews__stat-row {
  display: table-row;
}

.all-reviews__stat-rating,
.all-reviews__stat-rating-count,
.all-reviews__stat-rating-graph {
  display: table-cell;
  vertical-align: middle;
}

.all-reviews__stat-rating {
  padding-right: 16px;

}

.all-reviews__stat-rating-count {
  text-align: right;
  font-variant-numeric: tabular-nums;
  padding-left: 16px;
  font-weight: 700;
  font-size: 16px;
}

.all-reviews__stat-rating-content {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.all-reviews__stat-rating-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.0025 0.599609L14.6966 8.89141H23.4152L16.3618 14.016L19.056 22.3078L12.0025 17.1833L4.9491 22.3078L7.64327 14.016L0.589844 8.89141H9.30835L12.0025 0.599609Z' fill='%23FFC42E'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.all-reviews__stat-rating-graph {
  width: 100%;
  max-width: 189px;
}

.all-reviews__stat-rating-bar-wrapper {
  width: 100%;
  background: #E7E7E7;
  border-radius: 20px;
  height: 10px;
}

.all-reviews__stat-rating-bar {
  height: 100%;
  background: #FBBC04;
  border-radius: 20px;
}

.review__content {
  width: 100%;
}

.reviews__service {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
}

.review__sku {
  font-size: 13px;
  color: #5F6368;
  text-align: center;
}

.review__outer-subtitle {
  display: block;
  margin-bottom: 8px;
  font-family: 'Lato-Bold', sans-serif !important;
  font-size: 18px;
  line-height: 22px;
  font-weight: 700;
}

.review__title {
  text-align: center;
  margin: 4px 0 12px 0;
  padding: 0;
  font-size: 18px;
  line-height: 22px;
  font-weight: 700;
}

.review__to-product-link {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 700;
}

.review__rateblock {
  width: 184px;
  display: flex;
  gap: 7px;
  align-items: center;
  flex-direction: column;
  left: 0;
}

.review__rateblock-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.review__media {
  display: block;
  width: 184px;
  height: 133px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.review__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.review__count {
  text-transform: none;
  font-size: 13px;
  color: #868686;
  margin-top: 4px;
}

.review__photos {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  width: 100%;
  overflow: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.review__photos::-webkit-scrollbar {
  height: 6px;
}

.review__photos::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

.review__photos::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.review__photos::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.review__photo-link {
  position: relative;
  cursor: pointer;
}

.review__photo-img {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
}

.g-pagination {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
}
.g-pagination__list {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    margin-bottom: 15px;
}
.g-pagination__item {
    color: #131a29;
    background-color: #fff;
    width: 35px;
    height: 35px;
    font-family: 'Lato-Bold';
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 50%;
    border: 3px solid #ffc42e;
    margin: 0 5px;
    cursor: pointer;
}
.g-pagination__item.gm-active {
    background-color: #ffc42e;
    cursor: default;
}
.g-pagination__button {
    width: 250px;
}
.g-pagination__button.orange-bttn {
    margin: 0 !important;
}

@media (max-width: 768px) {
  .reviews__top {
    margin-bottom: 24px;
  }

  .reviews__all {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .all-reviews__stats-table {
    max-width: none;
  }

  .reviews__service {
    margin-bottom: 24px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 864px) {
  .review__rateblock {
    width: 100%;
    margin-bottom: 24px;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
  }

  .review__rateblock-content {
    align-items: flex-start;
  }

  .review__media {
    width: 154px;
    height: 110px;
  }

  .review__to-product-link {
    margin-top: 12px;
    height: auto !important;
    width: auto !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    outline: none !important;
    border-radius: 0 !important;
    font-weight: 500;
    line-height: 18px !important;
    color: #868686 !important;
    text-decoration: underline;
    transform: none !important;
  }

  .review__sku,
  .review__title {
    text-align: start;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
