/* Google Reviews Block
   Deliberately low-specificity and variable-driven so a theme can restyle it
   without !important wars. Override the variables, not the rules. */

.grb {
  --grb-star: #fbbc05;
  --grb-star-empty: #dadce0;
  --grb-text: #202124;
  --grb-muted: #5f6368;
  --grb-border: #e3e5e8;
  --grb-surface: #fff;
  --grb-radius: 10px;
  --grb-gap: 16px;
  --grb-card-width: 300px;

  color: var(--grb-text);
  margin: 32px 0;
  font-size: 15px;
  line-height: 1.5;
}

.grb *,
.grb *::before,
.grb *::after { box-sizing: border-box; }

/* ---- header / summary ---- */

.grb__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--grb-gap);
  margin-bottom: var(--grb-gap);
  flex-wrap: wrap;
}

.grb__title { margin: 0 0 4px; font-size: 1.35rem; }

.grb__summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex-wrap: wrap;
}

.grb__summary strong { font-size: 1.25rem; }
.grb__count { color: var(--grb-muted); font-size: 0.9em; }

/* ---- stars ---- */

.grb-stars { display: inline-flex; gap: 1px; line-height: 0; }
.grb-star { width: 16px; height: 16px; }
.grb-star--full { fill: var(--grb-star); }
.grb-star--empty { fill: var(--grb-star-empty); }

/* ---- card ---- */

.grb-card {
  background: var(--grb-surface);
  border: 1px solid var(--grb-border);
  border-radius: var(--grb-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.grb-card__head { display: flex; align-items: center; gap: 10px; }

.grb-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 40px;
  background: #eceff1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grb-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grb-avatar__initial { font-weight: 600; color: var(--grb-muted); }

.grb-card__who { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.grb-card__author { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grb-card__author a { color: inherit; text-decoration: none; }
.grb-card__author a:hover { text-decoration: underline; }
.grb-card__date { color: var(--grb-muted); font-size: 0.85em; }
.grb-card__g { width: 20px; height: 20px; flex: 0 0 20px; }

.grb-card__body { flex: 1 1 auto; }
.grb-card__text { margin: 0; }
.grb-card__foot { color: var(--grb-muted); font-size: 0.82em; border-top: 1px solid var(--grb-border); padding-top: 8px; }

.grb-more {
  background: none;
  border: 0;
  padding: 4px 0 0;
  color: #1a73e8;
  cursor: pointer;
  font: inherit;
  font-size: 0.9em;
}

/* ---- slider ---- */

.grb__track {
  display: flex;
  gap: var(--grb-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.grb__slide {
  flex: 0 0 var(--grb-card-width);
  max-width: 85vw;
  scroll-snap-align: start;
}

.grb__nav { display: flex; gap: 8px; }

.grb__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--grb-border);
  background: var(--grb-surface);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: var(--grb-text);
}

.grb__arrow:disabled { opacity: 0.35; cursor: default; }

/* ---- grid ---- */

.grb__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--grb-gap);
}

/* ---- actions ---- */

.grb__actions { margin-top: var(--grb-gap); display: flex; gap: 16px; flex-wrap: wrap; }
.grb__link { color: #1a73e8; text-decoration: none; font-size: 0.95em; }
.grb__link:hover { text-decoration: underline; }
.grb__link--muted { color: var(--grb-muted); }

/* ---- badge ---- */

.grb--badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--grb-border);
  border-radius: var(--grb-radius);
  background: var(--grb-surface);
  margin: 16px 0;
}

.grb-badge__g { width: 28px; height: 28px; flex: 0 0 28px; }
.grb-badge__body { display: flex; flex-direction: column; line-height: 1.3; }
.grb-badge__label { font-size: 0.8em; color: var(--grb-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.grb-badge__score { display: flex; align-items: center; gap: 6px; }
.grb-badge__count { font-size: 0.85em; }
.grb-badge__count a { color: var(--grb-muted); }

.grb-badge__cta {
  margin-left: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #1a73e8;
  color: #fff;
  text-decoration: none;
  font-size: 0.85em;
  white-space: nowrap;
}

/* ---- floating ---- */

.grb--floating { position: fixed; z-index: 1000; margin: 0; }
.grb--bottom-right { right: 16px; bottom: 16px; }
.grb--bottom-left  { left: 16px;  bottom: 16px; }
.grb--middle-right { right: 0;    top: 50%; transform: translateY(-50%); }
.grb--middle-left  { left: 0;     top: 50%; transform: translateY(-50%); }

.grb-float__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--grb-border);
  border-radius: 999px;
  background: var(--grb-surface);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  font: inherit;
  color: var(--grb-text);
}

.grb-float__g { width: 20px; height: 20px; }
.grb-float__score { font-weight: 700; }

.grb-float__panel {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  max-height: min(70vh, 560px);
  overflow-y: auto;
  background: var(--grb-surface);
  border: 1px solid var(--grb-border);
  border-radius: var(--grb-radius);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.18);
  padding: 12px;
}

.grb--bottom-left .grb-float__panel,
.grb--middle-left .grb-float__panel { right: auto; left: 0; }

.grb--middle-right .grb-float__panel,
.grb--middle-left .grb-float__panel { bottom: auto; top: 0; }

.grb-float__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 8px;
}

.grb-float__close { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--grb-muted); }
.grb-float__list { display: flex; flex-direction: column; gap: 10px; }
.grb-float__cta { display: block; text-align: center; margin-top: 10px; color: #1a73e8; text-decoration: none; }

@media (max-width: 575px) {
  .grb__header { align-items: flex-start; }
  .grb__nav { display: none; }
  .grb--floating { --grb-card-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .grb__track { scroll-behavior: auto; }
}
