.google-reviews {
  padding: 80px 0;
  overflow: hidden;
  background: var(--grey-50);
  color: var(--secondary);
}

.google-reviews__heading,
.google-reviews__title-row,
.google-reviews__nav,
.google-reviews__summary {
  display: flex;
  align-items: center;
}

.google-reviews__heading {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.google-reviews__title-row {
  flex-wrap: wrap;
  gap: 12px;
}

.google-reviews__title {
  margin: 0;
}

.google-reviews__summary {
  gap: 7px;
  min-height: 46px;
  padding: 7px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
}

.google-reviews__summary strong {
  font-size: 20px;
  font-weight: 700;
}

.google-reviews__summary span[data-google-reviews-count] {
  color: rgba(31, 43, 51, 0.62);
  text-decoration: none;
}

.google-reviews__summary-star,
.google-reviews .google-review-card__stars .is-filled {
  color: #f9a825;
}

.google-reviews__summary-star {
  font-size: 23px;
  line-height: 1;
}

.google-reviews__brand {
  margin-left: 4px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none !important;
}

.google-reviews__policy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: 2px;
  border: 1px solid rgba(31, 43, 51, 0.3);
  border-radius: 50%;
  color: rgba(31, 43, 51, 0.62);
  font: 600 10px/1 var(--default-font-family);
}

.google-reviews__nav {
  flex: 0 0 auto;
  gap: 8px;
}

.google-reviews__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--secondary);
  cursor: pointer;
  transition: color var(--transition), background var(--transition), opacity var(--transition);
}

.google-reviews__arrow:hover {
  background: var(--primary);
  color: #fff;
}

.google-reviews__arrow.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.google-reviews__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.google-reviews__tab {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(31, 43, 51, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--secondary);
  font: 600 12px/1.25 var(--default-font-family);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.google-reviews__tab:hover,
.google-reviews__tab.is-active {
  border-color: var(--secondary);
  background: var(--secondary);
  color: #fff;
}

.google-reviews__status {
  padding: 32px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.google-reviews__status.is-error {
  color: #8f3131;
}

.google-reviews__slider {
  overflow: visible !important;
  padding-bottom: 28px !important;
}

.google-reviews__scrollbar {
  display: block;
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 99px;
  background: rgba(31, 43, 51, 0.1);
}

.google-reviews__scrollbar .swiper-scrollbar-drag {
  border-radius: inherit;
  background: var(--secondary);
}

.google-reviews .google-review-card {
  display: flex !important;
  flex-direction: column;
  height: 420px !important;
  min-height: 420px !important;
  max-height: 420px !important;
  overflow: hidden;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box;
}

.google-reviews .google-review-card__header,
.google-reviews .google-review-card__author,
.google-reviews .google-review-card__score {
  display: flex;
  align-items: center;
}

.google-reviews .google-review-card__header {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.google-reviews .google-review-card__author {
  min-width: 0;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.google-reviews .google-review-card__avatar {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--grey-50);
  font-weight: 700;
}

.google-reviews .google-review-card__avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.google-reviews .google-review-card__author-text {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.google-reviews .google-review-card__author-text strong {
  overflow: hidden;
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.google-reviews .google-review-card__author-text small {
  color: rgba(31, 43, 51, 0.6);
  font-size: 12px;
}

.google-reviews .google-review-card__score {
  flex: 0 0 auto;
  gap: 5px;
  color: inherit;
  font-size: 12px;
  text-decoration: none;
}

.google-reviews .google-review-card__stars {
  display: flex;
  gap: 1px;
  color: #d7d9de;
  font-size: 13px;
}

.google-reviews .google-review-card__text {
  height: 300px;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: none;
  font-size: 16px;
  line-height: 1.45;
  white-space: pre-line;
  overscroll-behavior: contain;
}

.google-reviews .google-review-card__text:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.google-reviews .google-review-card__text::-webkit-scrollbar {
  display: none;
  width: 0;
}

.google-reviews .google-review-card__text-wrap {
  position: relative;
  flex: 0 0 300px;
  height: 300px;
  min-height: 0;
  margin-bottom: 16px;
}

.google-reviews .google-review-card__scrollbar {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  border-radius: 99px;
  background: rgba(31, 43, 51, 0.08);
  cursor: pointer;
}

.google-reviews .google-review-card__scrollbar[hidden] {
  display: none !important;
}

.google-reviews .google-review-card__scrollbar-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  min-height: 40px;
  border-radius: 99px;
  background: var(--secondary);
  cursor: grab;
  touch-action: none;
}

.google-reviews .google-review-card__scrollbar-thumb.is-dragging {
  cursor: grabbing;
}

@media (max-width: 760px) {
  .google-reviews {
    padding: 56px 0;
  }

  .google-reviews__heading {
    align-items: flex-start;
    margin-bottom: 24px;
  }

  .google-reviews__title-row {
    display: grid;
    gap: 8px;
  }

  .google-reviews__nav {
    display: none;
  }

  .google-reviews__tabs {
    flex-wrap: nowrap;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    width: 100vw;
    margin-left: calc((100vw - 340px) / -2);
    padding: 0 10px;
  }

  .google-reviews__tabs::-webkit-scrollbar {
    display: none;
  }

  .google-reviews__tab {
    flex: 0 0 auto;
  }

  .google-review-card {
    height: 430px !important;
    min-height: 430px !important;
    max-height: 430px !important;
    padding: 18px;
  }

  .google-review-card__header {
    align-items: flex-start;
  }

  .google-review-card__score {
    display: grid;
    justify-items: end;
  }

  .google-review-card__text {
    font-size: 15px;
  }
}