/* Google Reviews (ipnext_reviews) – inherits the site's font and colours.
   Override the custom properties in your theme. */

.ipnext-reviews {
  --ipnr-star: #f4b400;
  --ipnr-star-off: rgba(0, 0, 0, 0.18);
  --ipnr-muted: #6b6b6b;
  --ipnr-line: rgba(0, 0, 0, 0.12);
  --ipnr-featured: rgba(244, 180, 0, 0.08);
  line-height: 1.5;
}

.ipnext-reviews__stars {
  display: inline-flex;
  gap: 0.05em;
  white-space: nowrap;
  vertical-align: middle;
}

.ipnext-reviews__star {
  color: var(--ipnr-star-off);
  font-size: 1.1em;
  line-height: 1;
}

.ipnext-reviews__star.is-on {
  color: var(--ipnr-star);
}

.ipnext-reviews__star.is-half {
  background: linear-gradient(90deg, var(--ipnr-star) 50%, var(--ipnr-star-off) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ipnext-reviews__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1.25rem;
}

.ipnext-reviews__average {
  font-weight: 700;
  font-size: 1.25em;
}

.ipnext-reviews__count,
.ipnext-reviews__source,
.ipnext-reviews__date,
.ipnext-reviews__replylabel {
  color: var(--ipnr-muted);
  font-size: 0.9em;
}

.ipnext-reviews__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .ipnext-reviews__list {
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  }
}

.ipnext-reviews__item {
  border: 1px solid var(--ipnr-line);
  border-radius: 6px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ipnext-reviews__item.is-featured {
  background: var(--ipnr-featured);
}

.ipnext-reviews__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.ipnext-reviews__head > div {
  display: flex;
  flex-direction: column;
  margin-right: auto;
}

.ipnext-reviews__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.ipnext-reviews__author {
  font-weight: 600;
}

.ipnext-reviews__text {
  margin: 0;
  white-space: pre-line;
}

.ipnext-reviews__reply {
  border-left: 3px solid var(--ipnr-line);
  padding-left: 0.75rem;
  font-size: 0.95em;
}

.ipnext-reviews__reply p {
  margin: 0.2rem 0 0;
  white-space: pre-line;
}

.ipnext-reviews__source {
  margin-top: 1rem;
}

.ipnext-reviews__badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  border: 1px solid var(--ipnr-line);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
}

.ipnext-reviews__badge .ipnext-reviews__source {
  margin: 0;
  flex-basis: 100%;
}

.ipnext-reviews__badgetitle {
  font-weight: 600;
}

.ipnext-reviews__empty {
  color: var(--ipnr-muted);
}
