/* Google Reviews widget. Change the variables below to match your site. */
.gr-widget {
  --gr-bg: #ffffff;
  --gr-card: #f7f7f8;
  --gr-text: #1f1f1f;
  --gr-muted: #6b6b6b;
  --gr-star: #fbbc04;
  --gr-star-off: #d9d9d9;
  --gr-accent: #1a73e8;
  --gr-radius: 12px;
  font-family: inherit;
  color: var(--gr-text);
  background: var(--gr-bg);
  padding: 20px 0;
  box-sizing: border-box;
}
@media (prefers-color-scheme: dark) {
  .gr-widget.gr-auto-dark {
    --gr-bg: #121212; --gr-card: #1e1e1e; --gr-text: #eeeeee; --gr-muted: #a0a0a0; --gr-star-off: #444444; --gr-accent: #8ab4f8;
  }
}
.gr-widget *, .gr-widget *::before, .gr-widget *::after { box-sizing: border-box; }

.gr-header { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.gr-g { width: 40px; height: 40px; flex: none; }
.gr-summary { flex: 1; min-width: 180px; }
.gr-name { font-weight: 600; font-size: 1.1em; }
.gr-score { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gr-score strong { font-size: 1.2em; }
.gr-count { color: var(--gr-muted); font-size: .9em; }
.gr-btn {
  display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--gr-accent);
  color: #fff; text-decoration: none; font-size: .9em; font-weight: 500;
}
.gr-btn:hover { opacity: .9; }

.gr-stars { letter-spacing: 1px; white-space: nowrap; }
.gr-star { color: var(--gr-star-off); }
.gr-star.on { color: var(--gr-star); }

.gr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gr-card { background: var(--gr-card); border-radius: var(--gr-radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.gr-author { display: flex; align-items: center; gap: 10px; }
.gr-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.gr-initial { display: flex; align-items: center; justify-content: center; background: var(--gr-accent); color: #fff; font-weight: 600; }
.gr-author-name { font-weight: 600; }
.gr-author-name a { color: inherit; text-decoration: none; }
.gr-author-name a:hover { text-decoration: underline; }
.gr-date { color: var(--gr-muted); font-size: .85em; }
.gr-text {
  margin: 0; line-height: 1.5; font-size: .95em;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.gr-open .gr-text { -webkit-line-clamp: unset; display: block; }
.gr-more { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--gr-accent); cursor: pointer; font: inherit; font-size: .9em; }
.gr-error { color: var(--gr-muted); }

/* Phones: swipeable row of cards. */
@media (max-width: 600px) {
  .gr-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .gr-card { flex: 0 0 85%; scroll-snap-align: start; }
}

/* ---- Optional styles: add one of these classes next to the widget ---- */

/* gr-carousel: white cards with shadow in one swipeable row (Elfsight-like). */
.gr-carousel { --gr-card: #ffffff; }
.gr-carousel .gr-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; }
.gr-carousel .gr-card { flex: 0 0 300px; scroll-snap-align: start; border: 1px solid #ececec; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.gr-track { position: relative; }
.gr-arrow { display: none; }
.gr-carousel .gr-arrow {
  display: flex; align-items: center; justify-content: center; position: absolute; top: 45%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--gr-accent); color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); padding: 0 0 3px;
}
.gr-carousel .gr-track { padding: 0 46px; }
.gr-carousel .gr-list { scrollbar-width: none; }
.gr-carousel .gr-list::-webkit-scrollbar { display: none; }
.gr-carousel .gr-prev { left: 0; }
.gr-carousel .gr-next { right: 0; }
@media (max-width: 600px) {
  .gr-carousel .gr-card { flex-basis: 85%; }
  .gr-carousel .gr-arrow { display: none; }
  .gr-carousel .gr-track { padding: 0; }
}

/* gr-minimal: single column list, no card backgrounds. */
.gr-minimal .gr-list { display: block; max-width: 720px; }
.gr-minimal .gr-card { background: none; border-radius: 0; padding: 18px 0; border-bottom: 1px solid #e6e6e6; }
.gr-minimal .gr-card:last-child { border-bottom: 0; }
.gr-minimal .gr-btn { background: none; color: var(--gr-accent); border: 1px solid currentColor; }

/* gr-dark: dark section with gold accents. */
.gr-dark {
  --gr-bg: #15171c; --gr-card: #20232a; --gr-text: #f1f1f1; --gr-muted: #9aa0a6; --gr-star-off: #3c4048; --gr-accent: #d4a73c;
  padding: 24px; border-radius: var(--gr-radius);
}
.gr-dark .gr-btn { color: #15171c; }

/* gr-quotes: centred testimonial cards with a big quote mark, stars below the text. */
.gr-quotes { --gr-card: #ffffff; text-align: center; }
.gr-quotes .gr-header { justify-content: center; }
.gr-quotes .gr-summary { flex: none; min-width: 0; }
.gr-quotes .gr-score { justify-content: center; }
.gr-quotes .gr-card { border: 1px solid #ececec; align-items: center; padding-top: 10px; }
.gr-quotes .gr-card::before { order: -2; content: "\201C"; font-size: 3.5em; line-height: 1; color: var(--gr-accent); height: .55em; }
.gr-quotes .gr-text { order: -1; font-style: italic; }
.gr-quotes .gr-more { align-self: center; order: -1; }
.gr-quotes .gr-author { order: 1; flex-direction: column; gap: 4px; }
