/* Site tokens can override the defaults without forking the component. */
rh-google-reviews {
  display: block;
  color: var(--reviews-text, #17202d);
  font-family: inherit;
  margin-inline: auto;
  max-width: 400px;
  --gmp-mat-color-surface: var(--reviews-card-background, #fff);
  --gmp-mat-color-on-surface: var(--reviews-text, #17202d);
  --gmp-mat-color-on-surface-variant: var(--reviews-muted, #4b5563);
  --gmp-mat-color-primary: var(--reviews-accent, #185abc);
  --gmp-mat-color-neutral-container: var(--reviews-background, #f3f4f6);
  --gmp-mat-color-on-neutral-container: var(--reviews-muted, #4b5563);
  --gmp-mat-color-secondary-container: var(--reviews-button-background, #eef2f6);
  --gmp-mat-color-on-secondary-container: var(--reviews-accent, #185abc);
  --gmp-mat-color-outline-decorative: var(--reviews-border, #d1d5db);
}
rh-google-reviews[hidden] { display: none; }
rh-google-reviews [data-reviews-panel] {
  position: relative;
  height: var(--reviews-height, 520px);
  background: var(--reviews-card-background, #fff);
  border: 1px solid var(--reviews-border, #d1d5db);
  border-radius: var(--reviews-radius, 16px);
}
rh-google-reviews gmp-place-details {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--reviews-radius, 16px);
  color-scheme: var(--reviews-color-scheme, light);
}
rh-google-reviews [data-reviews-status] {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  padding: 32px;
  margin: 0;
  text-align: center;
  color: var(--reviews-muted, #4b5563);
  pointer-events: none;
}
rh-google-reviews [data-reviews-status][hidden] { display: none; }
rh-google-reviews[data-state='loading'] [data-reviews-status] {
  width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%);
}
rh-google-reviews [data-reviews-link] {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px;
  margin-top: 16px;
  text-align: center;
  font-weight: 600;
  color: var(--reviews-accent, #185abc);
  text-decoration: underline;
  text-underline-offset: 4px;
  border-radius: 6px;
}
rh-google-reviews [data-reviews-link]:focus-visible {
  outline: 3px solid var(--reviews-accent, #185abc);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  rh-google-reviews { scroll-behavior: auto; }
}

/* No configured provider means a static link panel from the first paint. */
rh-google-reviews[api-key=''] [data-reviews-panel] { height: 180px; }
