/* TAZRIRT - Customer Reviews v2 (product pages) */
.tz-reviews {
  --rv-ink: #241F1A;
  --rv-brown: #29231F;
  --rv-body: #4a4238;
  --rv-muted: #6b6259;
  --rv-line: #E4D8C8;
  --rv-soft: #FAF6EF;
  --rv-ivory: #F6F1E8;
  --rv-paper: #FFFDF9;
  --rv-copper: #BFA181;
  --rv-star: #A9794A;
  --rv-accent: #98452F;
  --rv-error: #9B2C1F;
  flex: 1 0 100%;
  width: 100%;
  clear: both;
  margin: 48px 0 56px;
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  color: var(--rv-body);
  box-sizing: border-box;
}
.tz-reviews *, .tz-reviews *::before, .tz-reviews *::after { box-sizing: border-box; }
.tz-reviews [hidden] { display: none !important; }
.tz-reviews .screen-reader-text, .tz-rv-lb .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---- Stars ---- */
.tz-rv-stars { position: relative; display: inline-block; line-height: 0; vertical-align: middle; }
.tz-rv-stars__row { display: inline-flex; gap: 2px; }
.tz-rv-stars__row svg { width: var(--rv-s, 16px); height: var(--rv-s, 16px); display: block; flex: 0 0 auto; }
.tz-rv-stars__base svg { fill: #E6DACB; }
.tz-rv-stars__fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; }
.tz-rv-stars__fill svg { fill: var(--rv-star); }

/* ---- Head + summary ---- */
.tz-rv-head { background: var(--rv-soft); border: 1px solid #EFE6D8; border-radius: 4px; padding: 32px 36px; }
.tz-reviews__title { margin: 0 0 22px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 34px; font-weight: 700; line-height: 1.15; color: var(--rv-ink); }
.tz-rv-summary { display: grid; grid-template-columns: minmax(170px, 230px) minmax(240px, 1fr) minmax(190px, 240px); align-items: center; }
.tz-rv-summary > * { padding: 4px 32px; }
.tz-rv-summary > *:first-child { padding-left: 0; }
.tz-rv-summary > *:last-child { padding-right: 0; }
.tz-rv-summary > * + * { border-left: 1px solid var(--rv-line); }
.tz-rv-avg__num { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 56px; font-weight: 700; line-height: 1; color: var(--rv-ink); margin: 0 0 8px; }
.tz-rv-avg__num small { font-size: 20px; font-weight: 600; color: var(--rv-muted); margin-left: 4px; }
.tz-rv-avg__count { margin: 8px 0 0; font-size: 14px; color: var(--rv-muted); }
.tz-rv-dist { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.tz-rv-dist li { display: grid; grid-template-columns: 56px 1fr 28px; align-items: center; gap: 12px; margin: 0; font-size: 13.5px; color: var(--rv-body); }
.tz-rv-dist__bar { height: 5px; background: #EADFCF; border-radius: 3px; overflow: hidden; }
.tz-rv-dist__bar span { display: block; height: 100%; background: var(--rv-star); border-radius: 3px; }
.tz-rv-dist__n { text-align: right; color: var(--rv-muted); font-variant-numeric: tabular-nums; }
.tz-rv-cta { text-align: center; }
.tz-rv-cta__text { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--rv-body); }
.tz-rv-note { margin: 0; font-size: 13.5px; color: var(--rv-muted); }
.tz-rv-note a { color: var(--rv-accent); }

/* Empty state: compact */
.tz-rv-empty { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.tz-rv-empty__title { margin: 0 0 4px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; font-weight: 700; color: var(--rv-ink); }
.tz-rv-empty__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--rv-body); }

/* ---- Buttons ---- */
.tz-reviews .tz-rv-btn, .tz-rv-lb .tz-rv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  border: 1px solid var(--rv-brown); border-radius: 2px;
  background: var(--rv-brown); color: #F6F1E8;
  font-family: 'Lora', Georgia, serif; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2;
  text-decoration: none; cursor: pointer; box-shadow: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.tz-reviews .tz-rv-btn:hover { background: var(--rv-accent); border-color: var(--rv-accent); color: #fff; }
.tz-reviews .tz-rv-btn--ghost { background: transparent; color: var(--rv-ink); border-color: var(--rv-ink); }
.tz-reviews .tz-rv-btn--ghost:hover { background: var(--rv-ink); color: #F6F1E8; border-color: var(--rv-ink); }
.tz-reviews .tz-rv-btn[disabled] { opacity: .6; cursor: progress; }
.tz-reviews .tz-rv-link {
  padding: 0; margin: 0; border: 0; background: none; box-shadow: none; cursor: pointer;
  font-family: 'Lora', Georgia, serif; font-size: 14px; font-weight: 600; color: var(--rv-accent);
  text-decoration: underline; text-underline-offset: 3px; min-height: 32px;
}
.tz-reviews .tz-rv-link:hover { color: var(--rv-ink); background: none; }
.tz-reviews a:focus-visible, .tz-reviews button:focus-visible, .tz-reviews select:focus-visible,
.tz-reviews input:focus-visible, .tz-reviews textarea:focus-visible, .tz-rv-form__title:focus-visible,
.tz-rv-lb button:focus-visible { outline: 2px solid var(--rv-accent, #98452F); outline-offset: 3px; }

/* ---- Form ---- */
.tz-rv-formwrap { position: relative; max-width: 640px; margin: 28px 0 0; padding: 28px 30px 30px; background: #fff; border: 1px solid var(--rv-line); border-radius: 4px; }
.tz-rv-form__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tz-rv-form__title { margin: 0 0 4px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 28px; font-weight: 700; color: var(--rv-ink); }
.tz-reviews .tz-rv-close {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; margin: -6px -10px 0 0;
  border: 0; background: none; box-shadow: none; cursor: pointer; color: var(--rv-body);
  font-family: 'Lora', Georgia, serif; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
}
.tz-reviews .tz-rv-close:hover { color: var(--rv-accent); background: none; }
.tz-rv-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.tz-rv-form__help { margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: var(--rv-body); }
.tz-rv-field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.tz-rv-field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.tz-rv-label, .tz-rv-field legend { display: block; margin: 0 0 8px; padding: 0; font-size: 14px; font-weight: 600; color: var(--rv-ink); }
.tz-rv-req { color: var(--rv-accent); margin-left: 2px; }
.tz-rv-optional { font-weight: 400; color: var(--rv-muted); }
.tz-rv-hint { margin: -2px 0 10px; font-size: 13px; color: var(--rv-muted); }
.tz-reviews .tz-rv-input {
  display: block; width: 100%; min-height: 48px; margin: 0; padding: 12px 14px;
  border: 1px solid #D9CCBB; border-radius: 3px; background: var(--rv-paper); color: var(--rv-ink);
  font-family: 'Lora', Georgia, serif; font-size: 16px; line-height: 1.5; box-shadow: none;
}
.tz-reviews textarea.tz-rv-input { min-height: 140px; resize: vertical; }
.tz-reviews .tz-rv-input:focus { border-color: var(--rv-accent); outline: none; box-shadow: 0 0 0 3px rgba(152, 69, 47, .12); }
.tz-reviews .tz-rv-input[aria-invalid="true"] { border-color: var(--rv-error); }
.tz-rv-error { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--rv-error); }
.tz-rv-error:empty { display: none; }
.tz-rv-formmsg { margin: 0 0 16px; font-size: 14px; color: var(--rv-error); }
.tz-rv-formmsg:empty { display: none; }
.tz-rv-privacy { margin: 0 0 22px; font-size: 13px; color: var(--rv-muted); }
.tz-rv-as { margin: 0 0 20px; font-size: 14px; color: var(--rv-body); }
.tz-rv-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Star picker */
.tz-rv-rate { display: inline-flex; gap: 2px; margin-left: -6px; vertical-align: middle; }
.tz-rv-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.tz-rv-rate label { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; cursor: pointer; border-radius: 3px; }
.tz-rv-rate svg { width: 28px; height: 28px; fill: none; stroke: var(--rv-star); stroke-width: 1.4; transition: fill .15s ease; }
.tz-rv-rate label.is-lit svg { fill: var(--rv-star); }
.tz-rv-rate input:focus-visible + label { outline: 2px solid var(--rv-accent); outline-offset: 0; }
.tz-rv-rate[aria-invalid="true"] svg { stroke: var(--rv-error); }
.tz-rv-rate__text { display: inline-block; margin-left: 10px; font-size: 13px; color: var(--rv-muted); vertical-align: middle; }

/* Photo picker */
.tz-rv-photopick { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.tz-rv-previews { display: contents; list-style: none; margin: 0; padding: 0; }
.tz-rv-previews li { position: relative; width: 84px; height: 84px; margin: 0; border-radius: 3px; overflow: hidden; background: var(--rv-ivory); }
.tz-rv-previews img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tz-reviews .tz-rv-previews button {
  position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; min-height: 0; padding: 0;
  border: 0; border-radius: 50%; background: rgba(36, 31, 26, .78); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: none;
}
.tz-rv-previews button svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 2; fill: none; }
.tz-rv-file { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tz-rv-addphoto {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 84px; height: 84px; margin: 0; border: 1px dashed #CDBBA3; border-radius: 3px; background: var(--rv-paper);
  color: var(--rv-body); font-size: 12px; cursor: pointer; text-align: center; line-height: 1.2;
}
.tz-rv-addphoto:hover { border-color: var(--rv-accent); color: var(--rv-accent); }
.tz-rv-addphoto svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.tz-rv-file:focus-visible + .tz-rv-addphoto { outline: 2px solid var(--rv-accent); outline-offset: 2px; }

.tz-rv-success { max-width: 640px; margin: 28px 0 0; padding: 18px 20px; background: var(--rv-ivory); border-left: 3px solid var(--rv-copper); font-size: 15px; line-height: 1.6; color: var(--rv-ink); }

/* ---- Customer photos strip ---- */
.tz-rv-gallery { margin: 32px 0 0; }
.tz-rv-gallery__title { margin: 0 0 14px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; font-weight: 700; color: var(--rv-ink); }
.tz-rv-gallery__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tz-rv-gallery__list li { margin: 0; }
.tz-rv-gallery__list li:nth-child(n+7) { display: none; }
.tz-rv-photo { display: block; position: relative; aspect-ratio: 1 / 1; border-radius: 3px; overflow: hidden; background: var(--rv-ivory); }
.tz-rv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.tz-rv-photo:hover img { transform: scale(1.03); }

/* ---- Toolbar ---- */
.tz-rv-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 32px 0 0; padding: 0 0 16px; border-bottom: 1px solid var(--rv-line); }
.tz-rv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tz-reviews .tz-rv-chip {
  min-height: 40px; padding: 0 16px; border: 1px solid #D9CCBB; border-radius: 999px; background: #fff; color: var(--rv-ink);
  font-family: 'Lora', Georgia, serif; font-size: 13.5px; cursor: pointer; box-shadow: none;
}
.tz-reviews .tz-rv-chip:hover { border-color: var(--rv-ink); background: #fff; color: var(--rv-ink); }
.tz-reviews .tz-rv-chip[aria-pressed="true"] { background: var(--rv-brown); border-color: var(--rv-brown); color: #F6F1E8; }
.tz-reviews .tz-rv-chip[disabled] { opacity: .5; cursor: not-allowed; }
.tz-rv-selects { display: flex; flex-wrap: wrap; gap: 12px; }
.tz-rv-select { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: var(--rv-body); }
.tz-reviews .tz-rv-select select {
  min-height: 40px; padding: 0 34px 0 12px; border: 1px solid #D9CCBB; border-radius: 3px; background-color: #fff;
  color: var(--rv-ink); font-family: 'Lora', Georgia, serif; font-size: 13.5px;
}
.tz-rv-count { margin: 14px 0 0; font-size: 13px; color: var(--rv-muted); }

/* ---- Review rows ---- */
.tz-rv-list { list-style: none; margin: 0; padding: 0; }
.tz-rv-item { display: grid; grid-template-columns: 210px 1fr; gap: 12px 36px; margin: 0; padding: 26px 0; border-bottom: 1px solid var(--rv-line); }
.tz-rv-item__meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tz-rv-item__name { font-weight: 600; font-size: 15px; color: var(--rv-ink); overflow-wrap: anywhere; }
.tz-rv-item__date { font-size: 13px; color: var(--rv-muted); }
.tz-rv-verified { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12px; letter-spacing: .03em; color: #6F5436; }
.tz-rv-verified svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.tz-rv-item__body { min-width: 0; }
.tz-rv-item__stars { margin: 0 0 10px; }
.tz-rv-item__text { font-size: 15px; line-height: 1.75; color: var(--rv-body); overflow-wrap: anywhere; }
.tz-rv-item__text p { margin: 0 0 10px; }
.tz-rv-item__text p:last-child { margin-bottom: 0; }
.tz-rv-item__text.is-clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.tz-rv-readmore { margin-top: 6px; }
.tz-rv-item__photos { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; padding: 0; }
.tz-rv-item__photos li { width: 96px; margin: 0; }
.tz-rv-reply { margin: 16px 0 0; padding: 14px 18px; background: var(--rv-ivory); border-left: 2px solid var(--rv-copper); }
.tz-rv-reply__title { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #6F5436; }
.tz-rv-reply__text { font-size: 14px; line-height: 1.7; color: var(--rv-body); }
.tz-rv-reply__text p { margin: 0 0 8px; }
.tz-rv-reply__text p:last-child { margin: 0; }
.tz-rv-noresults { padding: 28px 0; text-align: center; border-bottom: 1px solid var(--rv-line); }
.tz-rv-noresults p { margin: 0 0 12px; font-size: 15px; color: var(--rv-body); }
.tz-rv-more { text-align: center; padding: 26px 0 0; }

/* ---- Lightbox ---- */
.tz-rv-lb { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(28, 24, 20, .86); font-family: 'Lora', Georgia, serif; }
.tz-rv-lb[hidden] { display: none; }
.tz-rv-lb__box { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; max-width: 1100px; width: 100%; max-height: calc(100vh - 48px); background: #fff; border-radius: 4px; overflow: hidden; }
.tz-rv-lb__media { position: relative; background: #1d1a17; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.tz-rv-lb__media img { max-width: 100%; max-height: calc(100vh - 48px); width: auto; height: auto; object-fit: contain; display: block; }
.tz-rv-lb__cap { padding: 26px 24px; overflow-y: auto; color: #4a4238; }
.tz-rv-lb__name { margin: 12px 0 2px; font-weight: 600; color: #241F1A; }
.tz-rv-lb__date { margin: 0 0 12px; font-size: 13px; color: #6b6259; }
.tz-rv-lb__text { margin: 0; font-size: 14px; line-height: 1.7; }
.tz-rv-lb__counter { margin: 16px 0 0; font-size: 12px; color: #6b6259; letter-spacing: .06em; }
.tz-rv-lb button { font-family: inherit; box-shadow: none; }
.tz-rv-lb__close, .tz-rv-lb__nav {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #241F1A; cursor: pointer;
}
.tz-rv-lb__close:hover, .tz-rv-lb__nav:hover { background: #fff; color: #98452F; }
.tz-rv-lb__close { top: 12px; right: 12px; }
.tz-rv-lb__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.tz-rv-lb__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }
.tz-rv-lb__close svg, .tz-rv-lb__nav svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.tz-rv-lb .tz-rv-stars__base svg { fill: #E6DACB; }
.tz-rv-lb .tz-rv-stars__fill svg { fill: #A9794A; }

/* ---- Tablet / mobile ---- */
@media (max-width: 921px) {
  .tz-rv-summary { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .tz-rv-cta { grid-column: 1 / -1; border-left: 0 !important; padding: 0 !important; text-align: left; }
  .tz-rv-cta__text { display: none; }
  .tz-rv-lb__box { grid-template-columns: 1fr; overflow-y: auto; }
  .tz-rv-lb__media img { max-height: 62vh; }
}
@media (max-width: 600px) {
  .tz-reviews { margin: 36px 0 44px; }
  .tz-rv-head { padding: 22px 18px; }
  .tz-reviews__title { font-size: 28px; margin-bottom: 16px; }
  .tz-rv-summary { grid-template-columns: 1fr; row-gap: 18px; }
  .tz-rv-summary > * { padding: 0 !important; border-left: 0 !important; }
  .tz-rv-avg { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
  .tz-rv-avg__num { font-size: 46px; margin: 0; grid-row: span 2; }
  .tz-rv-avg__count { margin: 2px 0 0; }
  .tz-rv-dist li { font-size: 14px; }
  .tz-reviews .tz-rv-btn { width: 100%; }
  .tz-rv-empty { flex-direction: column; align-items: stretch; }
  .tz-rv-formwrap { padding: 22px 18px 24px; }
  .tz-rv-field__row { grid-template-columns: 1fr; }
  .tz-rv-rate label { width: 48px; height: 48px; }
  .tz-rv-gallery__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .tz-rv-gallery__list li, .tz-rv-gallery__list li:nth-child(n+7) { display: block; flex: 0 0 38%; scroll-snap-align: start; }
  .tz-rv-toolbar { flex-direction: column; align-items: stretch; }
  .tz-rv-selects { display: grid; grid-template-columns: 1fr 1fr; }
  .tz-rv-select { flex-direction: column; align-items: stretch; gap: 4px; font-size: 13px; }
  .tz-reviews .tz-rv-select select { width: 100%; min-height: 44px; font-size: 15px; }
  .tz-reviews .tz-rv-chip { min-height: 44px; flex: 1; }
  .tz-rv-item { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .tz-rv-item__meta { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .tz-rv-verified { margin-top: 0; width: 100%; }
  .tz-rv-item__photos li { width: 84px; }
  .tz-rv-lb { padding: 0; }
  .tz-rv-lb__box { max-height: 100vh; height: 100%; border-radius: 0; }
}

/* ---- Review Demo Preview (managers only) ---- */
.tz-rv-demo-banner { margin: 0 0 18px; padding: 10px 14px; background: #fff; border: 1px dashed #BFA181; border-radius: 3px; font-size: 13.5px; line-height: 1.5; color: #6F5436; }
.tz-rv-demo-banner a { color: #98452F; margin-left: 6px; }
.tz-rv-sample { display: inline-block; align-self: flex-start; margin: 2px 0; padding: 2px 9px; border: 1px solid #BFA181; border-radius: 999px; background: #fff; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6F5436; line-height: 1.6; }
.tz-rv-lb .tz-rv-sample { margin: 0 0 6px; }
.tz-rv-item__title { margin: 0 0 6px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 20px; font-weight: 700; line-height: 1.3; color: #241F1A; }
