/* ============================================================
   Đồng phục Core – Đánh Giá Khách Hàng
   Shortcode: [danh_gia_khach_hang]
   ============================================================ */

.rvw-section *,
.rvw-section *::before,
.rvw-section *::after { box-sizing: border-box; }

/* ── Section ─────────────────────────────────────────────── */
.rvw-section {
  font-family: 'Be Vietnam Pro', 'SVN-Gilroy', sans-serif;
  padding: 48px 24px;
  max-width: 680px;
  margin: 0 auto;
}

/* ── Title ───────────────────────────────────────────────── */
.rvw-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: #111;
  line-height: 1.25;
  margin: 0 0 32px;
  letter-spacing: -0.3px;
}

/* ── Wrapper (relative, contains prev btn + track) ───────── */
.rvw-wrapper {
  position: relative;
}

/* ── Track outer (clips overflow) ───────────────────────── */
.rvw-track-outer {
  overflow: hidden;
  border-radius: 12px;
}

/* ── Track (slides container) ────────────────────────────── */
.rvw-track {
  position: relative;
  min-height: 60px;
}

/* ── Single slide ────────────────────────────────────────── */
.rvw-slide {
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: rvwFadeIn .35s ease;
}
.rvw-slide--active { display: flex; }

@keyframes rvwFadeIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: none; }
}

/* ── Slide head: person info + quote icon ────────────────── */
.rvw-slide__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 4px;
}

.rvw-slide__person {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

/* Avatar */
.rvw-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #e8eef8;
}
.rvw-avatar img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  border-radius: 50%;
}
.rvw-avatar__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.rvw-avatar__placeholder svg { width: 100%; height: 100%; }

/* Meta: name / position / stars */
.rvw-slide__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 4px;
}
.rvw-slide__name {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}
.rvw-slide__pos {
  font-size: 13px;
  color: #777;
  line-height: 1.4;
}

/* Stars */
.rvw-stars {
  display: flex;
  gap: 2px;
  margin-top: 4px;
}
.rvw-star {
  font-size: 18px;
  color: #ddd;
  line-height: 1;
}
.rvw-star--on { color: #f5a623; }

/* Quote icon */
.rvw-quote-icon {
  flex-shrink: 0;
  opacity: 0.85;
  margin-top: 6px;
}

/* ── Slide body: content card ────────────────────────────── */
.rvw-slide__body {
  background: #f5f7fb;
  border-radius: 12px;
  padding: 24px 28px;
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: stretch;
}

.rvw-slide__text {
  font-size: 14px;
  color: #444;
  line-height: 1.75;
  margin: 0;
  flex: 1;
  padding-right: 52px; /* room for next button */
}

/* ── Navigation buttons ──────────────────────────────────── */
.rvw-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #ccc;
  background: #fff;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .2s, color .2s, box-shadow .2s, opacity .25s, visibility .25s;
  z-index: 10;
}
.rvw-btn:hover {
  border-color: #111;
  color: #111;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

/* Hidden state */
.rvw-btn--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Prev: absolute left of the card, vertically centred on body */
.rvw-btn--prev {
  left: -22px;
  /* vertically centred on the body block – adjusted via JS or fixed offset */
  bottom: calc(120px / 2 - 22px); /* approx center of min body height */
}

/* Next: absolute inside the card, right side, vertically centred */
.rvw-btn--next {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .rvw-section { padding: 36px 16px; }
  .rvw-slide__body { padding: 18px 20px; }
  .rvw-slide__text { font-size: 13px; padding-right: 48px; }
  .rvw-btn--prev { left: -16px; }
  .rvw-avatar { width: 56px; height: 56px; }
  .rvw-slide__name { font-size: 14px; }
}
