/* 1440 Reviews — self-contained, theme-agnostic, responsive.
   Matches the Federal Way reference: desktop 3-up carousel, tablet ~1-up,
   mobile stacked + full-width cards. Scoped under .gbpr. */
.gbpr{
  --gbpr-star:#fbbc05;
  --gbpr-star-off:#dadce0;
  --gbpr-card:#ffffff;
  --gbpr-ink:#1f2328;
  --gbpr-muted:#5f6368;
  --gbpr-shadow:0 6px 24px rgba(0,0,0,.12);
  --gbpr-radius:16px;
  --gbpr-gap:20px;
  --gbpr-accent:#1a73e8;
  color:var(--gbpr-ink);
  font-family:inherit;
  box-sizing:border-box;
}
.gbpr *,.gbpr *::before,.gbpr *::after{box-sizing:border-box;}
.gbpr-heading{text-align:center;margin:0 0 .5em;}

.gbpr-wrap{
  display:flex;align-items:center;gap:28px;flex-wrap:wrap;justify-content:center;
}

/* Aggregate badge */
.gbpr-agg{flex:0 0 auto;text-align:center;min-width:180px;display:flex;flex-direction:column;align-items:center;gap:6px;}
.gbpr-agg__label{font-weight:800;letter-spacing:.04em;font-size:1.25rem;}
.gbpr-agg__avg{font-size:.9rem;color:var(--gbpr-muted);}
.gbpr-agg__count{font-size:.95rem;}
.gbpr-agg .gbpr-g{width:72px;height:24px;margin-top:2px;}

/* Carousel */
.gbpr-carousel{position:relative;flex:1 1 420px;min-width:0;display:flex;align-items:center;}
.gbpr-track{
  display:flex;gap:var(--gbpr-gap);overflow-x:auto;scroll-snap-type:x mandatory;
  scroll-behavior:smooth;padding:8px 4px 16px;width:100%;
  scrollbar-width:none;-ms-overflow-style:none;
}
.gbpr-track::-webkit-scrollbar{display:none;}
.gbpr-slide{flex:0 0 320px;max-width:86vw;scroll-snap-align:start;display:flex;}

/* Card */
.gbpr-card{
  background:var(--gbpr-card);border-radius:var(--gbpr-radius);box-shadow:var(--gbpr-shadow);
  padding:20px;width:100%;height:100%;display:flex;flex-direction:column;gap:10px;
}
.gbpr-card__top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}
.gbpr-id{display:flex;align-items:center;gap:10px;min-width:0;}
.gbpr-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;flex:0 0 40px;
  display:inline-flex;align-items:center;justify-content:center;background:var(--gbpr-accent);
  color:#fff;font-weight:700;font-size:1.05rem;}
.gbpr-meta{display:flex;flex-direction:column;min-width:0;}
.gbpr-name{font-weight:700;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.gbpr-date{font-size:.8rem;color:var(--gbpr-muted);}
.gbpr-g{flex:0 0 auto;}
.gbpr-rating{display:flex;align-items:center;gap:6px;}
.gbpr-stars{display:inline-flex;gap:1px;}
.gbpr-star{fill:var(--gbpr-star-off);}
.gbpr-star--on{fill:var(--gbpr-star);}
.gbpr-verified{flex:0 0 auto;}
.gbpr-text{
  font-size:.95rem;line-height:1.5;color:var(--gbpr-ink);
  display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;
}
.gbpr-text.is-open{-webkit-line-clamp:unset;overflow:visible;}
/* High-specificity reset so host themes (e.g. GeneratePress button styles)
   can't paint a background/box on this text link in any state. */
.gbpr .gbpr-more,
.gbpr .gbpr-more:hover,
.gbpr .gbpr-more:focus,
.gbpr .gbpr-more:focus-visible,
.gbpr .gbpr-more:active{
  align-self:flex-start;display:inline;width:auto;margin:0;padding:0;border:0;border-radius:0;
  background:transparent;background-color:transparent;background-image:none;box-shadow:none;
  color:var(--gbpr-muted);font:inherit;font-size:.9rem;line-height:1.4;letter-spacing:normal;
  text-transform:none;text-decoration:underline;text-shadow:none;cursor:pointer;
  -webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;outline:none;transform:none;
}
.gbpr .gbpr-more:hover,
.gbpr .gbpr-more:focus-visible{color:var(--gbpr-ink);text-decoration-thickness:2px;}

/* Nav buttons */
.gbpr-nav{
  position:absolute;top:50%;transform:translateY(-50%);z-index:2;
  width:40px;height:40px;border-radius:50%;border:0;cursor:pointer;
  background:#fff;box-shadow:var(--gbpr-shadow);color:var(--gbpr-ink);
  font-size:1.5rem;line-height:1;display:flex;align-items:center;justify-content:center;
  -webkit-tap-highlight-color:transparent;appearance:none;
  transition:transform .12s ease,color .12s ease,box-shadow .12s ease;
}
.gbpr-nav--prev{left:-6px;}
.gbpr-nav--next{right:-6px;}
.gbpr-nav[hidden]{display:none;}
.gbpr .gbpr-nav,
.gbpr .gbpr-nav:focus,
.gbpr .gbpr-nav:active{background:#fff;background-color:#fff;background-image:none;color:var(--gbpr-ink);}
.gbpr .gbpr-nav:hover{background:#fff;background-color:#fff;color:var(--gbpr-accent);}
.gbpr .gbpr-nav svg{display:block;width:22px;height:22px;color:inherit;stroke:currentColor;}
.gbpr-nav:hover{color:var(--gbpr-accent);box-shadow:var(--gbpr-shadow),0 0 0 1px rgba(0,0,0,.04);}
.gbpr-nav:focus{outline:none;}
.gbpr-nav:focus-visible{outline:2px solid var(--gbpr-accent);outline-offset:2px;}
.gbpr-nav:active{transform:translateY(-50%) scale(.9);}

/* Minimalist mode: no summary badge — cards fill the width, arrows tuck inside */
.gbpr--no-summary .gbpr-carousel{width:100%;}
.gbpr--no-summary .gbpr-nav--prev{left:4px;}
.gbpr--no-summary .gbpr-nav--next{right:4px;}

/* Light text — for placing the widget on a dark or photo section background.
   Only the heading + summary badge (which sit on the host background) change;
   the review cards stay white with dark text on every background. */
.gbpr--on-dark .gbpr-heading,
.gbpr--on-dark .gbpr-agg__label,
.gbpr--on-dark .gbpr-agg__count,
.gbpr--on-dark .gbpr-agg__count strong{color:#fff;}
.gbpr--on-dark .gbpr-agg__avg{color:rgba(255,255,255,.78);}

/* Tablet: aggregate on top, cards scroll ~1-up */
@media (max-width:1023px){
  .gbpr-wrap{flex-direction:column;}
  .gbpr-carousel{width:100%;}
  .gbpr-slide{flex-basis:380px;}
}
/* Mobile: stacked + near-full-width cards */
@media (max-width:640px){
  .gbpr-slide{flex-basis:88vw;}
  .gbpr-nav{display:none;}
  .gbpr-agg__label{font-size:1.1rem;}
}
@media (prefers-reduced-motion:reduce){ .gbpr-track{scroll-behavior:auto;} }
