:root {
  --gr-navy: #173750;
  --gr-navy-2: #244d69;
  --gr-lime: #c7e425;
  --gr-paper: #f3f3f0;
  --gr-muted: #65747f;
  --gr-line: #d9deda;
  --gr-white: #ffffff;
}

.google-reviews-section {
  padding: 92px max(24px, calc((100% - 1180px) / 2));
  overflow: hidden;
  background: var(--gr-paper);
  color: var(--gr-navy);
}

.google-reviews-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.google-reviews-heading .eyebrow {
  margin: 0 0 10px;
  color: #60720e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.google-reviews-heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.google-rating-summary {
  display: flex;
  min-width: 220px;
  align-items: center;
  gap: 15px;
  padding: 16px 18px;
  border: 1px solid var(--gr-line);
  border-radius: 12px;
  background: var(--gr-white);
}

.google-rating-number {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.google-rating-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.google-rating-meta .stars,
.google-review-stars {
  color: #fbbc04;
  letter-spacing: .08em;
}

.google-rating-meta small {
  color: var(--gr-muted);
  font-size: 11px;
}

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

.google-reviews-track {
  display: flex;
  gap: 16px;
  transition: transform 520ms cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.google-review-card {
  display: flex;
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 0;
  min-height: 310px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--gr-line);
  border-radius: 14px;
  background: var(--gr-white);
  box-shadow: 0 16px 38px rgba(23, 55, 80, .06);
}

.google-review-author {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.google-review-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--gr-navy);
  color: var(--gr-white);
  font-size: 16px;
  font-weight: 800;
  object-fit: cover;
}

.google-review-author-name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.google-review-date {
  margin-top: 3px;
  color: var(--gr-muted);
  font-size: 10px;
}

.google-review-badge {
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf5c2;
  color: #45540b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.google-review-stars {
  margin: 22px 0 13px;
  font-size: 15px;
}

.google-review-text {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #465867;
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.google-review-source {
  margin-top: auto;
  padding-top: 20px;
  color: var(--gr-navy);
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.google-reviews-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 25px;
}

.google-reviews-arrows {
  display: flex;
  gap: 8px;
}

.google-reviews-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--gr-line);
  border-radius: 50%;
  background: var(--gr-white);
  color: var(--gr-navy);
  cursor: pointer;
  font-size: 22px;
}

.google-reviews-arrow:hover,
.google-reviews-arrow:focus-visible {
  border-color: var(--gr-lime);
  outline: none;
  background: var(--gr-lime);
}

.google-reviews-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.google-reviews-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b8c0c5;
  cursor: pointer;
}

.google-reviews-dot[aria-current="true"] {
  width: 24px;
  border-radius: 999px;
  background: var(--gr-navy);
}

.google-reviews-all {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--gr-lime);
  color: var(--gr-navy);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.google-reviews-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--gr-muted);
  font-size: 11px;
}

@media (max-width: 900px) {
  .google-reviews-heading {
    grid-template-columns: 1fr;
  }

  .google-rating-summary {
    width: max-content;
  }

  .google-review-card {
    flex-basis: calc((100% - 16px) / 2);
  }
}

@media (max-width: 620px) {
  .google-reviews-section {
    padding: 68px 16px;
  }

  .google-review-card {
    flex-basis: 100%;
    min-height: 300px;
    padding: 24px;
  }

  .google-reviews-controls {
    grid-template-columns: auto 1fr;
  }

  .google-reviews-all {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .google-reviews-track {
    transition: none;
  }
}
