.google-reviews-section {
  background: #f3f5f7;
  padding: 34px 0;
}

.google-reviews-section--home {
  border-bottom: 1px solid #e4e9ed;
}

.google-reviews-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.google-reviews-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  color: #4ab82d;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.google-reviews-kicker img,
.google-review-google,
.google-review-logo {
  display: block;
  object-fit: contain;
}

.google-reviews-heading h2 {
  margin: 0;
  color: #001f31;
  font-size: clamp(25px, 2.5vw, 36px);
  line-height: 1.15;
}

.google-reviews-summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 172px;
  padding: 12px 16px;
  border: 1px solid #d8dee3;
  border-radius: 14px;
  background: #fff;
  color: #001f31;
  box-shadow: 0 8px 25px rgba(0, 31, 49, .06);
}

.google-reviews-summary:hover {
  color: #168ff5;
  border-color: #168ff5;
}

.google-review-logo {
  flex: 0 0 28px;
}

.google-reviews-summary > .fa-arrow-up-right-from-square {
  margin-left: auto;
  color: #75818a;
  font-size: 13px;
}

.google-reviews-summary span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.google-reviews-summary strong {
  font-size: 20px;
}

.google-reviews-summary small {
  margin-top: 4px;
  color: #75818a;
  font-size: 12px;
}

.google-reviews-carousel {
  --google-reviews-gap: 20px;
}

.google-reviews-viewport {
  overflow: hidden;
  outline: none;
}

.google-reviews-viewport:focus-visible {
  border-radius: 17px;
  outline: 3px solid rgba(22, 143, 245, .3);
  outline-offset: 3px;
}

.google-reviews-track {
  display: flex;
  align-items: stretch;
  gap: var(--google-reviews-gap);
  transition: transform .42s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.google-reviews-carousel:not(.is-ready) .google-reviews-viewport {
  overflow-x: auto;
  scrollbar-width: thin;
}

.google-review-card-compact {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - var(--google-reviews-gap)) / 2);
  box-sizing: border-box;
  min-height: 0;
  padding: 20px 22px 17px;
  border: 1px solid #e1e6ea;
  border-radius: 16px;
  background: #fff;
  color: #34434d;
  box-shadow: 0 10px 32px rgba(0, 31, 49, .07);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.google-review-card-compact:hover {
  color: #34434d;
  border-color: #168ff5;
  box-shadow: 0 15px 38px rgba(0, 31, 49, .12);
  transform: translateY(-3px);
}

.google-review-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.google-review-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--review-avatar-color, #168ff5);
  color: #fff;
  font-size: 21px;
}

.google-review-author {
  color: #001f31;
  font-size: 17px;
  font-weight: 700;
}

.google-review-google {
  flex: 0 0 22px;
  margin-left: auto;
}

.google-review-stars {
  display: flex;
  gap: 3px;
  margin: 11px 0 8px;
  color: #fbbc04;
  font-size: 16px;
}

.google-review-stars .is-empty {
  color: #d9dfe3;
}

.google-review-card-compact blockquote {
  display: -webkit-box;
  overflow: hidden;
  position: static;
  margin: 0 0 10px;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  color: #46545d;
  font-size: 15px;
  font-style: normal;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.google-review-card-compact blockquote::before,
.google-review-card-compact blockquote::after {
  content: none;
  display: none;
}

.google-review-source {
  margin-top: auto;
  color: #168ff5;
  font-size: 13px;
  font-weight: 600;
}

.google-reviews-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 14px;
}

.google-reviews-arrow {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #d8dee3;
  border-radius: 50%;
  background: #fff;
  color: #001f31;
  box-shadow: 0 5px 16px rgba(0, 31, 49, .07);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.google-reviews-arrow:hover,
.google-reviews-arrow:focus-visible {
  border-color: #168ff5;
  background: #168ff5;
  color: #fff;
  transform: translateY(-1px);
}

.google-reviews-arrow:focus-visible,
.google-reviews-dot:focus-visible {
  outline: 3px solid rgba(22, 143, 245, .25);
  outline-offset: 2px;
}

.google-reviews-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 54px;
}

.google-reviews-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #bcc6cd;
  transition: width .2s ease, background-color .2s ease;
}

.google-reviews-dot.is-active {
  width: 24px;
  background: #168ff5;
}

.google-reviews-section + .footer-cta {
  margin-top: 0;
}

@media (max-width: 767px) {
  .google-reviews-section {
    padding: 32px 0;
  }

  .google-reviews-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .google-reviews-summary {
    width: 100%;
  }

  .google-reviews-carousel {
    --google-reviews-gap: 14px;
  }

  .google-review-card-compact {
    flex-basis: 100%;
  }

  .google-review-card-compact {
    min-height: 0;
    padding: 19px;
  }

  .google-review-card-compact blockquote {
    -webkit-line-clamp: 7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .google-reviews-track,
  .google-review-card-compact,
  .google-reviews-arrow,
  .google-reviews-dot {
    transition: none;
  }
}
