/* Google Rating Badge (Simple) */
.wpsgrb {
  /* Try to inherit theme/Elementor colors when available */
  --wpsgrb-accent: var(--e-global-color-primary, var(--wp--preset--color--primary, #111));
  --wpsgrb-text: var(--e-global-color-text, var(--wp--preset--color--foreground, #111));
  --wpsgrb-muted: rgba(17, 17, 17, .65);

  --wpsgrb-bg: rgba(255, 255, 255, .92);
  --wpsgrb-border: rgba(17, 17, 17, .12);
  --wpsgrb-shadow: 0 10px 24px rgba(0,0,0,.08);

  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--wpsgrb-border);
  background: var(--wpsgrb-bg);
  border-radius: 14px;
  box-shadow: var(--wpsgrb-shadow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  color: var(--wpsgrb-text);
  font-family: inherit;
  line-height: 1;
}

.wpsgrb:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
}

.wpsgrb__score {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .2px;
}

.wpsgrb__stars {
  display: inline-flex;
  gap: 2px;
  transform: translateY(-.5px);
}

.wpsgrb__star {
  width: 14px;
  height: 14px;
  display: inline-block;
}

.wpsgrb__star svg {
  width: 14px;
  height: 14px;
  display: block;
}

.wpsgrb__star--filled path {
  fill: var(--wpsgrb-accent);
}

.wpsgrb__star--empty path {
  fill: rgba(17, 17, 17, .18);
}

.wpsgrb__count {
  font-size: 12px;
  color: var(--wpsgrb-muted);
  white-space: nowrap;
 font-style: italic;
}

.wpsgrb--compact {
  padding: 8px 10px;
  border-radius: 12px;
  gap: 8px;
}

.wpsgrb--compact .wpsgrb__score { font-size: 13px; }
.wpsgrb--compact .wpsgrb__count { font-size: 12px; }

/* Dark areas like footer: set class wpsgrb--dark or wrap inside dark container */
.wpsgrb--dark {
  --wpsgrb-text: rgba(255,255,255,.92);
  --wpsgrb-muted: rgba(255,255,255,.70);
  --wpsgrb-bg: rgba(17, 17, 17, .72);
  --wpsgrb-border: rgba(255,255,255,.14);
  --wpsgrb-shadow: 0 14px 34px rgba(0,0,0,.25);
}

.wpsgrb--dark .wpsgrb__star--empty path {
  fill: rgba(255,255,255,.22);
}

/* Make it fit nicely in sidebar widgets */
.widget .wpsgrb,
.sidebar .wpsgrb {
  width: 100%;
  justify-content: space-between;
}

.wpsgrb__icon{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.wpsgrb__main{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.wpsgrb__top{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wpsgrb__bottom{
  font-size: 12px;
  opacity: .75;
  line-height: 1.1;
}