/* ==========================================================================
   REVIEWS - port layout Loox, viet mobile-first.

   Bang mau: ban dau khoi nay de nen trang + card trang + vien rat mo
   (rgba(43,9,9,.1)) nen nhin "trang tron", khong co diem nhan. Nay:
     - section dung nen --alt (#faf5f5), card trang noi len tren
     - summary to mau brand, chu trang -> hut mat ngay khi cuon toi
     - avatar / chip dang chon / nut dung gradient brand
   Chi dung token co san trong style.css, khong che mau moi.
   ========================================================================== */

.rv-reviews {
  --rv-star: #f5a623;
  --rv-line: rgba(43, 9, 9, .12);
  --rv-muted: #6b6b6b;
  --rv-card-shadow: 0 1px 2px rgba(43, 9, 9, .04), 0 4px 16px rgba(43, 9, 9, .05);

  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

/* Nen hong nhat cho rieng khoi review.
   Section nay phai giu alt=false de nhip nen sang/toi xen ke cua ca trang
   khong bi vo, nhung card lai mau trang -> trang tren trang, khong thay khoi.
   To nen o day, keo tran ra het chieu rong khung noi dung. */
.rovina-reviews {
  padding: 26px 18px 30px;
  margin-top: 22px;
  border-radius: 16px;
  background: #faf5f5;
  border: 1px solid rgba(43, 9, 9, .07);
}

@media (max-width: 749px) {
  .rovina-reviews {
    /* Tran het chieu rong man hinh cho thoang. */
    margin-left: -16px;
    margin-right: -16px;
    padding: 22px 16px 26px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
}

/* --- Sao dung chung ------------------------------------------------------ */
.rv-stars {
  display: inline-flex;
  gap: 2px;
  line-height: 1;
  white-space: nowrap;
}

.rv-stars__s {
  color: #dcd3d3;
  font-size: 15px;
}

.rv-stars__s.is-on { color: var(--rv-star); }

/* Sao le: to mau mot phan (4.80 sao -> sao thu 5 day 80%).
   Dung background-clip de khong can SVG hay ky tu nua-sao. */
.rv-stars__s--half {
  background: linear-gradient(
    90deg,
    var(--rv-star) var(--rv-fill, 50%),
    #dcd3d3 var(--rv-fill, 50%)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rv-stars--sm .rv-stars__s { font-size: 14px; }
.rv-stars--lg .rv-stars__s { font-size: 22px; }

/* ==========================================================================
   1. Summary - khoi brand, hut mat
   ========================================================================== */
.rv-sum {
  display: grid;
  gap: 20px;
  padding: 22px 20px;
  border-radius: var(--rovina-radius-card, 12px);
  background: linear-gradient(145deg, #933333 0%, #7a2a2a 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(147, 51, 51, .22);
}

.rv-sum__score { text-align: center; }

.rv-sum__avg {
  font-family: var(--rovina-font-head);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  letter-spacing: -.02em;
}

.rv-sum__score .rv-stars { margin: 10px 0 7px; }

/* Tren nen do, sao chua to phai sang hon mau xam mac dinh. */
.rv-sum__score .rv-stars__s { color: rgba(255, 255, 255, .34); }
.rv-sum__score .rv-stars__s.is-on { color: #ffc24d; }

.rv-sum__score .rv-stars__s--half {
  background: linear-gradient(
    90deg,
    #ffc24d var(--rv-fill, 50%),
    rgba(255, 255, 255, .34) var(--rv-fill, 50%)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rv-sum__count {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .82);
}

.rv-sum__bars {
  display: grid;
  gap: 7px;
}

/* 1 dong phan bo = nut bam loc theo so sao. */
.rv-bar {
  display: grid;
  grid-template-columns: 34px 1fr 26px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 32px;
  padding: 3px 6px;
  border: 0;
  border-radius: 7px;
  background: none;
  font-family: inherit;
  cursor: pointer;
  transition: background .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.rv-bar[disabled] { cursor: default; opacity: .42; }
.rv-bar:not([disabled]):hover { background: rgba(255, 255, 255, .13); }
.rv-bar.is-on { background: rgba(255, 255, 255, .2); }

.rv-bar__n {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.rv-bar__star { color: #ffc24d; font-size: 11px; }

.rv-bar__track {
  height: 9px;
  border-radius: 100px;
  background: rgba(0, 0, 0, .22);
  overflow: hidden;
}

.rv-bar__fill {
  display: block;
  height: 100%;
  border-radius: 100px;
  background: #ffc24d;
  transition: width .5s ease;
}

.rv-bar__c {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .82);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rv-bar:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ==========================================================================
   2. Dai anh khach gui - cuon ngang
   ========================================================================== */
.rv-strip { margin-top: 18px; }

.rv-strip__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 9px;
}

.rv-strip__title {
  font-family: var(--rovina-font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--rovina-dark);
  margin: 0;
}

.rv-strip__count { font-size: 13px; color: var(--rv-muted); }

.rv-strip__track {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.rv-strip__track::-webkit-scrollbar { display: none; }

.rv-strip__item {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 10px;
  overflow: hidden;
  background: #efe6e6;
  cursor: zoom-in;
  scroll-snap-align: start;
  box-shadow: var(--rv-card-shadow);
  transition: transform .18s ease;
}

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

.rv-strip__item:hover { transform: translateY(-2px); }
.rv-strip__item:focus-visible { outline: 2px solid var(--rovina-primary); outline-offset: 2px; }

/* ==========================================================================
   3. Thanh cong cu: chip loc + sort
   ========================================================================== */
.rv-tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 16px;
}

.rv-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 4px;
  margin: -2px -2px -4px;
}

.rv-chips::-webkit-scrollbar { display: none; }

.rv-chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid var(--rv-line);
  border-radius: 100px;
  background: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--rovina-dark);
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease,
    color .18s ease, box-shadow .18s ease;
}

.rv-chip:hover { border-color: var(--rovina-primary); }

.rv-chip.is-on {
  background: var(--rovina-primary);
  border-color: var(--rovina-primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(147, 51, 51, .28);
}

.rv-chip:focus-visible { outline: 2px solid var(--rovina-primary); outline-offset: 2px; }

.rv-sort { display: block; }

.rv-sort select {
  width: 100%;
  min-height: 44px;
  padding: 10px 36px 10px 13px;
  border: 1px solid var(--rv-line);
  border-radius: var(--rovina-radius-input, 8px);
  background: #fff
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%232b0909' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E")
    no-repeat right 13px center;
  background-size: 11px;
  font-family: inherit;
  font-size: 14px;
  color: var(--rovina-dark);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.rv-sort select:focus-visible { outline: 2px solid var(--rovina-primary); outline-offset: 1px; }

/* ==========================================================================
   4. Danh sach review
   ========================================================================== */
.rv-list {
  display: grid;
  gap: 12px;
  transition: opacity .18s ease;
}

.rv-list.is-busy { opacity: .45; pointer-events: none; }

.rv-rv {
  padding: 17px 16px;
  background: #fff;
  border: 1px solid var(--rv-line);
  border-radius: var(--rovina-radius-card, 12px);
  box-shadow: var(--rv-card-shadow);
}

.rv-rv__head {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.rv-rv__ava {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #a44545, #7a2a2a);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}

.rv-rv__who { min-width: 0; }

.rv-rv__name {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--rovina-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Badge "Verified Buyer" dang pill - de doc hon chu xanh tron. */
.rv-rv__vf {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  padding: 2px 8px 2px 5px;
  border-radius: 100px;
  background: #e7f4ec;
  font-size: 11px;
  font-weight: 600;
  color: #1f6b41;
}

.rv-rv__vf-ico {
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #2e7d4f;
  color: #fff;
  font-size: 8px;
  line-height: 1;
}

.rv-rv__date {
  font-size: 12px;
  color: #9a9090;
  white-space: nowrap;
  align-self: start;
  padding-top: 3px;
}

.rv-rv__text {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.62;
  color: #3f3636;
  overflow-wrap: break-word;
}

.rv-rv__text p { margin: 0 0 8px; }
.rv-rv__text p:last-child { margin-bottom: 0; }

/* Review dai: cat 5 dong, nut "Read more" mo het. */
.rv-rv__text.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rv-rv__more {
  margin-top: 6px;
  padding: 4px 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rovina-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* Nhieu anh trong 1 review. */
.rv-rv__imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.rv-rv__img {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #efe6e6;
  cursor: zoom-in;
  width: 104px;
  height: 104px;
}

.rv-rv__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.rv-rv__img:hover img { transform: scale(1.05); }

.rv-rv__img:focus-visible,
.rv-rv__more:focus-visible { outline: 2px solid var(--rovina-primary); outline-offset: 2px; }

/* Review chi co sao (13/20 review Loox khong kem chu): card thap hon,
   nen mo hon de khong "canh tranh" voi review co noi dung that. */
.rv-rv--short {
  padding: 13px 16px;
  background: #fdfbfb;
  box-shadow: none;
}

.rv-rv--short .rv-rv__head { margin-bottom: 4px; }

/* Review dang cho duyet (khach vua gui, co anh). */
.rv-rv--pending {
  border-style: dashed;
  border-color: var(--rovina-primary);
  background: #fffaf5;
}

.rv-rv__pending {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 100px;
  background: #fde9d6;
  font-size: 11.5px;
  font-weight: 600;
  color: #8a4b12;
}

/* ==========================================================================
   5. Load more / trang thai rong / thong bao
   ========================================================================== */
.rv-more { margin-top: 16px; text-align: center; }

.rv-more__btn {
  width: 100%;
  min-height: 48px;
  padding: 13px 24px;
  border: 1.5px solid var(--rovina-primary);
  border-radius: var(--rovina-radius-button, 10px);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--rovina-primary);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.rv-more__btn:hover { background: var(--rovina-primary); color: #fff; }
.rv-more__btn[disabled] { opacity: .6; cursor: default; }

.rv-empty,
.rv-note {
  margin: 18px 0 0;
  text-align: center;
  font-size: 14.5px;
  color: var(--rv-muted);
}

/* Bao da gui review thanh cong (cho duyet). */
.rv-flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--rovina-radius-card, 12px);
  background: #e7f4ec;
  border: 1px solid #b6ddc6;
  font-size: 14px;
  line-height: 1.55;
  color: #1f6b41;
}

.rv-flash__ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: #2e7d4f;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

/* ==========================================================================
   6. Form viet review
   ========================================================================== */
.rv-write {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--rv-line);
}

.rv-write__toggle {
  width: 100%;
  min-height: 52px;
  padding: 15px 24px;
  border: 0;
  border-radius: var(--rovina-radius-button, 10px);
  background: linear-gradient(145deg, #a44545, #7a2a2a);
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(147, 51, 51, .26);
  transition: filter .2s ease, box-shadow .2s ease;
}

.rv-write__toggle:hover { filter: brightness(1.08); }
.rv-write__toggle:focus-visible { outline: 2px solid var(--rovina-dark); outline-offset: 3px; }

.rv-write__panel {
  margin-top: 14px;
  padding: 20px 16px;
  background: #fff;
  border: 1px solid var(--rv-line);
  border-radius: var(--rovina-radius-card, 12px);
  box-shadow: var(--rv-card-shadow);
}

.rv-write__panel[hidden] { display: none; }

/* WooCommerce in ra #respond ben trong - go style mac dinh cho khop. */
.rv-write__panel #respond,
.rv-write__panel .comment-respond { margin: 0; padding: 0; border: 0; }

.rv-form__row,
.rv-form__rating { margin: 0 0 15px; }

.rv-form__row label,
.rv-form__rating > label {
  display: block;
  margin-bottom: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rovina-dark);
}

.rv-form__row .required,
.rv-form__rating .required { color: var(--rovina-primary); }

.rv-write__panel input[type="text"],
.rv-write__panel input[type="email"],
.rv-write__panel textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--rv-line);
  border-radius: var(--rovina-radius-input, 8px);
  background: #fff;
  font-family: inherit;
  font-size: 16px; /* >=16px: iOS khong tu zoom khi focus. */
  color: var(--rovina-dark);
}

.rv-write__panel textarea { min-height: 118px; resize: vertical; line-height: 1.55; }

.rv-write__panel input[type="text"]:focus,
.rv-write__panel input[type="email"]:focus,
.rv-write__panel textarea:focus {
  border-color: var(--rovina-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(147, 51, 51, .1);
}

.rv-form__hint {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--rv-muted);
  font-weight: 400;
}

/* --- Chon sao bang cach bam --- */
.rv-pick {
  display: inline-flex;
  gap: 4px;
}

.rv-pick__s {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  font-size: 27px;
  line-height: 1;
  color: #dcd3d3;
  cursor: pointer;
  transition: color .12s ease, transform .12s ease;
}

.rv-pick__s.is-on { color: var(--rv-star); }
.rv-pick__s:hover { transform: scale(1.12); }
.rv-pick__s:focus-visible { outline: 2px solid var(--rovina-primary); outline-offset: 1px; border-radius: 6px; }

.rv-write__panel .form-submit { margin: 14px 0 0; }

.rv-write__panel input[type="submit"],
.rv-form__submit {
  width: 100%;
  min-height: 50px;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--rovina-radius-button, 10px);
  background: var(--rovina-primary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: background .2s ease;
}

.rv-write__panel input[type="submit"]:hover { background: var(--rovina-primary-dark); }

/* Checkbox "luu ten/email" cua WordPress. */
.rv-write__panel .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--rv-muted);
}

.rv-write__panel .comment-form-cookies-consent input { width: auto; min-height: 0; margin-top: 3px; }
.rv-write__panel .comment-form-cookies-consent label { margin: 0; font-weight: 400; }

/* ==========================================================================
   7. Upload anh (khach tu gui)
   ========================================================================== */
.rv-up { margin: 0 0 15px; }

.rv-up__label {
  display: block;
  margin-bottom: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rovina-dark);
}

.rv-up__drop {
  display: block;
  padding: 18px 14px;
  border: 1.5px dashed #d6c4c4;
  border-radius: var(--rovina-radius-input, 8px);
  background: #fdfbfb;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}

.rv-up__drop:hover,
.rv-up.is-drag .rv-up__drop {
  border-color: var(--rovina-primary);
  background: #fdf4f4;
}

/* Input file that bi an - nhan vao label de mo. */
.rv-up__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rv-up__ico {
  display: block;
  font-size: 22px;
  line-height: 1;
  margin-bottom: 6px;
}

.rv-up__cta {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--rovina-primary);
}

.rv-up__note {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--rv-muted);
}

.rv-up__note.is-err { color: #c0392b; font-weight: 600; }

.rv-up__input:focus-visible + .rv-up__drop {
  outline: 2px solid var(--rovina-primary);
  outline-offset: 2px;
}

/* Preview anh da chon. */
.rv-up__preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.rv-up__preview:empty { margin-top: 0; }

.rv-up__item {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 9px;
  overflow: hidden;
  background: #efe6e6;
}

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

.rv-up__del {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 4, 4, .66);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.rv-up__del:hover { background: rgba(10, 4, 4, .85); }

/* ==========================================================================
   8. Lightbox anh
   ========================================================================== */
.rv-lb {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 4, 4, .92);
  animation: rv-lb-in .18s ease;
}

.rv-lb[hidden] { display: none; }

@keyframes rv-lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.rv-lb__img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 10px;
  object-fit: contain;
  display: block;
}

.rv-lb__close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.rv-lb__close:hover { background: rgba(255, 255, 255, .3); }

/* ==========================================================================
   9. BREAKPOINTS - phan tren viet cho mobile, duoi day chi noi rong dan
   ========================================================================== */

/* --- Man hinh rat nho (iPhone SE ~375px) --------------------------------- */
@media (max-width: 380px) {
  .rv-sum { padding: 18px 15px; }
  .rv-sum__avg { font-size: 40px; }
  .rv-rv { padding: 14px; }
  .rv-rv__head { grid-template-columns: 33px 1fr auto; gap: 8px; }
  .rv-rv__ava { width: 33px; height: 33px; font-size: 14px; }
  .rv-rv__date { font-size: 11px; }
  .rv-strip__item { width: 74px; height: 74px; }
  .rv-rv__img { width: 92px; height: 92px; }
  .rv-pick__s { width: 36px; height: 36px; font-size: 24px; }
}

/* --- Mobile -------------------------------------------------------------- */
@media (max-width: 749px) {
  /* Dai anh + chip tran ra sat le khoi -> cam giac "vuot duoc tiep" nhu Loox.
     Tru dung bang padding cua .rovina-reviews (16px) chu khong phai cua
     .rovina-wrap, neu khong se lech. */
  .rv-strip__track,
  .rv-chips {
    padding-left: 16px;
    padding-right: 16px;
    margin-left: -16px;
    margin-right: -16px;
  }

  /* Tap target >= 44px cho moi nut bam. */
  .rv-chip,
  .rv-bar,
  .rv-rv__more { min-height: 44px; }

  .rv-chip { padding: 11px 15px; }

  /* Lightbox chiem het man hinh. */
  .rv-lb { padding: 0; }
  .rv-lb__img { max-width: 100%; max-height: 100vh; border-radius: 0; }
}

/* --- Tablet -------------------------------------------------------------- */
@media (min-width: 600px) {
  .rv-sum {
    grid-template-columns: 200px 1fr;
    gap: 30px;
    align-items: center;
    padding: 28px 26px;
  }

  .rv-sum__score {
    border-right: 1px solid rgba(255, 255, 255, .22);
    padding-right: 26px;
  }

  .rv-tools {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .rv-chips { flex: 1 1 auto; min-width: 0; }
  .rv-sort { flex: 0 0 auto; }
  .rv-sort select { width: auto; min-width: 168px; }

  .rv-more__btn { width: auto; min-width: 260px; }
  .rv-write__toggle { width: auto; min-width: 250px; }
  .rv-write { text-align: center; }
  .rv-write__panel { text-align: left; }

  .rv-write__panel input[type="submit"] { width: auto; min-width: 210px; }
}

/* --- Desktop: 2 cot card ------------------------------------------------- */
@media (min-width: 900px) {
  .rv-list { grid-template-columns: 1fr 1fr; gap: 14px; }

  .rv-rv { padding: 20px; }
  .rv-rv__text { font-size: 15px; }

  .rv-strip__item { width: 100px; height: 100px; }
  .rv-sum__avg { font-size: 54px; }

  .rv-write__panel { padding: 26px; }

  /* Ten + email 2 cot cho gon. */
  .rv-write__panel .comment-form-author,
  .rv-write__panel .comment-form-email {
    display: inline-block;
    width: calc(50% - 7px);
    vertical-align: top;
  }

  .rv-write__panel .comment-form-author { margin-right: 10px; }
}

/* --- Giam chuyen dong theo cai dat he dieu hanh -------------------------- */
@media (prefers-reduced-motion: reduce) {
  .rv-bar__fill,
  .rv-list,
  .rv-chip,
  .rv-more__btn,
  .rv-strip__item,
  .rv-rv__img img,
  .rv-pick__s { transition: none; }

  .rv-lb { animation: none; }
  .rv-strip__item:hover { transform: none; }
  .rv-pick__s:hover { transform: none; }
}
