/* Left-aligned product reviews follow the existing shop carousel's card language.
 * The native review, media, disclosure and form markup remains intact. */
body.single-product .bws-product-reviews-section:has(.bws-product-review-track) > .e-con-inner {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.bws-product-reviews-section #reviews .bws-product-reviews-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  min-height: 64px;
  margin-bottom: 16px;
  padding: 11px 20px;
  border: 1px solid var(--bws-brand-border, #dde4df);
  border-radius: 12px;
  background: var(--bws-brand-surface,#FFFFFF);
}
.bws-product-reviews-section .bws-product-reviews-heading-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.bws-product-reviews-section #reviews .bws-product-reviews-heading h2 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--bws-brand-heading, #27312d); }
.bws-product-reviews-section .bws-product-reviews-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--bws-brand-muted, #52615a); font-size: 14px; }
.bws-product-reviews-section .bws-product-reviews-score { color: var(--bws-brand-heading, #27312d); font-size: 16px; font-weight: 750; }
.bws-product-reviews-section .bws-product-review-controls { position: absolute; z-index: 2; top: var(--bws-review-controls-top, 50%); inset-inline: -1px; display: flex; align-items: center; justify-content: space-between; transform: translateY(-50%); pointer-events: none; }
.bws-product-reviews-section .bws-product-review-controls[hidden] { display: none !important; }
.bws-product-reviews-section .bws-product-review-controls button {
  position: relative;
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  border: 1px solid var(--bws-brand-border, #dde4df);
  border-radius: 50%;
  background: var(--bws-brand-surface,#FFFFFF);
  color: var(--bws-brand-control,#202421);
  pointer-events: auto;
  font-size: 0;
  box-shadow: none;
  cursor: pointer;
}
.bws-product-reviews-section .bws-product-review-controls button::before { content: ""; position: absolute; left: 10px; top: 10px; width: 8px; height: 8px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.bws-product-reviews-section .bws-product-review-controls [data-bws-review-prev]::before { left: 13px; transform: rotate(-135deg); }
.bws-product-reviews-section .bws-product-review-controls button:hover { background: var(--bws-brand-soft, #f3faf5); border-color: var(--bws-brand-link, #267c5f); }
.bws-product-reviews-section .bws-product-review-controls button:disabled { opacity: .35; cursor: default; background: var(--bws-brand-surface,#FFFFFF); }
.bws-product-reviews-section #reviews .bws-product-review-track {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 4);
  align-items: stretch;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 1px 1px 4px !important;
  overflow-x: auto !important;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 2px;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  list-style: none;
}
.bws-product-reviews-section #reviews .bws-product-review-track::-webkit-scrollbar { display: none; }
.bws-product-reviews-section #reviews .bws-product-review-card {
  box-sizing: border-box;
  float: none;
  width: auto !important;
  min-width: 0;
  height: 100%;
  min-height: 234px;
  margin: 0 !important;
  padding: 20px !important;
  border: 1px solid var(--bws-brand-border, #dde4df) !important;
  border-radius: 12px;
  background: var(--bws-brand-surface,#FFFFFF) !important;
  box-shadow: none !important;
  scroll-snap-align: start;
  list-style: none;
}
.bws-product-reviews-section #reviews .bws-product-review-card .comment_container { position: relative; margin: 0; padding: 0; border: 0; }
.bws-product-reviews-section #reviews .bws-product-review-card img.avatar,
.bws-product-reviews-section #reviews .bws-product-review-card img.cr-std-avatar { position: static; float: left; width: 40px; height: 40px; max-width: 40px; margin: 0 12px 10px 0; padding: 0; border: 0; border-radius: 50%; object-fit: cover; }
body.single-product .bws-product-reviews-section #reviews ol.commentlist li.bws-product-review-card :is(.cr-comment-text, .comment-text) { min-width: 0; margin: 0; padding: 0; border: 0; box-shadow: none; }
.bws-product-reviews-section #reviews .bws-product-review-card .meta { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; min-height: 40px; margin: 0 0 12px 52px; padding: 0; border: 0; }
.bws-product-reviews-section #reviews .bws-product-review-card .woocommerce-review__author { color: var(--bws-brand-text,#202421); font-size: 15px; font-weight: 600; line-height: 1.4; }
.bws-product-reviews-section #reviews .bws-product-review-card time { float: none; color: var(--bws-brand-muted,#626B65); font-size: 13px; line-height: 1.4; }
.bws-product-reviews-section #reviews .bws-product-review-card :is(.crstar-rating-svg, .star-rating) { display: block; clear: both; float: none; margin: 0 0 10px !important; }
.bws-product-reviews-section #reviews .bws-product-review-card .description { clear: both; margin: 0; color: var(--bws-brand-text,#202421); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.bws-product-reviews-section #reviews .bws-product-review-card .description p { margin: 0 0 10px; font: inherit; line-height: inherit; }
.bws-product-reviews-section #reviews .bws-product-review-card .description p:last-child { margin-bottom: 0; }
.bws-product-reviews-section #reviews .bws-review-body--clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.bws-product-reviews-section .bws-review-read-more { display: inline-block; margin: 8px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--bws-brand-link,#202421); opacity: .5; font: inherit; font-size: 13.5px; font-weight: 400; cursor: pointer; }
.bws-product-reviews-section .bws-review-read-more:hover { opacity: 1; text-decoration: underline; }
.bws-product-reviews-section #reviews .bws-product-review-card .cr-incentivized-badge { clear: both; margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--bws-brand-border, #dde4df); color: var(--bws-brand-muted, #52615a); font-size: 11px; line-height: 1.45; }
.bws-product-reviews-section #reviews .bws-product-review-card .cr-incentivized-icon svg { width: 13px; height: 13px; }
.bws-product-reviews-section #reviews .bws-product-review-card .cr-comment-images { display: flex; flex-wrap: wrap; gap: 10px; clear: both; margin: 16px 0 0; }
.bws-product-reviews-section #reviews .bws-product-review-card .iv-comment-image { float: none; width: 96px; height: 96px; margin: 0; border: 1px solid var(--bws-brand-border, #dde4df); border-radius: 12px; overflow: hidden; background: var(--bws-brand-soft, #f3faf5); }
.bws-product-reviews-section #reviews .bws-product-review-card .iv-comment-image a { display: block; width: 100%; height: 100%; }
.bws-product-reviews-section #reviews .bws-product-review-card .iv-comment-image img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; cursor: zoom-in; }
.bws-product-reviews-section #reviews .bws-product-review-card video { display: block; max-width: 100%; border-radius: 12px; }
.bws-product-reviews-section #reviews .bws-product-reviews-heading .cr-ajax-reviews-add-review,
.bws-product-reviews-section #reviews .cr-show-more-reviews,
.bws-product-reviews-section #reviews .cr-show-more-button { padding: 10px 16px; border: 1px solid var(--bws-brand-border, #dde4df); border-radius: 10px; background: var(--bws-brand-soft, #f3faf5); color: var(--bws-brand-link, #267c5f); font-family: inherit; font-size: 13px; font-weight: 650; line-height: 1.4; box-shadow: none; cursor: pointer; }
.bws-product-reviews-section #reviews .bws-product-reviews-heading .cr-ajax-reviews-add-review:hover { background: var(--bws-brand-inset, #edf6ef); border-color: var(--bws-brand-link, #267c5f); }
.bws-product-reviews-section :is(button, a, [tabindex="0"]):focus-visible { outline: 2px solid var(--bws-brand-link, #267c5f); outline-offset: 3px; }
@media (min-width: 768px) and (max-width: 1199px) {
  .bws-product-reviews-section #reviews .bws-product-review-track { grid-auto-columns: calc((100% - 16px) / 2); }
}
@media (max-width: 767px) {
  .bws-product-reviews-section #reviews .bws-product-reviews-heading { gap: 12px; margin-bottom: 14px; padding: 14px 16px; }
  .bws-product-reviews-section #reviews .bws-product-reviews-heading h2 { font-size: 16px; }
  .bws-product-reviews-section .bws-product-reviews-heading-copy { gap: 6px 14px; }
  .bws-product-reviews-section #reviews .bws-product-review-track,
  .bws-product-reviews-section #reviews .bws-product-review-track[data-bws-review-cards] { grid-auto-columns: 100%; justify-content: normal; gap: 12px; }
  .bws-product-reviews-section #reviews .bws-product-review-card { padding: 20px !important; min-height: 234px; border-radius: 12px; }
  .bws-product-reviews-section #reviews .bws-product-review-card .iv-comment-image { width: 88px; height: 88px; }
}

.bws-product-reviews-section #reviews .bws-product-review-native-controls[hidden] { display: none !important; }
.bws-product-reviews-section .bws-product-reviews-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bws-product-reviews-section #reviews .bws-product-reviews-stars { flex: 0 0 auto; float: none; width: auto; margin: 0; padding: 0; }
.bws-product-reviews-section #reviews .bws-product-review-write { display: inline-flex; align-items: center; justify-content: center; margin: 0 !important; padding: 10px 16px; border: 1px solid var(--bws-brand-border, #dde4df); border-radius: 10px; background: var(--bws-brand-soft, #f3faf5); color: var(--bws-brand-link, #267c5f); font-family: inherit; font-size: 13px; font-weight: 650; line-height: 1.4; text-decoration: none; box-shadow: none; cursor: pointer; }
.bws-product-reviews-section #reviews .cr-show-more-reviews-prd { margin: 18px auto 0; padding: 10px 18px; border: 1px solid var(--bws-brand-border, #dde4df); border-radius: 10px; background: var(--bws-brand-soft, #f3faf5); color: var(--bws-brand-link, #267c5f); font-family: inherit; font-size: 13px; font-weight: 650; line-height: 1.4; cursor: pointer; }

/* Opening the native form reveals its own card, without changing its visibility. */
.bws-product-reviews-section:has(.bws-product-review-track) #reviews .cr-ajax-reviews-review-form,
.bws-product-reviews-section:has(.bws-product-review-track) #reviews > #review_form_wrapper {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--bws-brand-border, #dde4df);
  border-radius: 14px;
  background: var(--bws-brand-surface,#FFFFFF);
}
@media (max-width: 767px) {
  .bws-product-reviews-section:has(.bws-product-review-track) #reviews .cr-ajax-reviews-review-form,
  .bws-product-reviews-section:has(.bws-product-review-track) #reviews > #review_form_wrapper { padding: 16px; }
}

/* No fabricated reviewer photos; names begin at the same left edge as the text. */
.bws-product-reviews-section #reviews .bws-product-review-card.bws-review-without-avatar .meta {
  min-height: 0;
  margin: 0 0 12px;
}
/* A quiet text link retains the native review details without a percent/X icon. */
.bws-product-reviews-section #reviews .bws-product-review-card .meta .bws-product-review-notice {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--bws-brand-muted,#626B65);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}
.bws-product-reviews-section #reviews .bws-product-review-card .bws-product-review-notice-toggle {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 24px;
  margin: 0;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--bws-brand-muted, #55635c);
  font: inherit;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 2px;
  box-shadow: none;
  cursor: pointer;
}
.bws-product-reviews-section #reviews .bws-product-review-card .bws-product-review-notice-toggle:hover { color: var(--bws-brand-ink, #27312d); }
.bws-product-reviews-section #reviews .bws-product-review-card .bws-product-review-notice-toggle:focus-visible { outline: 2px solid var(--bws-brand-link, #267c5f); outline-offset: 3px; }
.bws-product-reviews-section #reviews .bws-product-review-card .bws-product-review-notice-text { display: block; flex: 0 0 100%; max-width: 100%; padding: 8px 10px; border: 1px solid var(--bws-brand-border, #dde4df); border-radius: 8px; background: var(--bws-brand-soft, #f3faf5); color: var(--bws-brand-muted, #52615a); font-size: 11px; line-height: 1.5; }
.bws-product-reviews-section #reviews .bws-product-review-card :is(.bws-product-review-notice-toggle, .bws-product-review-notice-text)[hidden] { display: none !important; }

.bws-product-reviews-section #reviews .bws-product-review-card .crstar-rating-svg { width: 85px; height: 17px; margin: 11px 0 !important; }
.bws-product-reviews-section #reviews .bws-product-review-card .crstar-rating-svg svg { width: 17px; height: 17px; }

/* Match the native shop carousel: four text lines, at most 220 preview characters. */
.bws-product-reviews-section #reviews .bws-review-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  height: 87px;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--bws-brand-text,#202421);
  font-size: 15px;
  font-weight: 400;
  line-height: 21.75px;
}
.bws-product-reviews-section #reviews :is(.bws-review-excerpt, .description)[hidden] { display: none !important; }
.bws-product-reviews-section #reviews .bws-review-read-more { display: block; clear: both; }
.bws-product-reviews-section #reviews .bws-product-review-card.bws-review-without-avatar .meta { flex-direction: row; flex-wrap: wrap; gap: 3px 8px; }
.bws-product-reviews-section #reviews .bws-product-review-card .meta > :is(.cr-meta-author-featured-date, .woocommerce-review__author) { flex: 0 0 100%; padding-right: 28px; box-sizing: border-box; }
.bws-product-reviews-section #reviews .bws-product-review-verified {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bws-brand-solid, #278062);
  color: var(--bws-brand-on-primary, #fff);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.bws-product-reviews-section #reviews .bws-product-review-verified-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.bws-product-reviews-section #reviews .bws-product-review-card .bws-product-review-inline-media { float: right; display: block; clear: none; width: 80px; margin: 0 0 8px 12px; }
.bws-product-reviews-section #reviews .bws-product-review-card .bws-product-review-inline-media .iv-comment-image { width: 80px; height: 80px; margin: 0 0 6px; border-radius: 8px; }

/* Native replies remain available when opening the complete review. */
.bws-product-reviews-section #reviews .bws-review-preview-ready:not(.bws-review-expanded) > :is(ul.children, ol.children) { display: none !important; }
.bws-product-reviews-section #reviews .bws-product-review-card .cr-meta-author-title { flex-wrap: wrap; gap: 4px 8px; }
.bws-product-reviews-section #reviews .bws-product-review-card :is(.cr-all-featured-badge, .cr-featured-badge) { margin: 0; }
.bws-product-reviews-section #reviews .bws-product-review-card :is(.cr-all-featured-badge, .cr-featured-badge) span { padding: 2px 5px; border: 1px solid var(--bws-brand-border, #dde4df); border-radius: 4px; background: var(--bws-brand-soft, #f3faf5); color: var(--bws-brand-muted, #52615a); font-size: 10px; line-height: 1.4; white-space: normal; }
