.rk-reviews-section {
  padding: 24px 16px 0;
}

.rk-reviews-header {
  text-align: center;
  margin-bottom: 16px;
}

.rk-reviews-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 12px;
}

.rk-reviews-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.rk-avg {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin-left: 8px;
}

.rk-count {
  font-size: 14px;
  color: #6b7280;
  margin-left: 4px;
}

/* ---- Infinite marquee scroll ---- */
.rk-reviews-scroll-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.rk-reviews-scroll {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: rk-marquee 40s linear infinite;
}

.rk-reviews-scroll-wrapper:hover .rk-reviews-scroll {
  animation-play-state: paused;
}

@keyframes rk-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- Review card ---- */
.rk-review-card {
  min-width: 260px;
  max-width: 260px;
  flex-shrink: 0;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.rk-review-main-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.rk-review-content {
  min-width: 0;
  flex: 1 1 auto;
}

.rk-card-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
}

.rk-review-text {
  font-size: 13px;
  color: #1f2937;
  line-height: 1.5;
  margin: 0;
  overflow-wrap: anywhere;
}

/* Small review photo shown on the right side of the card */
.rk-review-image-button {
  width: 72px;
  height: 72px;
  min-width: 72px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  overflow: hidden;
  background: #f3f4f6;
  cursor: zoom-in;
  display: block;
}

.rk-review-image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s ease;
}

.rk-review-image-button:hover img {
  transform: scale(1.04);
}

.rk-review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.rk-review-name {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
}

.rk-review-time {
  font-size: 12px;
  color: #6b7280;
}

.rk-star {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.rk-star-filled {
  fill: #facc15;
}

.rk-star-empty {
  fill: #e5e7eb;
}

/* ---- Click-to-enlarge image lightbox ---- */
.rk-review-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .82);
  cursor: zoom-out;
}

.rk-review-lightbox.is-open {
  display: flex;
}

.rk-review-lightbox img {
  display: block;
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
  cursor: default;
}

.rk-review-lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 32px;
  line-height: 38px;
  cursor: pointer;
}

.rk-review-lightbox-close:hover {
  background: rgba(255, 255, 255, .22);
}

@media (max-width: 480px) {
  .rk-review-card {
    min-width: 280px;
    max-width: 280px;
  }

  .rk-review-image-button {
    width: 68px;
    height: 68px;
    min-width: 68px;
  }
}
