/* PAWLINE_REVIEWS_EDITORIAL_2H_V1. Scoped to the PDP review section and its native dialog. */
#product-reviews {
  --review-brown: var(--pl-brown, #5A3A14);
  --review-ink: var(--pl-ink, #2E241B);
  --review-paper: var(--pl-paper, #F7F2E8);
  --review-surface: #FFFCF7;
  --review-muted: #786B5C;
  --review-line: rgba(90, 58, 20, .18);
  --review-serif: "EB Garamond", Georgia, serif;
  --review-sans: "Instrument Sans", Arial, sans-serif;
  box-sizing: border-box;
  padding: clamp(48px, 6vw, 88px) clamp(20px, 5.5vw, 100px);
  border-top: 1px solid var(--review-line);
  background: var(--review-paper);
  color: var(--review-ink);
  font: 400 14px/1.65 var(--review-sans);
  scroll-margin-top: 150px;
}
#product-reviews *, #product-reviews *::before, #product-reviews *::after { box-sizing: border-box; }
#product-reviews [hidden] { display: none !important; }
#product-reviews .pl-reviews__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
#product-reviews .pl-reviews__eyebrow { margin: 0 0 18px; font-size: 10px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
#product-reviews .pl-reviews__heading h2 { margin: 0; font: 400 clamp(38px, 4vw, 58px)/1.08 var(--review-serif); letter-spacing: -.035em; }
#product-reviews .pl-reviews__heading h2 em { font-weight: 400; }
#product-reviews .pl-reviews__subtitle { margin: 14px 0 0; color: var(--review-muted); font-size: 14px; }
#product-reviews .pl-reviews__write-control { display: grid; justify-items: end; gap: 9px; flex-shrink: 0; }
#product-reviews .pl-reviews__write {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  min-height: 48px; margin: 0; padding: 0 22px;
  border: 1px solid var(--review-brown); border-radius: 2px;
  background: var(--review-brown); color: #ECE3D0;
  font: 600 12px/1.2 var(--review-sans); letter-spacing: .06em;
  text-decoration: none; text-transform: uppercase; cursor: pointer;
  transition: background-color .18s ease;
}
#product-reviews .pl-reviews__write svg { width: 16px; height: 16px; flex: 0 0 16px; }
#product-reviews .pl-reviews__write:hover { background: #452C10; color: #ECE3D0; text-decoration: none; }
#product-reviews .pl-reviews__write:disabled { opacity: .55; cursor: not-allowed; }
#product-reviews .pl-reviews__write-control small { max-width: 240px; font-size: 11px; color: var(--review-muted); text-align: right; }
#product-reviews .pl-reviews__notice { margin: 28px 0 0; border-left: 2px solid var(--review-brown); padding: 10px 15px; background: rgba(90,58,20,.035); font-size: 13px; }
#product-reviews .pl-reviews__overview { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 7vw, 100px); padding: 36px 0; margin-top: 30px; border-top: 1px solid var(--review-line); }
#product-reviews .pl-reviews__label { margin: 0 0 8px; color: var(--review-muted); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
#product-reviews .pl-reviews__average { display: flex; align-items: center; gap: 23px; }
#product-reviews .pl-reviews__average > strong { font: 400 clamp(56px, 6vw, 76px)/1 var(--review-serif); letter-spacing: -.05em; }
#product-reviews .pl-reviews__average p { margin: 7px 0 0; font-size: 12px; color: var(--review-muted); }
#product-reviews .pl-stars { display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; color: var(--review-brown); }
#product-reviews .pl-stars__star { position: relative; display: block; width: 21px; height: 21px; }
#product-reviews .pl-stars__star svg { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.2; }
#product-reviews .pl-stars__fill { display: block; position: absolute; inset: 0 auto 0 0; overflow: hidden; }
#product-reviews .pl-stars__fill svg { fill: currentColor; }
#product-reviews .pl-reviews__breakdown { display: grid; gap: 8px; max-width: 470px; width: 100%; justify-self: end; }
#product-reviews .pl-reviews__rating-row { display: grid; grid-template-columns: 30px 1fr 22px; align-items: center; gap: 12px; font-size: 11px; }
#product-reviews .pl-reviews__rating-row > span:last-child { text-align: right; color: var(--review-muted); font-variant-numeric: tabular-nums; }
#product-reviews .pl-reviews__rating-track { display: block; overflow: hidden; height: 5px; border-radius: 2px; background: rgba(90,58,20,.07); }
#product-reviews .pl-reviews__rating-track > span { display: block; height: 100%; background: #9D866A; }
#product-reviews .pl-reviews__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-top: 1px solid var(--review-line); border-bottom: 1px solid var(--review-line); }
#product-reviews .pl-reviews__visible-count { font-size: 12px; color: var(--review-muted); }
#product-reviews .pl-reviews__filters { display: flex; gap: 25px; }
#product-reviews .pl-reviews__filters label { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--review-muted); }
#product-reviews .pl-reviews__filters select { min-height: 40px; max-width: 190px; border: 0; border-bottom: 1px solid var(--review-line); border-radius: 0; padding: 0 24px 0 2px; background: transparent; color: var(--review-ink); font: 400 12px/1.4 var(--review-sans); cursor: pointer; }
#product-reviews .pl-review-card { display: grid; grid-template-columns: minmax(170px, 22%) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); margin: 0; padding: 30px 0; border: 0; border-bottom: 1px solid var(--review-line); border-radius: 0; background: transparent; box-shadow: none; }
#product-reviews .pl-review-card__author { display: flex; align-items: flex-start; gap: 13px; min-width: 0; }
#product-reviews .pl-review-card__avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: #E9DFCF; color: var(--review-brown); font: 500 19px/1 var(--review-serif); }
#product-reviews .pl-review-card__author strong { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
#product-reviews .pl-review-card__product, #product-reviews .pl-review-card__verified { display: block; margin-top: 5px; font-size: 10px; color: var(--review-muted); }
#product-reviews .pl-review-card__verified { font-weight: 500; color: var(--review-brown); }
#product-reviews .pl-review-card__content { min-width: 0; }
#product-reviews .pl-review-card__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
#product-reviews .pl-review-card__top .pl-stars__star, #product-reviews .pl-review-card__top .pl-stars__star svg { width: 18px; height: 18px; }
#product-reviews .pl-review-card time { color: var(--review-muted); font-size: 10px; }
#product-reviews .pl-review-card h3 { margin: 17px 0 8px; color: var(--review-ink); font: 600 16px/1.5 var(--review-sans); overflow-wrap: anywhere; }
#product-reviews .pl-review-card__body { margin: 0; max-width: 850px; font-size: 14px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
#product-reviews .pl-review-card__photos { display: flex; gap: 10px; flex-wrap: wrap; margin: 17px 0; }
#product-reviews .pl-review-card__photos a { display: block; width: 112px; height: 112px; border-radius: 2px; overflow: hidden; }
#product-reviews .pl-review-card__photos img { width: 100%; height: 100%; object-fit: cover; }
#product-reviews .pl-review-card .paw-review-interactions-2f2 { margin-top: 20px; }
#product-reviews .pl-review-card .paw-review-interactions__like,
#product-reviews .pl-review-card .paw-review-interactions__replybox > summary,
#product-reviews .pl-review-card .paw-review-interactions__controls a { min-height: 36px; padding: 6px 10px; border-radius: 2px; font-size: 11px; font-weight: 500; }
#product-reviews .pl-reviews__empty { border-top: 1px solid var(--review-line); padding: 40px 0 12px; text-align: center; }
#product-reviews .pl-reviews__empty-title { margin: 0; font: 400 clamp(25px, 3vw, 32px)/1.25 var(--review-serif); }
#product-reviews .pl-reviews__empty p:last-child { margin: 10px 0 0; color: var(--review-muted); font-size: 13px; }
#product-reviews .pl-reviews__no-match { margin: 0; padding: 32px 0; font-size: 13px; color: var(--review-muted); }

/* The inline form is also the no-JavaScript fallback. */
#product-reviews .pl-review-composer { max-width: 600px; width: 100%; margin: 0 0 28px; background: var(--review-surface); border: 1px solid var(--review-line); }
#product-reviews .pl-reviews__form { display: grid; gap: 25px; margin: 0; padding: 32px; border: 0; border-radius: 2px; background: var(--review-surface); font-family: var(--review-sans); }
#product-reviews .pl-review-composer__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
#product-reviews .pl-review-composer__eyebrow { margin: 0 0 10px; font-size: 9px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; overflow-wrap: anywhere; color: var(--review-muted); }
#product-reviews .pl-review-composer__heading h3 { margin: 0; font: 400 clamp(29px, 4vw, 36px)/1.1 var(--review-serif); letter-spacing: -.025em; outline: none; }
#product-reviews .pl-review-composer__heading h3 + p { margin: 10px 0 0; font-size: 12px; color: var(--review-muted); }
#product-reviews .pl-review-composer__close { display: grid; place-items: center; width: 36px; height: 36px; min-width: 36px; padding: 7px; border: 0; border-radius: 2px; background: transparent; color: var(--review-brown); cursor: pointer; }
#product-reviews .pl-review-composer__close svg { width: 22px; height: 22px; }
#product-reviews .pl-review-composer__close:hover { background: rgba(90,58,20,.06); }
#product-reviews .pl-rating { padding: 0 0 22px; margin: 0; min-width: 0; border: 0; border-bottom: 1px solid var(--review-line); }
#product-reviews .pl-rating legend { padding: 0; margin-bottom: 9px; font-size: 11px; font-weight: 500; }
#product-reviews .pl-rating__row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
#product-reviews .pl-rating__options { display: flex; gap: 3px; }
#product-reviews .pl-rating__option { position: relative; display: grid; place-items: center; width: 40px; height: 44px; margin: 0; cursor: pointer; border-radius: 2px; }
#product-reviews .pl-rating__option input { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); border: 0; }
#product-reviews .pl-rating__option svg { width: 32px; height: 32px; fill: transparent; stroke: var(--review-brown); stroke-width: 1.15; transition: fill .12s ease; }
#product-reviews .pl-rating__option.is-filled svg,
#product-reviews .pl-rating:not([data-enhanced]) .pl-rating__option:has(input:checked) svg,
#product-reviews .pl-rating:not([data-enhanced]) .pl-rating__option:has(~ .pl-rating__option input:checked) svg { fill: var(--review-brown); }
#product-reviews .pl-rating__option:has(input:focus-visible) { outline: 2px solid var(--review-brown); outline-offset: 2px; }
#product-reviews .pl-rating__hint { font-size: 11px; color: var(--review-muted); }
#product-reviews .pl-rating.is-invalid .pl-rating__hint { color: #9A3526; }
#product-reviews .pl-review-composer__fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 19px 18px; }
#product-reviews .pl-review-composer__fields label { display: grid; gap: 8px; margin: 0; font-size: 11px; font-weight: 500; }
#product-reviews .pl-review-composer__fields input,
#product-reviews .pl-review-composer__fields textarea { display: block; width: 100%; min-width: 0; border: 1px solid #D6CBBB; border-radius: 2px; padding: 12px; background: transparent; color: var(--review-ink); font: 400 14px/1.5 var(--review-sans); box-shadow: none; }
#product-reviews .pl-review-composer__fields input { min-height: 46px; }
#product-reviews .pl-review-composer__fields textarea { min-height: 132px; resize: vertical; }
#product-reviews .pl-review-composer__fields :is(input,textarea)::placeholder { font-size: 12px; font-weight: 400; color: #84786C; opacity: 1; }
#product-reviews .pl-review-composer__body { grid-column: 1 / -1; }
#product-reviews .pl-review-composer__count { grid-column: 1 / -1; margin-top: -12px; text-align: right; font-size: 10px; color: var(--review-muted); font-variant-numeric: tabular-nums; }
#product-reviews .pl-review-composer__footer { display: grid; gap: 20px; padding-top: 2px; }
#product-reviews .pl-review-composer__feedback { margin: 0; padding: 10px 12px; border-left: 2px solid var(--review-brown); background: rgba(90,58,20,.04); font-size: 12px; line-height: 1.6; }
#product-reviews .pl-review-composer__feedback.is-error { color: #8A3024; border-color: #8A3024; }
#product-reviews .pl-review-composer__submit:disabled { opacity: .6; cursor: wait; }
#product-reviews .pl-review-composer__footer > p { max-width: 420px; margin: 0; font-size: 11px; line-height: 1.65; color: var(--review-muted); }
#product-reviews .pl-review-composer__buttons { display: flex; justify-content: flex-end; gap: 10px; }
#product-reviews .pl-review-composer__buttons button { min-height: 46px; border-radius: 2px; padding: 0 19px; font: 600 11px/1.2 var(--review-sans); letter-spacing: .04em; cursor: pointer; }
#product-reviews .pl-review-composer__cancel { border: 1px solid var(--review-line); color: var(--review-brown); background: transparent; }
#product-reviews .pl-review-composer__submit { display: inline-flex; align-items: center; justify-content: center; gap: 22px; border: 1px solid var(--review-brown); background: var(--review-brown); color: #ECE3D0; text-transform: uppercase; }
#product-reviews .pl-review-composer__submit:hover { background: #452C10; }
#product-reviews .pl-review-composer__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#product-reviews .pl-review-dialog { width: min(600px, calc(100% - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--review-line); border-radius: 3px; background: var(--review-surface); color: var(--review-ink); box-shadow: 0 24px 90px rgba(46,36,27,.16); }
#product-reviews .pl-review-dialog::backdrop { background: rgba(46,36,27,.32); backdrop-filter: blur(4px); }
#product-reviews .pl-review-dialog .pl-review-composer { margin: 0; max-width: none; border: 0; }
#product-reviews :is(a,button,select,input,textarea):focus-visible { outline: 2px solid var(--review-brown); outline-offset: 3px; }
html.pawline-review-modal-open { overflow: hidden; }

@media (max-width: 700px) {
  #product-reviews .pl-reviews__heading { align-items: flex-start; flex-direction: column; gap: 22px; }
  #product-reviews .pl-reviews__write-control { justify-items: start; }
  #product-reviews .pl-reviews__write-control small { text-align: left; }
  #product-reviews .pl-reviews__overview { grid-template-columns: 1fr; gap: 27px; padding: 28px 0; }
  #product-reviews .pl-reviews__breakdown { max-width: none; }
  #product-reviews .pl-reviews__toolbar { flex-wrap: wrap; gap: 13px; }
  #product-reviews .pl-reviews__filters { width: 100%; justify-content: space-between; gap: 14px; }
  #product-reviews .pl-reviews__filters label { gap: 5px; font-size: 10px; }
  #product-reviews .pl-reviews__filters select { max-width: 150px; font-size: 11px; padding-right: 15px; }
  #product-reviews .pl-review-card { grid-template-columns: 1fr; gap: 18px; padding: 25px 0; }
  #product-reviews .pl-review-card__product { margin-top: 2px; }
  #product-reviews .pl-review-card__photos a { width: 90px; height: 90px; }
  #product-reviews .pl-reviews__form { padding: 25px 22px; gap: 22px; }
  #product-reviews .pl-review-composer__fields { grid-template-columns: 1fr; }
  #product-reviews .pl-review-composer__fields :is(input,textarea) { font-size: 16px; }
  #product-reviews .pl-review-composer__heading h3 { font-size: 30px; }
  #product-reviews .pl-review-composer__heading { gap: 7px; }
  #product-reviews .pl-rating__row { gap: 8px 12px; }
  #product-reviews .pl-rating__hint { flex-basis: 100%; }
  #product-reviews .pl-review-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  #product-reviews .pl-review-composer__buttons { justify-content: stretch; }
  #product-reviews .pl-review-composer__submit { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #product-reviews *, #product-reviews *::before, #product-reviews *::after { transition: none !important; scroll-behavior: auto !important; }
}
