/* Thumbnail sizing in PRP/core review content */
.woocommerce #reviews .contribution img,
.woocommerce #reviews .wc-product-reviews-pro img,
.woocommerce #reviews .commentlist .comment-text img,
.woocommerce .wc-product-reviews-pro .contribution-content img,
.woocommerce .wc-product-reviews-pro .comment-content img,
.woocommerce .wc-product-reviews-pro .contribution__content img {
  max-width: 120px !important;
  max-height: 120px !important;
  height: auto !important;
  width: auto !important;
  display: inline-block !important;
  margin: 6px 8px 6px 0 !important;
  border-radius: 6px !important;
  object-fit: contain !important;
  cursor: zoom-in !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

/* Ensure links are clickable even if theme messes with pointer-events/line-height */
a.la-prp-wcrl-link {
  text-decoration: none !important;
  line-height: 0;
  display: inline-block;
  pointer-events: auto;
  cursor: zoom-in;
}

/* Skip avatars/stars */
.woocommerce #reviews img.avatar,
.woocommerce #reviews .star-rating img,
.woocommerce #reviews img.wp-smiley,
.woocommerce #reviews img.emoji { 
  max-width: none !important;
  max-height: none !important;
  width: auto !important;
  cursor: default !important;
}

/* Lightbox overlay */
#la-prp-wcrl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}
#la-prp-wcrl-overlay.active { display: flex; }

#la-prp-wcrl-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}

#la-prp-wcrl-overlay .la-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255,255,255,.15);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

#la-prp-wcrl-overlay .la-close:hover { background: rgba(255,255,255,.25); }

/* Prevent page scroll when open */
html.la-prp-wcrl-no-scroll { overflow: hidden; }
