/*
 * HotSpring Product Reviews — front-end styles.
 * Self-contained (no external font/icon dependencies) so it drops cleanly
 * into any Elementor page regardless of theme.
 */

.hsr-widget {
  --hsr-ink: #1a2733;
  --hsr-muted: #5b6b78;
  --hsr-line: #e2e8ee;
  --hsr-bg: #ffffff;
  --hsr-bg-soft: #f6f8fa;
  --hsr-accent: #007681;
  --hsr-accent-ink: #ffffff;
  --hsr-star: #ffc107;
  --hsr-star-off: #dfe4e8;
  --hsr-danger: #c0392b;
  --hsr-radius: 10px;
  font-family: "Noto Sans", Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: var(--hsr-ink);
  box-sizing: border-box;
  font-size: 15px;
}
.hsr-widget *, .hsr-widget *::before, .hsr-widget *::after { box-sizing: border-box; font-family: inherit; }


.hsr-h3 { font-size: 0.9375rem; font-weight: 700; margin: 0 0 0.5rem; text-transform: uppercase; letter-spacing: 0.02em; }
.hsr-h3--center { text-align: center; }
.hsr-hint { color: var(--hsr-muted); font-size: 0.8125rem; margin: 0 0 0.75rem; }
/* !important throughout this star block: WordPress/Elementor themes often
   carry broad `span { color: ... }` rules that otherwise win the cascade
   and make every star (on or off) render the same color. */
.hsr-stars { display: inline-flex; gap: 3px; font-size: 1.35rem; line-height: 1; }
.hsr-stars--lg { font-size: 2.1rem; }
.hsr-star-on { color: var(--hsr-star) !important; }
.hsr-star-off { color: var(--hsr-star-off) !important; }

/* ---- Summary row: snapshot / overall / write-review CTA ---- */
.hsr-summary {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--hsr-line);
}
.hsr-summary__overall, .hsr-summary__cta { text-align: center; }
.hsr-summary__score { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.hsr-summary__count { color: var(--hsr-accent); font-weight: 600; font-size: 0.875rem; margin-top: 0.375rem; }

.hsr-snapshot-rows { display: grid; gap: 0.2rem; }
.hsr-snapshot-row {
  display: grid; grid-template-columns: 56px 1fr 28px; align-items: center; gap: 0.625rem;
  border: 0; background: none; cursor: pointer; font-size: 0.8125rem; color: var(--hsr-ink);
  text-align: left; border-radius: 4px;
  /* !important: the theme's own button styles carry their own padding
     rule that otherwise wins the cascade and inflates row height. */
  padding: 0.1rem 0 !important;
}
.hsr-snapshot-row:hover, .hsr-snapshot-row.is-active { background: var(--hsr-bg-soft); }
.hsr-snapshot-row__label { white-space: nowrap; }
/* Square (not pill) bars, matching the reference design. */
.hsr-snapshot-row__bar { height: 8px; border-radius: 0; background: var(--hsr-star-off); overflow: hidden; }
.hsr-snapshot-row__bar > span { display: block; height: 100%; background: var(--hsr-accent); border-radius: 0; }
.hsr-snapshot-row__count { text-align: right; color: var(--hsr-muted); }

.hsr-star-input--cta { justify-content: center; gap: 6px; }
.hsr-star-input--cta button {
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--hsr-star);
  border-radius: 4px;
  background-color: var(--hsr-bg);
  color: transparent; /* hide the ★ text glyph; the SVG icon below is what renders */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: background-color 0.12s ease;
  /* Reference-site star icon (outline: white fill, yellow stroke),
     inlined as a data URI so no extra asset/request is needed. */
  background-image: url("data:image/svg+xml;base64,PHN2ZyBhcmlhLWhpZGRlbj0idHJ1ZSIgd2lkdGg9IjM4cHgiIGhlaWdodD0iMzhweCIgZmlsbD0ibm9uZSIgdmlld0JveD0iMCAwIDM0IDM0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTU4OC4wMDAwMDAsIC00MDkuMDAwMDAwKSIgZmlsbD0iI0ZGRkZGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBzdHJva2U9IiNGRkMxMDciIHN0cm9rZS13aWR0aD0iMS41Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzMzcuMDAwMDAwLCAzOTkuMDAwMDAwKSI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjQxLjAwMDAwMCwgMC4wMDAwMDApIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMC4xOTIzMDgsIDEwLjE5MjMwOCkiPjxwYXRoIGQ9Ik0xNi4zMDc2OTIzLDEuNzY1MTMyNTUgTDIwLjgzODE1OTksMTEuNDE3MjcxOSBMMzEuMDU5MjU5NywxMi45Nzg5MTcgTDIzLjY2MDM4MzUsMjAuNTYyMTkwNiBMMjUuMzk3NTM1MywzMS4yMTE3OTA5IEwxNi4zMDc2OTIzLDI2LjE4NzA0OTMgTDcuMjE3ODQ5MzUsMzEuMjExNzkwOSBMOC45NTUwMDEwOCwyMC41NjIxOTA2IEwxLjU1NjEyNDkzLDEyLjk3ODkxNyBMMTEuNzc3MjI0NywxMS40MTcyNzE5IEwxNi4zMDc2OTIzLDEuNzY1MTMyNTUgWiI+PC9wYXRoPjwvZz48L2c+PC9nPjwvZz48L2c+PC9zdmc+");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
}
/* is-hover previews the rating as the pointer moves across the stars;
   is-filled is the committed value. Both swap to a solid button with a
   white icon (same star shape, white fill/stroke so it reads as filled
   against the yellow background) while keeping the border per design. */
.hsr-star-input--cta button.is-filled,
.hsr-star-input--cta button.is-hover {
  background-color: var(--hsr-star);
  background-image: url("data:image/svg+xml;base64,PHN2ZyBhcmlhLWhpZGRlbj0idHJ1ZSIgd2lkdGg9IjM4cHgiIGhlaWdodD0iMzhweCIgZmlsbD0ibm9uZSIgdmlld0JveD0iMCAwIDM0IDM0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTU4OC4wMDAwMDAsIC00MDkuMDAwMDAwKSIgZmlsbD0iI0ZGRkZGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBzdHJva2U9IiNGRkZGRkYiIHN0cm9rZS13aWR0aD0iMS41Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzMzcuMDAwMDAwLCAzOTkuMDAwMDAwKSI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjQxLjAwMDAwMCwgMC4wMDAwMDApIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMC4xOTIzMDgsIDEwLjE5MjMwOCkiPjxwYXRoIGQ9Ik0xNi4zMDc2OTIzLDEuNzY1MTMyNTUgTDIwLjgzODE1OTksMTEuNDE3MjcxOSBMMzEuMDU5MjU5NywxMi45Nzg5MTcgTDIzLjY2MDM4MzUsMjAuNTYyMTkwNiBMMjUuMzk3NTM1MywzMS4yMTE3OTA5IEwxNi4zMDc2OTIzLDI2LjE4NzA0OTMgTDcuMjE3ODQ5MzUsMzEuMjExNzkwOSBMOC45NTUwMDEwOCwyMC41NjIxOTA2IEwxLjU1NjEyNDkzLDEyLjk3ODkxNyBMMTEuNzc3MjI0NywxMS40MTcyNzE5IEwxNi4zMDc2OTIzLDEuNzY1MTMyNTUgWiI+PC9wYXRoPjwvZz48L2c+PC9nPjwvZz48L2c+PC9zdmc+");
  border-color: var(--hsr-star);
}

/* ---- Average customer ratings ---- */
.hsr-average-ratings { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--hsr-line); }
.hsr-average-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.75rem 2.5rem; }
.hsr-average-item { min-width: 150px; }
.hsr-average-item__label { font-size: 0.8125rem; color: var(--hsr-muted); margin-bottom: 0.3rem; }
.hsr-average-item__row { display: flex; align-items: center; gap: 0.5rem; }
/* Segmented (5-block) bar, matching the reference design, instead of a
   single continuous progress bar. */
.hsr-average-item__bar { flex: 1; display: flex; gap: 3px; min-width: 100px; }
.hsr-average-item__seg { flex: 1; height: 14px; border-radius: 0; background: var(--hsr-star-off); overflow: hidden; }
.hsr-average-item__seg > span { display: block; height: 100%; background: var(--hsr-accent); border-radius: 0; }
.hsr-average-item__value { font-size: 0.8125rem; color: var(--hsr-muted); width: 2ch; }

/* ---- Gallery strip ---- */
.hsr-gallery { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--hsr-line); }
.hsr-gallery__wrap { position: relative; }
.hsr-gallery__strip {
  display: flex; gap: 0.625rem; overflow-x: auto; padding-bottom: 0.25rem;
  /* Simple JS-driven arrow nav (hsr-reviews.js bindGallery()) replaces the
     native scrollbar; overflow-x stays "auto" so touch/trackpad swipe on
     mobile still scrolls it natively — only the scrollbar chrome itself
     is hidden. */
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.hsr-gallery__strip::-webkit-scrollbar { display: none; height: 0; }
.hsr-gallery__strip img {
  width: 110px; height: 110px; object-fit: cover; border-radius: 8px; cursor: zoom-in; flex: 0 0 auto;
  border: 1px solid var(--hsr-line); scroll-snap-align: start;
}
.hsr-gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--hsr-line);
  background: var(--hsr-bg); color: var(--hsr-ink); font-size: 1.25rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(20, 30, 40, 0.15);
}
.hsr-gallery__nav--prev { left: -14px; }
.hsr-gallery__nav--next { right: -14px; }
.hsr-gallery__nav:hover { background: var(--hsr-bg-soft); }
/* An author `display: flex` rule otherwise always beats the UA
   stylesheet's `[hidden] { display: none }`, regardless of specificity —
   so hiding these via the hidden attribute (renderGallery() in
   hsr-reviews.js) needs this explicit override. */
.hsr-gallery__nav[hidden] { display: none; }

/* ---- Filters ---- */
.hsr-filters { margin-bottom: 1.5rem; }
.hsr-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--hsr-line);
  border-radius: var(--hsr-radius);
  padding: 0.55rem 0.85rem;
  margin-bottom: 0.625rem;
}
.hsr-search svg { width: 18px; height: 18px; color: var(--hsr-muted); flex-shrink: 0; }
.hsr-search input { border: 0; outline: 0; width: 100%; font-size: 0.9rem; background: transparent; color: var(--hsr-ink); }

.hsr-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; margin-bottom: 0.5rem; }
.hsr-select {
  border: 1px solid var(--hsr-line);
  border-radius: 4px;
  padding: 0.45rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--hsr-ink);
  background: var(--hsr-bg);
  max-width: 220px;
}
.hsr-select--sort { margin-left: auto; }
.hsr-link-btn { border: 0; background: none; color: var(--hsr-accent); font-size: 0.8125rem; font-weight: 600; cursor: pointer; padding: 0.25rem 0; }

.hsr-more-filters { margin: 0.5rem 0; }
.hsr-more-filters summary { color: var(--hsr-accent); font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
.hsr-filter-grid { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 0.75rem; }

/* ---- Rating checkbox dropdowns (multi-select) ---- */
.hsr-multiselect { position: relative; }
.hsr-multiselect__trigger {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1px solid var(--hsr-line);
  border-radius: 4px;
  background: var(--hsr-bg);
  color: var(--hsr-ink);
  padding: 0.45rem 0.75rem;
  font-size: 0.8125rem;
  cursor: pointer;
}
.hsr-multiselect.is-active .hsr-multiselect__trigger { border-color: var(--hsr-accent); color: var(--hsr-accent); }
.hsr-multiselect__chevron { flex-shrink: 0; transition: transform 0.12s ease; }
.hsr-multiselect[data-hsr="rating-multiselect"] .hsr-multiselect__trigger[aria-expanded="true"] .hsr-multiselect__chevron { transform: rotate(180deg); }
.hsr-multiselect__panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 20;
  background: var(--hsr-bg);
  border: 1px solid var(--hsr-line);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(20, 30, 40, 0.12);
  padding: 0.4rem;
  min-width: 150px;
}
.hsr-multiselect__option {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.8125rem;
  color: var(--hsr-ink);
  cursor: pointer;
  border-radius: 4px;
  white-space: nowrap;
}
.hsr-multiselect__option:hover { background: var(--hsr-bg-soft); }
.hsr-multiselect__option input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.hsr-multiselect__check {
  width: 18px; height: 18px; flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--hsr-line);
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent;
  font-size: 11px;
  line-height: 1;
}
.hsr-multiselect__check::before { content: '+'; color: var(--hsr-muted); }
.hsr-multiselect__option input:checked ~ .hsr-multiselect__check {
  background: var(--hsr-ink);
  border-color: var(--hsr-ink);
}
.hsr-multiselect__option input:checked ~ .hsr-multiselect__check::before { content: '✓'; color: #fff; }

/* ---- Active filter tags ---- */
.hsr-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 0.75rem; }
.hsr-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--hsr-accent);
  color: var(--hsr-accent-ink);
  border-radius: 4px;
  padding: 0.3rem 0.5rem 0.3rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 600;
  /* Fallback in case flex `gap` is overridden by a theme reset — keeps
     tags visibly separated either way. */
  margin: 0 0.15rem 0.15rem 0;
}
.hsr-tag button {
  border: 0; background: none; color: inherit; cursor: pointer;
  font-size: 1rem; line-height: 1; padding: 0; opacity: 0.85;
}
.hsr-tag button:hover { opacity: 1; }

/* ---- Review list ---- */
.hsr-loading, .hsr-empty, .hsr-error { color: var(--hsr-muted); padding: 2rem 0; text-align: center; }
.hsr-error { color: var(--hsr-danger); }

.hsr-card {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--hsr-line);
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
}
.hsr-card__main { min-width: 0; }
.hsr-card__stars { margin-bottom: 0.375rem; }
.hsr-card__title { font-size: 1.0625rem; font-weight: 700; margin: 0 0 0.3rem; }
.hsr-card__meta { color: var(--hsr-muted); font-size: 0.8125rem; margin-bottom: 0.75rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.hsr-card__recommend { color: var(--hsr-accent); font-weight: 600; }
.hsr-card__text { font-size: 0.9375rem; line-height: 1.6; margin: 0 0 0.875rem; white-space: pre-line; }

.hsr-photo-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.875rem; }
.hsr-photo-grid img {
  width: 80px; height: 80px; object-fit: cover; border-radius: 8px; cursor: zoom-in;
  border: 1px solid var(--hsr-line);
}

.hsr-response {
  background: var(--hsr-bg-soft);
  border-radius: var(--hsr-radius);
  padding: 0.85rem 1rem;
  margin: 0.875rem 0;
  font-size: 0.875rem;
}
.hsr-response__head { font-weight: 700; display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.25rem; }
.hsr-response__head span:last-child { font-weight: 400; color: var(--hsr-muted); }
.hsr-response__body { word-break: break-word; }
.hsr-response__body img { max-width: 100%; height: auto; }

.hsr-card__actions { display: flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; color: var(--hsr-muted); flex-wrap: wrap; margin-top: 0.5rem; }
.hsr-vote-btn {
  border: 1px solid var(--hsr-line);
  background: var(--hsr-bg);
  border-radius: 999px;
  padding: 0.25rem 0.625rem;
  cursor: pointer;
  color: var(--hsr-muted);
  font-size: 0.8125rem;
}
.hsr-vote-btn.is-active { border-color: var(--hsr-accent); color: var(--hsr-accent); background: #eaf4f7; }

/* Full-width bar below the card (spans both grid columns), matching the
   reference design: grey background, chat-bubble icon, blue link text. */
.hsr-postcomment-btn {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  border: 0;
  background: var(--hsr-bg-soft);
  color: var(--hsr-accent);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.65rem 0.875rem;
  border-radius: 4px;
  text-align: left;
}
.hsr-postcomment-btn:hover { background: #eef1f3; }
.hsr-postcomment-btn__icon { font-size: 0.9375rem; }

.hsr-card__aside { border-left: 1px solid var(--hsr-line); padding-left: 1.5rem; }
.hsr-subratings { display: grid; gap: 0.55rem; }
.hsr-subrating { display: grid; grid-template-columns: 128px 1fr 28px; align-items: center; gap: 0.55rem; font-size: 0.75rem; color: var(--hsr-muted); }
.hsr-subrating__bar { height: 7px; border-radius: 999px; background: var(--hsr-star-off); overflow: hidden; }
.hsr-subrating__bar > span { display: block; height: 100%; background: var(--hsr-accent); }
.hsr-subrating__value { text-align: right; }

@media (max-width: 900px) {
  .hsr-summary { grid-template-columns: 1fr; gap: 1.5rem; }
  .hsr-summary__overall, .hsr-summary__cta { text-align: left; }
}
@media (max-width: 640px) {
  .hsr-card { grid-template-columns: 1fr; }
  .hsr-card__aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--hsr-line); padding-top: 0.75rem; }
  .hsr-select--sort { margin-left: 0; }
}

/* ---- Load more ---- */
.hsr-loadmore { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1.5rem 0; }
.hsr-loadmore__done { margin: 0; }

/* ---- Star input (write review) ---- */
.hsr-star-input { display: inline-flex; gap: 4px; }
.hsr-star-input button {
  cursor: pointer; padding: 0; font-size: 1.6rem; line-height: 1;
}
.hsr-star-input--sm button { font-size: 1.25rem; }

/* Border/background/color for the star buttons apply only inside the
   "Write a review" popup, not to every .hsr-star-input on the page
   (e.g. the read-only ones in review cards use plain glyph coloring). */
.hsr-modal[data-hsr="write-modal"] .hsr-star-input button {
  border: 0; background: none; color: var(--hsr-star-off);
}
.hsr-modal[data-hsr="write-modal"] .hsr-star-input button.is-filled { color: var(--hsr-star); }

/* ---- Rating bar input (Comfort/Quality/etc. in the write-review form) --
   Same segmented look as .hsr-average-item__seg / .hsr-snapshot-row__bar
   used elsewhere for read-only ratings, but as 5 clickable/hoverable
   buttons using the brand accent color for the filled state. */
.hsr-rating-bar { display: flex; gap: 2px; width: 100%; min-width: 0; max-width: 220px; }
.hsr-rating-bar__seg {
  flex: 1; min-width: 0; height: 8px; padding: 0; border: 0; border-radius: 0;
  background: var(--hsr-star-off); cursor: pointer;
}
.hsr-rating-bar__seg.is-filled,
.hsr-rating-bar__seg.is-hover { background: var(--hsr-accent); }
.hsr-rating-bar-wrap { display: flex; flex-direction: column; justify-content: start; align-items: flex-start; gap: 0.3rem; }
.hsr-rating-bar__text { font-size: 0.75rem; font-style: italic; color: var(--hsr-muted); white-space: nowrap; min-height: 20px; }

/* The theme's own button styles (padding + border-radius + max-width on
   all <button> elements) otherwise win over the plain rules above, since
   theme stylesheets tend to load after this one — scoped to the
   write-review popup specifically (3 parent classes) + !important, same
   fix already used for .hsr-star-input button in this same modal. */
.hsr-modal[data-hsr="write-modal"] .hsr-step-panel .hsr-rating-bar__seg {
  padding: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  max-width: 20px !important;
}
.hsr-bar-field { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.85rem; }
.hsr-bar-field .hsr-label { margin-bottom: 0; flex-shrink: 0; }

/* ---- Lightbox (image + full review details) ---- */
.hsr-lightbox {
  position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 2vh 1rem;
}
.hsr-lightbox[hidden] { display: none; }
.hsr-lightbox__backdrop { position: fixed; inset: 0; background: rgba(10, 14, 18, 0.92); }
.hsr-lightbox__frame {
  position: relative; display: flex; width: 100%; max-width: 1100px; max-height: 92vh;
  background: #0a0e12; border-radius: 10px; overflow: hidden;
}
.hsr-lightbox__image-pane { position: relative; flex: 1.3; display: flex; align-items: center; justify-content: center; background: #000; min-width: 0; }
.hsr-lightbox__img { max-width: 100%; max-height: 92vh; object-fit: contain; }
.hsr-lightbox__close {
  position: absolute; top: 0.75rem; right: 0.9rem; font-size: 1.75rem; line-height: 1; z-index: 2;
  background: rgba(0, 0, 0, 0.35); border: 0; color: #fff; cursor: pointer; width: 36px; height: 36px;
  /* !important: the theme's own button reset (padding, border-radius) can
     otherwise win the cascade here and break the circular close button —
     same reasoning as the star-rating !important block above. */
  padding: 0 !important;
  border-radius: 50% !important;
}
.hsr-lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15); border: 0; color: #fff; width: 40px; height: 40px;
  border-radius: 50%; cursor: pointer; font-size: 1rem; z-index: 2;
}
.hsr-lightbox__nav--prev { left: 0.75rem; }
.hsr-lightbox__nav--next { right: 0.75rem; }
.hsr-lightbox__count { position: absolute; bottom: 0.75rem; left: 50%; transform: translateX(-50%); color: #fff; font-size: 0.75rem; }
.hsr-lightbox__details {
  flex: 1; background: var(--hsr-bg); padding: 1.5rem; overflow-y: auto; max-height: 92vh; color: var(--hsr-ink);
}
@media (max-width: 760px) {
  .hsr-lightbox__frame { flex-direction: column; max-height: 96vh; }
  .hsr-lightbox__image-pane { max-height: 45vh; }
  .hsr-lightbox__details { max-height: none; }
}

/* ---- Modals (write review / thanks) ---- */
.hsr-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-start; justify-content: center; padding: 3vh 1rem; overflow-y: auto; }
.hsr-modal[hidden] { display: none; }
.hsr-modal__backdrop { position: fixed; inset: 0; background: rgba(10, 14, 18, 0.55); }
.hsr-modal__dialog {
  position: relative; background: var(--hsr-bg); border-radius: 14px; padding: 1.75rem;
  width: 100%; max-width: 640px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.hsr-modal__dialog--small { max-width: 420px; text-align: center; }
.hsr-modal__dialog--wizard { max-width: 780px; }
.hsr-modal__close { position: absolute; top: 0.75rem; right: 0.9rem; font-size: 1.5rem; background: none; border: 0; cursor: pointer; color: var(--hsr-muted); }
.hsr-modal h3 { margin: 0 0 1rem; font-size: 1.25rem; }

/* [product_reviews_picker] — same write-review form, rendered inline on
   its own page instead of as an overlay: no fixed positioning, no
   backdrop/close button (render_write_review_modal()'s $standalone=true
   already omits those from the markup), just a plain boxed form. */
.hsr-modal--standalone {
  position: static; inset: auto; z-index: auto; display: block; padding: 0; overflow: visible;
}
.hsr-modal--standalone .hsr-modal__dialog {
  margin: 0; width: auto; max-width: 100%; box-shadow: none; border: 1px solid var(--hsr-line);
}
.hsr-standalone-thanks { text-align: center; padding: 1.5rem 0; }
.hsr-standalone-thanks h3 { margin: 0 0 0.75rem; }
.hsr-standalone-thanks p { margin: 0 0 0.5rem; }
.hsr-standalone-thanks .hsr-hint { margin: 0; }

/* ---- Write-review header: product thumbnail + "Write a Review" + model ---- */
.hsr-write-header {
  display: flex; align-items: center; gap: 0.85rem; padding-bottom: 1rem; margin: 0 0 1.25rem;
  border-bottom: 1px solid var(--hsr-line);
}
.hsr-write-header__thumb { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: var(--hsr-bg-soft); flex-shrink: 0; }
.hsr-write-header__thumb--empty { display: none; }
.hsr-write-header__eyebrow { margin: 0 0 0.2rem; font-size: 0.8125rem; font-weight: 600; color: var(--hsr-muted); }
.hsr-write-header__model { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--hsr-ink); }

/* ---- Write-review step progress indicator ---- */
.hsr-steps { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin: 0 0 1.5rem; }
.hsr-step-dot {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem; font-weight: 700; color: var(--hsr-muted); background: var(--hsr-bg-soft);
  border: 1px solid var(--hsr-line); flex-shrink: 0;
}
.hsr-step-dot.is-active { background: var(--hsr-accent); border-color: var(--hsr-accent); color: var(--hsr-accent-ink); }
.hsr-step-dot.is-done { background: var(--hsr-bg); border-color: var(--hsr-accent); color: var(--hsr-accent); }
.hsr-step-line { width: 40px; height: 2px; background: var(--hsr-line); flex-shrink: 0; }

.hsr-step-panel[hidden] { display: none; }
.hsr-step-nav { display: flex; align-items: center; justify-content: flex-end; gap: 0.6rem; margin-top: 0.5rem; }
.hsr-btn--ghost { background: var(--hsr-bg); color: var(--hsr-muted); border-color: var(--hsr-line); margin-right: auto; }
.hsr-btn--ghost:hover { color: var(--hsr-ink); }

.hsr-hint--tight { margin-top: 0.35rem; margin-bottom: 0; }

/* ---- Sub-rating bars laid out as one row (Comfort/Quality/etc.) ---- */
.hsr-ratings-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem 0.6rem; margin-bottom: 1rem; }
.hsr-ratings-row .hsr-bar-field { display: block; min-width: 0; margin-bottom: 0; }
.hsr-ratings-row .hsr-bar-field .hsr-label {
  display: block; text-transform: uppercase; font-size: 11px; letter-spacing: 0;
  color: var(--hsr-accent); margin-bottom: 0.4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hsr-ratings-row .hsr-rating-bar { max-width: none; }

/* ---- Section sub-headings inside the write-review form ---- */
.hsr-section-heading {
  position: relative; display: flex; align-items: center; gap: 0.4rem;
  padding-bottom: 0.4rem; margin: 1.25rem 0 1rem; border-bottom: 1px solid var(--hsr-line);
}
.hsr-section-heading h4 { margin: 0; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--hsr-ink); }
.hsr-info-icon {
  width: 18px; height: 18px; border: 0; flex-shrink: 0;
  background: var(--hsr-ink); color: var(--hsr-bg); font-size: 0.6875rem; font-style: italic; font-weight: 700;
  line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
/* Scoped + !important for the same reason as .hsr-rating-bar__seg above:
   the theme's global button rule otherwise overrides border-radius and
   adds its own padding, squaring off and enlarging the "i" icon. */
.hsr-modal[data-hsr="write-modal"] .hsr-section-heading .hsr-info-icon {
  padding: 0 !important;
  border-radius: 50% !important;
}
.hsr-info-panel {
  position: absolute; top: 100%; right: 0; z-index: 5; width: min(380px, 90vw); margin-top: 0.4rem;
  background: var(--hsr-bg-soft); border: 1px solid var(--hsr-line); border-radius: 10px; padding: 1rem 1.25rem;
  font-size: 0.8125rem; color: var(--hsr-ink); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.hsr-info-panel[hidden] { display: none; }
.hsr-info-panel h5 { margin: 0 0 0.5rem; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; }
.hsr-info-panel p { margin: 0 0 0.5rem; }
.hsr-info-panel ul { margin: 0 0 0.5rem; padding-left: 1.2rem; list-style: disc; }
.hsr-info-panel ul ul { margin: 0.3rem 0; list-style: circle; }
.hsr-info-panel li { margin-bottom: 0.3rem; }
.hsr-info-panel__close { position: absolute; top: 0.5rem; right: 0.6rem; border: 0; background: none; color: var(--hsr-muted); cursor: pointer; font-size: 1.1rem; line-height: 1; }

/* ---- Persistent footer links under the step-nav buttons ---- */
.hsr-write-footer {
  display: flex; gap: 1.25rem; justify-content: flex-end; margin-top: 0.85rem;
  padding-top: 0.85rem; border-top: 1px solid var(--hsr-line); font-size: 0.75rem;
}
.hsr-write-footer a { color: var(--hsr-accent); }

.hsr-fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.hsr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; }
.hsr-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.hsr-field { margin-bottom: 1rem; }
.hsr-field--narrow { max-width: 220px; }
.hsr-label { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.3rem; }
.hsr-required { color: var(--hsr-danger); }
.hsr-input {
  width: 100%; border: 1px solid var(--hsr-line); border-radius: 8px; padding: 0.55rem 0.7rem;
  font-size: 0.9rem; font-family: inherit; color: var(--hsr-ink);
}
.hsr-radio-row { display: flex; gap: 1.25rem; font-size: 0.875rem; }

/* Yes/No shown as a pill toggle-button pair rather than plain radios. The
   inputs stay real, functional radios (keyboard/screen-reader friendly) —
   only visually hidden — and hsr-reviews.js toggles .is-active off their
   :checked state. */
.hsr-field--recommend { margin-top: 1rem; }
.hsr-radio-row--pill { gap: 0.5rem; }
.hsr-radio-row--pill label {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; padding: 0.3rem 0.85rem; border: 1px solid var(--hsr-line); border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600; color: var(--hsr-ink); cursor: pointer; user-select: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.hsr-radio-row--pill input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.hsr-radio-row--pill label.is-active { background: var(--hsr-ink); border-color: var(--hsr-ink); color: #fff; }
.hsr-checkbox-row { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.8125rem; color: var(--hsr-muted); margin-bottom: 0.75rem; }
.hsr-checkbox-row input { margin-top: 3px; }
.hsr-checkbox-row a { color: var(--hsr-accent); }
.hsr-photo-preview { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.hsr-photo-thumb { position: relative; width: 56px; height: 56px; flex: 0 0 auto; }
.hsr-photo-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; border: 1px solid var(--hsr-line); display: block; }
.hsr-photo-thumb__remove {
  position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; padding: 0;
  border: 0; border-radius: 50%; background: var(--hsr-ink); color: #fff;
  font-size: 0.75rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.hsr-modal[data-hsr="write-modal"] .hsr-step-panel .hsr-photo-thumb__remove {
  padding: 0 !important;
  border-radius: 50% !important;
}
.hsr-field-error { color: var(--hsr-danger); font-size: 0.8125rem; margin: 0 0 0.75rem; }

/* ---- Step 3: "Would you recommend to a friend?" 0-10 NPS scale ---- */
.hsr-nps-field { margin-bottom: 1.25rem; }
.hsr-nps-scale { display: flex; justify-content: space-between; gap: 0.25rem; margin-top: 0.6rem; }
.hsr-nps-option {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  font-size: 0.8125rem; color: var(--hsr-ink); cursor: pointer; flex: 1; min-width: 0;
}
.hsr-nps-option input { margin: 0; cursor: pointer; }
.hsr-nps-scale-labels { display: flex; justify-content: space-between; margin-top: 0.4rem; font-size: 0.75rem; font-style: italic; color: var(--hsr-muted); }
.hsr-divider { border: 0; border-top: 1px solid var(--hsr-line); margin: 1.25rem 0; }

@media (max-width: 560px) {
  .hsr-nps-scale { flex-wrap: wrap; }
  .hsr-nps-option { flex: 0 0 auto; width: 16.66%; }
}

.hsr-btn {
  border: 1px solid var(--hsr-accent);
  background: var(--hsr-bg);
  color: var(--hsr-accent);
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.hsr-btn--primary { background: var(--hsr-accent); color: var(--hsr-accent-ink); }
.hsr-btn--primary:hover { background: #0b5a73; }
.hsr-btn--block { width: 100%; }
.hsr-btn[disabled] { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 560px) {
  .hsr-grid, .hsr-grid--3 { grid-template-columns: 1fr; }
  .hsr-modal__dialog { padding: 1.25rem; }
  .hsr-ratings-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hsr-info-panel { left: 0; right: auto; }
  .hsr-write-footer { justify-content: flex-start; }
}
