/**
 * نظرات محصول: خلاصه امتیاز، کارت‌ها، نوار دعوت، فرم و فهرست کامل.
 */

.mah24-rsum,
.mah24-rcards,
.mah24-rprompt,
.mah24-rform,
.mah24-rlist {
  --rv-wine: #7a2a45;
  --rv-wine-dark: #4e1229;
  --rv-star: #e8b21f;
  --rv-star-off: #dcdcdc;
  --rv-ink: #2c2c2c;
  --rv-muted: #8a8a8a;
  --rv-line: #e9e4e3;
  --rv-soft: #f7f5f4;
  --rv-card: #fff;

  box-sizing: border-box;
  color: var(--rv-ink);
  font-family: inherit;
  line-height: 1.9;
}

.mah24-rsum *,
.mah24-rcards *,
.mah24-rprompt *,
.mah24-rform *,
.mah24-rlist * {
  box-sizing: border-box;
}

.mah24-rempty {
  margin: 0;
  padding: 18px 0;
  color: var(--rv-muted);
  font-size: 13.5px;
}

/* ----------------------------------------------------- ستاره‌ها */

.mah24-rstars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  direction: ltr;
  font-size: 15px;
}

.mah24-rstar {
  display: inline-flex;
  color: var(--rv-star-off);
  line-height: 1;
}

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

/* ----------------------------------------------- ۱) خلاصه‌ی امتیاز */

.mah24-rsum {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--rv-ink);
  font-size: 14px;
  cursor: pointer;
}

.mah24-rsum:hover,
.mah24-rsum:focus-visible {
  color: var(--rv-wine);
  text-decoration: none;
}

.mah24-rsum__star {
  display: inline-flex;
  color: var(--rv-star);
  font-size: 17px;
}

.mah24-rsum__value {
  font-size: 16px;
  font-weight: 800;
}

.mah24-rsum__label {
  color: var(--rv-muted);
  font-size: 12.5px;
}

/* ------------------------------------------------- ۲) کارت‌های نظر */

.mah24-rcards {
  display: block;
  margin: 0 0 26px;
  scroll-margin-top: 90px;
}

.mah24-rcards__title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 800;
}

.mah24-rcards__row {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.mah24-rcards__all {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  order: 2; /* در RTL سمت چپ می‌نشیند. */
}

.mah24-rall {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--rv-ink);
}

.mah24-rall:hover,
.mah24-rall:focus-visible {
  color: var(--rv-wine);
  text-decoration: none;
}

.mah24-rall__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border: 1px solid var(--rv-ink);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
}

.mah24-rall:hover .mah24-rall__circle {
  border-color: var(--rv-wine);
  background: var(--rv-wine);
  color: #fff;
}

.mah24-rall__text {
  font-size: 12.5px;
  white-space: nowrap;
}

.mah24-rcards__box {
  position: relative;
  order: 1;
  flex: 1;
  min-width: 0;
}

/*
 * دکمه‌های قبل و بعد، دو سرِ کاروسل. تا وقتی سویپر سوار نشده کاری از
 * دستشان برنمی‌آید، پس اصلاً نمایش داده نمی‌شوند.
 */
.mah24-rnav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid var(--rv-line, #e6e0de);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  color: var(--rv-wine, #6d1436);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition:
    background 0.18s,
    color 0.18s,
    opacity 0.18s;
}

.mah24-rnav--prev {
  inset-inline-end: -8px;
}

.mah24-rnav--next {
  inset-inline-start: -8px;
}

.mah24-rnav:hover {
  background: var(--rv-wine, #6d1436);
  color: #fff;
}

.mah24-rnav.is-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.mah24-rcards__box.is-ready .mah24-rnav {
  display: flex;
}

.mah24-rcards__track {
  order: 1;
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 2px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.mah24-rcards__track > * {
  scroll-snap-align: start;
}

/*
 * اگر جاوااسکریپت سویپر نرسد، استایل خودِ سویپر (overflow:hidden و اسلاید
 * تمام‌عرض) کاروسل را قفل می‌کند. این چند خط همان ریل اسکرولی را برمی‌گرداند؛
 * انتخابگرها عمداً یک پله خاص‌ترند تا بر قواعد سویپر بچربند.
 */
.mah24-rcards .mah24-rcards__track:not(.is-swiper) {
  overflow-x: auto;
}

.mah24-rcards .mah24-rcards__track:not(.is-swiper) > .swiper-wrapper {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.mah24-rcards .mah24-rcards__track:not(.is-swiper) .mah24-rcard {
  flex: 0 0 330px;
  width: auto;
  max-width: 100%;
  /* سویپر به اسلاید height:100% می‌دهد؛ اینجا کارت باید خودش قد بکشد. */
  height: auto;
  align-self: stretch;
  scroll-snap-align: start;
}

/* سویپر که سوار شد، چیدمان دست خودش است. */
.mah24-rcards__track.is-swiper {
  display: block;
  overflow: hidden;
  gap: 0;
  padding: 6px 2px 12px;
  scroll-snap-type: none;
}

.mah24-rcards__track.is-swiper > .swiper-wrapper {
  display: flex;
  align-items: stretch;
  box-sizing: content-box;
}

/*
 * پهنای اسلاید را خودِ سویپر روی استایل درون‌خطی می‌نویسد؛ اگر flex-basis کارت
 * (۳۳۰px یا درصدهای موبایل) سر جایش بماند، بر آن می‌چربد و پهنای واقعی با
 * محاسبه‌ی سویپر یکی نمی‌شود — نتیجه‌اش همان حرکت لغزان و نصفه‌کاره است. پس
 * در حالت سویپر، کارت فقط باید همان پهنای درون‌خطی را بگیرد.
 */
.mah24-rcards__track.is-swiper .swiper-slide,
.mah24-rcards__track.is-swiper .swiper-slide.mah24-rcard {
  flex: 0 0 auto;
  max-width: none;
  /* اسلایدها هم‌قد می‌شوند، نه به قد بلندترین متن. */
  height: auto;
}

.mah24-rcards__track::-webkit-scrollbar {
  height: 6px;
}

.mah24-rcards__track::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #d9d2d0;
}

/* کارت */

.mah24-rcard {
  flex: 0 0 330px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--rv-line);
  border-radius: 14px;
  background: var(--rv-card);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.mah24-rcard--wide {
  flex: 1 1 auto;
  width: 100%;
}

.mah24-rcard__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mah24-rcard__avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--rv-soft);
}

.mah24-rcard__who {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
  font-size: 14px;
}

.mah24-rcard__name {
  color: var(--rv-wine);
  font-weight: 700;
}

.mah24-rcard__title {
  color: var(--rv-ink);
  font-weight: 800;
}

/*
 * متن نظر می‌تواند خیلی بلند باشد و قد کارت‌ها را به هم بریزد؛ پس تا شش خط
 * نشان داده می‌شود و بقیه با دکمه‌ی «ادامه» باز می‌شود. اگر جاوااسکریپت نبود،
 * متن بریده می‌ماند ولی کارت‌ها هم‌قد و سالم‌اند.
 */
.mah24-rcard {
  --mah24-rcard-lines: 6;
}

.mah24-rcard__text {
  display: -webkit-box;
  flex: 1;
  margin: 0;
  overflow: hidden;
  color: #4a4a4a;
  font-size: 13px;
  line-height: 2.1;
  text-align: justify;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--mah24-rcard-lines, 6);
  line-clamp: var(--mah24-rcard-lines, 6);
}

/* در فهرست کامل، جا بازتر است. */
.mah24-rcard--wide {
  --mah24-rcard-lines: 10;
}

.mah24-rcard__more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 0;
  padding: 7px 16px;
  border: 1px solid var(--rv-wine, #6d1436);
  border-radius: 999px;
  background: #fff;
  color: var(--rv-wine, #6d1436);
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.7;
  transition:
    background 0.18s,
    color 0.18s,
    box-shadow 0.18s;
}

.mah24-rcard__more:hover,
.mah24-rcard__more:focus-visible {
  background: var(--rv-wine, #6d1436);
  box-shadow: 0 6px 16px rgba(109, 20, 54, 0.18);
  color: #fff;
}

.mah24-rcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rv-line);
}

.mah24-rcard__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rv-muted);
  font-size: 12px;
  white-space: nowrap;
}

.mah24-rcard__clock {
  display: inline-flex;
  font-size: 14px;
}

/* رأی مفید / غیرمفید */

.mah24-rvote {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.mah24-rvote__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--rv-muted);
  font-family: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s;
}

.mah24-rvote__btn span {
  display: inline-flex;
  font-size: 16px;
}

.mah24-rvote__btn--down span {
  transform: scaleY(-1);
}

.mah24-rvote__btn b {
  font-weight: 700;
}

.mah24-rvote__btn:hover,
.mah24-rvote__btn:focus-visible {
  color: var(--rv-wine);
  outline: none;
}

.mah24-rvote__btn.is-on {
  color: var(--rv-wine-dark);
}

.mah24-rvote__btn.is-on span svg path {
  fill: currentColor;
  fill-opacity: 0.12;
}

.mah24-rvote__btn[disabled] {
  opacity: 0.55;
  cursor: progress;
}

/* --------------------------------------------- ۳) نوار دعوت به نظر */

.mah24-rprompt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 18px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--rv-line);
  color: var(--rv-ink);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.mah24-rprompt:hover,
.mah24-rprompt:focus-visible {
  color: var(--rv-wine);
  text-decoration: none;
}

.mah24-rprompt__icon {
  display: inline-flex;
  font-size: 18px;
}

.mah24-rprompt__chev {
  font-family: initial;
  direction: ltr;
  margin-inline-end: auto;
  font-size: 22px;
  line-height: 1;
  color: var(--rv-muted);
}

.mah24-rprompt:hover .mah24-rprompt__chev {
  color: var(--rv-wine);
}

/* -------------------------------------------------- ۴) فرم ثبت نظر */

.mah24-rform {
  margin: 0 0 26px;
  padding: 22px;
  border: 1px solid var(--rv-line);
  border-radius: 16px;
  background: var(--rv-card);
  scroll-margin-top: 90px;
}

.mah24-rform__head {
  margin-bottom: 18px;
}

.mah24-rform__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.mah24-rform__note {
  margin: 4px 0 0;
  color: var(--rv-muted);
  font-size: 12.5px;
}

.mah24-rform__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mah24-rform__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mah24-rform__as {
  margin: 0;
  color: var(--rv-muted);
  font-size: 12.5px;
}

.mah24-rfield {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.mah24-rfield__label {
  font-size: 13px;
  font-weight: 700;
}

.mah24-rfield__label i {
  color: #b32d2e;
  font-style: normal;
}

.mah24-rform input[type="text"],
.mah24-rform input[type="email"],
.mah24-rform textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--rv-line);
  border-radius: 10px;
  background: #fbfafa;
  color: var(--rv-ink);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.8;
}

.mah24-rform textarea {
  resize: vertical;
  min-height: 110px;
}

.mah24-rform input:focus,
.mah24-rform textarea:focus {
  border-color: var(--rv-wine);
  box-shadow: 0 0 0 3px rgba(122, 42, 69, 0.12);
  outline: none;
}

/* ستاره‌های انتخابی: ترتیب معکوس تا هاور روی ستاره‌ی چپ، راستی‌ها را هم پر کند. */
.mah24-rstars-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  direction: ltr;
}

.mah24-rstars-input input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mah24-rstars-input label {
  display: inline-flex;
  color: var(--rv-star-off);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.12s;
}

.mah24-rstars-input label:hover,
.mah24-rstars-input label:hover ~ label,
.mah24-rstars-input input:checked ~ label {
  color: var(--rv-star);
}

.mah24-rstars-input input:focus-visible + label {
  outline: 2px solid var(--rv-wine);
  outline-offset: 2px;
}

.mah24-rsubmit {
  align-self: flex-start;
  padding: 13px 34px;
  border: 0;
  border-radius: 999px;
  background: #380c1e;
  box-shadow: 0 6px 18px rgba(56, 12, 30, 0.22);
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.18s,
    transform 0.18s;
}

.mah24-rsubmit:hover,
.mah24-rsubmit:focus-visible {
  background: var(--rv-wine);
  outline: none;
  transform: translateY(-1px);
}

/*
 * «برای ثبت دیدگاه وارد شوید»: جای فرم را می‌گیرد، پس مثل خود فرم یک بلوک
 * کامل است با دکمه‌ای که آشکارا قدم بعدی را نشان می‌دهد؛ یک خط لینکِ متنی
 * اینجا گم می‌شد.
 */
.mah24-rlogin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 18px 20px;
  border: 1px solid var(--rv-line, #e9e4e3);
  border-radius: 16px;
  /* بیرون از .mah24-rform (فرم پیش‌فرض ووکامرس) متغیرها تعریف نشده‌اند. */
  background: var(--rv-soft, #f7f5f4);
}

.mah24-rlogin__text {
  flex: 1 1 220px;
  margin: 0;
  color: var(--rv-ink, #2c2c2c);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.9;
}

.mah24-rlogin__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 170px;
  padding: 12px 28px;
  border-radius: 999px;
  background: #380c1e;
  box-shadow: 0 6px 18px rgba(56, 12, 30, 0.22);
  color: #fff!important;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.18s,
    transform 0.18s;
}

.mah24-rlogin__btn:hover,
.mah24-rlogin__btn:focus-visible {
  background: var(--rv-wine, #7a2a45);
  color: #fff!important;
  outline: none;
  text-decoration: none;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .mah24-rlogin {
    padding: 16px;
    text-align: center;
  }

  .mah24-rlogin__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mah24-rlogin__btn {
    transition: none;
  }

  .mah24-rlogin__btn:hover {
    transform: none;
  }
}

/* --------------------------------------- نشان خریدار و آنچه خریده */

.mah24-rbuyer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e8f6ec;
  color: #1d7a3c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.9;
  vertical-align: middle;
  white-space: nowrap;
}

/* خریدِ ثبت‌نشده هشدار نیست، فقط یک واقعیت؛ پس خاکستریِ آرام. */
.mah24-rbuyer--no {
  background: #f1f1f1;
  color: #8a8a8a;
  font-weight: 600;
}

.mah24-rbuyer svg {
  flex: 0 0 auto;
  font-size: 12px;
}

.mah24-rbought {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 8px 0 0;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--rv-soft, #f7f5f4);
  color: var(--rv-muted, #8a8a8a);
  font-size: 12px;
  line-height: 1.9;
}

.mah24-rbought__label {
  color: var(--rv-wine, #7a2a45);
  font-weight: 700;
}

.mah24-rbought__item {
  color: var(--rv-ink, #2c2c2c);
}

.mah24-rbought__item b {
  color: var(--rv-muted, #8a8a8a);
  font-weight: 600;
}

.mah24-rbought__item + .mah24-rbought__item {
  position: relative;
  padding-inline-start: 10px;
}

.mah24-rbought__item + .mah24-rbought__item::before {
  position: absolute;
  inset-inline-start: 0;
  content: "·";
  color: var(--rv-muted, #8a8a8a);
}

/* ---------------------------------------------- ۵) فهرست کامل نظرات */

.mah24-rlist {
  margin: 0 0 26px;
  scroll-margin-top: 90px;
}

.mah24-rlist__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.mah24-rlist__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.mah24-rlist__count {
  color: var(--rv-muted);
  font-size: 12.5px;
}

.mah24-rlist__items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* توزیع ستاره‌ها */

.mah24-rbreak {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid var(--rv-line);
  border-radius: 14px;
  background: var(--rv-soft);
}

.mah24-rbreak__score {
  flex: 0 0 auto;
  text-align: center;
}

.mah24-rbreak__value {
  color: var(--rv-wine-dark);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
}

.mah24-rbreak__count {
  margin-top: 2px;
  color: var(--rv-muted);
  font-size: 11.5px;
}

.mah24-rbreak__bars {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mah24-rbreak__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.mah24-rbreak__star {
  flex: 0 0 auto;
  width: 14px;
  color: var(--rv-muted);
  text-align: center;
}

.mah24-rbreak__track {
  flex: 1;
  min-width: 0;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e0df;
}

.mah24-rbreak__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--rv-star);
}

.mah24-rbreak__num {
  flex: 0 0 auto;
  min-width: 26px;
  color: var(--rv-muted);
  text-align: start;
}

/* صفحه‌بندی */

.mah24-rpager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.mah24-rpager__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--rv-line);
  border-radius: 9px;
  background: #fff;
  color: var(--rv-ink);
  font-size: 13px;
  text-decoration: none;
}

.mah24-rpager__item:hover,
.mah24-rpager__item:focus-visible {
  border-color: var(--rv-wine);
  color: var(--rv-wine);
  text-decoration: none;
}

.mah24-rpager__item.is-current {
  border-color: var(--rv-wine-dark);
  background: var(--rv-wine-dark);
  color: #fff;
}

/* ------------------------------------------------------- واکنش‌گرا */

@media (max-width: 782px) {
  .mah24-rcards__row {
    flex-direction: column;
    gap: 10px;
  }

  .mah24-rcards__all {
    order: 3;
    justify-content: center;
  }

  .mah24-rall {
    flex-direction: row;
    gap: 8px;
  }

  .mah24-rall__circle {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .mah24-rcard {
    flex-basis: 86%;
  }

  .mah24-rform__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mah24-rbreak {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mah24-rall__circle,
  .mah24-rsubmit,
  .mah24-rvote__btn {
    transition: none;
  }

  .mah24-rsubmit:hover {
    transform: none;
  }
}

/* ------------------------------ نمایش نظرهای بیشتر ------------------------------ */

.mah24-rmore {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.mah24-rmore__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 26px;
  border: 1px solid var(--rv-line, #eceaea);
  border-radius: 999px;
  background: #fff;
  color: var(--rv-wine, #7a2a45);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.mah24-rmore__btn:hover {
  border-color: var(--rv-wine, #7a2a45);
  background: #fbf6f8;
}

.mah24-rmore__btn:disabled {
  cursor: default;
  opacity: 0.75;
}

.mah24-rmore__spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--rv-line, #eceaea);
  border-top-color: var(--rv-wine, #7a2a45);
  border-radius: 50%;
  animation: mah24-rspin 0.7s linear infinite;
}

.mah24-rmore__spinner[hidden] {
  display: none;
}

@keyframes mah24-rspin {
  to {
    transform: rotate(360deg);
  }
}

/* ------------------------------ اسلاید تک‌کارتی در موبایل ------------------------------ */

/*
 * در موبایل هر بار یک کارت جابه‌جا می‌شود: کارت تقریباً تمام‌عرض است و
 * scroll-snap آن را دقیقاً سر جای خودش نگه می‌دارد.
 */
@media (max-width: 768px) {
  .mah24-rcards__track {
    gap: 12px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .mah24-rcards .mah24-rcards__track:not(.is-swiper) .mah24-rcard {
    flex: 0 0 88%;
    max-width: 88%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
}

@media (max-width: 480px) {
  .mah24-rcards .mah24-rcards__track:not(.is-swiper) .mah24-rcard {
    flex-basis: 92%;
    max-width: 92%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mah24-rmore__spinner {
    animation-duration: 2s;
  }
}

/* ------------------------------ شیت متن کامل نظر ------------------------------ */

/*
 * همان رفتار شیت فیلتر فروشگاه: از پایین بالا می‌آید، پشتش پرده‌ی تیره، سرش
 * ثابت می‌ماند و فقط متن نظر داخل خودش اسکرول می‌خورد.
 */
body.mah24-rsheet-open {
  overflow: hidden;
}

.mah24-rsheet {
  position: fixed;
  inset: 0;
  z-index: 100000;
}

.mah24-rsheet[hidden] {
  display: none;
}

.mah24-rsheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 4, 12, 0.5);
  opacity: 0;
  transition: opacity 0.28s;
}

.mah24-rsheet.is-open .mah24-rsheet__scrim {
  opacity: 1;
}

.mah24-rsheet__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  max-width: 620px;
  max-height: 86vh;
  margin: 0 auto;
  padding: 0 0 8px;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: 0 -10px 40px rgba(20, 4, 12, 0.18);
  transform: translateY(105%);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  visibility: hidden;
}

.mah24-rsheet.is-open .mah24-rsheet__panel {
  transform: translateY(0);
  visibility: visible;
}

.mah24-rsheet__panel:focus {
  outline: none;
}

.mah24-rsheet__grip {
  flex: 0 0 auto;
  display: block;
  width: 44px;
  height: 5px;
  margin: 8px auto 2px;
  border-radius: 3px;
  background: var(--rv-line, #e6e0de);
}

/* سرِ شیت: بالای شیت می‌ماند و با متن پایین نمی‌رود. */
.mah24-rsheet__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px 12px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.mah24-rsheet__title {
  color: var(--rv-ink, #2c2c2c);
  font-size: 15px;
  font-weight: 700;
}

.mah24-rsheet__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #f5f5f5;
  color: var(--rv-wine, #6d1436);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.mah24-rsheet__close:hover,
.mah24-rsheet__close:focus-visible {
  background: var(--rv-wine, #6d1436);
  color: #fff;
}

/* تنها ناحیه‌ای که اسکرول می‌خورد. */
.mah24-rsheet__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 18px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.mah24-rsheet__who {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.mah24-rsheet__para {
  margin: 0;
  color: #3f3f3f;
  font-size: 14px;
  line-height: 2.2;
  text-align: justify;
  white-space: pre-line;
}

.mah24-rsheet__date {
  margin-top: 16px;
  color: var(--rv-soft, #8d8d8d);
  font-size: 12px;
}

@media (min-width: 768px) {
  .mah24-rsheet__panel {
    max-height: 78vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mah24-rsheet__scrim,
  .mah24-rsheet__panel {
    transition: none;
  }
}
