/* ===================================================================
   AMB SELLS · Revopic Reviews Grid V2 (overwrite V1 filename)
   Built for the ORIGINAL [wc_photo_reviews_shortcode] masonry markup.
   Colors: #10141B | #191F2A | #222B38 | #303B4B | #FF5722
   This file intentionally does NOT style the review submission form.
   =================================================================== */

.woocommerce-photo-reviews-shortcode {
  --amb-grid-main: #10141B;
  --amb-grid-section: #191F2A;
  --amb-grid-card: #222B38;
  --amb-grid-border: #303B4B;
  --amb-grid-text: #FFFFFF;
  --amb-grid-muted: #ABB7C7;
  --amb-grid-orange: #FF5722;
  --amb-grid-stars: #FFB74D;
  --amb-grid-green: #199E01;
  color: var(--amb-grid-text);
}
.woocommerce-photo-reviews-shortcode *,
.shortcode-wcpr-modal-light-box * {
  box-sizing: border-box;
}

/* Overall rating: compact, dark and aligned */
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-overall-rating-and-rating-count {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap;
  align-items: center;
  padding: 0 0 14px !important;
  margin: 0 0 14px !important;
  color: #FFFFFF !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-overall-rating-left {
  background: #222B38 !important;
  border: 1px solid #303B4B;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  color: #FFFFFF !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-overall-rating-right,
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-overall-rating-right-total {
  color: #E1E7F0 !important;
}

/* Filter panel */
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-filter-container {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  background: #191F2A !important;
  border: 1px solid #303B4B !important;
  border-radius: 12px !important;
  margin: 0 0 18px !important;
  padding: 12px !important;
  overflow: visible !important;
  text-align: left !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-filter-container
.shortcode-wcpr-filter-button {
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 10px 14px !important;
  min-height: 42px !important;
  margin: 0 !important;
  background: #222B38 !important;
  color: #F5F8FC !important;
  border: 1px solid #303B4B !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-filter-container
.shortcode-wcpr-filter-button:hover,
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-filter-container
.shortcode-wcpr-filter-button:focus-visible {
  background: #303B4B !important;
  border-color: #FF5722 !important;
  color: #FFFFFF !important;
  outline: none !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-filter-container
.shortcode-wcpr-filter-button.shortcode-wcpr-active {
  background: rgba(255,87,34,.14) !important;
  border-color: #FF5722 !important;
  color: #FFFFFF !important;
}
/* Hide ONLY the verified FILTER; keep verified icons on review cards. */
.woocommerce-photo-reviews-shortcode
.shortcode-wcpr-filter-container a[data-filter_type="verified"] {
  display: none !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-filter-button-wrap {
  position: relative !important;
  display: inline-flex !important;
  width: auto !important;
  min-width: 142px;
  z-index: 5;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-filter-rating-placeholder {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  white-space: nowrap;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-filter-rating-placeholder::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .8;
}
.woocommerce-photo-reviews-shortcode ul.shortcode-wcpr-filter-button-ul {
  display: none;
  position: absolute !important;
  top: calc(100% + 5px) !important;
  left: 0 !important;
  z-index: 100 !important;
  list-style: none !important;
  padding: 6px !important;
  margin: 0 !important;
  width: max-content !important;
  min-width: 168px !important;
  border-radius: 10px !important;
  background: #222B38 !important;
  border: 1px solid #303B4B !important;
  box-shadow: 0 18px 35px rgba(0,0,0,.3) !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-filter-button-wrap:hover > ul,
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-filter-button-wrap:focus-within > ul,
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-filter-button-wrap.amb-rating-open > ul {
  display: block !important;
}
.woocommerce-photo-reviews-shortcode
.shortcode-wcpr-filter-button-ul .shortcode-wcpr-filter-button-li {
  display: block !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.woocommerce-photo-reviews-shortcode
.shortcode-wcpr-filter-button-ul .shortcode-wcpr-filter-button-li a {
  display: flex !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-height: 39px !important;
  margin: 0 !important;
  padding: 8px 11px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 7px !important;
  color: #F5F8FC !important;
  font-size: 13px !important;
}
.woocommerce-photo-reviews-shortcode
.shortcode-wcpr-filter-button-ul .shortcode-wcpr-filter-button-li a:hover,
.woocommerce-photo-reviews-shortcode
.shortcode-wcpr-filter-button-ul .shortcode-wcpr-filter-button-li a.shortcode-wcpr-active {
  background: rgba(255,87,34,.16) !important;
  color: #FFFFFF !important;
}

/* TRUE equal-height grid: disable JS-created masonry row spans.
   The :is() specificity keeps our columns ahead of shortcode inline CSS. */
:is(#amb-grid-specificity, .woocommerce-photo-reviews-shortcode)
.shortcode-wcpr-grid.shortcode-wcpr-masonry-style.wcpr-grid-loadmore {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: auto !important;
  grid-auto-flow: row !important;
  gap: 16px !important;
  column-count: unset !important;
  margin: 0 0 22px !important;
  background: transparent !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid.wcpr-grid-loadmore
.shortcode-wcpr-grid-item {
  grid-row-end: auto !important;
  grid-column: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 266px !important;
  min-height: 266px !important;
  max-height: 266px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #303B4B !important;
  border-radius: 12px !important;
  background: #222B38 !important;
  box-shadow: none !important;
  color: #FFFFFF !important;
  overflow: hidden !important;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid.wcpr-grid-loadmore
.shortcode-wcpr-grid-item:hover {
  border-color: #FF5722 !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.22) !important;
  transform: translateY(-2px);
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item > .shortcode-wcpr-content {
  height: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  background: #222B38 !important;
  color: #FFFFFF !important;
}
/* Every image gets the same COVER crop on a card, never stretched. */
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
.shortcode-reviews-images-container {
  flex: 0 0 132px !important;
  height: 132px !important;
  width: 100% !important;
  position: relative !important;
  overflow: hidden !important;
  background: #191F2A !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
.shortcode-reviews-images-wrap-right,
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
.shortcode-wcpr-review-image-container {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  overflow: hidden !important;
  display: block !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
.shortcode-reviews-images-wrap-right img.shortcode-reviews-images,
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
.shortcode-reviews-images-wrap-right video.shortcode-reviews-images {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
.shortcode-reviews-images-container .shortcode-images-qty {
  bottom: 9px !important;
  right: 9px !important;
  width: auto !important;
  min-width: 26px !important;
  padding: 0 7px !important;
  height: 26px !important;
  line-height: 26px !important;
  border-radius: 7px !important;
  background: rgba(16,20,27,.9) !important;
  color: #FFFFFF !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
.shortcode-review-content-container {
  width: 100% !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 13px 14px !important;
  margin: 0 !important;
  background: transparent !important;
  color: #FFFFFF !important;
  overflow: hidden !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
.shortcode-wcpr-comment-author {
  font-weight: 700 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: #FFFFFF !important;
  overflow-wrap: anywhere;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
.shortcode-wcpr-comment-author::before {
  color: #FF5722 !important;
}
/* Keep verified badge, but green instead of the inherited black glyph. */
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
.woocommerce-review__verified,
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
.woocommerce-review__verified::before {
  color: #199E01 !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item .wcpr-review-rating {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 7px 0 !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item .wcpr-review-date {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  color: #ABB7C7 !important;
  font-style: normal !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item .star-rating,
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item .star-rating span {
  flex-shrink: 0;
}
.woocommerce-photo-reviews-shortcode .star-rating::before,
.woocommerce-photo-reviews-shortcode .star-rating span::before {
  color: #FFB74D !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item .star-rating::before {
  opacity: .28 !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
.shortcode-wcpr-review-content {
  color: #E5EAF2 !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4;
  overflow-wrap: anywhere !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item:has(.shortcode-reviews-images-container)
.shortcode-wcpr-review-content {
  -webkit-line-clamp: 2;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
.shortcode-wcpr-review-title { color: #FFFFFF !important; }

/* Load more / AJAX indicator */
.woocommerce-photo-reviews-shortcode .wcpr-load-more-reviews-button-container
.wcpr-load-more-reviews-button {
  background: #FF5722 !important;
  color: #10141B !important;
  border: 1px solid #FF5722 !important;
  border-radius: 9px !important;
  padding: 12px 23px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}
.woocommerce-photo-reviews-shortcode .wcpr-load-more-reviews-button-container
.wcpr-load-more-reviews-button:hover { background: #FF7044 !important; }
.woocommerce-photo-reviews-shortcode .wcpr-shortcode-overlay {
  background: rgba(16,20,27,.55) !important;
  border-radius: 10px;
}

/* Review LIGHTBOX: shared by all shortcode instances, not by forms. */
.shortcode-wcpr-modal-light-box {
  z-index: 9999999 !important;
  color: #FFFFFF !important;
}
.shortcode-wcpr-modal-light-box .shortcode-wcpr-overlay {
  background: rgba(3,7,12,.82) !important;
  backdrop-filter: blur(5px);
}
.shortcode-wcpr-modal-light-box .shortcode-wcpr-modal-light-box-wrapper {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 20px 52px !important;
}
.shortcode-wcpr-modal-light-box .shortcode-wcpr-modal-wrap-container,
.shortcode-wcpr-full-screen-mobile.shortcode-wcpr-modal-light-box
.shortcode-wcpr-modal-wrap-container {
  position: relative !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: min(900px, 100%) !important;
  max-width: 900px !important;
  height: auto !important;
  max-height: min(82vh, 700px) !important;
  overflow: visible !important;
}
.shortcode-wcpr-modal-light-box .shortcode-wcpr-modal-wrap,
.shortcode-wcpr-full-screen-mobile.shortcode-wcpr-modal-light-box
.shortcode-wcpr-modal-light-box-wrapper .shortcode-wcpr-modal-wrap {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  max-width: 900px !important;
  max-height: min(82vh, 700px) !important;
  min-height: 165px !important;
  margin: 0 !important;
  background: #191F2A !important;
  border: 1px solid #303B4B !important;
  color: #FFFFFF !important;
  border-radius: 14px !important;
  overflow: auto !important;
  box-shadow: 0 25px 80px rgba(0,0,0,.5) !important;
}
.shortcode-wcpr-modal-light-box #shortcode-reviews-content-left {
  flex: 0 0 54% !important;
  width: 54% !important;
  max-height: none !important;
  background: #10141B !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}
.shortcode-wcpr-modal-light-box #shortcode-reviews-content-left-main {
  width: 100% !important;
  height: auto !important;
  max-height: 57vh !important;
  min-height: 100px !important;
  overflow: hidden !important;
}
.shortcode-wcpr-modal-light-box #shortcode-reviews-content-left-main img.shortcode-reviews-images,
.shortcode-wcpr-modal-light-box #shortcode-reviews-content-left-main video.shortcode-reviews-images {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 55vh !important;
  object-fit: contain !important;
  border-radius: 8px !important;
}
.shortcode-wcpr-modal-light-box #shortcode-reviews-content-left-modal {
  width: 100% !important;
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 8px !important;
  max-height: 52px !important;
  overflow-x: auto !important;
}
.shortcode-wcpr-modal-light-box #shortcode-reviews-content-right {
  flex: 1 1 46% !important;
  width: 46% !important;
  min-width: 0 !important;
  max-height: none !important;
  background: #191F2A !important;
  color: #FFFFFF !important;
  padding: 21px 18px !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
.shortcode-wcpr-modal-light-box #shortcode-reviews-content-right
.shortcode-reviews-content-right-meta {
  width: 100% !important;
  margin: 0 !important;
  color: #FFFFFF !important;
}
.shortcode-wcpr-modal-light-box #shortcode-reviews-content-right
.shortcode-review-content-container {
  color: #FFFFFF !important;
  background: transparent !important;
  padding: 0 !important;
}
.shortcode-wcpr-modal-light-box #shortcode-reviews-content-right
.shortcode-wcpr-review-content,
.shortcode-wcpr-modal-light-box #shortcode-reviews-content-right
.shortcode-wcpr-comment-author { color: #F0F4F9 !important; }
.shortcode-wcpr-modal-light-box .wcpr-review-date { color: #ABB7C7 !important; }
.shortcode-wcpr-modal-light-box .woocommerce-review__verified,
.shortcode-wcpr-modal-light-box .woocommerce-review__verified::before {
  color: #199E01 !important;
}
.shortcode-wcpr-modal-light-box .star-rating::before,
.shortcode-wcpr-modal-light-box .star-rating span::before {
  color: #FFB74D !important;
}
.shortcode-wcpr-modal-light-box .star-rating::before { opacity: .28 !important; }
.shortcode-wcpr-modal-light-box.shortcode-wcpr-no-images
.shortcode-wcpr-modal-wrap-container { max-width: 560px !important; }
.shortcode-wcpr-modal-light-box.shortcode-wcpr-no-images
#shortcode-reviews-content-left { display: none !important; }
.shortcode-wcpr-modal-light-box.shortcode-wcpr-no-images
#shortcode-reviews-content-right { width: 100% !important; flex-basis: 100% !important; }

/* Floating arrows & close OUTSIDE the card (desktop) */
.shortcode-wcpr-modal-light-box .shortcode-wcpr-modal-wrap-container
.shortcode-wcpr-prev,
.shortcode-wcpr-modal-light-box .shortcode-wcpr-modal-wrap-container
.shortcode-wcpr-next,
.shortcode-wcpr-modal-light-box .shortcode-wcpr-modal-wrap-container
.shortcode-wcpr-close {
  position: absolute !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  margin: 0 !important;
  top: auto;
  bottom: auto !important;
  line-height: 1 !important;
  background: #222B38 !important;
  color: #FFFFFF !important;
  border: 1px solid #465266 !important;
  border-radius: 50% !important;
  transform: none !important;
  cursor: pointer;
  z-index: 99999;
  font-size: 23px !important;
}
.shortcode-wcpr-modal-light-box .shortcode-wcpr-modal-wrap-container
.shortcode-wcpr-prev { left: -49px !important; top: calc(50% - 21px) !important; right: auto !important; }
.shortcode-wcpr-modal-light-box .shortcode-wcpr-modal-wrap-container
.shortcode-wcpr-next { right: -49px !important; top: calc(50% - 21px) !important; left: auto !important; }
.shortcode-wcpr-modal-light-box .shortcode-wcpr-modal-wrap-container
.shortcode-wcpr-close { right: -14px !important; top: -18px !important; left: auto !important; background: #FF5722 !important; border-color: #FF5722 !important; color: #10141B !important; }
.shortcode-wcpr-modal-light-box .shortcode-wcpr-modal-wrap-container
.shortcode-wcpr-prev:hover,
.shortcode-wcpr-modal-light-box .shortcode-wcpr-modal-wrap-container
.shortcode-wcpr-next:hover { border-color: #FF5722 !important; }

@media (max-width: 900px) {
  :is(#amb-grid-specificity, .woocommerce-photo-reviews-shortcode)
  .shortcode-wcpr-grid.shortcode-wcpr-masonry-style.wcpr-grid-loadmore {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 600px) {
  .woocommerce-photo-reviews-shortcode .shortcode-wcpr-filter-container {
    gap: 8px !important;
    padding: 10px !important;
  }
  .woocommerce-photo-reviews-shortcode .shortcode-wcpr-filter-container
  .shortcode-wcpr-filter-button { font-size: 12px !important; padding: 9px 11px !important; }
  :is(#amb-grid-specificity, .woocommerce-photo-reviews-shortcode)
  .shortcode-wcpr-grid.shortcode-wcpr-masonry-style.wcpr-grid-loadmore {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid.wcpr-grid-loadmore
  .shortcode-wcpr-grid-item {
    height: 255px !important;
    min-height: 255px !important;
    max-height: 255px !important;
    border-radius: 10px !important;
  }
  .woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
  .shortcode-reviews-images-container { flex-basis: 112px !important; height: 112px !important; }
  .woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
  .shortcode-review-content-container { padding: 10px !important; }
  .woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
  .shortcode-wcpr-comment-author { font-size: 12px !important; }
  .woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
  .wcpr-review-rating { flex-wrap: wrap !important; margin: 5px 0 !important; }
  .woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
  .wcpr-review-date { font-size: 10px !important; }
  .woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
  .shortcode-wcpr-review-content { font-size: 12px !important; -webkit-line-clamp: 5; }
  .woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item:has(.shortcode-reviews-images-container)
  .shortcode-wcpr-review-content { -webkit-line-clamp: 2; }

  /* Every phone gets a CENTERED compact popup, never the bottom toolbar. */
  .shortcode-wcpr-modal-light-box .shortcode-wcpr-modal-light-box-wrapper,
  .shortcode-wcpr-full-screen-mobile.shortcode-wcpr-modal-light-box
  .shortcode-wcpr-modal-light-box-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 54px 44px !important;
  }
  .shortcode-wcpr-modal-light-box .shortcode-wcpr-modal-wrap-container,
  .shortcode-wcpr-full-screen-mobile.shortcode-wcpr-modal-light-box
  .shortcode-wcpr-modal-wrap-container {
    width: 100% !important;
    max-width: 480px !important;
    height: auto !important;
    max-height: calc(100dvh - 108px) !important;
    margin: 0 auto !important;
  }
  .shortcode-wcpr-modal-light-box .shortcode-wcpr-modal-wrap,
  .shortcode-wcpr-full-screen-mobile.shortcode-wcpr-modal-light-box
  .shortcode-wcpr-modal-light-box-wrapper .shortcode-wcpr-modal-wrap {
    width: 100% !important;
    max-height: calc(100dvh - 108px) !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    overflow-y: auto !important;
  }
  .shortcode-wcpr-modal-light-box #shortcode-reviews-content-left {
    width: 100% !important;
    flex: 0 0 auto !important;
    padding: 9px !important;
    max-height: 31vh !important;
  }
  .shortcode-wcpr-modal-light-box #shortcode-reviews-content-left-main {
    min-height: 0 !important;
    max-height: 25vh !important;
  }
  .shortcode-wcpr-modal-light-box #shortcode-reviews-content-left-main img.shortcode-reviews-images,
  .shortcode-wcpr-modal-light-box #shortcode-reviews-content-left-main video.shortcode-reviews-images {
    max-height: 25vh !important;
  }
  .shortcode-wcpr-modal-light-box #shortcode-reviews-content-left-modal { max-height: 42px !important; }
  .shortcode-wcpr-modal-light-box #shortcode-reviews-content-right {
    flex: 1 1 auto !important;
    width: 100% !important;
    padding: 14px !important;
    max-height: none !important;
  }
  .shortcode-wcpr-modal-light-box .shortcode-wcpr-modal-wrap-container
  .shortcode-wcpr-prev,
  .shortcode-wcpr-full-screen-mobile.shortcode-wcpr-modal-light-box
  .shortcode-wcpr-modal-wrap-container .shortcode-wcpr-prev {
    position: absolute !important;
    top: calc(50% - 20px) !important;
    bottom: auto !important;
    left: -42px !important;
    right: auto !important;
    width: 38px !important;
    height: 44px !important;
    border-radius: 10px !important;
    background: #222B38 !important;
    transform: none !important;
  }
  .shortcode-wcpr-modal-light-box .shortcode-wcpr-modal-wrap-container
  .shortcode-wcpr-next,
  .shortcode-wcpr-full-screen-mobile.shortcode-wcpr-modal-light-box
  .shortcode-wcpr-modal-wrap-container .shortcode-wcpr-next {
    position: absolute !important;
    top: calc(50% - 20px) !important;
    bottom: auto !important;
    right: -42px !important;
    left: auto !important;
    width: 38px !important;
    height: 44px !important;
    border-radius: 10px !important;
    background: #222B38 !important;
    transform: none !important;
  }
  .shortcode-wcpr-modal-light-box .shortcode-wcpr-modal-wrap-container
  .shortcode-wcpr-close,
  .shortcode-wcpr-full-screen-mobile.shortcode-wcpr-modal-light-box
  .shortcode-wcpr-modal-wrap-container .shortcode-wcpr-close {
    position: absolute !important;
    top: -17px !important;
    bottom: auto !important;
    right: -16px !important;
    left: auto !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 1 !important;
    border-radius: 50% !important;
    transform: none !important;
    background: #FF5722 !important;
  }
  .shortcode-wcpr-modal-light-box.shortcode-wcpr-no-images
  #shortcode-reviews-content-left { display: none !important; }
  .shortcode-wcpr-modal-light-box.shortcode-wcpr-no-images
  .shortcode-wcpr-modal-wrap-container { max-width: 460px !important; }
}
@media (max-width: 370px) {
  .woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
  .shortcode-review-content-container { padding: 8px !important; }
  .woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
  .shortcode-wcpr-comment-author { font-size: 11px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item { transition: none !important; }
}


/* ================================================================
   AMB SELLS GRID V2 — COMPACT 4-COLUMN CARDS & POLISH
   These overrides intentionally follow V1 styles so they take
   precedence without editing the original Revopic plugin styles.
   ================================================================ */

/* Overall average is an actual square, independent of number size. */
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-overall-rating-left {
  box-sizing: border-box !important;
  width: 62px !important;
  height: 62px !important;
  min-width: 62px !important;
  min-height: 62px !important;
  max-width: 62px !important;
  max-height: 62px !important;
  aspect-ratio: 1 / 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  border-radius: 8px !important;
  line-height: 1 !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-overall-rating-left-average {
  display: block !important;
  line-height: 1 !important;
  margin: 0 !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-overall-rating-main {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
}

/* Filter choices centered on desktop and phones. */
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-filter-container {
  justify-content: center !important;
  text-align: center !important;
  border-radius: 8px !important;
  gap: 10px !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-filter-container
.shortcode-wcpr-filter-button {
  border-radius: 7px !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-filter-button-wrap {
  flex: 0 0 auto !important;
}

/* Desktop columns honor the shortcode's cols value through the
   --amb-grid-desktop-cols custom property set by our V2 JS. */
:is(#amb-grid-specificity, .woocommerce-photo-reviews-shortcode)
.shortcode-wcpr-grid.shortcode-wcpr-masonry-style.wcpr-grid-loadmore {
  grid-template-columns: repeat(var(--amb-grid-desktop-cols, 4), minmax(0, 1fr)) !important;
  grid-auto-rows: auto !important;
  align-items: start !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid.wcpr-grid-loadmore
.shortcode-wcpr-grid-item {
  box-sizing: border-box !important;
  height: 178px !important;
  min-height: 178px !important;
  max-height: 178px !important;
  border-radius: 7px !important;
  position: relative !important;
  transform: none !important;
  overflow: hidden !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid.wcpr-grid-loadmore
.shortcode-wcpr-grid-item:hover {
  transform: none !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.17) !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
.shortcode-reviews-images-container {
  height: 78px !important;
  flex: 0 0 78px !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
.shortcode-review-content-container {
  padding: 10px 11px !important;
  position: relative !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
.shortcode-wcpr-comment-author { font-size: 12px !important; line-height: 1.35 !important; }
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item .wcpr-review-rating {
  margin: 5px 0 !important;
  gap: 4px !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item .wcpr-review-date {
  font-size: 10px !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
.shortcode-wcpr-review-content {
  line-height: 1.45 !important;
  font-size: 12px !important;
  -webkit-line-clamp: 4 !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item:has(.shortcode-reviews-images-container)
.shortcode-wcpr-review-content { -webkit-line-clamp: 2 !important; }

/* Dark ghost-style load more CTA, no solid fill. */
.woocommerce-photo-reviews-shortcode .wcpr-load-more-reviews-button-container
.wcpr-load-more-reviews-button {
  width: auto !important;
  min-width: 134px !important;
  height: auto !important;
  min-height: 41px !important;
  padding: 10px 22px !important;
  line-height: 1.35 !important;
  border: 1px solid #FF5722 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #FF7044 !important;
  box-shadow: none !important;
}
.woocommerce-photo-reviews-shortcode .wcpr-load-more-reviews-button-container
.wcpr-load-more-reviews-button:hover,
.woocommerce-photo-reviews-shortcode .wcpr-load-more-reviews-button-container
.wcpr-load-more-reviews-button:focus-visible {
  background: rgba(255,87,34,.12) !important;
  color: #FFFFFF !important;
  border-color: #FF5722 !important;
}

/* Close = same neutral dark circle + white icon as previous/next. */
.shortcode-wcpr-modal-light-box .shortcode-wcpr-modal-wrap-container
.shortcode-wcpr-close,
.shortcode-wcpr-full-screen-mobile.shortcode-wcpr-modal-light-box
.shortcode-wcpr-modal-wrap-container .shortcode-wcpr-close {
  background: #222B38 !important;
  color: #FFFFFF !important;
  border: 1px solid #465266 !important;
}
.shortcode-wcpr-modal-light-box .shortcode-wcpr-modal-wrap-container
.shortcode-wcpr-close::before { color: #FFFFFF !important; }
.shortcode-wcpr-modal-light-box .shortcode-wcpr-modal-wrap-container
.shortcode-wcpr-close:hover {
  background: #303B4B !important;
  border-color: #FF5722 !important;
}

/* Tablet: three columns, small phone: two columns as selected. */
@media (min-width: 721px) and (max-width: 980px) {
  :is(#amb-grid-specificity, .woocommerce-photo-reviews-shortcode)
  .shortcode-wcpr-grid.shortcode-wcpr-masonry-style.wcpr-grid-loadmore {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 720px) {
  :is(#amb-grid-specificity, .woocommerce-photo-reviews-shortcode)
  .shortcode-wcpr-grid.shortcode-wcpr-masonry-style.wcpr-grid-loadmore {
    grid-template-columns: repeat(var(--amb-grid-mobile-cols, 2), minmax(0, 1fr)) !important;
    gap: 9px !important;
  }
  .woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid.wcpr-grid-loadmore
  .shortcode-wcpr-grid-item {
    height: 186px !important;
    min-height: 186px !important;
    max-height: 186px !important;
    border-radius: 6px !important;
  }
  .woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid.wcpr-grid-loadmore
  .shortcode-wcpr-grid-item.amb-grid-expanded {
    height: auto !important;
    min-height: 186px !important;
    max-height: none !important;
  }
  .woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
  .shortcode-reviews-images-container {
    height: 72px !important;
    flex-basis: 72px !important;
  }
  .woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
  .shortcode-review-content-container { padding: 8px !important; }
  .woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item
  .shortcode-wcpr-review-content { font-size: 11.5px !important; -webkit-line-clamp: 4 !important; }
  .woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item:has(.shortcode-reviews-images-container)
  .shortcode-wcpr-review-content { -webkit-line-clamp: 2 !important; }
  .woocommerce-photo-reviews-shortcode .shortcode-wcpr-filter-container {
    justify-content: center !important;
    border-radius: 8px !important;
  }
}


/* ================================================================
   AMB SELLS GRID V3 - CUSTOMER REQUESTED FINISHING FIXES
   Same original plugin; no template or PHP edits required.
   ================================================================ */

/* Compact 48px rating tile; heading and tile share a left edge.
   The overall summary is outside the AJAX grid, so always scope it
   to the shortcode rather than to grid-item selectors. */
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-overall-rating {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-overall-rating > h2 {
  display: block !important;
  width: auto !important;
  margin: 0 0 9px !important;
  padding: 0 !important;
  text-align: left !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-overall-rating-main {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 0 !important;
  margin: 0 !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-overall-rating-left {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  aspect-ratio: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 7px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  flex: 0 0 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-overall-rating-left-average {
  display: block !important;
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-overall-rating-right {
  padding-left: 0 !important;
  margin: 0 !important;
  min-width: 0 !important;
}
@media (max-width: 720px) {
  /* Original theme's h2 may have its own left padding; normalize it. */
  .woocommerce-photo-reviews-shortcode .shortcode-wcpr-overall-rating {
    padding: 0 12px !important;
    margin: 0 !important;
  }
  .woocommerce-photo-reviews-shortcode .shortcode-wcpr-overall-rating-and-rating-count {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .woocommerce-photo-reviews-shortcode .shortcode-wcpr-overall-rating > h2 {
    padding: 0 !important;
    margin-left: 0 !important;
    text-indent: 0 !important;
  }
}

/* IMPORTANT: filtering returns either a .wcpr-grid-loadmore masonry
   element OR a plain masonry grid for smaller result sets. Always
   target the common class, otherwise 1-/2-star results lose styling. */
:is(#amb-grid-specificity, .woocommerce-photo-reviews-shortcode)
.shortcode-wcpr-grid.shortcode-wcpr-masonry-style {
  display: grid !important;
  grid-template-columns: repeat(var(--amb-grid-desktop-cols, 4), minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  grid-auto-rows: auto !important;
  column-count: unset !important;
  -webkit-column-count: unset !important;
  -moz-column-count: unset !important;
  align-items: start !important;
  gap: 12px !important;
  background: transparent !important;
}

/* Every comment fully visible. Cards grow naturally; no forced height,
   fake "Read more" or clamped text. The image keeps its compact crop. */
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid.shortcode-wcpr-masonry-style
.shortcode-wcpr-grid-item {
  box-sizing: border-box !important;
  display: block !important;
  grid-row-end: auto !important;
  grid-column: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  min-width: 0 !important;
  padding: 0 !important; /* Original plugin adds a 5px white bottom strip */
  margin: 0 !important;
  border: 1px solid #303B4B !important;
  border-radius: 6px !important;
  background: #222B38 !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
  overflow: hidden !important;
  color: #FFFFFF !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid.shortcode-wcpr-masonry-style
.shortcode-wcpr-grid-item:hover,
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid.shortcode-wcpr-masonry-style
.shortcode-wcpr-grid-item:active,
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid.shortcode-wcpr-masonry-style
.shortcode-wcpr-grid-item:focus {
  border-color: #303B4B !important;
  box-shadow: none !important;
  transform: none !important;
  background: #222B38 !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid.shortcode-wcpr-masonry-style
.shortcode-wcpr-grid-item > .shortcode-wcpr-content {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #222B38 !important;
  color: #FFFFFF !important;
  overflow: visible !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid.shortcode-wcpr-masonry-style
.shortcode-wcpr-grid-item .shortcode-review-content-container {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  padding: 10px 11px !important;
  margin: 0 !important;
  background: transparent !important;
  color: #FFFFFF !important;
  flex: 0 1 auto !important;
  overflow: visible !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid.shortcode-wcpr-masonry-style
.shortcode-wcpr-grid-item .shortcode-wcpr-review-content {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  -webkit-box-orient: initial !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: #E5EAF2 !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid.shortcode-wcpr-masonry-style
.shortcode-wcpr-grid-item .shortcode-wcpr-review-content-short {
  display: none !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid.shortcode-wcpr-masonry-style
.shortcode-wcpr-grid-item .shortcode-wcpr-review-content-full {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid.shortcode-wcpr-masonry-style
.shortcode-wcpr-grid-item .shortcode-wcpr-review-content-full p {
  color: #E5EAF2 !important;
  margin: 0 0 6px !important;
}
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item .amb-review-read-more,
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid-item .shortcode-wcpr-read-more {
  display: none !important;
}
/* Explicitly paint even the small-rating AJAX result items, regardless
   of the presence/absence of loadmore wrapper classes. */
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid.shortcode-wcpr-masonry-style
.shortcode-wcpr-grid-item .shortcode-reviews-images-container {
  margin: 0 !important;
  padding: 0 !important;
  background: #191F2A !important;
}

/* Lightbox inherits full text; do not duplicate the "short" preview. */
.shortcode-wcpr-modal-light-box .shortcode-wcpr-review-content-short,
.shortcode-wcpr-modal-light-box .amb-review-read-more,
.shortcode-wcpr-modal-light-box .shortcode-wcpr-read-more {
  display: none !important;
}
.shortcode-wcpr-modal-light-box .shortcode-wcpr-review-content-full {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
/* Icon font's speech bubble in the full review popup. */
.shortcode-wcpr-modal-light-box .shortcode-wcpr-comment-author:not(.shortcode-wcpr-comment-author-with-country)::before,
.shortcode-wcpr-modal-light-box .shortcode-reviews-content-right-meta
.shortcode-wcpr-comment-author:not(.shortcode-wcpr-comment-author-with-country)::before {
  color: #FF5722 !important;
  opacity: 1 !important;
}

/* AJAX results with only 1 or 2 stars must keep the same desktop/mobile
   columns and never re-enable the plugin's multi-column layout. */
@media (min-width: 721px) and (max-width: 980px) {
  :is(#amb-grid-specificity, .woocommerce-photo-reviews-shortcode)
  .shortcode-wcpr-grid.shortcode-wcpr-masonry-style {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 720px) {
  :is(#amb-grid-specificity, .woocommerce-photo-reviews-shortcode)
  .shortcode-wcpr-grid.shortcode-wcpr-masonry-style {
    grid-template-columns: repeat(var(--amb-grid-mobile-cols, 2), minmax(0, 1fr)) !important;
    gap: 9px !important;
  }
  .woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid.shortcode-wcpr-masonry-style
  .shortcode-wcpr-grid-item {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    border-radius: 6px !important;
  }
  .woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid.shortcode-wcpr-masonry-style
  .shortcode-wcpr-grid-item .shortcode-review-content-container {
    padding: 8px !important;
  }
  .woocommerce-photo-reviews-shortcode .shortcode-wcpr-grid.shortcode-wcpr-masonry-style
  .shortcode-wcpr-grid-item .shortcode-wcpr-review-content {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    font-size: 11.5px !important;
    line-height: 1.5 !important;
  }
}


/* ================================================================
   AMB SELLS GRID V5 — PRECISE MASONRY SPACING
   One-pixel tracks, zero track gap. JavaScript reserves exactly the
   natural card height + the desired visible vertical gap per item.
   Horizontal gap is independent and remains fixed at 12px / 9px.
   ================================================================ */
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-overall-rating-left,
.woocommerce-photo-reviews-shortcode .shortcode-wcpr-overall-rating-left-average {
  font-size: 17px !important;
  font-weight: 600 !important;
}

:is(#amb-grid-specificity, .woocommerce-photo-reviews-shortcode)
.shortcode-wcpr-grid.shortcode-wcpr-masonry-style.amb-masonry-packed {
  display: grid !important;
  grid-auto-rows: 1px !important;
  grid-auto-flow: row dense !important;
  align-items: start !important;
  align-content: start !important;
  column-gap: 12px !important;
  row-gap: 0 !important;
  gap: 0 12px !important;
}

.woocommerce-photo-reviews-shortcode
.shortcode-wcpr-grid.shortcode-wcpr-masonry-style.amb-masonry-packed
> .shortcode-wcpr-grid-item {
  grid-row-end: span var(--amb-masonry-span, 1) !important;
  grid-column: auto !important;
  align-self: start !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 720px) {
  :is(#amb-grid-specificity, .woocommerce-photo-reviews-shortcode)
  .shortcode-wcpr-grid.shortcode-wcpr-masonry-style.amb-masonry-packed {
    column-gap: 9px !important;
    row-gap: 0 !important;
    gap: 0 9px !important;
  }
}


/* ================================================================
   AMB SELLS GRID V6 — ADAPTIVE NATURAL-HEIGHT REVIEW MEDIA

   The original plugin previously painted every image into a tiny 78px
   strip. Instead: a landscape thumbnail follows its natural aspect
   ratio. Portraits stay taller but are capped in the *grid only*.
   Full review lightbox remains untouched and shows the original image.

   V5's ResizeObserver on .shortcode-wcpr-content automatically
   recalculates masonry spans when a media element changes height.
   ================================================================ */

/* Allow the thumbnail container to grow with the displayed image.
   Target both original .wcpr-grid-loadmore and AJAX-filtered grids. */
.woocommerce-photo-reviews-shortcode
.shortcode-wcpr-grid.shortcode-wcpr-masonry-style
.shortcode-wcpr-grid-item .shortcode-reviews-images-container {
  display: block !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #191F2A !important;
}

/* Revopic emits an optional internal image-caption wrapper. Do not
   let its previous height:100% force a fixed-size image box. */
.woocommerce-photo-reviews-shortcode
.shortcode-wcpr-grid.shortcode-wcpr-masonry-style
.shortcode-wcpr-grid-item .shortcode-reviews-images-wrap-right,
.woocommerce-photo-reviews-shortcode
.shortcode-wcpr-grid.shortcode-wcpr-masonry-style
.shortcode-wcpr-grid-item .shortcode-wcpr-review-image-container {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: none !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Example with a 300px-wide card:
   16:9 image -> approx 169px tall, fully visible
   1:1 image -> 300px tall, fully visible
   2:3 portrait -> capped at 340px, excess cropped vertically */
.woocommerce-photo-reviews-shortcode
.shortcode-wcpr-grid.shortcode-wcpr-masonry-style
.shortcode-wcpr-grid-item .shortcode-reviews-images-wrap-right > img.shortcode-reviews-images,
.woocommerce-photo-reviews-shortcode
.shortcode-wcpr-grid.shortcode-wcpr-masonry-style
.shortcode-wcpr-grid-item .shortcode-wcpr-review-image-container > img.shortcode-reviews-images {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 340px !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center center !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Videos follow the same bounding box without breaking player aspect
   ratio, controls or click-to-open lightbox behavior. */
.woocommerce-photo-reviews-shortcode
.shortcode-wcpr-grid.shortcode-wcpr-masonry-style
.shortcode-wcpr-grid-item .shortcode-reviews-images-wrap-right > video.shortcode-reviews-images,
.woocommerce-photo-reviews-shortcode
.shortcode-wcpr-grid.shortcode-wcpr-masonry-style
.shortcode-wcpr-grid-item .shortcode-reviews-images-wrap-right > iframe.shortcode-reviews-images,
.woocommerce-photo-reviews-shortcode
.shortcode-wcpr-grid.shortcode-wcpr-masonry-style
.shortcode-wcpr-grid-item .shortcode-wcpr-review-image-container > video.shortcode-reviews-images {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 340px !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  margin: 0 !important;
}

/* Media query is AFTER the old V1/V2 mobile rules, so it wins. */
@media (max-width: 720px) {
  .woocommerce-photo-reviews-shortcode
  .shortcode-wcpr-grid.shortcode-wcpr-masonry-style
  .shortcode-wcpr-grid-item .shortcode-reviews-images-container,
  .woocommerce-photo-reviews-shortcode
  .shortcode-wcpr-grid.shortcode-wcpr-masonry-style
  .shortcode-wcpr-grid-item .shortcode-reviews-images-wrap-right,
  .woocommerce-photo-reviews-shortcode
  .shortcode-wcpr-grid.shortcode-wcpr-masonry-style
  .shortcode-wcpr-grid-item .shortcode-wcpr-review-image-container {
    flex: 0 0 auto !important;
    height: auto !important;
    max-height: none !important;
  }
  .woocommerce-photo-reviews-shortcode
  .shortcode-wcpr-grid.shortcode-wcpr-masonry-style
  .shortcode-wcpr-grid-item .shortcode-reviews-images-wrap-right > img.shortcode-reviews-images,
  .woocommerce-photo-reviews-shortcode
  .shortcode-wcpr-grid.shortcode-wcpr-masonry-style
  .shortcode-wcpr-grid-item .shortcode-wcpr-review-image-container > img.shortcode-reviews-images,
  .woocommerce-photo-reviews-shortcode
  .shortcode-wcpr-grid.shortcode-wcpr-masonry-style
  .shortcode-wcpr-grid-item .shortcode-reviews-images-wrap-right > video.shortcode-reviews-images,
  .woocommerce-photo-reviews-shortcode
  .shortcode-wcpr-grid.shortcode-wcpr-masonry-style
  .shortcode-wcpr-grid-item .shortcode-reviews-images-wrap-right > iframe.shortcode-reviews-images,
  .woocommerce-photo-reviews-shortcode
  .shortcode-wcpr-grid.shortcode-wcpr-masonry-style
  .shortcode-wcpr-grid-item .shortcode-wcpr-review-image-container > video.shortcode-reviews-images {
    max-height: 230px !important;
  }
}

/* ================================================================
   AMB SELLS V9 — NATIVE WCPR FLEXSLIDER (IS_SLIDE="ON")
   Equal-height slider, one card per step, no partially visible slides.
   The existing masonry grid (is_slide="off") stays untouched.
   ================================================================ */
.woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"] {
  --amb-slide-height: 230px;
  --amb-slide-gap: 12px;
  --amb-slide-item-width: 240px;
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}

/* Full width review viewport with just a 2px guard on each edge.
   Arrow controls overlay the outermost cards rather than taking extra space. */
.woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"] .viwcpr-slide-wrap {
  width: calc(100% - 4px) !important;
  max-width: calc(100% - 4px) !important;
  margin: 0 2px !important;
  padding: 0 !important;
  position: relative !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

/* WCPR's masonry grid rules must NOT turn FlexSlider's horizontal track
   into a CSS grid/column layout. Native FlexSlider owns transforms. */
:is(#amb-native-slider-specificity, .woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"])
.viwcpr-slide-wrap .shortcode-wcpr-grid.shortcode-wcpr-masonry-style,
:is(#amb-native-slider-specificity, .woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"])
.viwcpr-slide-wrap .shortcode-wcpr-grid.shortcode-wcpr-masonry-style.amb-masonry-packed {
  display: block !important;
  grid-template-columns: none !important;
  grid-auto-rows: auto !important;
  grid-auto-flow: unset !important;
  gap: 0 !important;
  column-gap: 0 !important;
  row-gap: 0 !important;
  column-count: unset !important;
  -webkit-column-count: unset !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

:is(#amb-native-slider-specificity, .woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"])
.viwcpr-slide-wrap .shortcode-wcpr-grid.shortcode-wcpr-masonry-style > .shortcode-wcpr-grid-item {
  display: block !important;
  float: left !important;
  clear: none !important;
  box-sizing: border-box !important;
  grid-row-end: auto !important;
  grid-column: auto !important;
  position: relative !important;
  width: var(--amb-slide-item-width) !important;
  min-width: var(--amb-slide-item-width) !important;
  max-width: var(--amb-slide-item-width) !important;
  height: var(--amb-slide-height) !important;
  min-height: var(--amb-slide-height) !important;
  max-height: var(--amb-slide-height) !important;
  margin: 0 var(--amb-slide-gap) 0 0 !important;
  padding: 0 !important;
  background: #222B38 !important;
  border: 1px solid #303B4B !important;
  border-radius: 7px !important;
  box-shadow: none !important;
  overflow: hidden !important;
  transform: none !important;
}
:is(#amb-native-slider-specificity, .woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"])
.viwcpr-slide-wrap .shortcode-wcpr-grid-item:hover {
  background: #222B38 !important;
  border-color: #303B4B !important;
  box-shadow: none !important;
  transform: none !important;
}
:is(#amb-native-slider-specificity, .woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"])
.viwcpr-slide-wrap .shortcode-wcpr-grid-item > .shortcode-wcpr-content {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  width: 100% !important;
  min-height: 0 !important;
  background: #222B38 !important;
}
:is(#amb-native-slider-specificity, .woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"])
.viwcpr-slide-wrap .shortcode-wcpr-grid-item .shortcode-review-content-container {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 11px !important;
  overflow: hidden !important;
  background: transparent !important;
}
:is(#amb-native-slider-specificity, .woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"])
.viwcpr-slide-wrap .shortcode-wcpr-grid-item .shortcode-wcpr-review-content,
:is(#amb-native-slider-specificity, .woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"])
.viwcpr-slide-wrap .shortcode-wcpr-grid-item .shortcode-wcpr-review-content-short {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
  max-height: 6.2em !important;
  height: auto !important;
  overflow: hidden !important;
  color: #E5EAF2 !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}
:is(#amb-native-slider-specificity, .woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"])
.viwcpr-slide-wrap .shortcode-wcpr-grid-item .shortcode-wcpr-review-content-full {
  display: none !important;
}
:is(#amb-native-slider-specificity, .woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"])
.viwcpr-slide-wrap .shortcode-wcpr-grid-item .shortcode-reviews-images-container,
:is(#amb-native-slider-specificity, .woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"])
.viwcpr-slide-wrap .shortcode-wcpr-grid-item .shortcode-reviews-images-wrap-right {
  width: 100% !important;
  height: 96px !important;
  min-height: 96px !important;
  max-height: 96px !important;
  flex: 0 0 96px !important;
  overflow: hidden !important;
}
:is(#amb-native-slider-specificity, .woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"])
.viwcpr-slide-wrap .shortcode-wcpr-grid-item img.shortcode-reviews-images {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 96px !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* This is the visible horizontal window; ALWAYS clip adjacent slides. */
.woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"]
.viwcpr-slide-wrap .villatheme-slider-viewport {
  width: 100% !important;
  height: calc(var(--amb-slide-height) + 2px) !important;
  max-height: none !important;
  overflow: hidden !important;
  background: transparent !important;
  transition: none !important;
}

/* Arrows OVERLAY the outermost cards on desktop/mobile, without reducing card widths. */
.woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"]
.viwcpr-slide-wrap .villatheme-slider-direction-nav { margin: 0 !important; padding: 0 !important; }
.woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"]
.viwcpr-slide-wrap .villatheme-slider-direction-nav a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  top: 50% !important;
  margin-top: -20px !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: 1px solid #465266 !important;
  background: #222B38 !important;
  color: #FFFFFF !important;
  opacity: 1 !important;
  z-index: 20 !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.25) !important;
  font-size: 0 !important;
  text-shadow: none !important;
  cursor: pointer !important;
  touch-action: manipulation;
}
.woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"]
.viwcpr-slide-wrap .villatheme-slider-direction-nav a.villatheme-slider-prev {
  left: 12px !important;
  right: auto !important;
}
.woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"]
.viwcpr-slide-wrap .villatheme-slider-direction-nav a.villatheme-slider-next {
  right: 12px !important;
  left: auto !important;
}
.woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"]
.viwcpr-slide-wrap .villatheme-slider-direction-nav a::before {
  content: '' !important;
  display: block !important;
  width: 11px !important;
  height: 11px !important;
  border-top: 2px solid #FFF !important;
  border-right: 2px solid #FFF !important;
  transform: rotate(-135deg) !important;
  font-family: inherit !important;
  line-height: 1 !important;
}
.woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"]
.viwcpr-slide-wrap .villatheme-slider-direction-nav a.villatheme-slider-next::before {
  transform: rotate(45deg) !important;
}
.woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"]
.viwcpr-slide-wrap .villatheme-slider-direction-nav a:hover {
  background: #303B4B !important;
  border-color: #465266 !important;
}
.woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"].amb-slide-no-arrows
.viwcpr-slide-wrap .villatheme-slider-direction-nav { display: none !important; }
@media (max-width: 720px) {
  .woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"] .viwcpr-slide-wrap {
    width: calc(100% - 4px) !important;
    max-width: calc(100% - 4px) !important;
  }
  .woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"]
  .viwcpr-slide-wrap .villatheme-slider-direction-nav a {
    width: 34px !important;
    height: 34px !important;
    margin-top: -17px !important;
  }
  .woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"]
  .viwcpr-slide-wrap .villatheme-slider-direction-nav a.villatheme-slider-prev {
    left: 9px !important;
  }
  .woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"]
  .viwcpr-slide-wrap .villatheme-slider-direction-nav a.villatheme-slider-next {
    right: 9px !important;
  }
}
/* Optional switches affect the native slider only. */
.woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"].amb-slide-no-badges
.viwcpr-slide-wrap .woocommerce-review__verified { display: none !important; }
.woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"].amb-slide-no-images
.viwcpr-slide-wrap .shortcode-reviews-images-container { display: none !important; }

/* V9: Prevent edge clipping after touch/swipe transforms. */
.woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"] .viwcpr-slide-wrap {
  isolation: isolate !important;
}
.woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"] .viwcpr-slide-wrap .villatheme-slider-viewport {
  border-radius: 7px !important;
}
.woocommerce-photo-reviews-shortcode[data-wcpr_slide="1"] .viwcpr-slide-wrap .villatheme-slider-direction-nav a {
  z-index: 30 !important;
  transition: background-color .2s ease, opacity .2s ease !important;
}