/* Debt Fix - self-hosted Google Reviews widget. Tune the custom properties on .gbp-reviews to restyle. */

.gbp-reviews-host {
    display: block;
    padding: 30px 30px 0;
}
.gbp-reviews {
  --gbp-text: #1c1f4a;
  --gbp-muted: #4a4f6a;
  --gbp-star: #f0b03c;
  --gbp-star-empty: #e3e5ee;
  --gbp-card-bg: #ffffff;
  --gbp-radius: 20px;
  --gbp-shadow: 0 8px 28px rgba(28, 31, 74, 0.06);
  --gbp-cta-bg: #7d2ae8;
  --gbp-cta-text: #ffffff;
  --gbp-link: #2f6bff;
  --gbp-gap: 24px;
  --gbp-per-view: 4;
  color: var(--gbp-text);
  font-family: inherit;
  line-height: 1.4;
}

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

/* ---------- summary bar ---------- */

.gbp-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--gbp-card-bg);
  border-radius: var(--gbp-radius);
  box-shadow: var(--gbp-shadow);
  padding: 28px 32px;
  margin: 0 0 40px;
}

.gbp-summary__brand { display: flex; align-items: center; gap: 18px; }

.gbp-glogo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
}

.gbp-glogo svg { width: 36px; height: 36px; }

.gbp-summary__title {
  margin: 0 0 6px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--gbp-text);
}

.gbp-summary__rating { display: flex; align-items: center; gap: 12px; }
.gbp-summary__score { font-size: 30px; font-weight: 800; line-height: 1; }
.gbp-summary__rating .gbp-stars { font-size: 26px; }
.gbp-summary__count { font-size: 20px; color: var(--gbp-muted); text-decoration: none; }
a.gbp-summary__count:hover,
a.gbp-summary__count:focus-visible { text-decoration: underline; }

.gbp-cta {
  display: inline-block;
  padding: 16px 30px;
  border-radius: 10px;
  background: var(--gbp-cta-bg);
  color: var(--gbp-cta-text);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gbp-cta:hover,
.gbp-cta:focus-visible {
  color: var(--gbp-cta-text);
  box-shadow: 0 8px 20px rgba(125, 42, 232, 0.30);
  transform: translateY(-1px);
}

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

.gbp-stars { display: inline-flex; gap: 0.15em; line-height: 1; }

.gbp-star {
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
  color: var(--gbp-star-empty);
}

.gbp-star svg { display: block; width: 1em; height: 1em; }

.gbp-star__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  color: var(--gbp-star);
}

/* ---------- carousel ---------- */

.gbp-carousel { position: relative; }

.gbp-track {
  display: flex;
  gap: var(--gbp-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 6px 0 18px;
  margin: -6px 0 -18px;
  outline: none;
}

.gbp-track::-webkit-scrollbar { display: none; }

.gbp-track:focus-visible {
  outline: 2px solid var(--gbp-link);
  outline-offset: 6px;
  border-radius: var(--gbp-radius);
}

.gbp-card {
  flex: 0 0 calc((100% - (var(--gbp-per-view) - 1) * var(--gbp-gap)) / var(--gbp-per-view));
  min-width: 0; /* a long nowrap reviewer name must not widen the card past its column */
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 30px 28px 26px;
  background: var(--gbp-card-bg);
  border-radius: var(--gbp-radius);
  box-shadow: var(--gbp-shadow);
}

.gbp-card .gbp-stars { font-size: 28px; margin-bottom: 22px; }

.gbp-card__text {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--gbp-muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gbp-card.is-expanded .gbp-card__text {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.gbp-card__more {
  align-self: flex-start;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 18px;
  color: var(--gbp-link);
  text-decoration: underline;
  cursor: pointer;
}

.gbp-card__more[hidden] { display: none; }

.gbp-card__author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 26px;
}

.gbp-avatar {
  position: relative;
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: #e9ebf3;
}

.gbp-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }

.gbp-avatar__initial {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 600;
  color: #fff;
}

.gbp-card__meta { display: flex; flex-direction: column; min-width: 0; }

.gbp-card__name {
  font-size: 19px;
  font-weight: 700;
  color: var(--gbp-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gbp-card__date { margin-top: 2px; font-size: 14px; color: var(--gbp-muted); }

/* ---------- prev / next ---------- */

.gbp-nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--gbp-text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.gbp-nav svg { width: 22px; height: 22px; }
.gbp-nav--prev { left: -23px; }
.gbp-nav--next { right: -23px; }
.gbp-nav:disabled { opacity: 0.35; cursor: default; }
.gbp-nav:focus-visible { outline: 2px solid var(--gbp-link); outline-offset: 2px; }
.gbp-carousel--static .gbp-nav { display: none; }

/* ---------- responsive ---------- */

@media (max-width: 1199px) {
  .gbp-reviews { --gbp-per-view: 3; }
}

@media (max-width: 899px) {
  .gbp-reviews { --gbp-per-view: 2; }
  .gbp-summary { padding: 24px; }
  .gbp-summary__title { font-size: 28px; }
}

@media (max-width: 599px) {
  .gbp-reviews { --gbp-per-view: 1; }
  .gbp-summary { flex-direction: column; align-items: flex-start; }
  .gbp-cta { width: 100%; text-align: center; }
  .gbp-card { min-height: 0; }
  .gbp-nav--prev { left: -8px; }
  .gbp-nav--next { right: -8px; }
  .gbp-reviews-host {padding: 10px 0px 30px;}
  .gbp-card__more {margin: 4px 0 10px;font-size: 15px;}
}

@media (prefers-reduced-motion: reduce) {
  .gbp-track { scroll-behavior: auto; }
  .gbp-cta, .gbp-nav { transition: none; }
}
