/* RSL Google Reviews Widget — v1.0 */
.rsl-reviews {
  --rsl-bg: #ffffff;
  --rsl-text: #333333;
  --rsl-star: #f5a623;
  --rsl-border: #e0e0e0;
  --rsl-radius: 8px;
  --rsl-shadow: 0 2px 8px rgba(0,0,0,.08);
  --rsl-cols: 3;
  box-sizing: border-box;
  font-family: inherit;
  color: var(--rsl-text);
}
.rsl-reviews *, .rsl-reviews *::before, .rsl-reviews *::after { box-sizing: border-box; }

/* Grid */
.rsl-reviews--grid .rsl-reviews__wrap {
  display: grid;
  grid-template-columns: repeat(var(--rsl-cols), 1fr);
  gap: 16px;
}
/* List */
.rsl-reviews--list .rsl-reviews__wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* Carousel */
.rsl-reviews--carousel .rsl-reviews__track {
  position: relative;
  overflow: hidden;
  padding: 0 40px;
}
.rsl-reviews--carousel .rsl-reviews__slides {
  display: flex;
  gap: 16px;
  transition: transform .4s ease;
}
.rsl-reviews--carousel .rsl-review-card {
  flex: 0 0 calc((100% - 16px * (var(--rsl-cols) - 1)) / var(--rsl-cols));
  min-width: 0;
}
.rsl-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--rsl-bg);
  border: 1px solid var(--rsl-border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--rsl-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rsl-text);
}
.rsl-carousel-btn--prev { left: 0; }
.rsl-carousel-btn--next { right: 0; }

/* Card */
.rsl-review-card {
  background: var(--rsl-bg);
  color: var(--rsl-text);
  border: 1px solid var(--rsl-border);
  border-radius: var(--rsl-radius);
  box-shadow: var(--rsl-shadow);
  padding: 18px;
}
.rsl-review-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.rsl-review-card__author { font-weight: 600; font-size: .95em; }
.rsl-star { color: #ddd; }
.rsl-star--on { color: var(--rsl-star); }
.rsl-review-card__date { font-size: .78em; opacity: .6; margin-bottom: 8px; }
.rsl-review-card__text { font-size: .9em; line-height: 1.55; }
.rsl-review-card__reply {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(0,0,0,.04);
  border-radius: calc(var(--rsl-radius) / 2);
  font-size: .82em;
}
.rsl-review-card__reply-label { font-weight: 600; display: block; margin-bottom: 3px; }

/* Dark theme */
.rsl-reviews--dark { --rsl-bg: #1e1e1e; --rsl-text: #f0f0f0; --rsl-border: #333; }
.rsl-reviews--dark .rsl-review-card__reply { background: rgba(255,255,255,.06); }

/* Responsive */
@media (max-width: 900px) {
  .rsl-reviews--grid .rsl-reviews__wrap { grid-template-columns: repeat(min(var(--rsl-cols), 2), 1fr); }
  .rsl-reviews--carousel .rsl-review-card { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 540px) {
  .rsl-reviews--grid .rsl-reviews__wrap { grid-template-columns: 1fr; }
  .rsl-reviews--carousel .rsl-review-card { flex-basis: 100%; }
}
