.sl-star--active {
  color: inherit;
}
.sl-star--inactive {
  color: #d9d9d9;
}

@media (max-width: 1024px) {
  .sl-product-reviews {
    padding-left: 15px;
    padding-right: 15px;
  }
}
.sl-product-reviews__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.sl-product-reviews__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #111;
}
.sl-product-reviews__header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 768px) {
  .sl-product-reviews__header-actions {
    justify-content: space-between;
    width: 100%;
    margin-top: 4px;
  }
}
@media (max-width: 480px) {
  .sl-product-reviews__header-actions {
    justify-content: center;
  }
}
.sl-product-reviews__view-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #fce4f3;
  color: #e91e8c;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.sl-product-reviews__view-btn:hover {
  background: #f7cae5;
  color: #d8147d;
}
.sl-product-reviews__view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #e91e8c;
  text-decoration: none;
  transition: color 0.2s;
}
.sl-product-reviews__view-all-btn:hover {
  color: #c0166c;
}
.sl-product-reviews__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .sl-product-reviews__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .sl-product-reviews__grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    /* Room for scrollbar/shadows */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
  }
  .sl-product-reviews__grid::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for cleaner look */
  }
}
.sl-product-reviews__card {
  background: #fafafa;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 16px;
  transition: box-shadow 0.3s ease;
  position: relative;
}
@media (max-width: 768px) {
  .sl-product-reviews__card {
    flex: 0 0 calc(100% - 40px);
    /* Fill most of screen but show edge of next card */
    min-width: 280px;
    scroll-snap-align: center;
    /* Snap to center */
  }
}
.sl-product-reviews__card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.sl-product-reviews__content-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sl-product-reviews__content-right {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
}
.sl-product-reviews__content-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.sl-product-reviews__header-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.sl-product-reviews__stars {
  color: #f7921e;
  font-size: 14px;
  letter-spacing: 2px;
}
.sl-product-reviews__stars-value {
  color: #333;
  font-weight: 600;
  margin-left: 4px;
  font-size: 14px;
  letter-spacing: 0;
}
.sl-product-reviews__meta {
  color: #999;
  font-size: 13px;
  margin: 0;
}
.sl-product-reviews__review-text {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
.sl-product-reviews__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sl-product-reviews__page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #555;
  background: #f0f0f0;
  transition: all 0.25s ease;
}
.sl-product-reviews__page-btn:hover {
  background: #e91e8c;
  color: #fff;
}
.sl-product-reviews__page-btn--active {
  background: #e91e8c;
  color: #fff;
}
.sl-product-reviews__page-btn--arrow {
  font-size: 16px;
  font-weight: 400;
  background: #f0f0f0;
}
@media (max-width: 768px) {
  .sl-product-reviews__page-btn {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
}

.sl-product-reviews-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sl-product-reviews-modal.sl-active {
  opacity: 1;
  visibility: visible;
}
.sl-product-reviews-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
.sl-product-reviews-modal__inner {
  position: relative;
  background: #fff;
  width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  flex: 1;
  min-width: 0;
}
@media (max-width: 768px) {
  .sl-product-reviews-modal__inner {
    flex-direction: column;
    overflow-y: auto;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    flex: 1;
  }
}
.sl-product-reviews-modal__shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 82%;
  max-width: 880px;
}
@media (max-width: 768px) {
  .sl-product-reviews-modal__shell {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    background: #fff;
    border-radius: 0;
    margin: 0;
    padding: 0;
  }
}
.sl-product-reviews-modal__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 68px 10px 68px;
}
@media (max-width: 768px) {
  .sl-product-reviews-modal__topbar {
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 20;
    justify-content: center;
  }
}
.sl-product-reviews-modal__view-all {
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  padding: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.sl-product-reviews-modal__view-all:hover {
  opacity: 0.8;
  color: #ffffff !important;
}
@media (max-width: 768px) {
  .sl-product-reviews-modal__view-all {
    display: none !important;
  }
}
.sl-product-reviews-modal__nav-label {
  font-size: 15px;
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.sl-product-reviews-modal__nav-label strong {
  color: #fff;
  font-weight: 700;
  font-size: 17px;
}
@media (max-width: 768px) {
  .sl-product-reviews-modal__nav-label {
    color: #111;
    text-shadow: none;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    text-align: center;
    position: relative;
    display: block;
  }
  .sl-product-reviews-modal__nav-label strong {
    color: #111;
  }
}
.sl-product-reviews-modal__back-arrow {
  display: none;
}
@media (max-width: 768px) {
  .sl-product-reviews-modal__back-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    z-index: 5;
    font-weight: 400;
  }
}
.sl-product-reviews-modal__view-all-bottom {
  display: none;
}
@media (max-width: 768px) {
  .sl-product-reviews-modal__view-all-bottom {
    display: block;
    width: calc(100% - 32px);
    margin: 16px;
    padding: 14px;
    text-align: center;
    background: #fff;
    border: 1px solid #ddd;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    order: 4;
    transition: background 0.2s;
  }
  .sl-product-reviews-modal__view-all-bottom:active {
    background: #f5f5f5;
  }
}
.sl-product-reviews-modal--gallery .sl-product-reviews-modal__review-panel {
  display: none !important;
}
.sl-product-reviews-modal--gallery .sl-product-reviews-modal__gallery-panel {
  display: flex !important;
}
.sl-product-reviews-modal--gallery .sl-product-reviews-modal__view-all {
  display: none !important;
}
.sl-product-reviews-modal__review-panel {
  display: block;
}
@media (max-width: 768px) {
  .sl-product-reviews-modal__review-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }
}
.sl-product-reviews-modal__gallery-panel {
  display: none;
  position: relative;
  background: #fff;
  width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 44px 16px 16px 16px;
}
.sl-product-reviews-modal__gallery-panel .sl-product-reviews-modal__close--gallery {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 28px;
  height: 28px;
  background: #fce4f3;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: #e91e8c;
  z-index: 10;
  transition: background 0.2s ease, color 0.2s ease;
}
.sl-product-reviews-modal__gallery-panel .sl-product-reviews-modal__close--gallery:hover {
  background: #f7cae5;
  color: #d8147d;
}
.sl-product-reviews-modal__gallery-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: calc((min(880px, 82vw) - 32px) / 7);
  gap: 2px;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
@media (max-width: 1024px) {
  .sl-product-reviews-modal__gallery-grid {
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: calc((min(880px, 82vw) - 32px) / 5);
  }
}
@media (max-width: 768px) {
  .sl-product-reviews-modal__gallery-grid {
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: calc((94vw - 32px) / 5);
  }
}
@media (max-width: 600px) {
  .sl-product-reviews-modal__gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: calc((94vw - 32px) / 3);
  }
}
.sl-product-reviews-modal__gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 0;
  background: #f5f5f5;
}
.sl-product-reviews-modal__gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}
.sl-product-reviews-modal__gallery-item:hover img {
  opacity: 0.85;
}
.sl-product-reviews-modal__gallery-count {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
}
.sl-product-reviews-modal__gallery-loader {
  display: none;
  text-align: center;
  padding: 16px;
  flex-shrink: 0;
}
.sl-product-reviews-modal__gallery-loader span {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid #f0f0f0;
  border-top-color: #e91e8c;
  border-radius: 50%;
  animation: sl-spin 0.7s linear infinite;
}
.sl-product-reviews-modal__wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}
@media (max-width: 768px) {
  .sl-product-reviews-modal__wrapper {
    flex: 1;
    align-items: stretch;
    gap: 0;
    min-height: 0;
  }
}
.sl-product-reviews-modal__nav-prev, .sl-product-reviews-modal__nav-next {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  z-index: 3;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.sl-product-reviews-modal__nav-prev:hover:not(:disabled), .sl-product-reviews-modal__nav-next:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.35);
}
.sl-product-reviews-modal__nav-prev:disabled, .sl-product-reviews-modal__nav-next:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}
@media (max-width: 768px) {
  .sl-product-reviews-modal__nav-prev, .sl-product-reviews-modal__nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    font-size: 16px;
    background: transparent;
    color: #333;
  }
  .sl-product-reviews-modal__nav-prev:hover:not(:disabled), .sl-product-reviews-modal__nav-next:hover:not(:disabled) {
    background: #f0f0f0;
  }
  .sl-product-reviews-modal__nav-prev:disabled, .sl-product-reviews-modal__nav-next:disabled {
    opacity: 0.15;
  }
}
@media (max-width: 768px) {
  .sl-product-reviews-modal__nav-prev {
    left: 8px;
  }
}
@media (max-width: 768px) {
  .sl-product-reviews-modal__nav-next {
    right: 8px;
  }
}
.sl-product-reviews-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.07);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  color: #666;
  z-index: 25;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.sl-product-reviews-modal__close:hover {
  background: rgba(0, 0, 0, 0.13);
  color: #111;
}
@media (max-width: 768px) {
  .sl-product-reviews-modal__close {
    display: none !important;
  }
}
.sl-product-reviews-modal__image {
  flex: 1;
  max-width: 50%;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.sl-product-reviews-modal__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sl-product-reviews-modal__image--empty {
  display: none !important;
}
@media (max-width: 768px) {
  .sl-product-reviews-modal__image {
    display: none !important;
  }
}
.sl-product-reviews-modal__content {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #fff;
}
@media (max-width: 768px) {
  .sl-product-reviews-modal__content {
    padding: 0;
    overflow-y: visible;
  }
}
.sl-product-reviews-modal__body {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
@media (max-width: 768px) {
  .sl-product-reviews-modal__body {
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}
.sl-product-reviews-modal__header-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}
@media (max-width: 768px) {
  .sl-product-reviews-modal__header-info {
    order: 1;
    padding: 16px;
    margin: 0;
    border-bottom: none;
  }
}
.sl-product-reviews-modal__avatar {
  width: 48px;
  height: 48px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #999;
}
.sl-product-reviews-modal__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sl-product-reviews-modal__stars {
  color: #f7921e;
  font-size: 16px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
}
.sl-product-reviews-modal__stars-val {
  color: #333;
  font-size: 16px;
  font-weight: 600;
  margin-left: 6px;
  letter-spacing: 0;
}
.sl-product-reviews-modal__author-date {
  font-size: 13px;
  color: #777;
}
.sl-product-reviews-modal__text {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  flex: 1;
}
.sl-product-reviews-modal__text img {
  display: none !important;
}
@media (max-width: 768px) {
  .sl-product-reviews-modal__text {
    order: 3;
    padding: 16px;
    font-size: 16px;
    flex: none;
  }
}
.sl-product-reviews-modal__thumbnails {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
@media (max-width: 768px) {
  .sl-product-reviews-modal__thumbnails {
    order: 2;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    margin-top: 0;
  }
}
.sl-product-reviews-modal__thumb {
  width: 56px;
  height: 56px;
  cursor: pointer;
  overflow: hidden;
  border-radius: 6px;
  border: 2px solid #ddd;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.55;
  flex-shrink: 0;
}
.sl-product-reviews-modal__thumb img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover;
}
.sl-product-reviews-modal__thumb:hover {
  opacity: 1;
  border-color: #999;
}
.sl-product-reviews-modal__thumb--active {
  opacity: 1;
  border-color: #111;
}
@media (max-width: 768px) {
  .sl-product-reviews-modal__thumb {
    width: 100%;
    height: auto;
    border-radius: 0;
    border: none;
    opacity: 1 !important;
    margin-bottom: 8px;
  }
  .sl-product-reviews-modal__thumb--active {
    border: none;
  }
  .sl-product-reviews-modal__thumb img {
    height: auto !important;
    object-fit: contain;
  }
}

@keyframes sl-spin {
  to {
    transform: rotate(360deg);
  }
}