/* ============================================================
   Photo Reviews — Public Stylesheet  v1.4.0
   Layout dimensions:
     pr-widget--{grid|list}
     pr-layout--{top|left}
     pr-style--{detail|compact|minimal}
     pr-cards--{box|classic|media-focus}
   ============================================================ */

/* ── Section wrapper ─────────────────────────────────────── */
.pr-reviews-section {
  background: var(--pr-section-bg, #FFFFFF);
  border-radius: var(--pr-section-radius, 20px);
  padding: var(--pr-section-pad, 2.5rem 2rem);
  margin: 2.5rem 0;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}

.pr-reviews-section,
.pr-reviews-section *,
.pr-reviews-section *::before,
.pr-reviews-section *::after,
.pr-modal,
.pr-modal *,
.pr-modal *::before,
.pr-modal *::after,
.pr-review-form-modal,
.pr-review-form-modal *,
.pr-review-form-modal *::before,
.pr-review-form-modal *::after {
  box-sizing: border-box;
}

.pr-reviews-section :where(button, input, select, textarea),
.pr-modal :where(button, input, select, textarea),
.pr-review-form-modal :where(button, input, select, textarea) {
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  appearance: none;
  -webkit-appearance: none;
}

.pr-reviews-section :where(button),
.pr-modal :where(button),
.pr-review-form-modal :where(button) {
  min-width: 0;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
  border-style: solid;
  border-color: transparent;
  background-image: none;
  transition-property: background-color, border-color, color, box-shadow, transform;
}

.pr-reviews-section :is(.pr-chip, .pr-star-filter-btn, .pr-sort-selected, .pr-sort-option, .pr-write-review-btn, .pr-all-photos, .pr-carousel-btn, .pr-card-thumb, .pr-card-helpful-btn, .pr-pg-btn, .pr-load-more-btn, .pr-modal-close, .pr-modal-nav-btn, .pr-review-form-close, .pr-review-submit),
.pr-modal :is(.pr-modal-close, .pr-modal-nav-btn, .pr-lb-helpful-btn),
.pr-review-form-modal :is(.pr-review-form-close, .pr-review-submit),
.pr-reviews-carousel :is(.pr-review-carousel-btn, .pr-modal-close, .pr-modal-nav-btn, .pr-lb-helpful-btn) {
  -webkit-appearance: none;
  appearance: none;
  background-image: none !important;
  letter-spacing: 0;
  text-shadow: none !important;
  text-transform: none;
}

.pr-reviews-section :is(.pr-chip, .pr-star-filter-btn, .pr-sort-selected, .pr-sort-option, .pr-write-review-btn, .pr-all-photos, .pr-carousel-btn, .pr-card-thumb, .pr-card-helpful-btn, .pr-pg-btn, .pr-load-more-btn, .pr-modal-close, .pr-modal-nav-btn, .pr-review-form-close, .pr-review-submit)::before,
.pr-reviews-section :is(.pr-chip, .pr-star-filter-btn, .pr-sort-selected, .pr-sort-option, .pr-write-review-btn, .pr-all-photos, .pr-carousel-btn, .pr-card-thumb, .pr-card-helpful-btn, .pr-pg-btn, .pr-load-more-btn, .pr-modal-close, .pr-modal-nav-btn, .pr-review-form-close, .pr-review-submit)::after,
.pr-modal :is(.pr-modal-close, .pr-modal-nav-btn, .pr-lb-helpful-btn)::before,
.pr-modal :is(.pr-modal-close, .pr-modal-nav-btn, .pr-lb-helpful-btn)::after,
.pr-review-form-modal :is(.pr-review-form-close, .pr-review-submit)::before,
.pr-review-form-modal :is(.pr-review-form-close, .pr-review-submit)::after,
.pr-reviews-carousel :is(.pr-review-carousel-btn, .pr-modal-close, .pr-modal-nav-btn, .pr-lb-helpful-btn)::before,
.pr-reviews-carousel :is(.pr-review-carousel-btn, .pr-modal-close, .pr-modal-nav-btn, .pr-lb-helpful-btn)::after {
  display: none !important;
  content: none !important;
}

.pr-reviews-section :where(button:not(:disabled)),
.pr-modal :where(button:not(:disabled)),
.pr-review-form-modal :where(button:not(:disabled)) {
  cursor: pointer;
}

.pr-reviews-section :where(img, svg),
.pr-modal :where(img, svg),
.pr-review-form-modal :where(img, svg) {
  display: inline-block;
  flex-shrink: 0;
  max-width: none;
  vertical-align: middle;
}

.pr-reviews-section :where(img),
.pr-modal :where(img),
.pr-review-form-modal :where(img) {
  height: auto;
  border: 0;
  box-shadow: none;
}

.pr-reviews-section :where(svg),
.pr-modal :where(svg),
.pr-review-form-modal :where(svg) {
  overflow: visible;
}

.pr-reviews-section :where(p, h1, h2, h3, h4, h5, h6),
.pr-modal :where(p, h1, h2, h3, h4, h5, h6),
.pr-review-form-modal :where(p, h1, h2, h3, h4, h5, h6) {
  padding: 0;
}

.pr-product-reviews-wrap {
  width: 100%;
  clear: both;
}

.pr-hide-native-reviews {
  display: none !important;
}

/* ── Layout wrap ─────────────────────────────────────────── */
.pr-layout-wrap {
  display: flex;
  gap: 32px;
}

/* Top: summary above, body below */
.pr-layout--top .pr-layout-wrap {
  flex-direction: column;
}

/* Left: summary on left as sticky sidebar */
.pr-layout--left .pr-layout-wrap {
  flex-direction: row;
  align-items: flex-start;
}

/* ── Summary sidebar ─────────────────────────────────────── */
.pr-summary-sidebar {
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Top layout: sidebar spans full width */
.pr-layout--top .pr-summary-sidebar {
  width: 100%;
}

/* Left layout: sidebar is fixed-width sticky column */
.pr-layout--left .pr-summary-sidebar {
  width: 240px;
  min-width: 200px;
  position: sticky;
  top: 24px;
}

/* ── Overview container ──────────────────────────────────── */
.pr-overview-wrap {
  margin-bottom: 16px;
}

/* Top layout in detail/compact: overview is a row (score + bars side by side) */
.pr-layout--top .pr-overview-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* Left layout: overview stacks vertically */
.pr-layout--left .pr-overview-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pr-overview-rating {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Rating number + stars inline */
.pr-rating-num {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  line-height: 1;
}

.pr-rating-value {
  font-size: 40px;
  font-weight: 700;
  color: var(--pr-primary-text, #3D4153);
  line-height: 1;
}

.pr-rating-stars-wrap {
  display: flex;
  gap: 2px;
}

.pr-total-count {
  font-size: 14px;
  color: var(--pr-secondary-text, #74788D);
  margin: 0;
  line-height: 1.4;
}

/* ── Compact style overrides ─────────────────────────────── */
.pr-style--compact .pr-rating-value {
  font-size: 22px;
  font-weight: 700;
}

.pr-style--compact .pr-overview-rating {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

/* ── Minimal style overrides ─────────────────────────────── */
.pr-style--minimal .pr-rating-value {
  font-size: 16px;
  font-weight: 600;
}

.pr-style--minimal .pr-overview-rating {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.pr-style--minimal .pr-total-count {
  display: none;
}

/* ── Rating bars list ────────────────────────────────────── */
.pr-bars-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

/* Top layout: bars sit beside the overview container */
.pr-layout--top .pr-bars-list {
  flex: 1;
  min-width: 180px;
}

/* Bar chart hidden for compact / minimal */
.pr-style--compact .pr-bars-list,
.pr-style--minimal .pr-bars-list {
  display: none;
}

.pr-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pr-bar-item[data-rating] {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.pr-bar-item[data-rating]:focus-visible {
  outline: 2px solid var(--trustshop-rating-star-color, var(--pr-star, #F5A623));
  outline-offset: 3px;
  border-radius: 4px;
}

.pr-bar-item[data-rating]:hover .pr-bar-track,
.pr-bar-item[data-rating].active .pr-bar-track {
  border-color: var(--trustshop-rating-star-color, var(--pr-star, #F5A623));
}

.pr-bar-label {
  font-size: 12px;
  color: var(--trustshop-rating-star-color, var(--pr-star, #F5A623));
  width: 24px;
  flex-shrink: 0;
  text-align: right;
}

.pr-bar-number,
.pr-bar-star {
  color: var(--trustshop-rating-star-color, var(--pr-star, #F5A623));
}

.pr-bar-track {
  flex: 1;
  height: 6px;
  border: 1px solid transparent;
  background: var(--pr-bar-bg, #E8E8E8);
  border-radius: 99px;
  box-sizing: border-box;
  overflow: hidden;
}

.pr-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--pr-star, #F5A623);
  width: var(--pr-bar-w, 0%);
  transition: width 1s cubic-bezier(.22, 1, .36, 1) .1s;
}

.pr-bar-pct {
  font-size: 11px;
  color: var(--pr-secondary-text, #74788D);
  width: 34px;
  flex-shrink: 0;
}

/* ── Review body ─────────────────────────────────────────── */
.pr-review-body {
  flex: 1;
  min-width: 0;
}

/* ── Toolbar ─────────────────────────────────────────────── */
.pr-toolbar {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.pr-chip {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.1;
  color: #9A8F84;
  background: #fff;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

.pr-chip.active,
.pr-chip:hover {
  background: #1C1714;
  color: #fff;
  border-color: #1C1714;
}

.pr-toolbar-right {
  margin-left: auto;
  font-size: 12px;
  color: #9A8F84;
}

/* ── Grid: widget layout ─────────────────────────────────── */

/* Grid mode: row-major grid so photo-first reviews fill both columns evenly. */
.pr-widget--grid .pr-grid {
  display: grid;
  grid-template-columns: repeat(var(--pr-col-pc, 4), minmax(0, 1fr));
  gap: var(--pr-card-gap, 14px);
}

/* List mode: single column flex */
.pr-widget--list .pr-grid {
  display: flex;
  flex-direction: column;
  gap: var(--pr-card-gap, 14px);
}

/* ── Cards ───────────────────────────────────────────────── */
.pr-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  transition: transform .22s, box-shadow .22s;
  animation: pr-fadeUp .38s ease both;
}

.pr-widget--grid .pr-card {
  min-width: 0;
  margin: 0;
}

.pr-widget--list .pr-card {
  width: 100%;
}

@keyframes pr-fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Card style: Box (default) ───────────────────────────── */
.pr-cards--box .pr-card {
  background: #fff;
  border: 1px solid var(--pr-border-color, #E8E8E8);
  border-radius: var(--pr-card-radius, 14px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
}

.pr-cards--box .pr-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}

/* ── Card style: Classic (open, no border) ───────────────── */
.pr-cards--classic .pr-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--pr-border-color, #E8E8E8);
  border-radius: 0;
  box-shadow: none;
  padding-bottom: 16px;
}

.pr-cards--classic .pr-card:hover {
  transform: none;
  box-shadow: none;
}

/* ── Card style: Media focus ─────────────────────────────── */
.pr-cards--media-focus .pr-card {
  background: #fff;
  border: 1px solid var(--pr-border-color, #E8E8E8);
  border-radius: var(--pr-card-radius, 14px);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
}

.pr-cards--media-focus .pr-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}

/* Media focus: force fixed aspect ratio on cover image */
.pr-cards--media-focus .pr-card-img-wrap {
  aspect-ratio: 4 / 3;
}

.pr-cards--media-focus .pr-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* List mode + media-focus: image on left, content on right */
.pr-widget--list.pr-cards--media-focus .pr-card {
  flex-direction: row;
}

.pr-widget--list.pr-cards--media-focus .pr-card-img-wrap {
  flex: 0 0 140px;
  aspect-ratio: unset;
  height: auto;
}

/* ── Card media ──────────────────────────────────────────── */
.pr-card-img-wrap {
  position: relative;
  background: #EDE7DE;
  overflow: hidden;
}

.pr-card-img,
.pr-video-frame,
.pr-video-el {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border: 0;
  transition: transform .3s ease;
}

.pr-card:hover .pr-card-img {
  transform: scale(1.04);
}

.pr-card-media-placeholder {
  background: linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,255,255,0)), #E7DED2;
}

.pr-multi-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(0, 0, 0, .09);
  border-radius: 7px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #1C1714;
}

.pr-video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .42);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  color: #fff;
  pointer-events: none;
}

.pr-video-overlay svg {
  display: block;
  width: 18px;
  height: 18px;
}

.pr-play-tri {
  width: 0;
  height: 0;
  border: solid transparent;
  border-width: 8px 0 8px 14px;
  border-left-color: #1C1714;
  margin-left: 3px;
}

/* Video-only dark placeholder */
.pr-card-video-thumb {
  background: #1C1714;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pr-card-video-thumb .pr-video-overlay {
  position: static;
  transform: none;
  width: 52px;
  height: 52px;
}

/* ── Card body ───────────────────────────────────────────── */
.pr-card-body {
  padding: 13px 15px 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Classic style: no top padding (image absent or flush) */
.pr-cards--classic .pr-card-body {
  padding: 10px 4px 10px;
}

.pr-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.pr-card-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.pr-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--pr-name-text, #303030);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pr-card-name-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}

/* Verified badge icon */
.pr-card-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pr-card-check svg {
  display: block;
}

.pr-card-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 7px;
}

.pr-card-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--pr-primary-text, #3C3530);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pr-card-text mark,
.pr-lb-body mark {
  background: var(--pr-hl-bg, #FFF0B3);
  color: #7A5C00;
  border-radius: 3px;
  padding: 1px 2px;
}

.pr-card-date {
  font-size: 10px;
  color: #9A8F84;
  margin-top: auto;
  padding-top: 8px;
  display: none;
}

.pr-show-date .pr-card-date {
  display: block;
}

/* ── Loading skeleton ────────────────────────────────────── */
.pr-loading {
  display: grid;
  grid-template-columns: repeat(var(--pr-col-pc, 4), minmax(0, 1fr));
  gap: var(--pr-card-gap, 14px);
}

.pr-widget--list .pr-loading {
  grid-template-columns: 1fr;
}

.pr-skeleton {
  height: 280px;
  border-radius: var(--pr-card-radius, 14px);
  background: linear-gradient(90deg, #ebe6de 25%, #f5f0e8 50%, #ebe6de 75%);
  background-size: 200% 100%;
  animation: pr-shimmer 1.5s infinite;
}

@keyframes pr-shimmer {
  to { background-position: -200% 0; }
}

/* ── Pagination ──────────────────────────────────────────── */
.pr-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.pr-pg-btn {
  padding: 7px 16px;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 99px;
  font-size: 12px;
  color: #9A8F84;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
  transition: all .2s;
}

.pr-pg-btn:hover,
.pr-pg-btn.active {
  background: #1C1714;
  color: #fff;
  border-color: #1C1714;
}

.pr-pg-btn:disabled {
  opacity: .3;
  cursor: default;
  pointer-events: none;
}

.pr-pg-ellipsis {
  font-size: 12px;
  color: #9A8F84;
}

/* ── Load More button ────────────────────────────────────── */
.pr-load-more-btn {
  display: block;
  margin: 0 auto;
  padding: .72rem 2.75rem;
  background: var(--pr-star, #F5A623);
  color: #fff;
  border: none;
  border-radius: 99px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  min-width: 180px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .14);
  transition: opacity .18s, transform .12s, box-shadow .18s;
}

.pr-load-more-btn:hover:not(:disabled) {
  opacity: .88;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}

.pr-load-more-btn:disabled {
  opacity: .55;
  cursor: default;
}

/* ── Infinite scroll sentinel & spinner ──────────────────── */
.pr-scroll-sentinel {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 .5rem;
}

.pr-scroll-spinner {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pr-scroll-spinner span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pr-star, #F5A623);
  opacity: .25;
  animation: pr-bounce 1.1s ease-in-out infinite;
}

.pr-scroll-spinner span:nth-child(2) { animation-delay: .18s; }
.pr-scroll-spinner span:nth-child(3) { animation-delay: .36s; }

@keyframes pr-bounce {
  0%, 80%, 100% { transform: scale(.7); opacity: .25; }
  40%            { transform: scale(1);  opacity: 1; }
}

.pr-scroll-end {
  text-align: center;
  font-size: 12px;
  color: #B0A89E;
  padding: 1.25rem 0 .5rem;
  letter-spacing: .03em;
}

/* ============================================================
   Modal Lightbox  (TrustShop-style)
   ============================================================ */

.pr-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .55);
  z-index: 99999;
  padding: 16px;
}

.pr-modal[hidden] {
  display: none;
}

.pr-review-form-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .55);
}

.pr-review-form-modal[hidden] {
  display: none;
}

.pr-review-form {
  position: relative;
  width: min(100%, 460px);
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 50px rgba(17, 24, 39, .18);
}

.pr-review-form-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #fff;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pr-review-form-title {
  margin: 0 36px 20px 0;
  color: #111827;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}

.pr-review-field {
  display: block;
  margin: 0 0 14px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
}

.pr-review-field span {
  display: block;
  margin-bottom: 6px;
}

.pr-review-input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font: inherit;
  line-height: 1.4;
  box-shadow: none;
}

.pr-review-input:focus {
  border-color: var(--trustshop-primary-color);
  outline: 2px solid rgba(39, 43, 68, .15);
  outline-offset: 1px;
}

.pr-review-textarea {
  min-height: 110px;
  resize: vertical;
}

.pr-review-form-message {
  min-height: 20px;
  margin: 2px 0 14px;
  color: #374151;
  font-size: 13px;
  line-height: 1.4;
}

.pr-review-submit {
  width: 100%;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--trustshop-primary-color);
  color: var(--trustshop-button-text-color);
  font-size: 15px;
  cursor: pointer;
}

.pr-review-submit:hover,
.pr-review-submit:focus {
  background: #1d2236;
  color: var(--trustshop-button-text-color);
}

.pr-review-submit:disabled {
  opacity: .65;
  cursor: wait;
}

/* White card */
.pr-modal-card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  width: 876px;
  max-width: 100%;
  height: 600px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

/* Close button */
.pr-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgb(229, 229, 229);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #555;
  transition: background .2s;
}

.pr-modal-close:hover {
  background: #f0f0f0;
}

/* Body: left image + right content */
.pr-modal-body {
  display: flex;
  flex-direction: row;
  flex: 1;
  overflow: hidden;
}

/* ── Left: image panel ───────────────────────────────────── */
.pr-modal-left {
  position: relative;
  flex: 0 0 438px;
  width: 438px;
  min-width: 0;
  min-height: 0;
  background: rgb(78, 79, 75);
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pr-lb-bg {
  position: absolute;
  inset: -32px;
  z-index: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(24px) saturate(1.08);
  opacity: 0;
  transform: scale(1.08);
  transition: opacity .22s ease, background-image .22s ease;
  pointer-events: none;
}

.pr-lb-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .2);
}

.pr-lb-has-bg .pr-lb-bg {
  opacity: .76;
}

/* Main image / video in lightbox */
.pr-lb-main-slot {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pr-lb-main-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}

.pr-lb-main-video {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pr-lb-main-video iframe,
.pr-lb-main-video video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border: 0;
  object-fit: contain;
}

/* Thumbnail strip (floats over image bottom) */
.pr-lb-thumbs-wrap {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 20px);
  display: flex;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  z-index: 2;
}

.pr-lb-thumbs {
  display: flex;
  gap: 6px;
  align-items: center;
  max-width: 100%;
}

.pr-lb-thumb {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: border-color .2s;
  background: #444;
}

.pr-lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pr-lb-thumb.active {
  border-color: rgb(0, 91, 211);
}

/* Video thumb placeholder in strip */
.pr-lb-thumb-video {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333;
  color: #fff;
  font-size: 16px;
}

/* ── Right: review content panel ─────────────────────────── */
.pr-modal-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pr-lb-review-scroll {
  flex: 1;
  padding: 16px 24px 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Author row */
.pr-lb-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pr-lb-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #111;
}

.pr-lb-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pr-lb-name {
  font-size: 14px;
  font-weight: 600;
  color: rgb(61, 65, 83);
  margin: 0;
}

/* Verified badge */
.pr-lb-verified {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: rgb(107, 114, 128);
}

.pr-lb-verified svg {
  flex-shrink: 0;
}

/* Stars + date row */
.pr-lb-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.pr-lb-stars {
  display: flex;
  gap: 2px;
  flex: 0 0 auto;
}

.pr-lb-date {
  margin-left: auto;
  font-size: 14px;
  line-height: 1.2;
  color: rgb(116, 120, 141);
  text-align: right;
  white-space: nowrap;
}

/* Review title + body */
.pr-lb-title {
  font-size: 14px;
  font-weight: 700;
  color: rgb(61, 65, 83);
  margin: 0;
}

.pr-lb-body {
  font-size: 14px;
  line-height: 1.65;
  color: rgb(61, 65, 83);
  margin: 0;
}

/* Action buttons row */
.pr-lb-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.pr-lb-helpful-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgb(242, 242, 246);
  border: 1px solid rgb(222, 223, 230);
  border-radius: 8px;
  font-size: 13px;
  color: rgb(61, 65, 83);
  cursor: pointer;
  transition: background .2s;
}

.pr-lb-helpful-btn:hover,
.pr-lb-helpful-btn.liked {
  background: rgb(220, 232, 255);
  border-color: rgb(0, 91, 211);
  color: rgb(0, 91, 211);
}

/* Product info strip at bottom of right panel */
.pr-lb-product-strip {
  flex-shrink: 0;
  border-top: 1px solid rgb(242, 242, 246);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pr-lb-product-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.pr-lb-prod-img-wrap {
  width: 40px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.pr-lb-prod-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pr-lb-prod-info {
  flex: 1;
  min-width: 0;
}

.pr-lb-prod-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgb(48, 48, 48);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 2px;
}

.pr-lb-prod-tag,
.pr-lb-prod-price {
  display: block;
  font-size: 11px;
  color: rgb(107, 114, 128);
  margin: 0;
}

.pr-lb-prod-cart {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  background: transparent;
  text-decoration: none;
  transition: color .2s, transform .2s;
}

.pr-lb-prod-cart:hover {
  color: #111;
  background: transparent;
  transform: translateY(-1px);
}

/* ── Nav arrows (prev / next review) ─────────────────────── */
.pr-modal-nav-btn {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  color: rgb(48, 48, 48);
  transition: background .2s;
  z-index: 3;
}

.pr-modal-nav-btn:hover {
  background: rgb(242, 242, 246);
}

.pr-modal-nav-btn:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.pr-modal-prev {
  top: 50%;
  left: max(16px, calc(50% - 494px));
  transform: translateY(-50%);
}

.pr-modal-next {
  top: 50%;
  right: max(16px, calc(50% - 494px));
  transform: translateY(-50%);
}

/* ── Star badge (WooCommerce integration) ─────────────────── */
.pr-star-badge,
.pr-list-stars {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  color: inherit;
}

.pr-star-badge:hover .pr-badge-count,
.pr-list-stars:hover .pr-list-count {
  text-decoration: underline;
}

.pr-badge-stars,
.pr-badge-stars svg,
.pr-list-stars svg {
  display: inline-block;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  max-width: none;
  vertical-align: middle;
}

.pr-badge-stars svg path,
.pr-list-stars svg path {
  stroke: none !important;
}

.pr-badge-stars svg .pr-sf,
.pr-list-stars .pr-list-star--filled path {
  fill: var(--pr-star, #F5A623) !important;
}

.pr-badge-stars svg .pr-se,
.pr-list-stars .pr-list-star--empty path {
  fill: var(--pr-star-empty, #E5E7EB) !important;
}

.pr-badge-count,
.pr-list-count {
  font-size: 13px;
  color: #9A8F84;
}

.pr-sf { fill: var(--pr-star, #F5A623); }
.pr-se { fill: var(--pr-star-empty, #E5E7EB); }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 980px) {
  .pr-widget--grid .pr-grid {
    grid-template-columns: repeat(var(--pr-col-tablet, 3), minmax(0, 1fr));
  }

  .pr-loading {
    grid-template-columns: repeat(var(--pr-col-tablet, 3), minmax(0, 1fr));
  }

  /* Left layout collapses to top on tablet */
  .pr-layout--left .pr-layout-wrap {
    flex-direction: column;
  }

  .pr-layout--left .pr-summary-sidebar {
    width: 100%;
    position: static;
  }

  .pr-layout--left .pr-overview-container {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }

  .pr-layout--left .pr-bars-list {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .pr-reviews-section {
    padding: 1.4rem 1rem;
    border-radius: 16px;
  }

  .pr-rating-value {
    font-size: 32px;
  }

  .pr-chip {
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 10px;
  }

  .pr-toolbar-right {
    width: 100%;
    margin-left: 0;
    font-size: 11px;
  }

  /* Modal lightbox: stack vertically on mobile */
  .pr-modal-card {
    width: 96vw;
    height: 92vh;
    border-radius: 12px;
  }

  .pr-modal-body {
    flex-direction: column;
  }

  .pr-modal-left {
    flex: 0 0 50%;
    width: 100%;
  }

  .pr-modal-right {
    flex: 1;
    width: 100%;
    max-width: 100%;
  }

  .pr-modal-prev { left: 4px; }
  .pr-modal-next { right: 4px; }
}

@media (max-width: 600px) {
  .pr-widget--grid .pr-grid {
    grid-template-columns: repeat(var(--pr-col-mobile, 2), minmax(0, 1fr));
  }

  .pr-loading {
    grid-template-columns: repeat(var(--pr-col-mobile, 2), minmax(0, 1fr));
  }

  .pr-widget--list .pr-loading {
    grid-template-columns: 1fr;
  }
}

/* Legacy single-product compatibility */
.single-product .woocommerce-product-rating,
.woocommerce ul.products li.product .star-rating,
.woocommerce-page ul.products li.product .star-rating {
  display: none !important;
}

/* ============================================================
   TrustShop visual refactor
   Matches the reference review widget HTML in 新样式/评论.html.
   ============================================================ */

.pr-reviews-section {
  --trustshop-primary-color: #2a2f45;
  --trustshop-secondary-color: #74788d;
  --trustshop-primary-text-color: #1f2937;
  --trustshop-secondary-text-color: #6b7280;
  --trustshop-name-text-color: #111827;
  --trustshop-button-text-color: #fff;
  --trustshop-link-color: #2563eb;
  --trustshop-verified-color: #16a34a;
  --trustshop-rating-star-color: var(--pr-star, #f5a623);
  --trustshop-modal-detail-icon-title: #3d4153;
  --trustshop-modal-detail-selected-icon: var(--pr-star, #f5a623);
  --trustshop-rating-process-empty-color: #e5e7eb;
  --trustshop-border-color: #e5e7eb;
  --trustshop-border-radius: 10px;
  --trustshop-avatar-bg: #fde047;
  --trustshop-avatar-text: #1f2937;
  --trustshop-media-size-on-review: 80px;
  --trustshop-media-size-on-gallery: 150px;
  --trustshop-filter-sort-text: #4b5563;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 32px 0;
  background: transparent;
  border-radius: 0;
  color: var(--trustshop-primary-text-color);
  line-height: 1.5;
}

.pr-section-title {
  margin: 0 0 24px;
  color: #111827;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
}

.pr-layout-wrap,
.pr-layout--top .pr-layout-wrap,
.pr-layout--left .pr-layout-wrap {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.pr-layout--top .pr-layout-wrap {
  grid-template-columns: 1fr;
  gap: 28px;
}

.pr-review-body {
  min-width: 0;
}

.pr-summary-sidebar,
.pr-layout--left .pr-summary-sidebar,
.pr-layout--top .pr-summary-sidebar {
  width: auto;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--trustshop-border-color);
  border-radius: var(--trustshop-border-radius);
  background: #fff;
}

.pr-layout--left .pr-summary-sidebar {
  top: 24px;
}

.pr-overview-wrap {
  margin: 0;
}

.pr-overview-container,
.pr-layout--top .pr-overview-container,
.pr-layout--left .pr-overview-container {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.pr-overview-rating {
  min-width: 120px;
  align-items: center;
  text-align: center;
}

.pr-rating-num {
  display: block;
  text-align: center;
}

.pr-rating-value {
  display: block;
  color: #111827;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.1;
}

.pr-rating-stars-wrap {
  justify-content: center;
  gap: 2px;
  margin-top: 4px;
}

.pr-total-count {
  margin-top: 6px;
  color: var(--trustshop-secondary-text-color);
  font-size: 14px;
}

.pr-total-count-wrap {
  position: relative;
}

.pr-total-count-minimal,
.pr-total-count-caret,
.pr-minimal-popover {
  display: none;
}

.pr-bars-list,
.pr-layout--top .pr-bars-list,
.pr-layout--left .pr-bars-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin-top: 5px;
}

.pr-style--compact .pr-bars-list,
.pr-style--minimal .pr-bars-list {
  display: none;
}

.pr-style--compact .pr-overview-rating,
.pr-style--minimal .pr-overview-rating {
  min-width: 0;
  align-items: flex-start;
  text-align: left;
}

.pr-style--compact .pr-rating-value {
  font-size: 28px;
}

.pr-style--minimal .pr-rating-value {
  font-size: 20px;
}

.pr-bar-item {
  gap: 8px;
  font-size: 13px;
}

.pr-bar-label {
  width: 28px;
  color: var(--trustshop-rating-star-color, var(--pr-star, #F5A623));
  font-size: 13px;
  text-align: left;
}

.pr-bar-number,
.pr-bar-star {
  color: var(--trustshop-rating-star-color, var(--pr-star, #F5A623));
}

.pr-bar-track {
  height: 8px;
  border: 1px solid transparent;
  background: var(--trustshop-rating-process-empty-color);
  border-radius: 4px;
  box-sizing: border-box;
}

.pr-bar-fill {
  background: var(--trustshop-rating-star-color);
  border-radius: 4px;
}

.pr-bar-pct {
  width: 36px;
  color: #4b5563;
  font-size: 13px;
  text-align: right;
}

.pr-summary-divider {
  border-top: 1px solid var(--trustshop-border-color);
  margin: 20px 0;
}

.pr-review-cta {
  text-align: center;
}

.pr-style--compact .pr-review-cta,
.pr-style--minimal .pr-review-cta {
  display: none;
}

.pr-cta-title {
  margin: 0 0 4px;
  color: #111827;
  font-size: 16px;
  font-weight: 600;
}

.pr-cta-subheading {
  margin: 0 0 16px;
  color: var(--trustshop-secondary-text-color);
  font-size: 14px;
}

.pr-write-review-btn {
  width: 100%;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--trustshop-primary-color);
  color: var(--trustshop-button-text-color);
  font-size: 15px;
  cursor: pointer;
  transition: background .2s;
}

.pr-write-review-btn:hover {
  background: #1d2236;
}

.pr-images-head {
  margin: 0;
}

.pr-all-photos {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--trustshop-link-color);
  font-size: 14px;
  cursor: pointer;
}

.pr-all-photos:hover {
  text-decoration: underline;
}

.pr-images-section[hidden] {
  display: none;
}

.pr-images-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #111827;
  font-size: 18px;
  font-weight: 600;
}

.pr-carousel {
  position: relative;
}

.pr-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 2px;
  scrollbar-width: none;
}

.pr-gallery::-webkit-scrollbar {
  display: none;
}

.pr-gallery-item {
  position: relative;
  flex: 0 0 var(--trustshop-media-size-on-gallery);
  width: var(--trustshop-media-size-on-gallery);
  height: var(--trustshop-media-size-on-gallery);
  padding: 0;
  border: 0;
  border-radius: var(--trustshop-border-radius);
  background: #f3f4f6;
  overflow: hidden;
  cursor: pointer;
}

.pr-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pr-gallery-more-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .58);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.pr-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid var(--trustshop-border-color);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  color: #111827;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  transform: translateY(-50%);
}

.pr-carousel-prev {
  left: -12px;
}

.pr-carousel-next {
  right: -12px;
}

.pr-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 22px 0 14px;
  width: 100%;
  min-width: 0;
}

.pr-chip,
.pr-select {
  min-height: 34px;
  border-radius: 6px;
  font-size: 12px;
}

.pr-chip {
  flex: 0 1 auto;
  padding: 7px 11px;
  border: 0;
  background: #f5f5f8;
  color: #3d4153;
  box-shadow: none;
  line-height: 1;
}

.pr-chip.active,
.pr-chip:hover {
  background: var(--trustshop-primary-color);
  color: #fff;
  border-color: transparent;
}

.pr-chip:focus,
.pr-star-filter-btn:focus,
.pr-sort-selected:focus,
.pr-sort-option:focus,
.pr-carousel-btn:focus,
.pr-modal-close:focus,
.pr-modal-nav-btn:focus,
.pr-write-review-btn:focus {
  outline: 2px solid rgba(39, 43, 68, .22);
  outline-offset: 2px;
}

.pr-star-filter-buttons {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.pr-star-filter-btn {
  min-width: 38px;
  min-height: 34px;
  padding: 7px 9px;
  border: 0;
  border-radius: 6px;
  background: #f5f5f8;
  color: #3d4153;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1;
  transition: background .18s, color .18s;
}

.pr-star-filter-btn:hover,
.pr-star-filter-btn.active {
  background: var(--trustshop-primary-color);
  color: #fff;
}

.pr-star-icon {
  color: currentColor;
  font-size: 14px;
  line-height: 1;
}

.pr-select {
  padding: 8px 34px 8px 12px;
  border: 1px solid var(--trustshop-border-color);
  background: #fff;
  color: #1f2937;
  cursor: pointer;
}

.pr-rating-select {
  min-width: 180px;
  min-height: 34px;
  padding: 7px 34px 7px 12px;
  border: 0;
  border-radius: 6px;
  background-color: #f5f5f8;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.391 0.474a.625.625 0 0 1 .884 0L5 4.199 8.725.474a.625.625 0 1 1 .884.884L5.442 5.525a.625.625 0 0 1-.884 0L.391 1.358a.625.625 0 0 1 0-.884Z' fill='%234b5563'/%3E%3C/svg%3E");
  background-position: right 13px center;
  background-repeat: no-repeat;
  background-size: 10px 6px;
  color: #3d4153;
  font-size: 13px;
  line-height: 1;
  box-shadow: none;
}

.pr-select:focus {
  border-color: var(--trustshop-primary-color);
  outline: 2px solid rgba(39, 43, 68, .15);
  outline-offset: 1px;
}

.pr-rating-select {
  display: none;
}

.pr-sort {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: var(--trustshop-filter-sort-text);
  font-size: 12px;
}

.pr-sort-custom {
  position: relative;
}

.pr-sort-selected {
  min-width: 120px;
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  background: #f5f5f8;
  color: #3d4153;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  line-height: 1;
  text-align: left;
}

.pr-sort-selected svg {
  flex: 0 0 auto;
  color: var(--trustshop-filter-sort-text);
}

.pr-sort-options {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  z-index: 20;
  min-width: 100%;
  width: 120px;
  padding: 8px 0;
  border: 1px solid #d7d7dd;
  border-radius: 6px;
  background: #f5f5f8;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
}

.pr-sort-option {
  width: 100%;
  min-height: 36px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #3d4153;
  cursor: pointer;
  display: block;
  font-size: 12px;
  line-height: 1.2;
  text-align: left;
}

.pr-sort-option:hover,
.pr-sort-option.active {
  background: rgba(61, 65, 83, .08);
}

.pr-toolbar-right {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  color: #9ca3af;
  font-size: 11px;
  white-space: nowrap;
}

@media (min-width: 769px) {
  .pr-toolbar > :not(.pr-toolbar-right) {
    flex-shrink: 0;
  }
}

.pr-widget--grid .pr-grid {
  display: grid;
  grid-template-columns: repeat(var(--pr-col-pc, 4), minmax(0, 1fr));
  gap: var(--pr-card-gap, 14px);
}

.pr-widget--list .pr-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pr-card,
.pr-widget--grid .pr-card,
.pr-widget--list .pr-card {
  width: 100%;
  break-inside: auto;
  border-top: 1px solid var(--trustshop-border-color);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding-top: 20px;
  overflow: visible;
}

.pr-widget--grid .pr-card {
  min-width: 0;
  margin: 0;
}

.pr-widget--list .pr-card {
  margin: 0;
}

.pr-cards--box .pr-card,
.pr-cards--media-focus .pr-card {
  border: 1px solid var(--trustshop-border-color);
  border-radius: var(--trustshop-border-radius);
  padding-top: 0;
  background: #fff;
}

.pr-cards--classic .pr-card {
  border-right: 0;
  border-left: 0;
  border-bottom: 0;
}

.pr-widget--grid.pr-cards--classic .pr-card {
  border-top: 0;
  border-bottom: 1px solid var(--trustshop-border-color);
  border-radius: 0;
  background: transparent;
  padding-top: 0;
  padding-bottom: 24px;
  overflow: visible;
}

.pr-card:hover,
.pr-cards--box .pr-card:hover,
.pr-cards--media-focus .pr-card:hover {
  transform: none;
  box-shadow: none;
}

.pr-card-body,
.pr-cards--classic .pr-card-body {
  padding: 16px;
  gap: 0;
}

.pr-cards--classic .pr-card-body {
  padding-right: 0;
  padding-left: 0;
}

.pr-widget--grid.pr-cards--classic .pr-card-body {
  padding: 0;
}

.pr-card-header {
  gap: 10px;
  margin-bottom: 10px;
}

.pr-card-av {
  width: 36px;
  height: 36px;
  background: var(--trustshop-avatar-bg);
  color: var(--trustshop-avatar-text);
  font-size: 13px;
  font-weight: 700;
}

.pr-card-name-wrap {
  min-width: 0;
  flex: 0 1 auto;
}

.pr-card-name {
  color: var(--trustshop-name-text-color);
  font-size: 14px;
  font-weight: 600;
}

.pr-card-name-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}

.pr-card-verified {
  display: none;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  color: var(--trustshop-secondary-text-color);
  font-size: 12px;
}

.pr-card-check {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pr-card-check svg {
  width: 18px;
  height: 18px;
  display: block;
}

.pr-card-stars {
  margin: 4px 0 8px;
  gap: 2px;
}

.pr-card-title {
  margin: 0 0 6px;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.pr-card-text {
  color: #374151;
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 5;
}

.pr-card-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pr-card-thumb {
  position: relative;
  width: var(--trustshop-media-size-on-review);
  height: var(--trustshop-media-size-on-review);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #f3f4f6;
  overflow: hidden;
  cursor: pointer;
}

.pr-card-thumb-video {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1C1714;
}

.pr-card-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pr-video-overlay--sm {
  width: 38px;
  height: 38px;
}

.pr-style--compact.pr-layout--top .pr-gallery-item .pr-video-overlay--sm {
  width: 44px;
  height: 44px;
}

.pr-video-overlay--xs {
  width: 24px;
  height: 24px;
}

.pr-lb-thumb {
  position: relative;
}

.pr-card-img-wrap {
  border-radius: 10px 10px 0 0;
  background: #f3f4f6;
}

.pr-cards--media-focus .pr-card-img-wrap {
  aspect-ratio: 4 / 3;
}

.pr-card-date {
  margin-top: 8px;
  padding-top: 0;
  color: #9ca3af;
  font-size: 12px;
}

.pr-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.pr-reviews-section[data-show-helpful="0"] .pr-card-actions,
.pr-reviews-section[data-show-helpful="0"] .pr-lb-actions,
.pr-reviews-section[data-show-helpful="0"] .pr-card-helpful-btn,
.pr-reviews-section[data-show-helpful="0"] .pr-lb-helpful-btn {
  display: none !important;
}

.pr-reviews-section .pr-card-helpful-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  background-color: transparent !important;
  color: #6b7280;
  box-shadow: none !important;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  transform: none !important;
  cursor: pointer;
}

.pr-reviews-section .pr-card-helpful-btn:hover,
.pr-reviews-section .pr-card-helpful-btn:focus,
.pr-reviews-section .pr-card-helpful-btn:active {
  border-color: transparent !important;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--trustshop-link-color);
  box-shadow: none !important;
  outline-offset: 2px;
  transform: none !important;
}

.pr-reviews-section .pr-card-helpful-btn::before,
.pr-reviews-section .pr-card-helpful-btn::after {
  display: none !important;
  content: none !important;
}

.pr-helpful-icon,
.pr-helpful-icon svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.pr-reviews-section .pr-card-helpful-btn:hover .helpful-uncheck path,
.pr-reviews-section .pr-card-helpful-btn.liked .helpful-uncheck path {
  fill: var(--trustshop-link-color);
}

.pr-reviews-section .pr-card-helpful-btn.liked {
  color: var(--trustshop-link-color);
}

/* Keep plugin buttons isolated from theme-wide button hover rules. */
.pr-reviews-section .pr-chip,
.pr-reviews-section .pr-star-filter-btn,
.pr-reviews-section .pr-sort-selected {
  background: #f5f5f8 !important;
  color: #3d4153;
  box-shadow: none !important;
  outline: 0 !important;
}

.pr-reviews-section .pr-chip:hover,
.pr-reviews-section .pr-chip:focus,
.pr-reviews-section .pr-chip:focus-visible,
.pr-reviews-section .pr-chip:active,
.pr-reviews-section .pr-chip.active,
.pr-reviews-section .pr-star-filter-btn:hover,
.pr-reviews-section .pr-star-filter-btn:focus,
.pr-reviews-section .pr-star-filter-btn:focus-visible,
.pr-reviews-section .pr-star-filter-btn:active,
.pr-reviews-section .pr-star-filter-btn.active {
  border-color: transparent !important;
  background: var(--trustshop-primary-color) !important;
  color: #fff !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.pr-reviews-section .pr-sort-selected:hover,
.pr-reviews-section .pr-sort-selected:focus,
.pr-reviews-section .pr-sort-selected:active {
  border-color: transparent !important;
  background: #f5f5f8 !important;
  color: #3d4153 !important;
  box-shadow: none !important;
}

.pr-reviews-section .pr-sort-option {
  background: transparent !important;
  color: #3d4153;
  box-shadow: none !important;
}

.pr-reviews-section .pr-sort-option:hover,
.pr-reviews-section .pr-sort-option.active {
  background: rgba(61, 65, 83, .08) !important;
  color: #3d4153 !important;
}

.pr-reviews-section .pr-write-review-btn,
.pr-review-form-modal .pr-review-submit {
  border-color: transparent !important;
  background: var(--trustshop-primary-color) !important;
  color: var(--trustshop-button-text-color) !important;
}

.pr-reviews-section .pr-write-review-btn:hover,
.pr-reviews-section .pr-write-review-btn:focus,
.pr-review-form-modal .pr-review-submit:hover,
.pr-review-form-modal .pr-review-submit:focus {
  background: #1d2236 !important;
  color: var(--trustshop-button-text-color) !important;
}

.pr-reviews-section .pr-all-photos,
.pr-reviews-section .pr-all-photos:hover,
.pr-reviews-section .pr-all-photos:focus,
.pr-reviews-section .pr-all-photos:active {
  border-color: transparent !important;
  background: transparent !important;
  color: var(--trustshop-link-color) !important;
  box-shadow: none !important;
}

.pr-reviews-section .pr-carousel-btn,
.pr-reviews-carousel .pr-review-carousel-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #111827;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08) !important;
  outline: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
}

.pr-reviews-section .pr-carousel-btn:hover,
.pr-reviews-section .pr-carousel-btn:focus,
.pr-reviews-section .pr-carousel-btn:focus-visible,
.pr-reviews-section .pr-carousel-btn:active {
  border-color: var(--trustshop-border-color) !important;
  background: #f0f0f0 !important;
  color: #111827 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08) !important;
  outline: 0 !important;
}

.pr-reviews-section .pr-carousel-btn {
  transform: translateY(-50%) !important;
}

.pr-reviews-carousel .pr-review-carousel-btn:hover {
  background: #fff !important;
  color: #111 !important;
}

@media (min-width: 769px) {
  .pr-reviews-section.pr-style--compact.pr-layout--top .pr-carousel-btn {
    display: none !important;
  }
}

.pr-reviews-section .pr-modal-close,
.pr-modal .pr-modal-close,
.pr-review-form-modal .pr-review-form-close,
.pr-reviews-carousel .pr-modal-close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #111827 !important;
  box-shadow: none !important;
  outline: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  transform: none !important;
}

.pr-reviews-section .pr-modal-close:hover,
.pr-reviews-section .pr-modal-close:focus,
.pr-modal .pr-modal-close:hover,
.pr-modal .pr-modal-close:focus,
.pr-review-form-modal .pr-review-form-close:hover,
.pr-review-form-modal .pr-review-form-close:focus,
.pr-reviews-carousel .pr-modal-close:hover,
.pr-reviews-carousel .pr-modal-close:focus {
  border-color: transparent !important;
  background: #f9fafb !important;
  color: #111827 !important;
  box-shadow: none !important;
  transform: none !important;
  outline: 0 !important;
}

.pr-reviews-section .pr-modal-close svg,
.pr-modal .pr-modal-close svg,
.pr-review-form-modal .pr-review-form-close svg,
.pr-reviews-carousel .pr-modal-close svg {
  display: block !important;
  width: 12px !important;
  height: 12px !important;
  margin: 0 !important;
  pointer-events: none;
}

.pr-reviews-section .pr-card-thumb {
  background: #f3f4f6 !important;
  box-shadow: none !important;
}

.pr-reviews-section .pr-card-thumb-video {
  background: #1C1714 !important;
}

.pr-reviews-section .pr-pg-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 0 16px !important;
  border: 1px solid #d7d7dd !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #9A8F84 !important;
  box-shadow: none !important;
  font-size: 14px !important;
  line-height: 1 !important;
  text-align: center !important;
  transform: none !important;
}

.pr-reviews-section .pr-pg-btn--number {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.pr-reviews-section .pr-pg-btn--nav {
  width: auto !important;
  min-width: 92px !important;
  max-width: none !important;
  white-space: nowrap;
}

.pr-reviews-section .pr-pg-btn:hover,
.pr-reviews-section .pr-pg-btn.active,
.pr-reviews-section .pr-load-more-btn {
  background: var(--trustshop-primary-color) !important;
  border-color: var(--trustshop-primary-color) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.pr-reviews-section .pr-pg-btn:disabled {
  border-color: #d7d7dd !important;
  background: #fff !important;
  color: #c1b8ae !important;
  opacity: .45 !important;
  box-shadow: none !important;
  cursor: default;
}

.pr-reviews-section .pr-load-more-btn:hover:not(:disabled) {
  background: var(--trustshop-primary-color) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.pr-modal .pr-lb-helpful-btn,
.pr-reviews-carousel .pr-lb-helpful-btn {
  background: rgb(242, 242, 246) !important;
  border-color: rgb(222, 223, 230) !important;
  color: rgb(61, 65, 83) !important;
  box-shadow: none !important;
}

.pr-modal .pr-lb-helpful-btn:hover,
.pr-modal .pr-lb-helpful-btn.liked,
.pr-reviews-carousel .pr-lb-helpful-btn:hover,
.pr-reviews-carousel .pr-lb-helpful-btn.liked {
  background: rgb(220, 232, 255) !important;
  border-color: rgb(0, 91, 211) !important;
  color: rgb(0, 91, 211) !important;
  box-shadow: none !important;
}

.pr-reviews-section .pr-modal-nav-btn,
.pr-modal .pr-modal-nav-btn,
.pr-reviews-carousel .pr-modal-nav-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 !important;
  border: 1px solid rgba(17, 24, 39, .08) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .96) !important;
  color: rgb(48, 48, 48) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .14) !important;
  outline: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
}

.pr-reviews-section .pr-modal-nav-btn:hover,
.pr-reviews-section .pr-modal-nav-btn:focus,
.pr-reviews-section .pr-modal-nav-btn:focus-visible,
.pr-reviews-section .pr-modal-nav-btn:active,
.pr-modal .pr-modal-nav-btn:hover,
.pr-modal .pr-modal-nav-btn:focus,
.pr-modal .pr-modal-nav-btn:focus-visible,
.pr-modal .pr-modal-nav-btn:active,
.pr-reviews-carousel .pr-modal-nav-btn:focus,
.pr-reviews-carousel .pr-modal-nav-btn:focus-visible,
.pr-reviews-carousel .pr-modal-nav-btn:active,
.pr-reviews-carousel .pr-modal-nav-btn:hover {
  border-color: rgba(17, 24, 39, .14) !important;
  background: #fff !important;
  color: #111827 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18) !important;
  outline: 0 !important;
}

.pr-reviews-section .pr-modal-nav-btn svg,
.pr-modal .pr-modal-nav-btn svg,
.pr-reviews-carousel .pr-modal-nav-btn svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  pointer-events: none;
}

.pr-reviews-section .pr-modal-prev,
.pr-reviews-section .pr-modal-next,
.pr-modal .pr-modal-prev,
.pr-modal .pr-modal-next,
.pr-reviews-carousel .pr-modal-prev,
.pr-reviews-carousel .pr-modal-next {
  transform: translateY(-50%) !important;
}

.pr-reviews-section .pr-modal-prev,
.pr-modal .pr-modal-prev,
.pr-reviews-carousel .pr-modal-prev {
  left: max(16px, calc(50% - 494px)) !important;
}

.pr-reviews-section .pr-modal-next,
.pr-modal .pr-modal-next,
.pr-reviews-carousel .pr-modal-next {
  right: max(16px, calc(50% - 494px)) !important;
}

.pr-pagination {
  margin-top: 24px;
}

.pr-pg-btn,
.pr-load-more-btn {
  border-radius: 8px;
  box-shadow: none;
}

.pr-pg-btn:hover,
.pr-pg-btn.active,
.pr-load-more-btn {
  background: var(--trustshop-primary-color);
  border-color: var(--trustshop-primary-color);
  color: #fff;
}

.pr-empty,
.pr-error {
  color: #6b7280;
  font-size: 14px;
}

.pr-sf {
  fill: var(--trustshop-rating-star-color, var(--pr-star, #F5A623));
}

.pr-se {
  fill: var(--pr-star-empty, #E5E7EB);
}

.pr-loading {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.pr-skeleton {
  border-radius: var(--trustshop-border-radius);
  background: linear-gradient(90deg, #f3f4f6 25%, #fff 50%, #f3f4f6 75%);
  background-size: 200% 100%;
}

.pr-modal {
  background: rgba(0, 0, 0, .55);
}

.pr-modal-card {
  width: 876px;
  height: 600px;
  border-radius: 8px;
}

.pr-modal-left {
  flex-basis: 438px;
  width: 438px;
  background: #4e4f4b;
}

.pr-modal-close,
.pr-modal-nav-btn {
  border-radius: 8px;
}

.pr-modal-close {
  border-radius: 50%;
}

.pr-lb-review-scroll {
  padding: 16px 24px 8px;
}

.pr-lb-name,
.pr-lb-title,
.pr-lb-body {
  color: #3d4153;
}

.pr-lb-helpful-btn {
  border-radius: 8px;
}

@media (max-width: 980px) {
  .pr-layout-wrap,
  .pr-layout--left .pr-layout-wrap,
  .pr-layout--top .pr-layout-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pr-layout--left .pr-summary-sidebar {
    width: auto;
    position: static;
  }
}

@media (max-width: 768px) {
  .pr-reviews-section {
    padding: 24px 0;
  }

  .pr-section-title {
    font-size: 24px;
  }

  .pr-summary-sidebar {
    padding: 18px;
  }

  .pr-overview-container,
  .pr-layout--top .pr-overview-container,
  .pr-layout--left .pr-overview-container {
    flex-direction: column;
    gap: 16px;
  }

  .pr-overview-rating {
    min-width: 0;
    width: 100%;
  }

  .pr-rating-value {
    font-size: 36px;
  }

  .pr-sort {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
    gap: 8px;
  }

  .pr-star-filter-buttons {
    display: none;
  }

  .pr-rating-select {
    display: block;
    min-width: 0;
    width: 190px;
    max-width: calc(50vw - 12px);
  }

  .pr-sort-custom {
    flex: 0 0 auto;
  }

  .pr-sort-selected {
    width: 210px;
    max-width: calc(100vw - 150px);
  }

  .pr-sort-options {
    width: 210px;
  }

  .pr-widget--grid .pr-grid {
    grid-template-columns: repeat(var(--pr-col-mobile, 2), minmax(0, 1fr));
    gap: var(--pr-card-gap, 14px);
  }

  .pr-gallery-item {
    flex-basis: 120px;
    width: 120px;
    height: 120px;
  }

  .pr-modal-card {
    width: min(100%, 560px);
    height: 90vh;
  }

  .pr-modal-body {
    flex-direction: column;
  }

  .pr-modal-left {
    width: 100%;
    flex: 0 0 48%;
  }
}

/* TrustShop summary card, based on 评论.html. */
.pr-layout--left .pr-layout-wrap {
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 48px;
}

.pr-layout--left .pr-summary-sidebar {
  width: 100%;
  max-width: 100%;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  column-gap: 24px;
  align-items: start;
}

.pr-layout--left .pr-overview-wrap {
  grid-column: 1;
  margin: 0;
  padding: 24px 0 20px 24px;
}

.pr-layout--left .pr-overview-container {
  display: block;
}

.pr-layout--left .pr-overview-rating {
  width: 120px;
  min-width: 0;
  display: block;
  text-align: center;
}

.pr-layout--left .pr-rating-num {
  display: block;
  margin: 0;
}

.pr-layout--left .pr-rating-value {
  display: block;
  color: #111827;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}

.pr-layout--left .pr-rating-stars-wrap {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-top: 8px;
}

.pr-layout--left .pr-rating-stars-wrap svg {
  width: 20px;
  height: 20px;
}

.pr-layout--left .pr-total-count {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}

.pr-layout--left .pr-bars-list {
  grid-column: 2;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 24px 24px 20px 0;
  gap: 6px;
}

.pr-layout--left .pr-bar-item {
  height: 20px;
  gap: 8px;
}

.pr-layout--left .pr-bar-label {
  width: 28px;
  color: var(--trustshop-rating-star-color, var(--pr-star, #F5A623));
  font-size: 13px;
  line-height: 20px;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}

.pr-layout--left .pr-bar-star {
  color: var(--trustshop-rating-star-color, var(--pr-star, #F5A623));
}

.pr-layout--left .pr-bar-track {
  height: 8px;
  border: 1px solid transparent;
  background: #dedfe3;
  border-radius: 999px;
  box-sizing: border-box;
}

.pr-layout--left .pr-bar-fill {
  background: var(--trustshop-rating-star-color);
  border-radius: 999px;
}

.pr-layout--left .pr-bar-pct {
  width: 36px;
  color: #6b7280;
  font-size: 13px;
  line-height: 20px;
  text-align: right;
  white-space: nowrap;
}

.pr-layout--left .pr-summary-divider {
  display: block;
  grid-column: 1 / -1;
  margin: 0;
  border-top: 1px solid #e5e7eb;
}

.pr-layout--left .pr-review-cta {
  grid-column: 1 / -1;
  padding: 20px 24px 24px;
  border-top: 0;
  text-align: center;
}

.pr-layout--left .pr-cta-title {
  margin: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.pr-layout--left .pr-cta-subheading {
  margin: 4px 0 16px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

.pr-layout--left .pr-write-review-btn {
  min-height: 46px;
  height: 46px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 400;
}

/* Summary box position: Left + Header style: Compact. */
.pr-style--compact.pr-layout--left .pr-summary-sidebar {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.pr-style--compact.pr-layout--left .pr-overview-wrap {
  margin: 0;
  padding: 0;
}

.pr-style--compact.pr-layout--left .pr-overview-rating {
  width: 100%;
  display: block;
  text-align: left;
}

.pr-style--compact.pr-layout--left .pr-rating-num {
  display: block;
  margin: 0;
}

.pr-style--compact.pr-layout--left .pr-rating-stars-wrap {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-top: 8px;
}

.pr-style--compact.pr-layout--left .pr-rating-stars-wrap svg {
  width: 20px;
  height: 20px;
}

.pr-style--compact.pr-layout--left .pr-rating-value {
  display: block;
  color: #111827;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.15;
}

.pr-style--compact.pr-layout--left .pr-total-count-wrap {
  margin-top: 6px;
}

.pr-style--compact.pr-layout--left .pr-total-count {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}

.pr-style--compact.pr-layout--left .pr-bars-list {
  display: flex;
  width: 100%;
  margin: 32px 0 0;
  padding: 0;
  gap: 6px;
}

.pr-style--compact.pr-layout--left .pr-bar-item {
  height: 20px;
  gap: 8px;
}

.pr-style--compact.pr-layout--left .pr-bar-label {
  width: 28px;
  color: var(--trustshop-rating-star-color, var(--pr-star, #F5A623));
  font-size: 13px;
  line-height: 20px;
}

.pr-style--compact.pr-layout--left .pr-bar-number,
.pr-style--compact.pr-layout--left .pr-bar-star {
  color: var(--trustshop-rating-star-color, var(--pr-star, #F5A623));
}

.pr-style--compact.pr-layout--left .pr-bar-track {
  height: 8px;
  background: #e5e5e5;
}

.pr-style--compact.pr-layout--left .pr-bar-pct {
  width: 36px;
  color: #6b7280;
  font-size: 13px;
  line-height: 20px;
}

.pr-style--compact.pr-layout--left .pr-summary-divider {
  display: block;
  width: 100%;
  margin: 32px 0 28px;
  border-top: 1px solid #e5e7eb;
}

.pr-style--compact.pr-layout--left .pr-review-cta {
  display: block;
  padding: 0;
  text-align: left;
}

.pr-style--compact.pr-layout--left .pr-cta-title,
.pr-style--compact.pr-layout--left .pr-cta-subheading {
  display: none;
}

.pr-style--compact.pr-layout--left .pr-write-review-btn {
  width: 100%;
}

@media (max-width: 980px) {
  .pr-layout--left .pr-layout-wrap {
    grid-template-columns: 1fr;
  }

  .pr-layout--left .pr-summary-sidebar {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .pr-layout--left .pr-summary-sidebar {
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 18px;
  }

  .pr-layout--left .pr-overview-wrap {
    padding: 24px 0 20px 20px;
  }

  .pr-layout--left .pr-bars-list {
    padding: 24px 20px 20px 0;
    gap: 6px;
  }

  .pr-layout--left .pr-overview-rating {
    width: 100%;
  }

  .pr-layout--left .pr-rating-value {
    font-size: 40px;
  }

  .pr-layout--left .pr-rating-stars-wrap {
    gap: 2px;
    margin-top: 8px;
  }

  .pr-layout--left .pr-rating-stars-wrap svg {
    width: 20px;
    height: 20px;
  }

  .pr-layout--left .pr-total-count {
    font-size: 14px;
  }

  .pr-layout--left .pr-bar-label,
  .pr-layout--left .pr-bar-pct {
    font-size: 13px;
    line-height: 20px;
  }

  .pr-layout--left .pr-bar-label {
    width: 28px;
  }

  .pr-layout--left .pr-bar-pct {
    width: 36px;
  }

  .pr-layout--left .pr-bar-item {
    height: 20px;
    gap: 8px;
  }

  .pr-layout--left .pr-bar-track {
    height: 8px;
  }

  .pr-layout--left .pr-review-cta {
    padding: 20px;
  }

  .pr-layout--left .pr-cta-title {
    font-size: 16px;
  }

  .pr-layout--left .pr-cta-subheading {
    margin: 4px 0 16px;
    font-size: 14px;
  }

  .pr-layout--left .pr-write-review-btn {
    min-height: 46px;
    height: 46px;
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .pr-layout--left .pr-summary-sidebar {
    grid-template-columns: 1fr;
  }

  .pr-layout--left .pr-overview-wrap,
  .pr-layout--left .pr-bars-list {
    grid-column: 1;
    padding: 24px;
  }

  .pr-layout--left .pr-bars-list {
    padding-top: 0;
  }
}

/* Summary box position: Top. Match the horizontal reference layout. */
.pr-layout--top .pr-summary-sidebar {
  width: 100%;
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 230px minmax(360px, 540px) minmax(320px, 1fr);
  align-items: center;
  column-gap: 70px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
}

.pr-layout--top .pr-overview-wrap {
  margin: 0;
}

.pr-layout--top .pr-overview-container {
  display: block;
}

.pr-layout--top .pr-overview-rating {
  min-width: 0;
  width: 100%;
  text-align: center;
}

.pr-layout--top .pr-rating-value {
  color: #3d4153;
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
}

.pr-layout--top .pr-rating-stars-wrap {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.pr-layout--top .pr-rating-stars-wrap svg {
  width: 16px;
  height: 16px;
}

.pr-layout--top .pr-total-count {
  margin: 14px 0 0;
  color: #3d4153;
  font-size: 16px;
  line-height: 1.2;
  text-transform: lowercase;
}

.pr-layout--top .pr-bars-list {
  width: 100%;
  margin: 0;
  gap: 6px;
}

.pr-layout--top .pr-bar-item {
  height: 16px;
  gap: 8px;
}

.pr-layout--top .pr-bar-label {
  width: 28px;
  color: var(--trustshop-rating-star-color, var(--pr-star, #F5A623));
  font-size: 13px;
  line-height: 16px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.pr-layout--top .pr-bar-number,
.pr-layout--top .pr-bar-star {
  color: var(--trustshop-rating-star-color, var(--pr-star, #F5A623));
}

.pr-layout--top .pr-bar-track {
  height: 8px;
  border: 1px solid transparent;
  background: #e5e5e5;
  border-radius: 999px;
  box-sizing: border-box;
}

.pr-layout--top .pr-bar-fill {
  background: var(--trustshop-rating-star-color);
  border-radius: 999px;
}

.pr-layout--top .pr-bar-pct {
  width: 34px;
  color: #6b7280;
  font-size: 13px;
  line-height: 16px;
  text-align: right;
  white-space: nowrap;
}

.pr-layout--top .pr-summary-divider {
  display: block;
  width: 1px;
  height: 104px;
  margin: 0 -12px 0 0;
  border-top: 0;
  border-left: 1px solid #e5e7eb;
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
}

.pr-layout--top .pr-review-cta {
  grid-column: 3;
  grid-row: 1;
  padding-left: 46px;
  text-align: center;
}

.pr-layout--top .pr-cta-title {
  margin: 0 0 8px;
  color: #3d4153;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.pr-layout--top .pr-cta-subheading {
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.2;
}

.pr-layout--top .pr-write-review-btn {
  width: 174px;
  min-height: 36px;
  height: 36px;
  padding: 0 18px;
  border-radius: 5px;
  font-size: 15px;
  line-height: 1;
}

@media (max-width: 1100px) {
  .pr-layout--top .pr-summary-sidebar {
    grid-template-columns: 180px minmax(280px, 1fr);
    column-gap: 32px;
  }

  .pr-layout--top .pr-summary-divider,
  .pr-layout--top .pr-review-cta {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .pr-layout--top .pr-summary-divider {
    width: 100%;
    height: 1px;
    margin: 20px 0 0;
    border-left: 0;
    border-top: 1px solid #e5e7eb;
  }

  .pr-layout--top .pr-review-cta {
    padding: 20px 0 0;
  }
}

@media (max-width: 720px) {
  .pr-layout--top .pr-summary-sidebar {
    grid-template-columns: 1fr;
    padding: 24px;
    row-gap: 18px;
  }

  .pr-layout--top .pr-bars-list {
    grid-column: 1;
  }

  .pr-layout--top .pr-summary-divider,
  .pr-layout--top .pr-review-cta {
    grid-column: 1;
  }
}

/* Summary top + compact: inline rating, bars, and media gallery. */
.pr-style--compact.pr-layout--top .pr-layout-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 1fr) minmax(450px, 450px);
  grid-template-rows: auto auto;
  align-items: stretch;
  column-gap: 0;
  row-gap: 22px;
}

.pr-style--compact.pr-layout--top .pr-section-title {
  margin-bottom: 20px;
  line-height: 1.2;
}

.pr-style--compact.pr-layout--top .pr-summary-sidebar,
.pr-style--compact.pr-layout--top .pr-review-body {
  display: contents;
}

.pr-style--compact.pr-layout--top .pr-overview-wrap {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  padding: 0 38px 0 0;
  margin: 0;
}

.pr-style--compact.pr-layout--top .pr-overview-rating {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
}

.pr-style--compact.pr-layout--top .pr-rating-num {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0 0;
}

.pr-style--compact.pr-layout--top .pr-rating-stars-wrap {
  order: 1;
  justify-content: flex-start;
  gap: 2px;
  margin: 0;
}

.pr-style--compact.pr-layout--top .pr-rating-stars-wrap svg {
  width: 16px;
  height: 16px;
}

.pr-style--compact.pr-layout--top .pr-rating-value {
  order: 2;
  color: var(--pr-primary-text, #3D4153);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.pr-style--compact.pr-layout--top .pr-rating-value::after {
  content: " out of 5";
}

.pr-style--compact.pr-layout--top .pr-total-count {
  margin: 0;
  color: var(--pr-secondary-text, #74788D);
  font-size: 14px;
  line-height: 1.25;
  text-transform: none;
}

.pr-style--compact.pr-layout--top .pr-total-count-minimal,
.pr-style--compact.pr-layout--top .pr-total-count-caret,
.pr-style--compact.pr-layout--top .pr-minimal-popover,
.pr-style--compact.pr-layout--top .pr-summary-divider,
.pr-style--compact.pr-layout--top .pr-cta-title,
.pr-style--compact.pr-layout--top .pr-cta-subheading,
.pr-style--compact.pr-layout--top .pr-images-head,
.pr-style--compact.pr-layout--top .pr-carousel-btn {
  display: none;
}

.pr-style--compact.pr-layout--top .pr-total-count-detail {
  display: inline;
}

.pr-style--compact.pr-layout--top .pr-total-count-detail::before {
  content: "Based on ";
}

.pr-style--compact.pr-layout--top .pr-review-cta {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  display: block;
  width: min(366px, 100%);
  padding: 0 38px 0 0;
  text-align: left;
}

.pr-style--compact.pr-layout--top .pr-write-review-btn {
  width: 100%;
  min-height: 42px;
  height: 42px;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.pr-style--compact.pr-layout--top .pr-bars-list {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  gap: 10px;
  margin: 0;
  padding: 10px 38px;
  border-left: 1px solid #e5e7eb;
}

.pr-style--compact.pr-layout--top .pr-bar-item {
  height: 16px;
  gap: 8px;
}

.pr-style--compact.pr-layout--top .pr-bar-item[data-rating] {
  text-align: left;
}

.pr-style--compact.pr-layout--top .pr-bar-label {
  width: 38px;
  justify-content: flex-end;
  gap: 6px;
  color: var(--trustshop-rating-star-color, var(--pr-star, #F5A623));
  font-size: 13px;
  line-height: 16px;
}

.pr-style--compact.pr-layout--top .pr-bar-number,
.pr-style--compact.pr-layout--top .pr-bar-star {
  color: var(--trustshop-rating-star-color, var(--pr-star, #F5A623));
}

.pr-style--compact.pr-layout--top .pr-bar-track {
  height: 8px;
  border: 1px solid transparent;
  background: #e7e7e7;
  box-sizing: border-box;
}

.pr-style--compact.pr-layout--top .pr-bar-fill {
  background: var(--trustshop-rating-star-color);
}

.pr-style--compact.pr-layout--top .pr-bar-pct {
  width: 36px;
  color: #6b7280;
  font-size: 13px;
  line-height: 16px;
}

.pr-style--compact.pr-layout--top .pr-images-section {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0 0 0 38px;
  border-left: 1px solid #e5e7eb;
}

.pr-style--compact.pr-layout--top .pr-carousel {
  height: auto;
}

.pr-style--compact.pr-layout--top .pr-gallery {
  display: grid;
  grid-template-columns: repeat(5, 70px);
  grid-auto-rows: 70px;
  gap: 10px 15px;
  justify-content: end;
  height: 150px;
  overflow: hidden;
  padding: 0;
}

.pr-style--compact.pr-layout--top .pr-gallery-item {
  width: 70px;
  height: 70px;
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: 8px;
}

.pr-style--compact.pr-layout--top .pr-gallery-item:nth-child(n+11) {
  display: none;
}

.pr-style--compact.pr-layout--top .pr-toolbar,
.pr-style--compact.pr-layout--top .pr-grid,
.pr-style--compact.pr-layout--top .pr-pagination {
  grid-column: 1 / -1;
}

.pr-style--compact.pr-layout--top .pr-toolbar {
  margin-top: 26px;
}

@media (max-width: 1280px) {
  .pr-style--compact.pr-layout--top .pr-layout-wrap {
    grid-template-columns: minmax(240px, .9fr) minmax(380px, 1.2fr);
    row-gap: 24px;
  }

  .pr-style--compact.pr-layout--top .pr-images-section {
    grid-column: 1 / -1;
    grid-row: 3;
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid #e5e7eb;
    justify-content: center;
  }

  .pr-style--compact.pr-layout--top .pr-carousel {
    width: 100%;
  }

  .pr-style--compact.pr-layout--top .pr-gallery {
    justify-content: center;
  }

  .pr-style--compact.pr-layout--top .pr-toolbar,
  .pr-style--compact.pr-layout--top .pr-grid,
  .pr-style--compact.pr-layout--top .pr-pagination {
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .pr-style--compact.pr-layout--top .pr-layout-wrap {
    display: flex;
  }

  .pr-style--compact.pr-layout--top .pr-summary-sidebar,
  .pr-style--compact.pr-layout--top .pr-review-body {
    display: block;
  }

  .pr-style--compact.pr-layout--top .pr-overview-wrap,
  .pr-style--compact.pr-layout--top .pr-bars-list,
  .pr-style--compact.pr-layout--top .pr-images-section,
  .pr-style--compact.pr-layout--top .pr-review-cta {
    grid-column: auto;
    grid-row: auto;
    padding: 0;
    border: 0;
  }

  .pr-style--compact.pr-layout--top .pr-summary-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pr-style--compact.pr-layout--top .pr-review-cta {
    width: 100%;
  }

  .pr-style--compact.pr-layout--top .pr-images-section {
    display: block;
    width: 100%;
    margin-bottom: 18px;
  }

  .pr-style--compact.pr-layout--top .pr-gallery {
    display: flex;
    width: 100%;
    max-width: 100%;
    height: auto;
    gap: 12px;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }

  .pr-style--compact.pr-layout--top .pr-gallery-item {
    flex: 0 0 var(--trustshop-media-size-on-gallery);
    width: var(--trustshop-media-size-on-gallery);
    height: var(--trustshop-media-size-on-gallery);
    scroll-snap-align: start;
  }
}

/* Header style: Minimal. Match TrustShop's inline header with hover summary. */
.pr-style--minimal .pr-layout-wrap,
.pr-style--minimal.pr-layout--left .pr-layout-wrap,
.pr-style--minimal.pr-layout--top .pr-layout-wrap {
  display: block;
}

.pr-style--minimal .pr-summary-sidebar,
.pr-style--minimal.pr-layout--left .pr-summary-sidebar,
.pr-style--minimal.pr-layout--top .pr-summary-sidebar {
  width: 100%;
  position: static;
  top: auto;
  padding: 0 0 24px;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.pr-style--minimal .pr-overview-wrap,
.pr-style--minimal.pr-layout--top .pr-overview-wrap,
.pr-style--minimal.pr-layout--left .pr-overview-wrap {
  margin: 0;
}

.pr-style--minimal .pr-overview-container,
.pr-style--minimal.pr-layout--top .pr-overview-container,
.pr-style--minimal.pr-layout--left .pr-overview-container {
  display: block;
}

.pr-style--minimal .pr-overview-rating,
.pr-style--minimal.pr-layout--top .pr-overview-rating,
.pr-style--minimal.pr-layout--left .pr-overview-rating {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.pr-style--minimal .pr-rating-num,
.pr-style--minimal.pr-layout--top .pr-rating-num {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.pr-style--minimal .pr-rating-stars-wrap,
.pr-style--minimal.pr-layout--top .pr-rating-stars-wrap {
  order: 1;
  display: inline-flex;
  justify-content: flex-start;
  gap: 2px;
  margin: 0;
}

.pr-style--minimal .pr-rating-stars-wrap svg,
.pr-style--minimal.pr-layout--top .pr-rating-stars-wrap svg {
  width: 20px;
  height: 20px;
}

.pr-style--minimal .pr-rating-value,
.pr-style--minimal.pr-layout--top .pr-rating-value {
  order: 2;
  display: inline-block;
  color: #111827;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.15;
}

.pr-style--minimal .pr-total-count-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.pr-style--minimal .pr-total-count {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  cursor: default;
}

.pr-style--minimal .pr-total-count-detail {
  display: none;
}

.pr-style--minimal .pr-total-count-minimal,
.pr-style--minimal .pr-total-count-caret {
  display: inline-flex;
}

.pr-style--minimal .pr-total-count-caret {
  width: 10px;
  height: 6px;
  color: #3d4153;
  transition: transform .16s ease;
}

.pr-style--minimal .pr-total-count-wrap:hover .pr-total-count-caret,
.pr-style--minimal .pr-total-count-wrap:focus-within .pr-total-count-caret {
  transform: rotate(180deg);
}

.pr-style--minimal .pr-minimal-popover {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 20;
  width: 300px;
  padding: 20px 24px 22px;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(17, 24, 39, .12);
  transition: opacity .15s ease, visibility .15s ease;
}

.pr-style--minimal .pr-total-count-wrap:hover .pr-minimal-popover,
.pr-style--minimal .pr-total-count-wrap:focus-within .pr-minimal-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pr-style--minimal .pr-minimal-popover-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #3d4153;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.pr-style--minimal .pr-minimal-popover-star {
  color: var(--trustshop-rating-star-color);
  font-size: 20px;
  line-height: 1;
}

.pr-style--minimal .pr-minimal-bars-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pr-style--minimal .pr-minimal-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 20px;
}

.pr-style--minimal .pr-minimal-bar-label {
  width: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--trustshop-rating-star-color);
  font-size: 13px;
  line-height: 20px;
}

.pr-style--minimal .pr-minimal-bar-track {
  flex: 1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e5e5;
}

.pr-style--minimal .pr-minimal-bar-fill {
  width: var(--pr-bar-w);
  height: 100%;
  border-radius: inherit;
  background: var(--trustshop-rating-star-color);
}

.pr-style--minimal .pr-minimal-bar-pct {
  width: 36px;
  color: #74788d;
  font-size: 13px;
  line-height: 20px;
  text-align: right;
}

.pr-style--minimal .pr-bars-list,
.pr-style--minimal.pr-layout--top .pr-bars-list,
.pr-style--minimal.pr-layout--left .pr-bars-list {
  display: none;
}

.pr-style--minimal .pr-summary-divider,
.pr-style--minimal.pr-layout--top .pr-summary-divider {
  display: block;
  width: 100%;
  height: 0;
  margin: 32px 0;
  border-top: 1px solid #e5e7eb;
  border-left: 0;
}

.pr-style--minimal .pr-review-cta,
.pr-style--minimal.pr-layout--top .pr-review-cta {
  display: block;
  padding: 0;
  text-align: left;
}

.pr-style--minimal .pr-cta-title,
.pr-style--minimal .pr-cta-subheading {
  display: none;
}

.pr-style--minimal .pr-write-review-btn,
.pr-style--minimal.pr-layout--top .pr-write-review-btn {
  width: min(100%, 602px);
  min-height: 46px;
  height: 46px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 400;
}

@media (min-width: 981px) {
  .pr-style--minimal.pr-layout--left .pr-layout-wrap {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    align-items: start;
    gap: 48px;
  }

  .pr-style--minimal.pr-layout--left .pr-summary-sidebar {
    grid-column: 1;
    width: 100%;
    min-width: 0;
    overflow: visible;
  }

  .pr-style--minimal.pr-layout--left .pr-review-body {
    grid-column: 2;
    min-width: 0;
  }

  .pr-style--minimal.pr-layout--left .pr-overview-rating {
    gap: 6px;
  }

  .pr-style--minimal.pr-layout--left .pr-rating-num {
    gap: 5px;
  }

  .pr-style--minimal.pr-layout--left .pr-rating-stars-wrap {
    gap: 2px;
  }

  .pr-style--minimal.pr-layout--left .pr-rating-stars-wrap svg {
    width: 20px;
    height: 20px;
  }

  .pr-style--minimal.pr-layout--left .pr-rating-value {
    font-size: 42px;
  }

  .pr-style--minimal.pr-layout--left .pr-total-count {
    gap: 7px;
    font-size: 14px;
  }

  .pr-style--minimal.pr-layout--left .pr-total-count-caret {
    width: 10px;
    height: 6px;
  }

  .pr-style--minimal.pr-layout--left .pr-summary-divider {
    margin: 44px 0 28px;
  }

  .pr-style--minimal.pr-layout--left .pr-write-review-btn {
    width: 100%;
  }
}

@media (min-width: 981px) {
  .pr-style--minimal.pr-layout--top .pr-summary-sidebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 0;
  }

  .pr-style--minimal.pr-layout--top .pr-overview-wrap {
    flex: 0 1 auto;
    min-width: 0;
  }

  .pr-style--minimal.pr-layout--top .pr-overview-rating {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .pr-style--minimal.pr-layout--top .pr-rating-num {
    gap: 6px;
  }

  .pr-style--minimal.pr-layout--top .pr-rating-stars-wrap {
    gap: 2px;
  }

  .pr-style--minimal.pr-layout--top .pr-rating-stars-wrap svg {
    width: 20px;
    height: 20px;
  }

  .pr-style--minimal.pr-layout--top .pr-rating-value {
    font-size: 42px;
  }

  .pr-style--minimal.pr-layout--top .pr-total-count-wrap {
    min-height: 32px;
  }

  .pr-style--minimal.pr-layout--top .pr-total-count {
    gap: 7px;
    font-size: 14px;
  }

  .pr-style--minimal.pr-layout--top .pr-total-count-caret {
    width: 10px;
    height: 6px;
  }

  .pr-style--minimal.pr-layout--top .pr-summary-divider {
    display: none;
  }

  .pr-style--minimal.pr-layout--top .pr-review-cta {
    flex: 0 0 auto;
  }

  .pr-style--minimal.pr-layout--top .pr-write-review-btn {
    width: 174px;
    min-height: 36px;
    height: 36px;
    padding: 0 18px;
    border-radius: 5px;
    font-size: 15px;
    line-height: 1;
  }
}

@media (max-width: 768px) {
  .pr-style--minimal .pr-overview-rating,
  .pr-style--minimal.pr-layout--top .pr-overview-rating,
  .pr-style--minimal.pr-layout--left .pr-overview-rating {
    flex-wrap: wrap;
    gap: 10px;
  }

  .pr-style--minimal .pr-rating-stars-wrap svg,
  .pr-style--minimal.pr-layout--top .pr-rating-stars-wrap svg {
    width: 18px;
    height: 18px;
  }

  .pr-style--minimal .pr-rating-value,
  .pr-style--minimal.pr-layout--top .pr-rating-value {
    font-size: 32px;
  }

  .pr-style--minimal .pr-total-count {
    font-size: 18px;
  }

  .pr-style--minimal .pr-minimal-popover {
    left: auto;
    right: 0;
    width: min(300px, calc(100vw - 32px));
  }

.pr-style--minimal .pr-write-review-btn,
  .pr-style--minimal.pr-layout--top .pr-write-review-btn {
    width: 100%;
    font-size: 18px;
  }
}

/* ── Shortcode: media-focus reviews carousel ─────────────── */
.pr-reviews-carousel {
  --pr-carousel-gap: var(--pr-card-gap, 14px);
  --pr-carousel-cols: var(--pr-col-pc, 3);
  width: 100%;
  color: var(--pr-text-color, #333);
}

.pr-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pr-carousel-title {
  margin: 0;
  color: var(--pr-title-color, #1C1714);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.pr-carousel-shell {
  position: relative;
}

.pr-review-carousel-track {
  display: flex;
  gap: var(--pr-carousel-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pr-review-carousel-track::-webkit-scrollbar {
  display: none;
}

.pr-reviews-carousel.pr-cards--media-focus .pr-carousel-card.pr-card {
  flex: 0 0 calc((100% - (var(--pr-carousel-gap) * (var(--pr-carousel-cols) - 1))) / var(--pr-carousel-cols));
  min-width: 0;
  min-height: 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--pr-border-color, #E5E7EB);
  border-radius: var(--pr-card-radius, 14px);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
  padding-top: 0;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
}

.pr-reviews-carousel.pr-cards--media-focus .pr-carousel-card.pr-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}

.pr-carousel-media {
  position: relative;
  aspect-ratio: 1.45 / 1;
  width: 100%;
  overflow: hidden;
  background: #E8E8E8;
}

.pr-carousel-media-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.pr-carousel-card:hover .pr-carousel-media-img {
  transform: scale(1.03);
}

.pr-carousel-media--video,
.pr-carousel-media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pr-carousel-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 16px;
  min-height: 220px;
}

.pr-carousel-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 20px;
  margin-bottom: 10px;
}

.pr-carousel-author {
  min-width: 0;
  color: var(--trustshop-name-text-color, var(--pr-name-text, #303030));
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pr-carousel-verified {
  flex: 0 0 auto;
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.pr-carousel-verified svg {
  width: 18px;
  height: 18px;
}

.pr-carousel-stars {
  display: flex;
  gap: 2px;
  margin: 4px 0 8px;
  color: var(--pr-star-color, #F5A623);
}

.pr-carousel-review-title {
  margin: 0 0 6px;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.pr-carousel-review-text {
  margin: 0;
  color: #374151;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.pr-carousel-product {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  color: #333;
  text-decoration: none;
  min-width: 0;
}

.pr-carousel-product:hover {
  color: #111;
  text-decoration: none;
}

.pr-carousel-product-img {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  background: #E7E7E7;
}

.pr-carousel-product-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pr-carousel-product-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.pr-review-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  color: #111;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
  cursor: pointer;
  transform: translateY(-50%);
}

.pr-review-carousel-btn:hover {
  background: #fff;
}

.pr-review-carousel-btn:disabled {
  opacity: .35;
  cursor: default;
}

.pr-review-carousel-prev {
  left: -21px;
}

.pr-review-carousel-next {
  right: -21px;
}

.pr-carousel-loading,
.pr-carousel-empty {
  width: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pr-muted-color, #777);
}

.pr-carousel-loading span {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .35;
  animation: pr-carousel-pulse 1s infinite ease-in-out;
}

.pr-carousel-loading span:nth-child(2) {
  animation-delay: .12s;
}

.pr-carousel-loading span:nth-child(3) {
  animation-delay: .24s;
}

@keyframes pr-carousel-pulse {
  0%, 80%, 100% { transform: scale(.75); opacity: .25; }
  40% { transform: scale(1); opacity: .65; }
}

@media (max-width: 1024px) {
  .pr-reviews-carousel {
    --pr-carousel-cols: var(--pr-col-tablet, 2);
  }

  .pr-carousel-card-body {
    min-height: 210px;
  }
}

@media (max-width: 640px) {
  .pr-reviews-carousel {
    --pr-carousel-cols: var(--pr-col-mobile, 1);
  }

  .pr-review-carousel-track {
    scroll-padding-left: 0;
  }

  .pr-carousel-card-body {
    min-height: 200px;
  }

  .pr-review-carousel-prev {
    left: 8px;
  }

  .pr-review-carousel-next {
    right: 8px;
  }
}

@media (max-width: 768px) {
  .pr-reviews-section .pr-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .pr-reviews-section .pr-toolbar > .pr-chip,
  .pr-reviews-section .pr-star-filter-buttons {
    display: none;
  }

  .pr-reviews-section .pr-rating-select {
    display: block;
    grid-column: 1;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .pr-reviews-section .pr-sort {
    grid-column: 2;
    width: 100%;
    margin-left: 0;
    justify-content: stretch;
    gap: 0;
  }

  .pr-reviews-section .pr-sort > span {
    display: none;
  }

  .pr-reviews-section .pr-sort-custom,
  .pr-reviews-section .pr-sort-selected,
  .pr-reviews-section .pr-sort-options {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .pr-reviews-section .pr-rating-select,
  .pr-reviews-section .pr-sort-selected {
    box-sizing: border-box;
    height: 40px;
    min-height: 40px;
    padding: 0 34px 0 12px;
    border: 0;
    border-radius: 6px;
    background-color: #f5f5f8;
    color: #3d4153;
    font-size: 13px;
    line-height: 1;
  }

  .pr-reviews-section .pr-rating-select {
    appearance: none;
    -webkit-appearance: none;
    background-position: right 13px center;
  }

  .pr-reviews-section .pr-sort-selected {
    display: inline-flex;
    align-items: center;
    position: relative;
  }

  .pr-reviews-section .pr-sort-selected svg {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
  }

  .pr-reviews-section .pr-toolbar-right {
    display: none;
  }
}
