/* Google reviews block. Restyle per site by setting these variables on .gr (or any parent). */
.gr {
  --gr-font: inherit;                 /* review text font */
  --gr-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  --gr-color: inherit;
  --gr-muted: #5f6368;                /* reviewer name, counter */
  --gr-accent: currentColor;          /* buttons */
  --gr-star: #FBBC04;                 /* Google's gold */
  --gr-star-off: #dadce0;
  --gr-measure: 46ch;                 /* max line length */
  --gr-align: left;                   /* left or center */
  --gr-speed: 500ms;
  color: var(--gr-color);
  text-align: var(--gr-align);
}

.gr__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.gr__count { margin: 0; color: var(--gr-muted); font-variant-numeric: tabular-nums; font-size: 0.9375rem; }
.gr__ctrl { display: flex; gap: 8px; }
.gr__btn { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--gr-accent); border-radius: 50%; background: transparent; color: var(--gr-accent); cursor: pointer; transition: transform 140ms ease-out, opacity 200ms ease; }
.gr__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gr__btn:active { transform: scale(0.94); }
.gr__btn:focus-visible { outline: 2px solid var(--gr-accent); outline-offset: 3px; }
.gr__pause .gr__i-play, .gr.is-stopped .gr__pause .gr__i-pause { display: none; }
.gr.is-stopped .gr__pause .gr__i-play { display: block; fill: currentColor; stroke: none; }
@media (hover: hover) and (pointer: fine) { .gr__btn:hover { background: var(--gr-accent); } .gr__btn:hover svg { stroke: #fff; } .gr.is-stopped .gr__pause:hover .gr__i-play { fill: #fff; } }

.gr__slides { margin: 0; }
.gr__slide { margin: 0 0 48px; }
.gr__text { margin: 0 auto 0 0; max-width: var(--gr-measure); font-family: var(--gr-font); font-size: var(--gr-size); line-height: 1.45; }
.gr__text p { margin: 0; }
.gr__text p + p { margin-top: 0.75em; }
.gr__name { margin-top: 24px; font-weight: 600; font-size: 1rem; color: var(--gr-muted); }
.gr__badge { display: inline-flex; align-items: center; gap: 10px; margin: 10px 0 0; }
.gr__g { width: 20px; height: 20px; flex: none; }
.gr__stars { display: inline-flex; gap: 2px; }
.gr__star svg { width: 18px; height: 18px; display: block; fill: var(--gr-star-off); }
.gr__star.is-on svg { fill: var(--gr-star); }

/* Centred version: class="gr gr--center" */
.gr--center { --gr-align: center; }
.gr--center .gr__text { margin-inline: auto; }
.gr--center .gr__bar { justify-content: center; gap: 24px; }

/* List version: data-mode="list" */
.gr--list .gr__slide { margin: 0 0 40px; }

/* Rotating (JavaScript running): slides sit on top of each other and fade */
.gr.is-ready .gr__slides { position: relative; transition: height var(--gr-speed) ease; }
.gr.is-ready .gr__slide { position: absolute; inset: 0 0 auto 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity var(--gr-speed) ease, visibility 0s linear var(--gr-speed); }
.gr.is-ready .gr__slide.is-active { opacity: 1; visibility: visible; transition: opacity var(--gr-speed) ease, visibility 0s; }

@media (prefers-reduced-motion: reduce) {
  .gr.is-ready .gr__slides, .gr.is-ready .gr__slide { transition: none; }
}
