/* Google reviews strip. Dark bands, orange CTA (#e05c1a), gold stars.
   Loaded after site-overrides.css. Does not restyle the old .review-card
   grid; those nodes are hidden and then removed from the snapshots. */

.g-reviews {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  box-sizing: border-box;
}

.g-reviews-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.g-reviews.section-padding .g-reviews-inner {
  padding-left: 20px;
  padding-right: 20px;
}

.g-reviews-compact {
  margin: 8px 0 28px;
  overflow: hidden;
}

.g-reviews-compact .g-reviews-inner {
  max-width: none;
  padding: 0;
}

.detail-content:has(.g-reviews) {
  min-width: 0;
}

.g-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 22px;
}

.g-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.g-head .g-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.g-head h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  font-size: 1rem !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.g-score {
  font-family: "Barlow Condensed", sans-serif !important;
  font-weight: 900 !important;
  font-size: 2.6rem;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #fff;
}

.g-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #f59e0b;
}

.g-star {
  width: 18px;
  height: 18px;
  display: block;
}

.g-nav {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.g-arrow {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  cursor: pointer;
}

.g-arrow:hover {
  border-color: #e05c1a;
  color: #e05c1a;
}

.g-arrow:focus-visible,
.g-strip:focus-visible,
.g-more-input:focus-visible ~ .g-more,
.g-see:focus-visible,
.g-leave:focus-visible {
  outline: 2px solid #e05c1a;
  outline-offset: 3px;
}

.g-arrow.is-dim {
  opacity: 0.35;
}

.g-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  padding-bottom: 4px;
}

.g-strip::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .g-strip { scroll-behavior: auto; }
}

.g-review {
  flex: 0 0 min(340px, 86%);
  scroll-snap-align: start;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 22px 20px 18px;
  background: var(--color-surface, #111827);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.g-reviews-compact .g-review {
  flex-basis: min(300px, 88%);
  padding: 18px 16px 16px;
}

.g-review .g-star {
  width: 16px;
  height: 16px;
}

.g-text {
  margin: 0;
  color: var(--color-text-muted, #c5d0de);
  font-family: "Open Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.g-text.is-long {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}

.g-more-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.g-more-input:checked ~ .g-text.is-long {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  display: block;
  overflow: visible;
}

.g-more {
  align-self: flex-start;
  margin-top: -4px;
  padding: 0;
  border: 0;
  background: none;
  color: #e05c1a;
  font-family: "Open Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.g-more-less { display: none; }

.g-more-input:checked ~ .g-more .g-more-more { display: none; }
.g-more-input:checked ~ .g-more .g-more-less { display: inline; }

.g-by {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}

.g-name {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
  color: #fff;
}

.g-src {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-dim, #8ea0b8);
  font-family: "Open Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.g-src .g-logo {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.g-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-top: 22px;
}

.g-see {
  color: #e05c1a;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.g-see:hover { color: #c94f16; }

a.g-leave.btn-primary {
  text-transform: none;
  letter-spacing: 0.01em;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  background: #e05c1a !important;
  padding: 12px 18px;
}

a.g-leave.btn-primary:hover {
  transform: none;
  background: #c94f16 !important;
  box-shadow: none;
}

@media (max-width: 767px) {
  .g-reviews-inner { padding: 0 16px; }
  .g-reviews-compact .g-reviews-inner { padding: 0; }
  .g-nav { display: none; }
  .g-strip { align-items: flex-start; }
  .g-by { margin-top: 12px; }
  .g-head { margin-bottom: 16px; }
  .g-score { font-size: 2.2rem; }
  .g-actions { align-items: stretch; }
  a.g-leave.btn-primary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .g-more { min-height: 44px; display: inline-flex; align-items: center; }
}
