/* TEARZ — product reviews block. Scoped to #tearz-reviews / .trv-*. */
#tearz-reviews[hidden], .trv-lightbox[hidden] { display: none !important; }
#tearz-reviews {
  --trv-ink: #111; --trv-mute: #6b6b6b; --trv-line: #e5e5e5; --trv-soft: #f7f7f5; --trv-empty: #d4d4d0;
  margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--trv-line);
  color: var(--trv-ink); font-family: Arial, Helvetica, sans-serif;
}
#tearz-reviews *, .trv-lightbox * { box-sizing: border-box; }
#tearz-reviews button { font: inherit; color: inherit; }

.trv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.trv-title { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 28px; letter-spacing: -.02em; margin: 0; line-height: 1.15; }
.trv-head-count { font-size: 12px; color: var(--trv-mute); letter-spacing: .04em; text-transform: uppercase; }
.trv-draft-note { margin: -8px 0 20px; padding: 10px 14px; background: #fff7d6; border: 1px solid #e8d48a; font-size: 12px; }

/* Stars */
.trv-stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.trv-star { position: relative; display: inline-block; width: 15px; height: 15px; }
.trv-stars--lg .trv-star { width: 22px; height: 22px; }
.trv-star svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--trv-empty); }
.trv-star-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; height: 100%; }
.trv-star-fill svg { width: 15px; height: 15px; fill: var(--trv-ink); }
.trv-stars--lg .trv-star-fill svg { width: 22px; height: 22px; }
.trv-mini-star { display: inline-block; width: 11px; height: 11px; vertical-align: -1px; }
.trv-mini-star svg { width: 100%; height: 100%; fill: currentColor; display: block; }

/* Summary */
.trv-summary { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 420px); gap: 48px; align-items: center; padding: 26px 28px; background: var(--trv-soft); }
.trv-score { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.trv-score-num { font-family: Georgia, serif; font-size: 56px; line-height: 1; letter-spacing: -.03em; }
.trv-score-based { font-size: 12px; color: var(--trv-mute); }
.trv-bars { display: flex; flex-direction: column; gap: 7px; }
.trv-bar { display: grid; grid-template-columns: 34px 1fr 24px; align-items: center; gap: 12px; width: 100%; padding: 3px 0; background: none; border: 0; cursor: pointer; text-align: left; font-size: 12px; }
.trv-bar:disabled { cursor: default; opacity: .45; }
.trv-bar-label { display: inline-flex; align-items: center; gap: 4px; }
.trv-bar-track { position: relative; height: 6px; background: #e3e3df; overflow: hidden; }
.trv-bar-fill { position: absolute; inset: 0 auto 0 0; background: var(--trv-ink); transition: width .3s ease; }
.trv-bar-num { color: var(--trv-mute); text-align: right; }
.trv-bar:not(:disabled):hover .trv-bar-label, .trv-bar.is-active .trv-bar-label { text-decoration: underline; text-underline-offset: 3px; }

/* Customer photos */
.trv-gallery { margin-top: 30px; }
.trv-subtitle { font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.trv-gallery-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 6px; scrollbar-width: thin; }
.trv-thumb { flex: 0 0 auto; display: block; padding: 0; border: 0; background: var(--trv-soft); cursor: zoom-in; scroll-snap-align: start; overflow: hidden; }
.trv-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.trv-thumb:hover img { transform: scale(1.04); }
.trv-gallery-strip .trv-thumb { width: 116px; height: 150px; }

/* Toolbar */
.trv-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 30px 0 4px; padding-bottom: 16px; border-bottom: 1px solid var(--trv-line); }
.trv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.trv-chip { display: inline-flex; align-items: center; gap: 3px; min-height: 36px; padding: 8px 14px; background: #fff; border: 1px solid #cfcfcf; border-radius: 0; cursor: pointer; font-size: 12px; }
.trv-chip:hover { border-color: var(--trv-ink); }
.trv-chip.is-active { background: var(--trv-ink); color: #fff !important; border-color: var(--trv-ink); }
.trv-sort { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; }
.trv-sort-label { color: var(--trv-mute); }
.trv-sort-select { min-height: 36px; padding: 7px 30px 7px 12px; border: 1px solid #cfcfcf; border-radius: 0; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 11px center / 10px; -webkit-appearance: none; appearance: none; color: var(--trv-ink); font: inherit; font-size: 12px; cursor: pointer; }

/* Cards */
.trv-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.trv-card { padding: 24px 0; border-bottom: 1px solid var(--trv-line); min-width: 0; }
.trv-card.is-draft { background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(232,212,138,.12) 12px 24px); }
.trv-card-rating { display: flex; align-items: center; gap: 8px; }
.trv-card-score { font-size: 12px; color: var(--trv-mute); }
.trv-card-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 12px; }
.trv-card-name { font-size: 14px; font-weight: 700; }
.trv-verified { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--trv-mute); }
.trv-verified svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.trv-card-meta { margin-top: 6px; font-size: 12px; color: var(--trv-mute); }
.trv-card-title { margin: 12px 0 0; font-size: 14px; font-weight: 700; }
.trv-card-body { margin: 10px 0 0; font-size: 14px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.trv-card-photos { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.trv-card-photos .trv-thumb { width: 84px; height: 108px; }
.trv-empty { grid-column: 1 / -1; padding: 28px 0; font-size: 14px; color: var(--trv-mute); }
.trv-empty p { margin: 0 0 8px; }
.trv-link { padding: 0; background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; }
.trv-more { display: block; width: 100%; max-width: 320px; margin: 28px auto 0; min-height: 48px; background: #fff; border: 1px solid var(--trv-ink); cursor: pointer; font-size: 13px; }
.trv-more:hover { background: var(--trv-ink); color: #fff !important; }
#tearz-reviews button:focus-visible, #tearz-reviews select:focus-visible, .trv-lightbox button:focus-visible { outline: 2px solid var(--trv-ink); outline-offset: 3px; }

/* Lightbox */
html.trv-lock, html.trv-lock body { overflow: hidden; }
.trv-lightbox { position: fixed; inset: 0; z-index: 12000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.72); }
.trv-lb-box { position: relative; display: flex; flex-direction: column; width: min(920px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); background: #fff; color: #111; font-family: Arial, Helvetica, sans-serif; }
.trv-lb-bar { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 6px 0 16px; border-bottom: 1px solid #e5e5e5; flex: 0 0 auto; }
.trv-lb-count { font-size: 12px; color: #6b6b6b; }
.trv-lb-close { width: 44px; height: 44px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: #111; }
.trv-lb-stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; background: #f7f7f5; touch-action: pan-y; }
.trv-lb-img { display: block; max-width: 100%; max-height: calc(100vh - 200px); max-height: calc(100dvh - 200px); width: auto; height: auto; object-fit: contain; user-select: none; }
.trv-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 1px solid #ccc; border-radius: 50%; background: rgba(255,255,255,.94); color: #111; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 3px; }
.trv-lb-nav[hidden] { display: none; }
.trv-lb-prev { left: 12px; } .trv-lb-next { right: 12px; }
.trv-lb-caption { padding: 14px 16px 16px; border-top: 1px solid #e5e5e5; flex: 0 0 auto; }
.trv-lb-who { display: flex; align-items: center; gap: 10px; }
.trv-lb-name { font-size: 13px; font-weight: 700; }
.trv-lb-body { margin: 6px 0 0; font-size: 13px; line-height: 1.55; color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 900px) {
  .trv-summary { grid-template-columns: 1fr; gap: 22px; }
  .trv-list { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  #tearz-reviews { margin-top: 36px; padding-top: 24px; }
  .trv-title { font-size: 24px; }
  .trv-summary { padding: 20px; margin: 0 -20px; }
  .trv-score { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
  .trv-score-num { font-size: 46px; }
  .trv-score-based { flex-basis: 100%; }
  .trv-gallery-strip { margin: 0 -20px; padding: 0 20px 6px; scroll-padding-left: 20px; }
  .trv-gallery-strip .trv-thumb { width: 104px; height: 134px; }
  .trv-toolbar { flex-direction: column; align-items: stretch; }
  .trv-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px 2px; scrollbar-width: none; }
  .trv-chips::-webkit-scrollbar { display: none; }
  .trv-chip { flex: 0 0 auto; }
  .trv-sort { justify-content: space-between; }
  .trv-sort-select { flex: 1; max-width: 220px; }
  .trv-card { padding: 20px 0; }
  .trv-card-photos .trv-thumb { width: 78px; height: 100px; }
  .trv-lightbox { padding: 0; }
  .trv-lb-box { width: 100%; height: 100%; max-height: none; }
  .trv-lb-img { max-height: calc(100vh - 180px); max-height: calc(100dvh - 180px); }
  .trv-lb-nav { width: 38px; height: 38px; }
}