﻿@import url('../../../../npm/swiper@11/swiper-bundle.min.css');

/* Custom Swiper classes to avoid conflicts */
.st_rvws-swiper {
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  list-style: none;
  padding: 0;
  z-index: 1;
  display: block;
}

.st_rvws-swiper-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  transition-property: transform;
  transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);
  box-sizing: content-box;
}

/* Auto height support for custom swiper classes */
.st_rvws-swiper[data-auto-height] .st_rvws-swiper-wrapper,
.st_rvws-swiper-autoheight .st_rvws-swiper-wrapper {
  align-items: flex-start;
  transition-property: transform, height;
}

.st_rvws-swiper[data-auto-height],
.st_rvws-swiper[data-auto-height] .st_rvws-swiper-slide,
.st_rvws-swiper-autoheight,
.st_rvws-swiper-autoheight .st_rvws-swiper-slide {
  height: auto;
}

.st_rvws-swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
  transition-property: transform;
  display: block;
}

/* Swiper slide state styles are handled by individual components */

.st_rvws-swiper-button-next,
.st_rvws-swiper-button-prev {
  position: absolute;
  top: var(--swiper-navigation-top-offset, 50%);
  width: calc(var(--swiper-navigation-size) / 44 * 27);
  height: var(--swiper-navigation-size);
  margin-top: calc(0px - (var(--swiper-navigation-size) / 2));
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--swiper-navigation-color, var(--swiper-theme-color));
}

.st_rvws-swiper-button-next.st_rvws-swiper-button-disabled,
.st_rvws-swiper-button-prev.st_rvws-swiper-button-disabled {
  opacity: 0.35;
  cursor: auto;
  pointer-events: none;
}

.st_rvws-swiper-button-next:after,
.st_rvws-swiper-button-prev:after {
  font-family: swiper-icons;
  font-size: var(--swiper-navigation-size);
  text-transform: none !important;
  letter-spacing: 0;
  font-variant: initial;
  line-height: 1;
  /* Themes set text-rendering: optimizeSpeed on body, which makes Blink drop the
     liga substitution these arrow glyphs are only reachable through */
  text-rendering: auto;
}

.st_rvws-swiper-button-prev:after {
  content: 'prev';
}

.st_rvws-swiper-button-next:after {
  content: 'next';
}

.st_rvws-swiper-button-prev {
  left: var(--swiper-navigation-sides-offset, 10px);
  right: auto;
}

.st_rvws-swiper-button-next {
  right: var(--swiper-navigation-sides-offset, 10px);
  left: auto;
}

.st_rvws-main-container div:empty {
  display: block;
}

.st_rvws-main-container {
  background: transparent;
  font-family: 'Inter', sans-serif;
  color: var(--text-color, #111);
  display: flex;
  flex-direction: column;
  gap: 30px;
  container-type: inline-size;
}

.st_rvws-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999999999;
  font-family: 'Inter', sans-serif;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.st_rvws-lightbox.st_rvws-lightbox--opening {
  opacity: 1;
  background: rgba(0, 0, 0, 0.9);
}

.st_rvws-lightbox.st_rvws-lightbox--closing {
  opacity: 0;
  background: rgba(0, 0, 0, 0);
}

.st_rvws-header {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 3px;
  margin-top: 0;
  line-height: 1;
  text-align: center;
  color: var(--headings-color, #111);
}

.st_rvws-subheader {
  margin-top: 5px;
  font-size: 17px;
  text-align: center;
  line-height: 1;
  color: var(--text-color, #444);
}

.st_rvws-header-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.st_rvws-verified-text {
  font-size: 13px;
  color: var(--text-color, #444);
}

.st_rvws-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 20px;
}

.st_rvws-summary-left-rating-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.st_rvws-summary-rating-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

.st_rvws-summary-rating {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 3px;
  line-height: 0.8;
  color: var(--headings-color, #111);
}

.st_rvws-summary-stars {
  font-size: 24px;
  margin-bottom: 3px;
  display: flex;
  gap: 2px;
}

.st_rvws-summary-stars svg {
  width: 22px;
  height: 22px;
}

.st_rvws-summary-count {
  color: var(--text-color, #444);
  font-size: 16px;
  margin-bottom: 3px;
}

.st_rvws-horizontal-line {
  width: 100%;
  height: 1px;
  background: color-mix(in srgb, var(--text-color, #111) 10%, transparent);
}

.st_rvws-vertical-line {
  width: 1px;
  background: color-mix(in srgb, var(--text-color, #111) 10%, transparent);
  display: flex;
  align-self: stretch;
  align-items: center;
  justify-content: center;
}

.st_rvws-vertical-line::before {
  content: '';
  width: 1px;
  height: 80%;
}

.st_rvws-summary-center {
  flex: 1;
  min-width: 220px;
  width: 360px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
}

.st_rvws-breakdown-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.st_rvws-breakdown-row {
  cursor: pointer;
  transition: opacity 0.2s ease;
  display: flex;
  position: relative;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  opacity: 0.7;
}

.st_rvws-breakdown-row:hover {
  opacity: 0.8;
}

.st_rvws-breakdown-row:active {
  opacity: 0.6;
}

/* Active state indicator */
.st_rvws-breakdown-row--selected {
  opacity: 1;
}

.st_rvws-breakdown-row--selected:hover {
  opacity: 1;
}

.st_rvws-breakdown-label {
  display: flex;
  flex: 0 0 auto;
  font-size: 16px;
  color: var(--headings-color, #222);
  margin-right: 8px;
  line-height: 0.9;
  min-width: 35px;
  justify-content: flex-end;
}

.st_rvws-breakdown-label-text {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--headings-color, #222);
}

.st_rvws-breakdown-bar-bg {
  background: var(--rating_bars-empty_color, #eaeaea);
  border-radius: var(--general-border-radius);
  height: 9px;
  min-width: 100px;
  flex: 1;
  margin-right: 11px;
  overflow: hidden;
  position: relative;
}

.st_rvws-breakdown-bar {
  background: var(--rating_bars-filled_color, #111);
  height: 100%;
  border-radius: var(--general-border-radius);
  width: 0;
  position: relative;
  transition: width 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Add shimmer effect on hover */
.st_rvws-breakdown-row:hover .st_rvws-breakdown-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent
  );
  animation: shimmer 1s ease-in-out;
}

@keyframes shimmer {
  to {
    left: 100%;
  }
}

/* Trigger animation when visible */
.st_rvws-breakdown-bar.st_rvws-breakdown-bar--animate {
  width: var(--bar-width) !important;
}

/* Stagger animation for breakdown bars */
.st_rvws-breakdown-row:nth-child(1) .st_rvws-breakdown-bar {
  transition-delay: 0ms;
}
.st_rvws-breakdown-row:nth-child(2) .st_rvws-breakdown-bar {
  transition-delay: 50ms;
}
.st_rvws-breakdown-row:nth-child(3) .st_rvws-breakdown-bar {
  transition-delay: 100ms;
}
.st_rvws-breakdown-row:nth-child(4) .st_rvws-breakdown-bar {
  transition-delay: 150ms;
}
.st_rvws-breakdown-row:nth-child(5) .st_rvws-breakdown-bar {
  transition-delay: 200ms;
}

/* Add a subtle glow effect during animation */
.st_rvws-breakdown-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--rating_bars-filled_color, #111);
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: -1;
}

.st_rvws-breakdown-bar.st_rvws-breakdown-bar--animate::before {
  opacity: 0.3;
}

/* Reset animation on filter */
.st_rvws-breakdown-popover .st_rvws-breakdown-bar {
  width: 0;
  transition-delay: 0ms !important;
}

.st_rvws-breakdown-count {
  flex: 0 0 32px;
  font-weight: 300;
  text-align: center;
  color: var(--text-color, #444);
  font-size: 16px;
  line-height: 0.9;
}

.st_rvws-summary-media-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 auto;
}

.st_rvws-summary-media-text {
  font-size: 16px;
  font-weight: 200;
  color: var(--headings-color, #111);
  opacity: 0.8;
  text-align: center;
}

.st_rvws-summary-media {
  display: flex;
  flex-wrap: wrap;
  max-width: calc(70 * 8);
  justify-content: center;
  gap: 8px;
  min-width: 180px;
}

.st_rvws-summary-img.st_rvws-summary-remaining {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
}

.st_rvws-summary-img {
  background: #c6c6c63d;
  border-radius: var(--general-border-radius);
  width: 70px;
  height: 70px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.st_rvws-remaining-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color, #666);
}

.st_rvws-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.st_rvws-toolbar-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.st_rvws-toolbar-title {
  font-weight: 400;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--headings-color, #111);
  position: relative;
  justify-content: center;
}

.st_rvws-toolbar-btns {
  display: flex;
  align-items: center;
  gap: 11px;
}

.st_rvws-btn {
  background: var(--button-background_color, #111);
  color: var(--button-text_color, #fff);
  border: none;
  border-radius: var(--general-border-radius);
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

/* .st_rvws-btn:hover {
  background: #333;
} */

.st_rvws-btn-secondary {
  background: transparent;
  color: var(--button-background_color, #111);
  border: 1px solid var(--button-background_color, #111);
  border-radius: var(--general-border-radius);
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.st_rvws-breakdown-toggle {
  cursor: pointer;
  padding: 8px;
  border-radius: var(--general-border-radius);
  transition: all 0.2s ease;
  user-select: none;
}

.st_rvws-breakdown-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.st_rvws-breakdown-toggle--active {
  background-color: rgba(0, 0, 0, 0.08);
}

.st_rvws-breakdown-arrow {
  transition: transform 0.2s ease;
  color: var(--text-color, #666);
  margin-left: 4px;
}

.st_rvws-breakdown-toggle--active .st_rvws-breakdown-arrow {
  transform: rotate(180deg);
}

.st_rvws-breakdown-popover {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid color-mix(in srgb, var(--text-color, #111) 15%, transparent);
  border-radius: var(--general-border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  margin-top: 8px;
  min-width: 350px;
  max-width: 400px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.st_rvws-breakdown-popover.st_rvws-breakdown-popover--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.st_rvws-breakdown-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.st_rvws-main-container[data-reviews-layout="line"] .st_rvws-review-row {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 15px;
}

.st_rvws-main-container[data-reviews-layout="line"] .st_rvws-review-right {
  width: 100%;
}

.st_rvws-main-container[data-reviews-layout="line"] .st_rvws-vertical-line {
  display: none !important;
}

/* boxed */

.st_rvws-main-container[data-reviews-layout="boxed"] .st_rvws-review-row  {
  padding: 20px;
  border-radius: var(--general-border-radius);
  box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
  background: var(--review_box-background_color, #fff);
}

.st_rvws-main-container[data-reviews-layout="boxed"] .st_rvws-horizontal-line  {
  display: none !important;
}

/* Mobile styles are handled by media queries below */

.st_rvws-main-container[data-reviews-layout="masonry"] .st_rvws-review-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.st_rvws-main-container[data-reviews-layout="masonry"] .st_rvws-reviews-list .st_rvws-vertical-line {
  display: none !important;
}

.st_rvws-main-container[data-reviews-layout="masonry"] .st_rvws-reviews-list {
  position: relative;
  width: 100%;
}

.st_rvws-review-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.st_rvws-review-left {
  min-width: 180px;
  text-align: center;
  position: relative;
  display: flex;
  gap: 15px;
  align-items: center;
}

.st_rvws-avatar {
  width: var(--avatar-size, 54px);
  height: var(--avatar-size, 54px);
  border-radius: 50%;
  background: var(--avatar-background_color, #f5f5f5);
  color: var(--avatar-text_color, #333);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 21px;
  position: relative;
}

.st_rvws-reviewer-name-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.st_rvws-verified {
  position: absolute;
  bottom: 0px;
  line-height: 1;
  right: -3px;
}

.st_rvws-verified svg path:first-child {
  fill: var(--verified_badge-color, #56b942);
}

.st_rvws-verified svg path:last-child {
  fill: white;
}

.st_rvws-reviewer-name, .st_rvws-reviewer-name * {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
  line-height: 0.9;
  color: var(--headings-color, #111);
}

.st_rvws-review-right {
  flex: 1;
  min-width: 0;
  position: relative;
}

.st_rvws-review-header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 3px;
}

.st_rvws-review-stars {
  font-size: 19px;
  font-weight: 700;
  display: flex;
  gap: 2px;
}

.st_rvws-review-stars svg {
  width: 22px;
  height: 22px;
}

.st_rvws-review-title {
  font-weight: 700;
  font-size: 18px;
  color: var(--headings-color, #111);
}

.st_rvws-review-date {
  position: absolute;
  right: 0;
  top: 0;
  color: var(--text-color, #444);
  font-size: 14px;
  opacity: 0.9;
}

.st_rvws-review-content {
  margin: 8px 0 11px 0;
  font-size: var(--review_content-font_size, 17px);
  color: var(--text-color, #222);
  line-height: 1.5;
}

.st_rvws-review-images-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.st_rvws-review-img {
  width: var(--review_images-image_size, 56px);
  height: var(--review_images-image_size, 56px);
  border-radius: var(--general-border-radius);
  background: #e0e0e0;
  object-fit: cover;
  cursor: pointer;
  flex-shrink: 0;
}

.st_rvws-review-img-remaining {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
}

.st_rvws-lightbox-content {
  position: relative;
  height: 500px;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.st_rvws-lightbox.st_rvws-lightbox--opening .st_rvws-lightbox-content {
  transform: scale(1);
}

.st_rvws-lightbox.st_rvws-lightbox--closing .st_rvws-lightbox-content {
  transform: scale(0.8);
}

.st_rvws-lightbox-content img {
  max-width: 100%;
  border-radius: var(--general-border-radius);
  max-height: 500px;
  object-fit: contain;
}

.st_rvws-thumbnail img {
  max-height: 500px;
  object-fit: cover;
}

.st_rvws-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.st_rvws-lightbox-close:hover {
  color: #ccc;
}

/* Review Media Popup Styles */
.st_rvws-review-media-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  height: calc(var(--vh, 1vh) * 100);
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
  touch-action: pan-y;
}

.st_rvws-lightbox-container {
  position: relative;
  background: white;
  width: 90%;
  max-width: 950px;
  max-height: 500px;
  height: 500px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-drag: none;
}

.st_rvws-lightbox.st_rvws-lightbox--opening .st_rvws-lightbox-container {
  transform: scale(1);
}

.st_rvws-lightbox.st_rvws-lightbox--closing .st_rvws-lightbox-container {
  transform: scale(0.8);
}

.st_rvws-lightbox-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease;
}

.st_rvws-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

.st_rvws-lightbox-close svg {
  fill: white;
}

.st_rvws-lightbox-content {
  display: flex;
  flex-direction: row;
}

.st_rvws-lightbox-media {
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
}

.st_rvws-slider {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  flex: 1;
  min-height: 500px;
}

.st_rvws-review-media-popup .st_rvws-lightbox-media .st_rvws-slider .st_rvws-swiper-carousel.st_rvws-widget-swiper {
  background-color: #f5f5f5 !important;
  height: 500px;
  width: 100%;
  /* min-height: 500px !important; */
}

.st_rvws-review-media-popup .st_rvws-lightbox-media .st_rvws-slider .st_rvws-swiper-slide {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: auto !important;
}

/* Ensure Swiper slides are properly sized - highly specific */
.st_rvws-review-media-popup .st_rvws-lightbox-media .st_rvws-slider .st_rvws-swiper-carousel.st_rvws-widget-swiper .st_rvws-swiper-slide {
  width: 100% !important;
}

/* Smooth transitions for the slider images themselves - reduced for better responsiveness */
.st_rvws-review-media-popup .st_rvws-lightbox-media .st_rvws-slider .st_rvws-swiper-slide {
  transition: opacity 0.1s ease-in-out !important;
}

.st_rvws-slider-img {
  max-width: 100%;
  height: auto;
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  background-color: transparent;
  display: block;
  z-index: 1;
}

.st_rvws-slider-bg:empty {
  display: block;
}

.st_rvws-slider-img-bg {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover !important;
  filter: blur(2px);
  -webkit-filter: blur(2px);
  overflow: hidden;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.st_rvws-slider-controls {
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;
  background-color: #f5f5f5;
  gap: 15px;
}

/* Swiper button styling - highly specific to avoid conflicts */
.st_rvws-review-media-popup .st_rvws-lightbox-media .st_rvws-slider .st_rvws-swiper-carousel.st_rvws-widget-swiper .st_rvws-swiper-button-next,
.st_rvws-review-media-popup .st_rvws-lightbox-media .st_rvws-slider .st_rvws-swiper-carousel.st_rvws-widget-swiper .st_rvws-swiper-button-prev {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: rgb(9 9 9 / 50%) !important;
  backdrop-filter: blur(4px);
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.2s ease !important;
  z-index: 10 !important;
  margin-top: 0 !important;
}

.st_rvws-review-media-popup .st_rvws-lightbox-media .st_rvws-slider .st_rvws-swiper-carousel.st_rvws-widget-swiper .st_rvws-swiper-button-next:hover,
.st_rvws-review-media-popup .st_rvws-lightbox-media .st_rvws-slider .st_rvws-swiper-carousel.st_rvws-widget-swiper .st_rvws-swiper-button-prev:hover {
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
  transform: translateY(-50%) scale(1.05) !important;
}

.st_rvws-review-media-popup .st_rvws-lightbox-media .st_rvws-slider .st_rvws-swiper-carousel.st_rvws-widget-swiper .st_rvws-swiper-button-prev {
  left: 20px !important;
}

.st_rvws-review-media-popup .st_rvws-lightbox-media .st_rvws-slider .st_rvws-swiper-carousel.st_rvws-widget-swiper .st_rvws-swiper-button-next {
  right: 20px !important;
}

.st_rvws-review-media-popup .st_rvws-lightbox-media .st_rvws-slider .st_rvws-swiper-carousel.st_rvws-widget-swiper .st_rvws-swiper-button-disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
}

.st_rvws-review-media-popup .st_rvws-lightbox-media .st_rvws-slider .st_rvws-swiper-carousel.st_rvws-widget-swiper .st_rvws-swiper-button-next:after,
.st_rvws-review-media-popup .st_rvws-lightbox-media .st_rvws-slider .st_rvws-swiper-carousel.st_rvws-widget-swiper .st_rvws-swiper-button-prev:after {
  color: #b9b9b9 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

.st_rvws-thumbnails-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  max-width: 90%;
  pointer-events: auto;
  transition: bottom 0.3s ease-in-out;
}

.st_rvws-thumbnails {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 12px;
  background: rgb(0 0 0 / 25%);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  scrollbar-width: none;
  pointer-events: auto;
  max-width: 100%;
}

.st_rvws-thumbnails::-webkit-scrollbar {
  display: none;
}

.st_rvws-thumbnail {
  width: 50px;
  height: 50px;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.st_rvws-thumbnail:hover {
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.st_rvws-thumbnail--active {
  border-color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.st_rvws-thumbnail--active:hover {
  border-color: #fff;
}

.st_rvws-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.st_rvws-review-popup-content {
  flex: 1;
  padding: 30px 30px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.st_rvws-review-popup-header {
  display: flex;
  flex-direction: column;
}

.st_rvws-reviewer-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
  gap: 5px;
}

.st_rvws-verified-tag {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-color, #111);
  white-space: nowrap;
  flex-shrink: 0;
}

.st_rvws-verified-tag-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.st_rvws-verified-tag-icon svg path:first-child {
  fill: var(--verified_badge-color, #121212);
}

.st_rvws-verified-tag-icon svg path:last-child {
  fill: white;
}

.st_rvws-stars-container {
  display: flex;
  margin-bottom: 15px;
  gap: 2px;
}

.st_rvws-review-popup-body {
  flex: 1;
}

.st_rvws-review-popup-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--headings-color, #111);
}

.st_rvws-slider-video-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  --plyr-color-main: #0000009f;
}

.st_rvws-slider-video-container .plyr {
  width: 100%;
  height: 100%;
  max-height: 100%;
}

.st_rvws-slider-video-container .plyr__video-wrapper {
  height: 100%;
}

.st_rvws-slider-video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.st_rvws-review-popup-text {
  font-size: calc(var(--review_content-font_size) * 1.1);
  line-height: 1.5;
  color: var(--text-color, #333);
  margin-bottom: 20px;
  word-break: break-word;
}

.st_rvws-review-popup-product {
  margin-top: 16px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--text-color, #111) 3%, transparent);
  border: 1px dashed color-mix(in srgb, var(--text-color, #111) 25%, transparent);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

a.st_rvws-review-popup-product:hover {
  background: color-mix(in srgb, var(--text-color, #111) 6%, transparent);
  border-color: color-mix(in srgb, var(--text-color, #111) 40%, transparent);
}

.st_rvws-product-info {
  display: flex;
  align-items: center;
  min-width: 0;
}

.st_rvws-product-image {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 12px;
  background: #fff;
  flex-shrink: 0;
}

.st_rvws-product-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-color, #333);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.st_rvws-product-chevron {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.st_rvws-product-chevron svg path {
  stroke: color-mix(in srgb, var(--text-color, #111) 45%, transparent);
}

.st_rvws-review-row--has-media {
  cursor: pointer;
}

.st_rvws-reviews-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.st_rvws-reviews-list-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-color, #666);
  font-size: 16px;
}

.st_rvws-sort-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.st_rvws-reviews-number {
  font-size: 16px;
  font-weight: 600;
  color: var(--headings-color, #111);
}

.st_rvws-sort-wrapper {
  position: relative;
  display: inline-block;
}

.st_rvws-sort-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.st_reviews_wrapper .st_rvws-sort-dropdown {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 10px 40px 10px 20px;
  border-radius: var(--general-border-radius);
  background-color: transparent;
  color: var(--text-color, #111);
  border: 1px solid var(--text-color, #111);
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  line-height: 1;
  outline: none;
  transition: border-color 0.2s;
}

.st_rvws-sort-dropdown:focus-visible {
  box-shadow: none;
}

.st_rvws-sort-dropdown:hover {
  border-color: var(--text-color, #333);
}

.st_rvws-sort-dropdown:focus {
  border-color: var(--text-color, #000);
}

.st_reviews_wrapper .st_rvws-sort-dropdown-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
  color: var(--text-color, #111);
}

.st_reviews_wrapper .st_rvws-sort-dropdown-icon path {
  stroke: var(--text-color, #111);
}

/* Masonry Card Styles */
.st_rvws-masonry-container {
  position: relative;
  margin: 0 auto;
  container-type: inline-size;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.st_rvws-masonry-container.st_rvws-masonry-ready {
  opacity: 1;
}

.st_rvws-masonry-card {
  width: calc(20% - 16px);
  background: var(--review_box-background_color, #fff);
  border-radius: var(--general-border-radius);
  border: 1px solid color-mix(in srgb, var(--text-color, #111) 10%, transparent);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 20px;
}

.st_rvws-masonry-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.st_rvws-masonry-card--has-media {
  cursor: pointer;
}

.st_rvws-masonry-image-container {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  position: relative;
}

.st_rvws-masonry-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.st_rvws-masonry-multiple-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.st_rvws-masonry-multiple-indicator svg {
  width: 16px;
  height: 16px;
}

.st_rvws-masonry-card:hover .st_rvws-masonry-image {
  transform: scale(1.05);
}

.st_rvws-masonry-content {
  padding: 20px;
}

.st_rvws-masonry-rating {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}

.st_rvws-masonry-rating svg {
  width: 18px;
  height: 18px;
}

/* Loading state - subtle opacity reduction to simulate fetching */
.st_rvws-reviews-list {
  transition: opacity 0.2s ease;
}

.st_rvws-reviews-list.st_rvws-reviews-loading {
  opacity: 0.4;
  pointer-events: none;
}

.st_rvws-masonry-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--headings-color, #111);
  margin-bottom: 8px;
  line-height: 1.3;
}

.st_rvws-masonry-text {
  font-size: var(--review_content-font_size, 14px);
  color: var(--text-color, #333);
  line-height: 1.5;
  margin-bottom: 10px;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.st_rvws-masonry-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.st_rvws-masonry-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.st_rvws-masonry-author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.st_rvws-masonry-verified-text {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-color, #111);
  white-space: nowrap;
  flex-shrink: 0;
}

.st_rvws-masonry-author-name, .st_rvws-masonry-author-name div {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color, #111);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st_rvws-masonry-verified {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.st_rvws-masonry-verified svg path:first-child {
  fill: var(--verified_badge-color, #56b942);
}

.st_rvws-masonry-verified svg path:last-child {
  fill: white;
}

.st_rvws-masonry-date {
  font-size: 12px;
  color: var(--text-color, #666);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Summary Gallery Styles */
.st_rvws-summary-gallery {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 99999999999;
  display: flex;
  align-items: center;
  justify-content: center;
  --plyr-color-main: #0000009f;
}

.st_rvws-gallery-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.st_rvws-gallery-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.st_rvws-gallery-slider {
  width: 90%;
  height: 100%;
  overflow: visible;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  position: relative;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  box-sizing: border-box;
}

.st_rvws-gallery-swiper {
  width: 100%;
  flex: 1;
  min-height: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.1);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.st_rvws-gallery-swiper .st_rvws-swiper-slide {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.9);
  opacity: 0.9;
}

.st_rvws-gallery-swiper .st_rvws-swiper-slide-active {
  transform: scale(1);
  opacity: 1;
  z-index: 2;
}

.st_rvws-gallery-swiper .st_rvws-swiper-slide-next,
.st_rvws-gallery-swiper .st_rvws-swiper-slide-prev {
  transform: scale(0.85);
  opacity: 0.4;
}

/* .st_rvws-gallery-img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: transparent;
  border-radius: var(--general-border-radius);
} */

.st_rvws-gallery-img {
  border-radius: 20px;
  /* width/height auto guards against theme resets like `img { width: 100%; height: auto }` */
  width: auto;
  height: auto;
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.st_rvws-gallery-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  width: 100%;
  z-index: 10;
}

/* Gallery Swiper button styling */
.st_rvws-gallery-swiper .st_rvws-swiper-button-next,
.st_rvws-gallery-swiper .st_rvws-swiper-button-prev {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 16px !important;
  /* background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%) !important; */
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.08) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  z-index: 10 !important;
  margin-top: 0 !important;
}



.st_rvws-gallery-swiper .st_rvws-swiper-button-prev {
  left: 30px !important;
}

.st_rvws-gallery-swiper .st_rvws-swiper-button-next {
  right: 30px !important;
}

.st_rvws-gallery-swiper .st_rvws-swiper-button-disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
}

.st_rvws-gallery-swiper .st_rvws-swiper-button-next:after,
.st_rvws-gallery-swiper .st_rvws-swiper-button-prev:after {
  color: #c7c7c7 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
}

/* Gallery close button */
.st_rvws-summary-gallery .st_rvws-lightbox-close {
  position: fixed;
  top: 30px;
  right: 30px;
  /* unscoped .st_rvws-lightbox-close media rules set left: 20px, which would win over right */
  left: auto;
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.st_rvws-summary-gallery .st_rvws-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.st_rvws-summary-gallery .st_rvws-lightbox-close svg {
  fill: white;
}

/* Gallery counter styling */
.st_rvws-gallery-controls .st_rvws-slider-counter {
  font-size: 16px;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 16px;
  border-radius: var(--general-border-radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Gallery thumbnails styling */
.st_rvws-gallery-controls .st_rvws-thumbnails-container {
  position: relative;
  transform: none;
  left: unset;
  bottom: unset;
  background: none;
  max-width: 100%;
  pointer-events: auto;
}

.st_rvws-gallery-controls .st_rvws-thumbnails {
  background: transparent;
  padding: 12px 16px;
  gap: 10px;
}

/* .st_rvws-gallery-controls .st_rvws-thumbnails-container::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(to right, rgb(25, 25, 25), transparent);
  border-radius: var(--general-border-radius) 0 0 var(--general-border-radius);
  pointer-events: none;
  z-index: 1;
}

.st_rvws-gallery-controls .st_rvws-thumbnails-container::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(to left, rgb(25, 25, 25), transparent);
  border-radius: 0 var(--general-border-radius) var(--general-border-radius) 0;
  pointer-events: none;
  z-index: 1;
} */

/* Swiper thumbnail styles for gallery */
.st_rvws-thumbnails-swiper {
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  /* Enable horizontal touch/drag */
  touch-action: pan-x;
  cursor: grab;
}

.st_rvws-thumbnails-swiper:active {
  cursor: grabbing;
}

.st_rvws-thumbnails-swiper .st_rvws-swiper-wrapper {
  display: flex;
  align-items: center;
}

/* Prevent initial animation when gallery opens - hide during positioning */
/* Using only opacity (not visibility) so Swiper can measure dimensions */
.st_rvws-thumbnails-swiper.st_rvws-swiper-initializing {
  opacity: 0;
}

.st_rvws-thumbnails-swiper.st_rvws-swiper-initializing .st_rvws-swiper-wrapper,
.st_rvws-thumbnails-swiper.st_rvws-swiper-initializing .st_rvws-swiper-wrapper * {
  transition: none !important;
}

/* Show with fade-in after initialization */
.st_rvws-thumbnails-swiper:not(.st_rvws-swiper-initializing) {
  opacity: 1;
  transition: opacity 0.2s ease-out;
}

/* Allow smooth transitions after initialization */
.st_rvws-thumbnails-swiper:not(.st_rvws-swiper-initializing) .st_rvws-swiper-wrapper {
  transition-property: transform;
  transition-duration: 300ms;
  transition-timing-function: ease-out;
}

.st_rvws-thumbnails-swiper .st_rvws-swiper-slide {
  width: 60px !important; /* Fixed width for proper centering with slidesPerView: auto */
  flex-shrink: 0;
}

.st_rvws-gallery-controls .st_rvws-thumbnails-swiper {
  background: transparent;
  padding: 12px 16px;
  backdrop-filter: blur(20px);
  /* Fixed width so Swiper has room to center edge slides */
  width: 80vw;
  max-width: 800px;
}

/* Native scroll thumbnails for gallery */
.st_rvws-thumbnails-scroll {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Styling */
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  width: 80vw;
  max-width: 800px;
  cursor: grab;
}

.st_rvws-thumbnails-scroll::-webkit-scrollbar {
  display: none;
}

.st_rvws-thumbnails-scroll:active {
  cursor: grabbing;
}

.st_rvws-thumbnails-scroll .st_rvws-thumbnail {
  scroll-snap-align: center;
  flex-shrink: 0;
}

.st_rvws-gallery-controls .st_rvws-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  /* border: 2px solid rgba(255,255,255,0.2); */
  box-shadow: 0 6px 16px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
}

.st_rvws-gallery-controls .st_rvws-thumbnail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.st_rvws-gallery-controls .st_rvws-thumbnail:hover::before {
  opacity: 1;
}

.st_rvws-gallery-controls .st_rvws-thumbnail:hover {
  transform: scale(1.05);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2), 0 4px 8px rgba(0,0,0,0.15);
}

.st_rvws-gallery-controls .st_rvws-thumbnail--active {
  border-color: rgba(255,255,255,0.8);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25), 0 6px 12px rgba(0,0,0,0.2);
}

.st_rvws-gallery-controls .st_rvws-thumbnail:hover {
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* ===== NEW GALLERY THUMBS (Fresh Swiper Setup) ===== */
.st_rvws-gallery-thumbs {
  width: 100%;
  padding: 10px 0;
  flex-shrink: 0;
  transition: opacity 0.15s ease-out;
}

/* Hide thumbs during initialization to prevent seeing the slide animation */
.st_rvws-gallery-thumbs.st_rvws-initializing {
  opacity: 0;
}

.st_rvws-gallery-thumbs.st_rvws-initializing .swiper-wrapper {
  transition: none !important;
}

.st_rvws-gallery-thumbs .swiper-slide {
  width: 60px !important;
  height: 60px;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.st_rvws-gallery-thumbs .swiper-slide-thumb-active,
.st_rvws-gallery-thumbs .st_rvws-thumb--active {
  opacity: 1;
}

.st_rvws-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.st_rvws-thumb--active {
  border-color: white;
}

.st_rvws-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.st_rvws-thumb-video {
  width: 100%;
  height: 100%;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.st_rvws-slider[data-current-slide-is-video="true"] .st_rvws-thumbnails-container {
  bottom: 55px;
  transition: bottom 0.3s ease-in-out;
}

.st_rvws-masonry-product-container {
  width: 100%;
  margin-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--text-color, #111) 10%, transparent);
  padding-top: 10px;
}

.st_rvws-masonry-product-link {
  display: flex;
  align-items: center;
  align-content: center;
  gap: 8px;
}

img.st_rvws-masonry-product-image {
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  border-radius: var(--general-border-radius);
  border: 1px dashed color-mix(in srgb, var(--text-color, #111) 40%, transparent);
  object-fit: contain;
}

.st_rvws-masonry-product-title {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-color, #040404);
}

/* Desktop styles for better image display */
@media (min-width: 769px) {
  .st_rvws-slider-img {
    height: 500px;
  }

  .st_rvws-lightbox-media {
    width: 50%;
  }

  /* Ensure close button is positioned relative to the image area on desktop */
  .st_rvws-lightbox-close {
    position: absolute;
    top: 20px;
    left: 20px;
  }
}

@container (min-width: 769px) {
  .st_rvws-slider-img {
    height: 500px;
  }

  .st_rvws-lightbox-media {
    width: 50%;
  }

  /* Ensure close button is positioned relative to the image area on desktop */
  .st_rvws-lightbox-close {
    position: absolute;
    top: 20px;
    left: 20px;
  }
}

@media (max-width: 1440px) {
  .st_rvws-masonry-card {
    width: calc(25% - 15px);
  }
}

@container (max-width: 1440px) {
  .st_rvws-masonry-card {
    width: calc(25% - 15px);
  }
}

@media (max-width: 1024px) {
  .st_rvws-masonry-card {
    width: calc(33.3333333333333% - 13px);
  }
}

@container (max-width: 1024px) {
  .st_rvws-masonry-card {
    width: calc(33.3333333333333% - 13px);
  }
}

@media (max-width: 768px) {
  .st_rvws-review-media-popup .st_rvws-lightbox-media .st_rvws-slider .st_rvws-swiper-carousel.st_rvws-widget-swiper {
    background-color: #f5f5f5 !important;
    height: auto !important;
    max-height: 80vh !important;
    min-height: 300px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  
  .st_rvws-slider-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
  
  .st_rvws-review-media-popup .st_rvws-lightbox-media .st_rvws-slider .st_rvws-swiper-slide {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .st_rvws-review-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .st_rvws-review-right {
    width: 100%;
  }

  .st_rvws-review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .st_rvws-lightbox-content img {
    max-height: 90vh;
    object-fit: cover;
  }

  .st_rvws-review-row .st_rvws-vertical-line {
    display: none !important;
  }

  .st_rvws-review-left {
    min-width: 100%;
  }
}

@container (max-width: 768px) {
  .st_rvws-review-media-popup .st_rvws-lightbox-media .st_rvws-slider .st_rvws-swiper-carousel.st_rvws-widget-swiper {
    background-color: #f5f5f5 !important;
    height: auto !important;
    max-height: 80vh !important;
    min-height: 300px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  
  .st_rvws-slider-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
  
  .st_rvws-review-media-popup .st_rvws-lightbox-media .st_rvws-slider .st_rvws-swiper-slide {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .st_rvws-review-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .st_rvws-review-right {
    width: 100%;
  }

  .st_rvws-review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .st_rvws-lightbox-content img {
    max-height: 90vh;
    object-fit: cover;
  }

  .st_rvws-review-row .st_rvws-vertical-line {
    display: none !important;
  }

  .st_rvws-review-left {
    min-width: 100%;
  }
}

@media (max-width: 768px) {
  .st_rvws-masonry-card {
    width: calc(50% - 10px);
  }

  .st_rvws-masonry-text {
    -webkit-line-clamp: unset;
    display: block;
  }

  .st_rvws-masonry-author {
    flex-direction: column;
    align-items: flex-start;
  }

  .st_rvws-masonry-image-container,
  .st_rvws-masonry-image {
    max-height: 200px;
  }

  .st_rvws-slider {
    min-height: unset;
  }

  /* Mobile fullscreen lightbox */
  .st_rvws-review-media-popup {
    align-items: stretch;
    justify-content: stretch;
    /* Use CSS environment variables for safe area */
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for modern browsers */
    height: calc(var(--vh, 1vh) * 100); /* Fallback for JS-calculated height */
  }

  .st_rvws-lightbox-container {
    width: 100%;
    max-width: none;
    max-height: none;
    height: 100%;
    border-radius: 0;
    transform: scale(1);
  }

  .st_rvws-lightbox.st_rvws-lightbox--opening .st_rvws-lightbox-container {
    transform: scale(1);
  }

  .st_rvws-lightbox.st_rvws-lightbox--closing .st_rvws-lightbox-container {
    transform: scale(1);
  }

  /* Sticky close button */
  .st_rvws-lightbox-close {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    background: rgba(38, 38, 38, 0.637);
    color: white;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  .st_rvws-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
  }

  .st_rvws-lightbox-close svg {
    fill: white;
  }

  .st_rvws-lightbox-content {
    flex-direction: column;
    max-height: unset;
    height: 100vh;
    overflow-y: auto;
  }

  .st_rvws-lightbox-media {
    flex-shrink: 0;
  }

  /* Mobile slider image adjustments */
  .st_rvws-slider-img {
    min-height: auto;
  }

  .st_rvws-review-popup-content {
    flex: 1;
    overflow-y: visible;
    padding: 20px;
    min-height: auto;
  }

  /* Mobile thumbnail adjustments */
  .st_rvws-thumbnails-container {
    bottom: 20px;
    max-width: 95%;
  }

  .st_rvws-thumbnails {
    gap: 6px;
    padding: 10px 10px;
  }

  .st_rvws-thumbnail {
    width: 50px;
    height: 50px;
  }

  .st_rvws-summary-row {
    gap: 20px;
  }

  .st_rvws-summary-row .st_rvws-vertical-line {
    display: none !important;
  }

  .st_rvws-summary-row {
    flex-direction: column;
  }

  .st_rvws-summary-center {
    width: 100%;
    max-width: 100%;
  }

  /* .st_rvws-main-container {
    padding-inline: 15px;
  } */

  .st_rvws-breakdown-toggle {
    background: transparent;
  }

  .st_rvws-breakdown-toggle:hover {
    background: transparent;
  }

  .st_rvws-breakdown-popover {
    position: static;
    margin-top: 0;
    box-shadow: none;
    border: 1px solid transparent;
    border-radius: var(--general-border-radius);
    min-width: auto;
    max-width: none;
    width: 100%;
    transform: translateY(0);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: #f8f8f8;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                margin-top 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s ease;
  }

  .st_rvws-breakdown-popover.st_rvws-breakdown-popover--visible {
    max-height: 500px;
    opacity: 1;
    margin-top: 10px;
    border-color: color-mix(in srgb, var(--text-color, #111) 10%, transparent);
  }

  .st_rvws-toolbar {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .st_rvws-toolbar-title {
    width: 100%;
    font-size: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .st_rvws-toolbar-title .st_rvws-breakdown-popover {
    flex-basis: 100%;
  }

  .st_rvws-toolbar-btns {
    width: auto;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  /* Mobile summary gallery styles */
  .st_rvws-summary-gallery .st_rvws-lightbox-close {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .st_rvws-gallery-swiper .st_rvws-swiper-button-next,
  .st_rvws-gallery-swiper .st_rvws-swiper-button-prev {
    width: 50px !important;
    height: 50px !important;
  }

  .st_rvws-gallery-swiper .st_rvws-swiper-button-prev {
    left: 15px !important;
  }

  .st_rvws-gallery-swiper .st_rvws-swiper-button-next {
    right: 15px !important;
  }

  .st_rvws-gallery-controls .st_rvws-thumbnails {
    padding: 10px 12px;
  }

  .st_rvws-gallery-video {
    min-height: 300px;
  }
}

@container (max-width: 768px) {
  .st_rvws-masonry-card {
    width: calc(50% - 10px);
  }

  .st_rvws-masonry-text {
    -webkit-line-clamp: unset;
    display: block;
  }

  .st_rvws-masonry-author {
    flex-direction: column;
    align-items: flex-start;
  }

  .st_rvws-slider {
    min-height: unset;
  }

  /* Mobile fullscreen lightbox */
  .st_rvws-review-media-popup {
    align-items: stretch;
    justify-content: stretch;
    /* Use CSS environment variables for safe area */
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for modern browsers */
    height: calc(var(--vh, 1vh) * 100); /* Fallback for JS-calculated height */
  }

  .st_rvws-lightbox-container {
    width: 100%;
    max-width: none;
    max-height: none;
    height: 100%;
    border-radius: 0;
    transform: scale(1);
  }

  .st_rvws-lightbox.st_rvws-lightbox--opening .st_rvws-lightbox-container {
    transform: scale(1);
  }

  .st_rvws-lightbox.st_rvws-lightbox--closing .st_rvws-lightbox-container {
    transform: scale(1);
  }

  /* Sticky close button */
  .st_rvws-lightbox-close {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    background: rgba(38, 38, 38, 0.637);
    color: white;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  .st_rvws-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
  }

  .st_rvws-lightbox-close svg {
    fill: white;
  }

  .st_rvws-lightbox-content {
    flex-direction: column;
    max-height: unset;
    height: 100vh;
    overflow-y: auto;
  }

  .st_rvws-lightbox-media {
    flex-shrink: 0;
  }

  /* Mobile slider image adjustments */
  .st_rvws-slider-img {
    min-height: auto;
  }

  .st_rvws-review-popup-content {
    flex: 1;
    overflow-y: visible;
    padding: 20px;
    min-height: auto;
  }

  /* Mobile thumbnail adjustments */
  .st_rvws-thumbnails-container {
    bottom: 20px;
    max-width: 95%;
  }

  .st_rvws-thumbnails {
    gap: 6px;
    padding: 10px 10px;
  }

  .st_rvws-thumbnail {
    width: 50px;
    height: 50px;
  }

  .st_rvws-summary-row {
    gap: 20px;
  }

  .st_rvws-summary-row .st_rvws-vertical-line {
    display: none !important;
  }

  .st_rvws-summary-row {
    flex-direction: column;
  }

  .st_rvws-summary-center {
    width: 100%;
    max-width: 100%;
  }

  /* .st_rvws-main-container {
    padding-inline: 15px;
  } */

  .st_rvws-breakdown-toggle {
    background: transparent;
  }

  .st_rvws-breakdown-toggle:hover {
    background: transparent;
  }

  .st_rvws-breakdown-popover {
    position: static;
    margin-top: 0;
    box-shadow: none;
    border: 1px solid transparent;
    border-radius: var(--general-border-radius);
    min-width: auto;
    max-width: none;
    width: 100%;
    transform: translateY(0);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: #f8f8f8;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                margin-top 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s ease;
  }

  .st_rvws-breakdown-popover.st_rvws-breakdown-popover--visible {
    max-height: 500px;
    opacity: 1;
    margin-top: 10px;
    border-color: color-mix(in srgb, var(--text-color, #111) 10%, transparent);
  }

  .st_rvws-toolbar {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .st_rvws-toolbar-title {
    width: 100%;
    font-size: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .st_rvws-toolbar-title .st_rvws-breakdown-popover {
    flex-basis: 100%;
  }

  .st_rvws-toolbar-btns {
    width: auto;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  /* Mobile summary gallery styles */
  .st_rvws-summary-gallery .st_rvws-lightbox-close {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .st_rvws-gallery-swiper .st_rvws-swiper-button-next,
  .st_rvws-gallery-swiper .st_rvws-swiper-button-prev {
    width: 50px !important;
    height: 50px !important;
  }

  .st_rvws-gallery-swiper .st_rvws-swiper-button-prev {
    left: 15px !important;
  }

  .st_rvws-gallery-swiper .st_rvws-swiper-button-next {
    right: 15px !important;
  }

  .st_rvws-gallery-controls .st_rvws-thumbnails {
    padding: 10px 12px;
  }

  .st_rvws-gallery-video {
    min-height: 300px;
  }
}

/* Reply UI Styles */
.st_rvws-reply-container {
  margin-top: 16px;
  padding: 12px;
  background-color: var(--store_reply-background_color, #f8f9fa);
  border-radius: var(--general-border-radius);
}

.st_rvws-reply-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.st_rvws-reply-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.st_rvws-reply-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--store_reply-label_color, #1c1c1c);
}

.st_rvws-reply-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--store_reply-label_color, #333);
}

.st_rvws-reply-date {
  font-size: 12px;
  color: var(--store_reply-text_color, #666);
  margin-left: auto;
}

.st_rvws-reply-content {
  font-size: 14px;
  line-height: 1.5;
  color: var(--store_reply-text_color, #555);
  white-space: pre-wrap;
}

/* Masonry specific reply styles */
.st_rvws-masonry-card .st_rvws-reply-container {
  margin-top: 12px;
  padding: 12px;
  font-size: 13px;
}

.st_rvws-masonry-card .st_rvws-reply-header {
  margin-bottom: 6px;
}

.st_rvws-masonry-card .st_rvws-reply-label {
  font-size: 13px;
  line-height: 1;
}

.st_rvws-masonry-card .st_rvws-reply-date {
  font-size: 11px;
}

.st_rvws-masonry-card .st_rvws-reply-content {
  font-size: 13px;
}

/* Popup specific reply styles */
.st_rvws-review-popup-content .st_rvws-reply-container {
  margin-top: 15px;
  padding: 15px;
}

.st_rvws-review-popup-content .st_rvws-reply-header {
  margin-bottom: 12px;
}

.st_rvws-review-popup-content .st_rvws-reply-label {
  font-size: 16px;
}

.st_rvws-review-popup-content .st_rvws-reply-date {
  font-size: 14px;
}

.st_rvws-review-popup-content .st_rvws-reply-content {
  font-size: 16px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .st_rvws-reply-container {
    margin-top: 12px;
    padding: 12px;
  }

  .st_rvws-reply-header {
    gap: 6px;
    margin-bottom: 6px;
  }

  .st_rvws-reply-label {
    font-size: 13px;
  }

  .st_rvws-reply-date {
    font-size: 11px;
  }

  .st_rvws-reply-content {
    font-size: 13px;
  }

  .st_rvws-review-popup-content .st_rvws-reply-container {
    margin-top: 16px;
    padding: 16px;
  }

  .st_rvws-review-popup-content .st_rvws-reply-label {
    font-size: 14px;
  }

  .st_rvws-review-popup-content .st_rvws-reply-date {
    font-size: 12px;
  }

  .st_rvws-review-popup-content .st_rvws-reply-content {
    font-size: 14px;
  }
}

@container (max-width: 768px) {
  .st_rvws-reply-container {
    margin-top: 12px;
    padding: 12px;
  }

  .st_rvws-reply-header {
    gap: 6px;
    margin-bottom: 6px;
  }

  .st_rvws-reply-label {
    font-size: 13px;
  }

  .st_rvws-reply-date {
    font-size: 11px;
  }

  .st_rvws-reply-content {
    font-size: 13px;
  }

  .st_rvws-review-popup-content .st_rvws-reply-container {
    margin-top: 16px;
    padding: 16px;
  }

  .st_rvws-review-popup-content .st_rvws-reply-label {
    font-size: 14px;
  }

  .st_rvws-review-popup-content .st_rvws-reply-date {
    font-size: 12px;
  }

  .st_rvws-review-popup-content .st_rvws-reply-content {
    font-size: 14px;
  }
}

/* Video support styles */
.st_rvws-summary-video {
  position: relative;
  background: #000;
  border-radius: var(--general-border-radius);
  overflow: hidden;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.st_rvws-video-thumbnail {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.st_rvws-video-thumbnail:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
}

.st_rvws-play-icon {
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.st_rvws-review-video {
  position: relative;
  width: var(--review_images-image_size, 56px);
  height: var(--review_images-image_size, 56px);
  background: #000;
  border-radius: var(--general-border-radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.st_rvws-masonry-video {
  position: relative;
  width: 100%;
  min-height: 200px;
  max-height: 500px;
  aspect-ratio: 1 / 1;
  background: #000;
  border-radius: var(--general-border-radius) var(--general-border-radius) 0 0;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.st_rvws-masonry-video .st_rvws-video-thumbnail {
  padding: 16px;
}

.st_rvws-thumbnail-video {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: var(--general-border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Plyr player styles */
.st_rvws-slider-video {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

.st_rvws-gallery-video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.st_rvws-gallery-container .plyr {
  width: 80%;
  height: 80%;
  border-radius: 20px;
}

.st_rvws-gallery-video.plyr-video,
.st_rvws-slider-video.plyr-video {
  background-color: #000;
}

/* Plyr control bar customization */
.st_rvws-gallery-container .plyr__controls,
.st_rvws-slider-video .plyr__controls {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)) !important;
}

.st_rvws-gallery-container .plyr__control--overlaid,
.st_rvws-slider-video .plyr__control--overlaid {
  background: rgba(0, 0, 0, 0.6);
}

.st_rvws-gallery-container .plyr__control--overlaid:hover,
.st_rvws-slider-video .plyr__control--overlaid:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Responsive video styles */
@media (max-width: 768px) {

  .st_rvws-gallery-video,
  .st_rvws-slider-video {
    height: auto;
    width: 100%;
    max-width: 100%;
    object-fit: contain;
  }

  .st_rvws-gallery-video .plyr__control--overlaid,
  .st_rvws-slider-video .plyr__control--overlaid {
    width: 60px;
    height: 60px;
  }

  .st_rvws-masonry-video {
    max-height: 350px;
  }

  .st_rvws-masonry-video .st_rvws-video-thumbnail {
    padding: 12px;
  }
}

@container (max-width: 768px) {

  .st_rvws-gallery-video,
  .st_rvws-slider-video {
    height: auto;
    width: 100%;
    max-width: 100%;
    object-fit: contain;
  }

  .st_rvws-gallery-video .plyr__control--overlaid,
  .st_rvws-slider-video .plyr__control--overlaid {
    width: 60px;
    height: 60px;
  }

  .st_rvws-masonry-video {
    max-height: 350px;
  }

  .st_rvws-masonry-video .st_rvws-video-thumbnail {
    padding: 12px;
  }
}

/* Pagination Styles */
.st_rvws-pagination-container {
  margin-top: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--horizontal_line-color, #E5E5E5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.st_rvws-pagination {
  display: flex;
  align-items: center;
  gap: 24px;
}

.st_rvws-pagination-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--button-background_color, #FFFFFF);
  border: 1px solid color-mix(in srgb, var(--text-color, #333) 20%, transparent);
  border-radius: var(--general-border-radius);
  color: var(--button-text_color, #333333);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.st_rvws-pagination-btn:hover:not([data-disabled="true"]) {
  /* background: var(--button-hover_background_color, #F5F5F5); */
  border-color: var(--button-hover_border_color, #CCCCCC);
  transform: translateY(-1px);
}

.st_rvws-pagination-btn[data-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.st_rvws-pagination-pages {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--text-color, #333333);
}

.st_rvws-pagination-current {
  font-weight: 600;
  color: var(--text-color, #000000);
}

.st_rvws-pagination-separator {
  color: var(--text-secondary_color, #666666);
}

.st_rvws-pagination-total {
  font-weight: 500;
}

.st_rvws-pagination-info {
  font-size: 14px;
  color: var(--text-secondary_color, #666666);
  text-align: center;
  display: flex;
  gap: 4px;
}

.st_rvws-current-count {
  color: var(--text-secondary_color, #666666);
}

/* Load More Button Styles */
.st_rvws-load-more-container {
  margin-top: 0px;
  padding: 24px 0;
  border-top: 1px solid var(--horizontal_line-color, #E5E5E5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.st_rvws-main-container[data-reviews-layout="split"] .st_rvws-pagination-container,
.st_rvws-main-container[data-reviews-layout="line"] .st_rvws-pagination-container,
.st_rvws-main-container[data-reviews-layout="line"] .st_rvws-masonry-product-container,
.st_rvws-main-container[data-reviews-layout="split"] .st_rvws-masonry-product-container {
  border-top: none;
}

.st_rvws-load-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--button-background_color, #FFFFFF);
  border: 1px solid color-mix(in srgb, var(--text-color, #333) 20%, transparent);
  border-radius: var(--general-border-radius);
  color: var(--button-text_color, #333333);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  min-width: 140px;
}

.st_rvws-load-more-text {
  display: inline;
  color: var(--button-text_color, #333333);
}

.st_rvws-load-more-spinner {
  display: none;
  align-items: center;
  justify-content: center;
}

.st_rvws-load-more-spinner svg {
  width: 20px;
  height: 20px;
  animation: rotate 1s linear infinite;
  transform-origin: center center;
  display: block;
}

/* Mobile Responsive Pagination */
@media (max-width: 768px) {
  .st_rvws-pagination-container {
    margin-top: 24px;
    padding: 20px 0;
    gap: 12px;
  }

  .st_rvws-pagination {
    gap: 16px;
  }

  .st_rvws-pagination-btn {
    padding: 10px 16px;
    font-size: 14px;
    gap: 6px;
  }

  .st_rvws-pagination-btn svg {
    width: 14px;
    height: 14px;
  }

  .st_rvws-pagination-pages {
    font-size: 14px;
    gap: 6px;
  }

  .st_rvws-pagination-info {
    font-size: 13px;
    display: flex;
    gap: 4px;
  }

  .st_rvws-load-more-container {
    margin-top: 24px;
    padding: 20px 0;
    gap: 12px;
  }

  .st_rvws-load-more-btn {
    padding: 14px 24px;
    font-size: 14px;
    min-height: 48px;
    min-width: 140px;
    gap: 10px;
  }

  .st_rvws-load-more-spinner svg {
    width: 18px;
    height: 18px;
  }
}

@container (max-width: 768px) {
  .st_rvws-pagination-container {
    margin-top: 24px;
    padding: 20px 0;
    gap: 12px;
  }

  .st_rvws-pagination {
    gap: 16px;
  }

  .st_rvws-pagination-btn {
    padding: 10px 16px;
    font-size: 14px;
    gap: 6px;
  }

  .st_rvws-pagination-btn svg {
    width: 14px;
    height: 14px;
  }

  .st_rvws-pagination-pages {
    font-size: 14px;
    gap: 6px;
  }

  .st_rvws-pagination-info {
    font-size: 13px;
    display: flex;
    gap: 4px;
  }

  .st_rvws-load-more-container {
    margin-top: 24px;
    padding: 20px 0;
    gap: 12px;
  }

  .st_rvws-load-more-btn {
    padding: 14px 24px;
    font-size: 14px;
    min-height: 48px;
    min-width: 140px;
    gap: 10px;
  }

  .st_rvws-load-more-spinner svg {
    width: 18px;
    height: 18px;
  }
}

/* Hide pagination when not needed */
.st_rvws-pagination-container[style*="display: none"] {
  display: none !important;
}

.st_rvws-review-box {
  background: var(--review_box-background_color, #f9fafb);
  border-radius: var(--general-border-radius);
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid color-mix(in srgb, var(--text-color, #111) 8%, transparent);
}

/* Mobile Sorting Icon Styles */
.st_rvws-sort-mobile-icon {
  display: none !important; /* Force hide by default */
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--text-color, #111) 20%, transparent);
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
  line-height: 1;
}

.st_rvws-sort-mobile-icon:hover {
  background-color: color-mix(in srgb, var(--text-color, #111) 5%, transparent);
  border-color: color-mix(in srgb, var(--text-color, #111) 30%, transparent);
}

.st_rvws-sort-mobile-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--text-color, #111);
}

.st_rvws-sort-mobile-options {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--general-border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 200px;
  overflow: hidden;
  margin-top: 4px;
}

.st_rvws-sort-mobile-option {
  padding: 12px 16px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background-color 0.2s;
}

.st_rvws-sort-mobile-option:last-child {
  border-bottom: none;
}

.st_rvws-sort-mobile-option:hover {
  background-color: #f5f5f5;
}

.st_rvws-sort-mobile-option.selected {
  background-color: #ebebeb;
  font-weight: 600;
}

/* Mobile Media Queries */
@media (max-width: 768px) {
  .st_rvws-sort-dropdown-wrapper {
    display: none !important;
  }
  
  .st_rvws-sort-mobile-icon {
    display: block !important;
  }
  
  .st_rvws-sort-container {
    position: relative;
  }
  
  .st_rvws-toolbar-btns {
    position: relative;
  }
}

@container (max-width: 768px) {
  .st_rvws-sort-dropdown-wrapper {
    display: none !important;
  }
  
  .st_rvws-sort-mobile-icon {
    display: block !important;
  }
  
  .st_rvws-sort-container {
    position: relative;
  }
  
  .st_rvws-toolbar-btns {
    position: relative;
  }
}