/* Buyers' reviews on the product page (Pages/Product/_Reviews.cshtml, wwwroot/js/product-reviews.js, docs/REVIEWS.md).
   Plain CSS like free-shipping-nudge.css, so it needs no Tailwind build. */
.pr-summary { display: inline-flex; align-items: center; margin: -6px 0 16px; padding: 4px 0; border: 0; background: none; font-family: 'Manrope', sans-serif; font-size: 14px; color: #8A6A35; text-decoration: underline; text-decoration-color: rgba(138, 106, 53, 0.35); text-underline-offset: 4px; cursor: pointer; white-space: nowrap; }
.pr-summary:hover { color: #342820; text-decoration-color: currentColor; }

.pr-link { padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: #8A6A35; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.pr-link:hover { color: #342820; }

/* The strip under the buttons: a heading, the two latest reviews in a swipe row, one quiet line. */
.pr-strip { margin: -16px 0 32px; font-family: 'Manrope', sans-serif; color: #342820; }
.pr-strip__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pr-strip__title { margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 22px; line-height: 1.2; color: #272320; }
.pr-strip__row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -2px; padding: 2px; }
.pr-strip__row::-webkit-scrollbar { display: none; }
.pr-strip__row > .pr-card { flex: 0 0 min(86%, 320px); scroll-snap-align: start; }
.pr-strip__row > .pr-card:only-child { flex-basis: 100%; }
/* Wider screens: both cards side by side, nothing to swipe. */
@media (min-width: 768px) {
  .pr-strip__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); overflow: visible; }
}
.pr-strip__note { margin: 8px 0 0; font-size: 12px; color: rgba(52, 40, 32, 0.55); }
.pr-write { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 12px; padding: 0 20px; border: 1px solid #342820; border-radius: 10px; background: #fff; font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600; color: #342820; cursor: pointer; }
.pr-write:hover { background: #F8F3EA; }
.pr-strip > .pr-write:first-child { margin-top: 0; }

/* One review: photo (if shown), mark and name, words, the shop's answer. */
.pr-card { display: flex; gap: 12px; min-width: 0; padding: 12px; border: 1px solid rgba(209, 197, 181, 0.7); border-radius: 12px; background: #fff; }
.pr-card__photo { display: block; flex-shrink: 0; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #F8F3EA; }
.pr-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pr-card__body { min-width: 0; flex: 1; }
.pr-card__meta { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 12px; color: rgba(52, 40, 32, 0.6); }
.pr-card__mark { color: #C8A46A; font-size: 14px; line-height: 1; }
.pr-card__mark--no { padding: 1px 8px; border-radius: 999px; background: rgba(52, 40, 32, 0.07); font-size: 11px; font-weight: 600; color: rgba(52, 40, 32, 0.7); }
.pr-card__text { margin: 0; font-size: 14px; line-height: 1.5; color: #342820; white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pr-card__reply { margin: 8px 0 0; padding-left: 10px; border-left: 2px solid #C8A46A; font-size: 13px; line-height: 1.5; color: rgba(52, 40, 32, 0.8); }
.pr-card__reply strong { margin-right: 4px; font-size: 11px; letter-spacing: 0.08em; color: #8A6A35; }
.pr-card--large .pr-card__text { -webkit-line-clamp: unset; display: block; }
.pr-card--large .pr-card__photo { width: 96px; height: 96px; }

/* Dialogs. margin: auto centres them again; Tailwind's reset (* { margin: 0 }) removes the browser's own. */
.pr-dialog { margin: auto; width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 48px); padding: 0; border: 0; border-radius: 18px; background: #F8F3EA; color: #342820; font-family: 'Manrope', sans-serif; box-shadow: 0 24px 60px rgba(39, 35, 32, 0.28); overflow: auto; overscroll-behavior: contain; }
.pr-dialog::backdrop { background: rgba(39, 35, 32, 0.55); }
.pr-dialog__inner { padding: clamp(20px, 3svh, 28px) clamp(16px, 4vw, 28px); }
.pr-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pr-dialog__title { margin: 0; text-wrap: balance; font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(24px, 3.2svh, 30px); line-height: 1.15; color: #272320; }
.pr-dialog__lead { margin: 4px 0 0; font-size: 14px; color: #8A6A35; }
.pr-dialog__close { flex-shrink: 0; width: 40px; height: 40px; margin: -6px -8px 0 0; border: 0; border-radius: 999px; background: none; color: rgba(52, 40, 32, 0.6); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pr-dialog__close:hover { background: rgba(52, 40, 32, 0.06); color: #342820; }
.pr-dialog__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 16px; }
.pr-dialog__foot .pr-strip__note, .pr-dialog__foot .pr-write { margin: 0; }
.pr-photos { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.pr-photos::-webkit-scrollbar { display: none; }
.pr-photos img { flex-shrink: 0; width: 96px; height: 96px; border-radius: 10px; object-fit: cover; }
.pr-list { display: grid; gap: 10px; }

/* The write dialog: one screen on a phone. */
.pr-dialog--form { width: min(460px, calc(100vw - 32px)); }
.pr-form { display: flex; flex-direction: column; }
.pr-form__piece { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pr-form__piece img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.pr-form__piece-title { margin: 0; font-family: 'Cormorant Garamond', serif; font-size: 19px; line-height: 1.2; color: #272320; }
.pr-form__piece-note { margin: 2px 0 0; font-size: 12px; color: rgba(52, 40, 32, 0.6); }
.pr-form__lines { margin: 0 0 12px; padding: 0; border: 0; display: grid; gap: 6px; }
.pr-form__line { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pr-form__label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: #342820; }
.pr-form__input { width: 100%; margin-bottom: 14px; padding: 10px 12px; border: 1px solid rgba(52, 40, 32, 0.25); border-radius: 10px; background: #fff; font: inherit; font-size: 16px; color: #342820; }
.pr-form__input:focus { outline: 2px solid #C8A46A; outline-offset: 1px; border-color: transparent; }
textarea.pr-form__input { resize: vertical; min-height: 84px; }
.pr-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.pr-choice__option { position: relative; }
.pr-choice__option input { position: absolute; opacity: 0; pointer-events: none; }
.pr-choice__option span { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid rgba(52, 40, 32, 0.25); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 600; color: #342820; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.pr-choice__option input:checked + span { border-color: #C8A46A; background: #EFE2C9; box-shadow: inset 0 0 0 1px #C8A46A; color: #272320; }
.pr-choice__option input:focus-visible + span { outline: 2px solid #C8A46A; outline-offset: 2px; }
.pr-form__photo { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 14px; }
.pr-form__photo-add { position: relative; }
.pr-form__photo-preview { display: flex; align-items: center; gap: 12px; }
.pr-form__photo-preview[hidden], .pr-form__consent[hidden], .pr-form__error[hidden], .pr-thanks[hidden], .pr-form[hidden] { display: none; }
.pr-form__photo-preview img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.pr-form__consent { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.pr-form__consent input { width: 18px; height: 18px; accent-color: #8A6A35; }
.pr-form__error { margin: 0 0 12px; font-size: 14px; color: #9f2409; }
.pr-form__submit:disabled { opacity: 0.6; cursor: wait; }
.pr-thanks { text-align: center; }
.pr-thanks__title { margin: 8px 0 18px; font-family: 'Cormorant Garamond', serif; font-size: 30px; color: #272320; }
.pr-thanks__close { min-width: 160px; }
