@charset "UTF-8";
/* common */


/* ============================================================
   فونت
   ============================================================ */
/* فایل‌های فونت در assets/fonts/ ـ نسخه‌ی FaNum ارقام فارسی را هم دارد */

/* اسکرول‌بارهای باریک و ملایم */
/* فونت همه‌جا یکی باشد (دکمه، ورودی، select و … پیش‌فرض ارث نمی‌برند) */
*, *::before, *::after { font-family: inherit; }
input, button, select, textarea, optgroup { font: inherit; letter-spacing: inherit; }

* { scrollbar-width: thin; scrollbar-color: #d5d6da transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d5d6da; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #bcbec4; }
::-webkit-scrollbar-corner { background: transparent; }

/* عنصرهایی که hidden دارند همیشه پنهان می‌مانند */
[hidden] { display: none !important; }

/* ============================================================
   توکن‌ها
   ============================================================ */
:host {
  --font: var(--rs-font, 'IRANYekanX', 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif);

  --c-text: var(--rs-c-text, #23254b);
  --c-icon: var(--rs-c-icon, #81858b);
  --c-line: var(--rs-c-line, #e0e0e2);
  --c-surface: var(--rs-c-surface, #f7f7f9);
  --c-tile: var(--rs-c-tile, #e7e7e8);   /* بک‌گراند کاشی‌های موبایل */

  --c-red: var(--rs-c-red, #e7133d);
  --c-red-soft: var(--rs-c-red-soft, #f2b1be);
  --c-offer-bg: var(--rs-c-offer-bg, var(--rs-primary-soft, #eef2f8));
  --offer-bar-h: var(--rs-offer-bar-h, 3px);   /* چقدر از نوار پیشرفت بالای کارت دیده شود */

  --lb-dim: var(--rs-lb-dim, #a1a3a8);

  --thumb: var(--rs-thumb, 70px);
  --thumb-m: var(--rs-thumb-m, 58px);
  --group-radius: var(--rs-group-radius, 10px);
  --group-gap: var(--rs-group-gap, 12px);

  /* رنگ پیغام‌های روی گالری */
  --msg-1: var(--rs-msg-1, #e7133d);
  --msg-2: var(--rs-msg-2, #00a049);
  --msg-3: var(--rs-msg-3, #b07d00);
  --msg-4: var(--rs-msg-4, #1f6fd4);
  --msg-5: var(--rs-msg-5, #7b4bd1);
  --msg-6: var(--rs-msg-6, #0d8b9b);
  --msg-7: var(--rs-msg-7, #d9328c);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
:host { -webkit-text-size-adjust: 100%; font-family: var(--font); }

:host {
  font-family: var(--font);
  color: var(--c-text);
  background: #fff;
  direction: rtl;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* آیکن‌های lucide: همیشه خطی، بدون پرشدگی */
svg.lc {
  fill: none !important;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
svg.lc.is-flip { transform: rotate(180deg); }
img { display: block; }
:focus-visible { outline: 2px solid #19bfd3; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================================
   نوار تبلیغاتی بالای هدر
   ============================================================ */
.topstrip {
  position: relative;
  display: block;
  width: 100%;
  height: 46px;
  overflow: hidden;
  background: #2549b4;
}
.topstrip__slide {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  opacity: 0;
  animation: tsSlide 12s cubic-bezier(.4, 0, .2, 1) infinite;
}
.topstrip__slide--blue { background: linear-gradient(90deg, #1f3f9e, #2b55c8 55%, #1f3f9e); }
.topstrip__slide--red  { background: linear-gradient(90deg, #cf2338, #ef4056 55%, #cf2338); animation-delay: 6s; }
.topstrip__slide b { font-weight: 700; }
.topstrip__slide span { opacity: .9; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.topstrip__ic {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  animation: tsPop 2.6s ease-in-out infinite;
}
.topstrip__ic svg { width: 15px; height: 15px; }
.topstrip__go {
  display: flex; align-items: center;
  animation: tsNudge 1.6s ease-in-out infinite;
}
.topstrip__go svg { width: 15px; height: 15px; }

@keyframes tsSlide {
  0%   { opacity: 0; transform: translateY(100%); }
  4%   { opacity: 1; transform: translateY(0); }
  46%  { opacity: 1; transform: translateY(0); }
  50%  { opacity: 0; transform: translateY(-100%); }
  100% { opacity: 0; transform: translateY(-100%); }
}
@keyframes tsPop {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}
@keyframes tsNudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .topstrip__slide { animation: none; opacity: 1; }
  .topstrip__slide--red { display: none; }
  .topstrip__ic, .topstrip__go { animation: none; }
}

/* ============================================================
   هدر دسکتاپ
   ============================================================ */
.dheader {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #f0f0f2;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.dheader__main {
  max-width: 1520px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.dheader__logo img { display: block; height: 26px; width: auto; }

/* جستجو */
.dsearch-wrap { position: relative; flex: 1 1 auto; max-width: 620px; }
.dsearch-wrap.is-open { z-index: 70; }
.dsearch {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0f0f1;
  border-radius: 8px;
  padding: 0 14px;
  height: 42px;
}
.dsearch svg { width: 19px; height: 19px; color: #81858b; flex: 0 0 auto; }
.dsearch input {
  flex: 1 1 auto;
  border: 0; background: none; outline: none;
  font: inherit; font-size: 13px; color: #23254b;
}
.dsearch input::placeholder { color: #a1a3a8; }

/* دکمه‌های سمت چپ */
.dheader__actions { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.dheader__sep { width: 1px; height: 26px; background: #ededf0; }

.dact-wrap { position: relative; }
.dact {
  position: relative;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: #23254b;
}
.dact:hover { background: #f7f7f9; }
.dact svg { width: 22px; height: 22px; }
.dact__badge {
  position: absolute;
  bottom: 3px; right: 3px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  background: #ef4056; color: #fff;
  font-size: 9.5px; font-weight: 700;
  border: 1.5px solid #fff; border-radius: 9px;
}
.dact--login {
  width: auto; height: 38px;
  gap: 8px; padding: 0 14px;
  border: 1px solid #e0e0e2;
  font-size: 12.5px;
}
.dact--login svg { width: 18px; height: 18px; }

/* منوی دوم */
.dnav {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 16px 10px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.dnav__cats {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: #23254b;
}
.dnav__cats svg { width: 19px; height: 19px; }

.dnav__links { list-style: none; display: flex; align-items: center; gap: 16px; margin: 0; padding: 0; }
.dnav__links a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: #62666d; text-decoration: none;
  white-space: nowrap;
}
.dnav__links a:hover { color: #23254b; }
.dnav__links svg { width: 17px; height: 17px; }
.dnav__divider { width: 1px; height: 16px; background: #ededf0; }

.dnav__addr {
  margin-right: auto;
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff3e6; color: #d98500;
  border-radius: 999px; padding: 6px 12px;
  font-size: 12px; white-space: nowrap;
}
.dnav__addr svg { width: 16px; height: 16px; }

/* ---- کشویی‌های هدر ---- */
.dd {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 330px;
  background: #fff;
  border: 1px solid #ededf0;
  border-radius: 10px;
  box-shadow: 0 10px 34px rgba(0,0,0,.12);
  overflow: hidden;
  z-index: 60;
}
.dd[hidden] { display: none; }
.dd__head {
  display: flex; align-items: baseline; gap: 8px;
  padding: 14px; font-size: 13.5px; font-weight: 700;
}
.dd__head b { font-weight: 400; color: #9da0a8; }
.dd__body { max-height: 300px; overflow-y: auto; }
.dd { width: 420px; }
.dd--acc { width: 250px; }
.dd__row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; border-bottom: 1px solid #f7f7f9;
}
.dd__img {
  width: 62px; height: 62px; object-fit: contain;
  flex: 0 0 auto; order: -1;
  background: #fff;
}
.dd__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.dd__info p {
  font-size: 12px; line-height: 1.8; color: #23254b; text-align: right;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.dd__line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.dd__qty {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid #ededf0; border-radius: 20px; padding: 2px;
}
.dd__qty > span {
  min-width: 26px; text-align: center;
  font-size: 12.5px; font-weight: 700; color: var(--rs-primary, #183661);
}
.dd__qty > span small { display: block; font-size: 8.5px; font-weight: 400; color: #9da0a8; }
.dd__q {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--rs-primary, #183661); background: none;
}
.dd__q svg { width: 15px; height: 15px; }
.dd__q:hover { background: #fdecef; }

.dd__price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.dd__price-top { display: flex; align-items: center; gap: 5px; }
.dd__price-top b {
  padding: 1px 6px; border-radius: 10px;
  background: var(--rs-primary, #183661); color: #fff; font-size: 10px; font-weight: 700;
}
.dd__price-top s { font-size: 10px; color: #c0c2c5; }
.dd__price-now { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; color: #23254b; }

.dd__empty { padding: 26px 14px; text-align: center; font-size: 12.5px; color: #9da0a8; }
.dd__foot { padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.dd__total { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.dd__total-top { display: flex; align-items: center; gap: 5px; }
.dd__off {
  padding: 1px 6px; border-radius: 10px;
  background: #ef4056; color: #fff; font-size: 10px; font-weight: 700;
}
.dd__total-top s { font-size: 10px; color: #c0c2c5; }
.dd__total-now { display: inline-flex; align-items: center; gap: 3px; font-size: 14px; font-weight: 700; color: #23254b; }
.dd__cta {
  flex: 1 1 auto;
  background: var(--rs-primary, #183661); color: #fff; text-decoration: none;
  border-radius: 8px; padding: 12px 26px;
  font-size: 13px; font-weight: 700; text-align: center;
}
.dd__cta:hover { background: #e02e45; }
.dd__list { list-style: none; margin: 0; padding: 6px 0; }
.dd__list a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; font-size: 12.5px; color: #23254b; text-decoration: none;
}
.dd__list a:hover { background: #f7f7f9; }
.dd__list svg { width: 18px; height: 18px; color: #81858b; }

/* مگامنو: باریک‌تر و بلندتر، زیر دکمه «دسته‌بندی محصولات» */
.megamenu {
  position: absolute;
  top: 100%;
  right: max(16px, calc((100% - 1520px) / 2 + 16px));
  left: auto;
  display: flex;
  width: min(940px, calc(100% - 32px));
  max-width: none;
  margin: 0;
  min-height: 480px;
  background: #fff;
  border: 1px solid #ededf0;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
  overflow: hidden;
  z-index: 60;
}
.megamenu[hidden] { display: none; }
.megamenu__side {
  list-style: none; margin: 0; padding: 8px 0;
  width: 190px; flex: 0 0 auto;
  border-left: 1px solid #f2f2f4;
  max-height: min(640px, calc(100vh - 170px)); overflow-y: auto;
}
.megamenu__side li {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; font-size: 12.5px; color: #23254b; cursor: pointer;
}
.megamenu__side li.is-active { color: var(--rs-primary, #183661); background: var(--rs-primary-soft, #eef2f8); }
.megamenu__side li a { color: inherit; text-decoration: none; display: block; width: 100%; }
.megamenu__panel {
  flex: 1 1 auto; min-width: 0; padding: 18px 20px;
  max-height: min(640px, calc(100vh - 170px)); overflow-y: auto;
}
.megaall {
  display: inline-flex; align-items: center; gap: 3px;
  margin-bottom: 14px;
  font-size: 12.5px; font-weight: 700; color: #1672dd; text-decoration: none;
}
.megaall svg { width: 15px; height: 15px; }
.megagroups {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 20px;
  align-content: start;
}
.megagroup__title { font-size: 12.5px; font-weight: 700; margin-bottom: 8px; }
.megagroup__title a { color: var(--rs-primary, #183661); text-decoration: none; }
.megagroup__title a:hover { text-decoration: underline; }
.megagroup ul { list-style: none; margin: 0; padding: 0; }
.megagroup a { display: block; padding: 5px 0; font-size: 12px; color: #62666d; text-decoration: none; }
.megagroup a:hover { color: #23254b; }

/* ============================================================
   فوتر
   ============================================================ */
.sfooter { border-top: 1px solid #f0f0f2; background: #fff; }
.sfooter__inner { max-width: 1520px; margin: 0 auto; padding: 24px 16px 40px; }

.sfooter__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sfooter__logo img { height: 60px; width: auto; display: block; }
.sfooter__totop {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid #e0e0e2; border-radius: 8px;
  padding: 8px 14px; font-size: 12.5px; color: #23254b;
}
.sfooter__totop svg { width: 16px; height: 16px; }

.sfooter__phone { margin-top: 14px; font-size: 12px; color: #62666d; }
.sfooter__phone b { font-weight: 400; color: #23254b; }
.sfooter__phone span { margin-right: 10px; }

.sfeatures {
  list-style: none; margin: 30px 0 34px; padding: 0;
  display: flex; justify-content: space-between; gap: 16px;
}
.sfeatures li {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11.5px; color: #62666d; text-align: center;
}
.sfeatures__ic {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: #62666d;
}
.sfeatures__ic svg { width: 30px; height: 30px; }
.sfeatures__ic img { width: 34px; height: 34px; object-fit: contain; }

.scols { display: flex; gap: 30px; }
.scol { flex: 1 1 0; }
.scol__title {
  display: block; width: 100%; text-align: right;
  font-size: 13px; font-weight: 700; color: #23254b; margin-bottom: 14px;
}
.scol__chev { display: none; }
.scol__list { list-style: none; margin: 0; padding: 0; }
.scol__list li a { display: block; padding: 5px 0; font-size: 12.5px; color: #62666d; text-decoration: none; }
.scol__list li a:hover { color: #23254b; }

.ssocial { display: flex; gap: 14px; margin-bottom: 18px; }
.ssocial a { color: #9da0a8; }
.ssocial svg { width: 24px; height: 24px; }
.snews__title { font-size: 12.5px; font-weight: 700; margin-bottom: 10px; }
.snews { display: flex; gap: 8px; }
.snews input {
  flex: 1 1 auto; min-width: 0;
  background: #f0f0f1; border: 0; border-radius: 8px;
  padding: 0 12px; height: 40px; font: inherit; font-size: 12.5px;
}
.snews input::placeholder { color: #a1a3a8; }
.snews button {
  background: #f0f0f1; color: #a1a3a8;
  border-radius: 8px; padding: 0 18px; height: 40px; font-size: 12.5px;
}

.sapp {
  display: flex; align-items: center; gap: 16px;
  background: #23254b; color: #fff;
  border-radius: 10px; padding: 14px 18px; margin: 32px 0 26px;
}
.sapp__logo img { height: 22px; width: auto; display: block; }
.sapp__title { font-size: 13px; font-weight: 700; }
.sapp__badges { margin-right: auto; display: flex; gap: 10px; }
.sapp__badges img { height: 38px; width: auto; border-radius: 6px; display: block; }

.sabout { display: flex; gap: 30px; align-items: flex-start; padding-top: 22px; border-top: 1px solid #f0f0f2; }
.sabout__text { flex: 1 1 auto; }
.sabout__text h3 { font-size: 13.5px; font-weight: 700; margin-bottom: 10px; }
.sabout__text p {
  font-size: 11.5px; line-height: 2.1; color: #9da0a8; text-align: justify;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.sabout.is-open .sabout__text p { display: block; -webkit-line-clamp: none; line-clamp: none; }
.sabout__more {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 8px; font-size: 12px; color: #1672dd;
}
.sabout__more svg { width: 15px; height: 15px; transition: transform .2s ease; }
.sabout.is-open .sabout__more svg { transform: rotate(180deg); }
.sabout__trust { display: flex; gap: 10px; flex: 0 0 auto; }
.sabout__trust a { display: block; }
.sabout__trust img {
  width: 76px; height: 76px; object-fit: contain;
  border: 1px solid #ededf0; border-radius: 8px; padding: 6px; background: #fff;
}

/* ============================================================
   منوی پایین موبایل
   ============================================================ */
.mnav { display: none; }

/* ============================================================
   نمایش/مخفی‌سازی بر اساس کلاس‌های body
   ============================================================ */
:host(.no-dheader) .topstrip,
:host(.no-dheader) .dheader { display: none; }
:host(.no-footer) .sfooter { display: none; }

@media (max-width: 768px) {
  .topstrip, .dheader { display: none; }

  .sfooter__inner { padding: 18px 14px 24px; }
  .sfooter__top { justify-content: center; }
  .sfooter__logo { display: none; }
  .sfooter__totop { border-radius: 999px; }
  .sfooter__phone { text-align: center; margin-top: 16px; }
  .sfooter__phone span { display: block; margin: 6px 0 0; }

  .sfeatures { display: none; }

  .scols { flex-direction: column; gap: 0; }
  .scol { border-bottom: 1px solid #f0f0f2; }
  .scol__title {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 2px; margin: 0;
  }
  .scol__chev { display: block; width: 18px; height: 18px; color: #62666d; transition: transform .2s ease; }
  .scol.is-open .scol__chev { transform: rotate(180deg); }
  .scol__list { display: none; padding-bottom: 14px; }
  .scol.is-open .scol__list { display: block; }

  .sapp { flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
  .sapp__badges {
    margin: 0; width: 100%;
    overflow-x: auto; scrollbar-width: none;
  }
  .sapp__badges::-webkit-scrollbar { display: none; }
  .sapp__badges img { height: 34px; flex: 0 0 auto; }

  .sabout { flex-direction: column; gap: 16px; }
  .sabout__trust { flex-wrap: wrap; }

  /* منوی پایین */
  .mnav {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 45;
    display: flex;
    background: #fff;
    border-top: 1px solid #f0f0f2;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .mnav__item {
    flex: 1 1 0;
    min-width: 0;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-size: 10.5px; color: #62666d; text-decoration: none;
  }
  .mnav__item > span:not(.mnav__ic) {
    max-width: 100%;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .mnav__item svg { width: 22px; height: 22px; }
  .mnav__item.is-active { color: var(--rs-primary, #183661); }
  .mnav__ic { position: relative; display: block; overflow: visible; line-height: 0; }
  .mnav__badge {
    position: absolute;
    top: -4px; left: -8px;
    min-width: 16px; height: 16px; padding: 0 4px;
    display: flex; align-items: center; justify-content: center;
    background: #ef4056; color: #fff;
    font-size: 9.5px; font-weight: 700;
    border: 1.5px solid #fff; border-radius: 9px;
  }

  body:not(.no-mnav) { padding-bottom: 64px; }
  body.no-mnav .mnav { display: none; }
  body.no-footer-m .sfooter { display: none; }
}

/* آیکن تومان؛ هیچ‌جا کلمه‌ی «تومان» نوشته نمی‌شود */
.toman-icon { width: 13px; height: 13px; object-fit: contain; opacity: .85; vertical-align: -2px; }
.topstrip .toman-icon { filter: brightness(0) invert(1); opacity: .95; }


/* ============================================================
   پاپ‌آپ جستجو
   ============================================================ */
.spanel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0; left: 0;
  background: #fff;
  border: 1px solid #ededf0;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,.14);
  padding: 16px;
  z-index: 70;
  display: flex; flex-direction: column; gap: 18px;
}
.spanel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.spanel__head h4 { font-size: 12.5px; font-weight: 700; color: #23254b; }
.spanel__clear { background: none; font-size: 11.5px; color: #9da0a8; }
.spanel__clear:hover { color: var(--rs-primary, #183661); }
.spanel__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.spanel__chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px;
  border: 1px solid #ededf0;
  border-radius: 18px;
  font-size: 12px; color: #3f4064; text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.spanel__chip:hover { border-color: var(--rs-primary, #183661); color: var(--rs-primary, #183661); }
.spanel__chip svg { width: 13px; height: 13px; color: #9da0a8; }
.spanel__empty { font-size: 12px; color: #9da0a8; }

.spanel__banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(90deg, #1f3f9e, #2b55c8);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
}
.spanel__banner-body { display: flex; flex-direction: column; gap: 6px; }
.spanel__banner-body b { font-size: 14px; font-weight: 700; }
.spanel__banner-body span { font-size: 11.5px; opacity: .9; }
.spanel__banner-body i {
  align-self: flex-start;
  margin-top: 6px;
  padding: 5px 20px;
  border-radius: 16px;
  background: #fff; color: #23254b;
  font-style: normal; font-size: 11.5px; font-weight: 700;
}
.spanel__banner img { width: 120px; height: 90px; object-fit: contain; flex: 0 0 auto; }

/* جستجوی تمام‌صفحه‌ی موبایل */
.msearch {
  position: fixed; inset: 0; z-index: 95;
  background: #fff;
  display: flex; flex-direction: column;
}
.msearch__head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f2;
}
.msearch__back { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: #23254b; background: none; }
.msearch__back svg { width: 22px; height: 22px; }
.msearch__field {
  flex: 1 1 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border: 1px solid #ededf0; border-radius: 12px;
}
.msearch__field svg { width: 18px; height: 18px; color: #9da0a8; }
.msearch__field input { flex: 1 1 auto; border: 0; background: none; font-size: 12.5px; }
.msearch__cam {
  width: 30px; height: 30px; border-radius: 8px;
  background: #f3f0fd; color: #7a5af5;
  display: flex; align-items: center; justify-content: center;
}
.msearch__body { flex: 1 1 auto; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 20px; }

/* ============================================================
   لپ‌تاپ و تبلت (۷۶۹ تا ۱۲۸۰ پیکسل)
   ============================================================ */
@media (min-width: 769px) and (max-width: 1280px) {
  .dheader__main { gap: 12px; padding: 12px 14px; }
  .dsearch-wrap { max-width: none; }
  .dnav { gap: 12px; padding: 0 14px 10px; }
  .dnav__links { gap: 12px; }
  .dnav__links a { font-size: 12px; }
  .megamenu { width: min(900px, calc(100% - 28px)); right: 14px; }
  .megagroups { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 769px) and (max-width: 1100px) {
  /* نوار پیوندهای هدر در عرض کم، افقی اسکرول می‌شود تا بیرون نزند */
  .dnav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .dnav::-webkit-scrollbar { display: none; }
  .dnav__cats,
  .dnav__addr { flex: 0 0 auto; }
  .dnav__addr { margin-right: 12px; }
  .dnav__links { flex: 0 0 auto; }

  .dheader__logo img { height: 22px; }
  .dact--login span { display: none; }

  .megagroups { grid-template-columns: repeat(2, 1fr); }
  .sfooter__cols { gap: 18px; }
  .sabout { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* پیام کوتاه */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translate(-50%, 18px);
  z-index: 120;
  max-width: 88vw;
  padding: 12px 20px;
  border-radius: 10px;
  background: #23254b;
  color: #fff;
  font-size: 12.5px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 768px) { .toast { bottom: 84px; } }

/* ============================================================
   آیکن تومان همیشه کنار قیمت می‌ماند (هیچ‌وقت به سطر بعد نمی‌افتد)
   ============================================================ */
.toman-icon { flex: 0 0 auto; }

.main-price,
.new-price,
.hcard__now,
.pcard__now,
.acc-prod__now,
.acc-gift__amount,
.acc-shipitem__price,
.rec-card__price,
.saved-item__price,
.cart-row__now,
.relcard__price,
.dd__price-now,
.dd__total-now,
.cbar__price,
.ko-ship-cost,
.sum-row b,
.topstrip__slide span,
.acc-mwallet b,
.acc-wallet__head span {
  white-space: nowrap;
}

/* هر عنصری که مستقیم آیکن تومان دارد */
:is(span, b, div, p, a):has(> .toman-icon) {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

/* لودر مرحله‌ای سبک و اسکلت بخش‌های دیررس */
.site-skeleton-target { position:relative !important; }
.site-skeleton-mask { position:absolute; z-index:50; inset:0; overflow:hidden; min-height:150px; padding:16px; border-radius:inherit; background:#fff; pointer-events:none; }
.site-skeleton-mask__heading,.site-skeleton-mask__card i,.site-skeleton-mask__card b,.site-skeleton-mask__card em { display:block; border-radius:4px; background:linear-gradient(100deg,#eeeeef 25%,#f8f8f8 42%,#e9e9eb 62%); background-size:220% 100%; animation:site-shimmer 1.35s ease-in-out infinite; }
.site-skeleton-mask__heading { width:min(32%,190px); height:16px; margin-bottom:14px; }
.site-skeleton-mask__cards { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; }
.site-skeleton-mask__card { min-width:0; padding:0 3px 10px; background:#fff; }
.site-skeleton-mask__card i { height:clamp(72px,12vw,132px); border-radius:8px; margin-bottom:5px; }
.site-skeleton-mask__card b { height:11px; margin:4px 0; }
.site-skeleton-mask__card b:last-child { width:72%; }
.site-skeleton-mask__card em { width:55%; height:22px; border-radius:14px; margin:10px 0 0 auto; }
.site-loader { position:fixed; inset:0; z-index:99999; pointer-events:none; background:#fff; transition:opacity .2s ease,visibility .2s ease; }
.site-loader.is-skeleton-phase { background:transparent; }
.site-loader.is-hidden { opacity:0; visibility:hidden; }
.site-loader__dots { position:absolute; left:50%; top:50%; display:flex; gap:4px; transform:translate(-50%,-50%); }
.site-loader__dots i { width:5px; height:5px; border-radius:50%; background:#999; animation:site-dot 1s infinite ease-in-out; }
.site-loader__dots i:nth-child(2) { animation-delay:.15s; }
.site-loader__dots i:nth-child(3) { animation-delay:.3s; }
.site-loader.is-skeleton-phase .site-loader__dots { display:none; }
.login-splash { position:fixed; inset:0; z-index:100000; display:grid; place-items:center; background:#155dfb; transition:opacity .35s ease,visibility .35s ease; }
.login-splash.is-hidden { opacity:0; visibility:hidden; }
.login-splash__brand { display:flex; align-items:center; gap:16px; }
.login-splash__icon { width:70px; height:70px; border-radius:22px; background:#fff; display:grid; place-items:center; opacity:0; animation:splash-icon .35s .1s ease forwards; }
.login-splash__icon svg { width:44px; height:44px; fill:#155dfb; }
.login-splash__wordmark { color:#fff; direction:ltr; font-size:48px; line-height:1; letter-spacing:-3px; font-weight:700; font-family:Arial,Vazirmatn,sans-serif; clip-path:inset(0 100% 0 0); animation:splash-word .55s .65s ease forwards; }
@keyframes splash-icon { to { opacity:1; transform:scale(1.04); } }
@keyframes splash-word { to { clip-path:inset(0 0 0 0); } }
@keyframes site-shimmer { to { background-position:-220% 0; } }
@keyframes site-dot { 0%,60%,100% { opacity:.35; transform:translateY(0); } 30% { opacity:1; transform:translateY(-3px); } }
@media(max-width:600px) { .site-skeleton-mask { padding:10px; } .site-skeleton-mask__cards { grid-template-columns:repeat(2,minmax(0,1fr)); } .site-skeleton-mask__card:nth-child(n+3) { display:none; } .login-splash__brand { transform:scale(.78); } }
@media(prefers-reduced-motion:reduce) { .site-skeleton-mask__heading,.site-skeleton-mask__card i,.site-skeleton-mask__card b,.site-skeleton-mask__card em,.site-loader__dots i { animation-duration:2.5s; } }

/* وضعیت ورود در هدر */
.dact--account { width:58px; height:38px; gap:5px; padding:0 8px; border:1px solid #ededf0; }
.dact--account .dact__avatar { width:21px; height:21px; }
.dact--account .dact__chevron { width:14px; height:14px; }
.dd--acc { width:250px; max-width:min(250px,calc(100vw - 24px)); left:0; right:auto; top:calc(100% + 8px); }
.dd--acc .dd__head--link { display:block; padding:16px 15px; color:#343653; text-decoration:none; border-bottom:1px solid #ededf0; }
.dd--acc .dd__list { padding:3px 0; }
.dd--acc .dd__list li + li { border-top:1px solid #f0f0f2; }
.dd--acc .dd__list a { min-height:43px; padding:10px 14px; font-weight:600; }
@media(max-width:768px) { .dd--acc { position:absolute; } }

.dd--acc .dd__plus { color:#d52cbd; font-weight:700; }
.dd--acc .dd__plus svg { color:#d52cbd; }

/* account */


/* ============================================================
   دیجی‌کالای من (حساب کاربری) + اطلاعات حساب کاربری
   ============================================================ */

.page-account {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.acc-mhead { display: none; }

.acc-wrap {
  display: grid;
  grid-template-columns: var(--rs-acc-side-w, 240px) 1fr;
  align-items: start;
  gap: 18px;
}
.acc-body { min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* ============================================================
   ستون کناری
   ============================================================ */
.acc-side {
  position: sticky; top: 90px;
  background: var(--rs-acc-side-bg, #fff);
  border: 1px solid var(--rs-acc-side-border, #ededf0);
  border-radius: var(--rs-acc-side-radius, 12px);
  overflow: hidden;
}

.acc-user {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 14px;
}
.acc-user__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.acc-user__body b { font-size: var(--rs-acc-name-size, 14px); font-weight: var(--rs-acc-name-weight, 700); color: var(--rs-acc-name-color, #23254b); }
.acc-user__body span { font-size: 11.5px; color: #9da0a8; }
.acc-user__edit {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #3f4064;
}
.acc-user__edit svg { width: 17px; height: 17px; }
.acc-user__edit:hover { background: #f7f7f9; }

.acc-wallets { list-style: none; padding: 0 14px 10px; }
.acc-wallet { padding: 10px 0; border-top: 1px solid #f3f3f5; }
.acc-wallet:first-child { border-top: 0; }
.acc-wallet__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.acc-wallet__head b { font-size: 12.5px; font-weight: 700; color: #23254b; }
.acc-wallet__head span { font-size: 12px; color: #3f4064; white-space: nowrap; }
.acc-wallet__link {
  display: inline-flex; align-items: center; gap: 2px;
  margin-top: 5px;
  font-size: 11px; color: var(--rs-c-link, #1672dd); text-decoration: none;
}
.acc-wallet__link svg { width: 13px; height: 13px; }

.acc-menu { list-style: none; border-top: 1px solid #f3f3f5; padding: 6px 0; }
.acc-menu__item {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px;
  font-size: var(--rs-acc-menu-size, 12.5px); font-weight: var(--rs-acc-menu-weight, 400); color: var(--rs-acc-menu-color, #23254b); text-decoration: none;
}
.acc-menu__item:hover { background: var(--rs-acc-hover, #fafafb); }
.acc-menu__ic { display: flex; color: var(--rs-acc-icon, #3f4064); }
.acc-menu__ic svg { width: 19px; height: 19px; }
.acc-menu__ic.is-purple { color: #a561ec; }
.acc-menu__badge {
  margin-right: auto;
  min-width: 17px; height: 17px; padding: 0 5px;
  border-radius: 9px; background: var(--rs-c-red, #ef4056); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 17px; text-align: center;
}
.acc-menu__item.is-active { font-weight: 700; }
.acc-menu__item.is-active::before {
  content: '';
  position: absolute; right: 0; top: 8px; bottom: 8px;
  width: 3px; border-radius: 3px; background: var(--rs-c-red, var(--rs-primary, #183661));
}
.acc-menu__chev { margin-right: auto; color: #c0c2c5; display: flex; }
.acc-menu__chev svg { width: 16px; height: 16px; }
.acc-menu__badge + .acc-menu__chev { margin-right: 8px; }

/* ============================================================
   کارت‌های محتوا
   ============================================================ */
.acc-card {
  background: var(--rs-acc-card-bg, #fff);
  border: 1px solid var(--rs-acc-card-border, #ededf0);
  border-radius: var(--rs-acc-card-radius, 12px);
  padding: 16px;
}
.acc-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 12px;
}
.acc-card__head h2 { font-size: var(--rs-acc-title-size, 14.5px); font-weight: var(--rs-acc-title-weight, 700); color: var(--rs-acc-title-color, #23254b); }
.acc-card__title {
  position: relative;
  padding-bottom: 8px;
}
.acc-card__title::after {
  content: ''; position: absolute; right: 0; bottom: 0;
  width: 100%; height: 2px; border-radius: 2px; background: var(--rs-c-red, var(--rs-primary, #183661));
}
.acc-more {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 12px; color: var(--rs-c-link, #1672dd); text-decoration: none;
}
.acc-more svg { width: 15px; height: 15px; }
.acc-sub { font-size: 12.5px; font-weight: 700; color: #23254b; margin: 16px 0 10px; }
.acc-empty { padding: 40px 0; text-align: center; font-size: 12.5px; color: #9da0a8; }

.acc-icon-btn {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #3f4064; background: none; flex: 0 0 auto;
}
.acc-icon-btn:hover { background: #f7f7f9; }
.acc-icon-btn svg { width: 18px; height: 18px; }

.acc-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--rs-c-link, #1672dd); text-decoration: none; background: none;
}
.acc-link svg { width: 16px; height: 16px; }
.acc-link--red { color: var(--rs-c-red, #ef4056); }
.acc-link--toggle { margin-top: 8px; }

.acc-back-title { display: inline-flex; align-items: center; gap: 8px; }
.acc-back-title a { display: flex; color: #3f4064; }
.acc-back-title svg { width: 19px; height: 19px; }
.acc-only-m { display: none; }

/* ============================================================
   وضعیت سفارش‌ها (خلاصه)
   ============================================================ */
.acc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.acc-stat {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color .2s ease;
}
.acc-stat:hover { background: #fafafb; }
.acc-stat__ic {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.acc-stat__ic svg { width: 24px; height: 24px; }
.acc-stat.is-current .acc-stat__ic { background: var(--rs-acc-stat-1, #3ca0ea); }
.acc-stat.is-delivered .acc-stat__ic { background: var(--rs-acc-stat-2, #00a049); }
.acc-stat.is-returned .acc-stat__ic { background: var(--rs-acc-stat-3, #f0a83c); }
.acc-stat__body { display: flex; flex-direction: column; gap: 4px; }
.acc-stat__body b { font-size: 13px; font-weight: 700; color: #23254b; }
.acc-stat__body span { font-size: 11.5px; color: #9da0a8; }

/* ============================================================
   کارت کالا در حساب
   ============================================================ */
.acc-row {
  display: flex; gap: 0;
  overflow-x: auto; scrollbar-width: thin;
}
.acc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0;
  border-top: 1px solid #f3f3f5;
}
.acc-prod {
  position: relative;
  flex: 0 0 200px;
  min-width: 0;
  padding: 14px 12px;
  border-left: 1px solid #f3f3f5;
  display: flex; flex-direction: column; gap: 9px;
}
.acc-grid .acc-prod { flex: none; border-bottom: 1px solid #f3f3f5; }
.acc-prod__tag { min-height: 16px; font-size: 11px; font-weight: 700; color: var(--rs-c-red, var(--rs-primary, #183661)); }
.acc-prod__img { display: block; width: 100%; aspect-ratio: 1/1; }
.acc-prod__img img { width: 100%; height: 100%; object-fit: contain; }
.acc-prod__title {
  font-size: 12px; line-height: 1.7; color: #3f4064; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  min-height: 40px;
}
.acc-prod__note { min-height: 15px; font-size: 10.5px; color: var(--rs-c-red, var(--rs-primary, #183661)); }
.acc-prod__price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.acc-prod__off { display: flex; align-items: center; gap: 5px; }
.acc-prod__off b { padding: 1px 6px; border-radius: 10px; background: var(--rs-c-red, #ef4056); color: #fff; font-size: 10px; font-weight: 700; }
.acc-prod__off s { font-size: 10px; color: #c0c2c5; }
.acc-prod__now { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; color: #23254b; }
.acc-prod__actions { display: flex; align-items: center; gap: 8px; }

.acc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px; font-weight: 700;
  border: 1px solid var(--rs-c-red, var(--rs-primary, #183661)); color: var(--rs-c-red, var(--rs-primary, #183661)); background: #fff;
  transition: background-color .2s ease, color .2s ease;
}
.acc-btn svg { width: 16px; height: 16px; }
.acc-btn--add { flex: 1 1 auto; }
.acc-btn--add:hover { background: var(--rs-c-red, var(--rs-primary, #183661)); color: #fff; }
.acc-btn--add.is-done { background: #edfaf1; border-color: #00a049; color: #00a049; }
.acc-btn--ghost { flex: 0 0 auto; border-color: #ededf0; color: #62666d; padding: 8px 10px; }
.acc-btn--ghost:hover { border-color: var(--rs-c-red, var(--rs-primary, #183661)); color: var(--rs-c-red, var(--rs-primary, #183661)); }
.acc-btn--wide { width: 100%; }

/* ============================================================
   تب‌ها و چیپ‌ها
   ============================================================ */
.acc-tabs {
  display: flex; align-items: center; gap: 20px;
  margin: 0 -16px 14px;
  padding: 0 16px;
  border-bottom: 1px solid #f0f0f2;
  overflow-x: auto; scrollbar-width: none;
}
.acc-tabs::-webkit-scrollbar { display: none; }
.acc-tab {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 2px;
  background: none;
  font-size: 12.5px; color: #9da0a8; white-space: nowrap;
}
.acc-tab b {
  min-width: 17px; height: 17px; padding: 0 5px;
  border-radius: 9px; background: #f0f0f2; color: #62666d;
  font-size: 10px; font-weight: 700; line-height: 17px; text-align: center;
}
.acc-tab.is-active { color: #23254b; font-weight: 700; }
.acc-tab.is-active b { background: var(--rs-c-red, var(--rs-primary, #183661)); color: #fff; }
.acc-tab.is-active::after {
  content: ''; position: absolute; right: 0; left: 0; bottom: -1px;
  height: 2px; border-radius: 2px; background: var(--rs-c-red, var(--rs-primary, #183661));
}
.acc-tab--static { padding-bottom: 12px; }

.acc-chips {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto; scrollbar-width: none;
}
.acc-chips::-webkit-scrollbar { display: none; }
.acc-chip {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px;
  border: 1px solid #ededf0; border-radius: 10px;
  background: #fff;
  font-size: 12px; color: #3f4064; white-space: nowrap;
}
.acc-chip.is-active { background: #23254b; border-color: #23254b; color: #fff; font-weight: 700; }

/* ============================================================
   سفارش‌ها
   ============================================================ */
.acc-orders { display: flex; flex-direction: column; gap: 14px; }
.acc-order { border: 1px solid #ededf0; border-radius: 10px; overflow: hidden; }
.acc-order__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  text-decoration: none;
}
.acc-order__status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; }
.acc-order__status svg { width: 17px; height: 17px; }
.acc-order__status.is-delivered { color: #00a049; }
.acc-order__status.is-current { color: var(--rs-c-link, #1672dd); }
.acc-order__status.is-returned { color: #f0a83c; }
.acc-order__status.is-canceled { color: #9da0a8; }
.acc-order__chev { display: flex; color: #9da0a8; }
.acc-order__chev svg { width: 18px; height: 18px; }

.acc-order__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 0 14px 12px;
  font-size: 11.5px; color: #9da0a8;
}
.acc-order__meta b { color: #23254b; font-weight: 700; }
.acc-order__meta i { width: 3px; height: 3px; border-radius: 50%; background: #d8d9dd; }

.acc-order__thumbs {
  display: flex; gap: 0;
  border-top: 1px solid #f3f3f5;
  overflow-x: auto; scrollbar-width: none;
}
.acc-order__thumbs::-webkit-scrollbar { display: none; }
.acc-order__thumbs img {
  flex: 0 0 auto;
  width: 78px; height: 78px; padding: 10px;
  object-fit: contain;
  border-left: 1px solid #f3f3f5;
}
.acc-order__foot { padding: 10px 14px; border-top: 1px solid #f3f3f5; }

/* جزئیات سفارش */
.acc-info { padding: 12px 0; border-top: 1px solid #f3f3f5; display: flex; flex-direction: column; gap: 10px; }
.acc-info__row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: #9da0a8;
}
.acc-info__row b { color: #23254b; font-weight: 700; }
.acc-info__row i { width: 3px; height: 3px; border-radius: 50%; background: #d8d9dd; }

.acc-ship {
  margin-top: 14px;
  border: 1px solid #ededf0; border-radius: 10px;
  padding: 14px;
}
.acc-ship__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: #3f4064; }
.acc-ship__no { font-weight: 700; color: #23254b; }
.acc-ship__kind { display: inline-flex; align-items: center; gap: 5px; color: var(--rs-c-red, var(--rs-primary, #183661)); }
.acc-ship__kind svg { width: 17px; height: 17px; }
.acc-ship__count { padding: 3px 8px; border-radius: 6px; background: #f7f7f9; font-size: 11px; color: #62666d; }
.acc-ship__head i { width: 3px; height: 3px; border-radius: 50%; background: #d8d9dd; }

.acc-progress {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #edfaf1;
}
.acc-progress__label { display: block; font-size: 12px; font-weight: 700; color: #00a049; margin-bottom: 8px; text-align: center; }
.acc-progress__bar { display: block; height: 6px; border-radius: 4px; background: #cdeedb; overflow: hidden; }
.acc-progress__bar b { display: block; height: 100%; border-radius: 4px; background: #00a049; }

.acc-ship__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px;
  font-size: 11.5px; color: #9da0a8;
}
.acc-ship__meta b { color: #23254b; font-weight: 700; }

.acc-shipitem {
  display: flex; gap: 14px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid #f3f3f5;
}
.acc-shipitem__img { position: relative; flex: 0 0 auto; width: 84px; height: 84px; }
.acc-shipitem__img img { width: 100%; height: 100%; object-fit: contain; }
.acc-shipitem__img b {
  position: absolute; bottom: 0; right: 0;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 6px; background: #f0f0f2;
  font-size: 10px; font-weight: 700; line-height: 18px; text-align: center; color: #62666d;
}
.acc-shipitem__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.acc-shipitem__title { font-size: 12.5px; line-height: 1.7; color: #23254b; text-decoration: none; }
.acc-shipitem__meta { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #9da0a8; }
.acc-shipitem__meta svg { width: 15px; height: 15px; }
.acc-shipitem__price { font-size: 13px; font-weight: 700; color: #23254b; display: inline-flex; align-items: center; gap: 3px; }
.acc-shipitem__rate { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }

.acc-rate-label { font-size: 11.5px; font-weight: 700; color: var(--rs-c-red, var(--rs-primary, #183661)); }
.acc-stars { display: flex; gap: 2px; }
.acc-star {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; color: #d8d9dd;
}
.acc-star svg { width: 20px; height: 20px; }
.acc-star i { font-style: normal; font-size: 9px; color: #9da0a8; }
.acc-star.is-on { color: #f5a623; }
.acc-star.is-on svg { fill: #f5a623; }

/* ============================================================
   لیست‌ها
   ============================================================ */
.acc-alert {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0;
}
.acc-alert__body { display: flex; flex-direction: column; gap: 5px; }
.acc-alert__body b { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #23254b; }
.acc-alert__body b svg { width: 17px; height: 17px; }
.acc-alert__body span { font-size: 11px; color: #9da0a8; }

.ko-switch {
  width: 42px; height: 24px; border-radius: 14px;
  background: #e0e0e2; padding: 3px;
  display: flex; align-items: center; flex: 0 0 auto;
  transition: background-color .2s ease;
}
.ko-switch span { width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s ease; }
.ko-switch[aria-pressed="true"] { background: var(--rs-c-link, #1672dd); }
.ko-switch[aria-pressed="true"] span { transform: translateX(-18px); }

.acc-sort { display: flex; align-items: center; gap: 16px; padding: 10px 0; }
.acc-sort__label { font-size: 12px; color: #23254b; }
.acc-sort__item { background: none; font-size: 12px; color: #62666d; }
.acc-sort__item.is-active { color: var(--rs-c-red, var(--rs-primary, #183661)); font-weight: 700; }
.acc-sort__count { margin-right: auto; font-size: 11.5px; color: #9da0a8; }

/* ============================================================
   دیدگاه‌ها
   ============================================================ */
.acc-cm { border-top: 1px solid #f3f3f5; padding: 16px 0; display: flex; flex-direction: column; gap: 14px; }
.acc-cm:first-of-type { border-top: 0; }
.acc-cm__top { display: flex; gap: 14px; }
.acc-cm__img { flex: 0 0 auto; width: 74px; height: 74px; }
.acc-cm__img img { width: 100%; height: 100%; object-fit: contain; }
.acc-cm__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.acc-cm__title { font-size: 12.5px; line-height: 1.7; color: var(--rs-c-link, #1672dd); text-decoration: none; }
.acc-cm__meta { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #9da0a8; }
.acc-cm__meta svg { width: 15px; height: 15px; }
.acc-cm__status { color: #00a049; }
.acc-cm__stars { display: flex; gap: 2px; color: #d8d9dd; }
.acc-cm__stars svg { width: 15px; height: 15px; }
.acc-cm__stars svg.is-on { color: #f5a623; }
.acc-cm__text { font-size: 12px; line-height: 1.9; color: #3f4064; }
.acc-cm__rate { display: flex; align-items: center; gap: 14px; }

/* ============================================================
   آدرس‌ها
   ============================================================ */
.acc-geo {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  border: 1px dashed #d8d9dd; border-radius: 10px;
}
.acc-geo__ic { color: var(--rs-c-link, #1672dd); display: flex; }
.acc-geo__ic svg { width: 20px; height: 20px; }
.acc-geo__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 5px; }
.acc-geo__body b { font-size: 12.5px; color: #23254b; }
.acc-geo__body span { font-size: 11.5px; color: var(--rs-c-link, #1672dd); }

.acc-addr {
  display: flex; gap: 12px;
  margin-top: 12px; padding: 14px;
  border: 1px solid #ededf0; border-radius: 10px;
}
.acc-addr.is-main { border-color: var(--rs-c-link, #1672dd); }
.acc-addr__pin { flex: 0 0 auto; color: var(--rs-c-link, #1672dd); display: flex; }
.acc-addr__pin svg { width: 19px; height: 19px; }
.acc-addr__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.acc-addr__label { font-size: 12.5px; font-weight: 700; color: #23254b; }
.acc-addr__body p { font-size: 12px; line-height: 1.9; color: #3f4064; }
.acc-addr__body span { font-size: 11.5px; color: #9da0a8; }

/* ============================================================
   پیام‌ها
   ============================================================ */
.acc-msgs { display: flex; flex-direction: column; }
.acc-msg { display: flex; gap: 12px; padding: 16px 14px; margin: 0 -14px; border-bottom: 1px solid #f7f7f9; }
.acc-msg.is-unread { background: #f7f9fe; }
.acc-msg__ic {
  flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: #fdecef; color: var(--rs-c-red, var(--rs-primary, #183661));
}
.acc-msg__ic svg { width: 20px; height: 20px; }
.acc-msg__ic.is-order { background: #eef5fd; color: var(--rs-c-link, #1672dd); }
.acc-msg__ic.is-coin { background: #fdf5e6; color: #e8a23c; }
.acc-msg__ic.is-ask { background: #f3f0fd; color: #7a5af5; }
.acc-msg__ic.is-img { background: #f7f7f9; padding: 4px; }
.acc-msg__ic.is-img img { width: 100%; height: 100%; object-fit: contain; }
.acc-msg__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.acc-msg__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acc-msg__top b { font-size: 12.5px; font-weight: 700; color: #23254b; }
.acc-msg__tag { padding: 3px 9px; border-radius: 14px; border: 1px solid #ededf0; font-size: 10.5px; color: #62666d; }
.acc-msg__body p { font-size: 11.5px; line-height: 1.9; color: #62666d; }
.acc-msg__code {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 8px; background: #fafafb;
}
.acc-msg__code span { font-size: 11.5px; color: #9da0a8; }
.acc-msg__code b { font-size: 12px; letter-spacing: 1px; color: #23254b; }
.acc-msg__date { font-size: 10.5px; color: #c0c2c5; }

/* ============================================================
   کارت هدیه و پلاس
   ============================================================ */
.acc-field { display: flex; gap: 8px; margin-bottom: 14px; }
.acc-field input {
  flex: 1 1 auto;
  padding: 11px 12px; border: 1px solid #ededf0; border-radius: 8px;
  background: #fafafb; font-size: 12.5px;
}
.acc-field button { padding: 0 22px; border-radius: 8px; background: var(--rs-c-red, var(--rs-primary, #183661)); color: #fff; font-size: 12.5px; font-weight: 700; }

.acc-gift { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #f3f3f5; }
.acc-gift.is-used { opacity: .6; }
.acc-gift__ic { width: 40px; height: 40px; border-radius: 10px; background: #f3f0fd; color: #7a5af5; display: flex; align-items: center; justify-content: center; }
.acc-gift__ic svg { width: 20px; height: 20px; }
.acc-gift__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 5px; }
.acc-gift__body b { font-size: 12.5px; color: #23254b; }
.acc-gift__body span { font-size: 11px; color: #9da0a8; }
.acc-gift__amount { font-size: 13px; font-weight: 700; color: #23254b; display: inline-flex; align-items: center; gap: 3px; }

.acc-plus__hero {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f3ecfd, #fbf6ff);
}
.acc-plus__ic { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: #a561ec; display: flex; align-items: center; justify-content: center; }
.acc-plus__ic svg { width: 24px; height: 24px; }
.acc-plus__hero > div { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; }
.acc-plus__hero b { font-size: 13.5px; color: #23254b; }
.acc-plus__hero span { font-size: 11.5px; color: #9da0a8; }
.acc-plus__list { list-style: none; margin-top: 14px; }
.acc-plus__list li { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-top: 1px solid #f3f3f5; font-size: 12.5px; color: #3f4064; }
.acc-plus__list svg { width: 19px; height: 19px; color: #a561ec; }

/* خانه‌ی موبایل فقط برای موبایل است */
.acc-mhome { display: none; }

/* ============================================================
   صفحه‌ی اطلاعات حساب کاربری
   ============================================================ */
.page-profile { background: #f7f7f9; }
.pf-head {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid #f0f0f2;
}
.pf-head__back { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: #23254b; text-decoration: none; }
.pf-head__back svg { width: 20px; height: 20px; color: #3f4064; }
.pf-head__logo img { display: block; height: 22px; width: auto; }

.page-profile { max-width: 1100px; margin: 0 auto; padding: 20px 16px 60px; }
.pf-wrap { display: grid; grid-template-columns: 250px 1fr; align-items: start; gap: 18px; }

.pf-side { background: #fff; border: 1px solid #ededf0; border-radius: 12px; padding: 6px 0; }
.pf-tabs { list-style: none; }
.pf-tab {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px;
  background: none; text-align: right;
  font-size: 12.5px; color: #23254b;
}
.pf-tab:hover { background: #fafafb; }
.pf-tab.is-active { background: #f7f7f9; font-weight: 700; }
.pf-tab__ic { display: flex; color: #3f4064; }
.pf-tab__ic svg { width: 19px; height: 19px; }

.pf-body { min-width: 0; }
.pf-card { background: #fff; border: 1px solid #ededf0; border-radius: 12px; padding: 18px; }
.pf-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pf-card__head h2 { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #23254b; }
.pf-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--rs-c-link, #1672dd); background: none; text-decoration: none; }
.pf-link svg { width: 15px; height: 15px; }

.pf-badge { padding: 3px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 700; }
.pf-badge.is-ok { background: #edfaf1; color: #00a049; }
.pf-badge.is-warn { background: #fdf3e7; color: #e8901e; }

.pf-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #f0f0f2; border-radius: 10px; overflow: hidden; }
.pf-field {
  display: flex; align-items: center; gap: 8px;
  padding: 14px;
  border-left: 1px solid #f0f0f2;
  border-bottom: 1px solid #f0f0f2;
}
.pf-field:nth-child(2n) { border-left: 0; }
.pf-field:nth-last-child(-n+2) { border-bottom: 0; }
.pf-field__label { flex: 1 1 auto; font-size: 12px; color: #9da0a8; }
.pf-field__value { font-size: 12.5px; color: #23254b; }
.pf-field__chev { display: flex; color: #c0c2c5; }
.pf-field__chev svg { width: 16px; height: 16px; }

.pf-sub { font-size: 13px; font-weight: 700; color: #23254b; margin: 20px 0 10px; }
.pf-note { font-size: 11.5px; line-height: 1.9; color: #9da0a8; margin-bottom: 12px; }

.pf-grid--switch { grid-template-columns: 1fr 1fr; }
.pf-switch { display: flex; align-items: center; gap: 10px; padding: 14px; border-left: 1px solid #f0f0f2; border-bottom: 1px solid #f0f0f2; }
.pf-switch:nth-child(2n) { border-left: 0; }
.pf-switch__body { display: flex; flex-direction: column; gap: 4px; }
.pf-switch__body b { font-size: 12.5px; color: #23254b; }
.pf-switch__body small { font-size: 10.5px; color: #9da0a8; }
.pf-switch--row { border: 1px solid #f0f0f2; border-radius: 10px; margin-top: 10px; }

.pf-row {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 0;
  border-top: 1px solid #f3f3f5;
  background: none; text-align: right;
}
.pf-row span { display: flex; flex-direction: column; gap: 5px; }
.pf-row b { font-size: 12.5px; font-weight: 700; color: #23254b; }
.pf-row small { font-size: 11px; line-height: 1.8; color: #9da0a8; }
.pf-row svg { width: 17px; height: 17px; color: #c0c2c5; flex: 0 0 auto; }
.pf-row--danger b { color: var(--rs-c-red, #ef4056); }

/* ============================================================
   موبایل
   ============================================================ */
@media (max-width: 768px) {
  .page-account { background: var(--rs-acc-m-bg, #f0f0f1); }
  .page-account { padding: 0 0 16px; }

  .acc-mhead {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border-bottom: 1px solid #f0f0f2;
  }
  .acc-mhead__back { display: flex; color: #23254b; }
  .acc-mhead__back svg { width: 22px; height: 22px; }
  .acc-mhead__title { font-size: 15px; font-weight: 700; color: #23254b; }
  .acc-mhead__spacer { flex: 1 1 auto; }
  .acc-mhead__btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: #23254b; background: none; }
  .acc-mhead__btn svg { width: 21px; height: 21px; }
  .acc-mhead--home { justify-content: space-between; }

  .acc-wrap { display: block; }
  .acc-side { display: none; }
  .acc-body { gap: 10px; }
  .acc-mhome { display: block; }

  .acc-card { border-radius: 0; border-right: 0; border-left: 0; padding: 14px; }
  .acc-mhome .acc-user { background: #fff; padding: 16px 14px; }

  .acc-mwallets {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: #f0f0f1;
    border-bottom: 1px solid #f0f0f1;
  }
  .acc-mwallet {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    padding: 14px 8px;
    background: #fff;
    text-decoration: none; text-align: center;
  }
  .acc-mwallet__ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #62666d; }
  .acc-mwallet__ic svg { width: 18px; height: 18px; }
  .acc-mwallet b { font-size: 12px; font-weight: 700; color: #23254b; display: inline-flex; align-items: center; gap: 3px; }
  .acc-mwallet__title { font-size: 10.5px; color: #9da0a8; }
  .acc-mwallet__link { display: inline-flex; align-items: center; gap: 2px; font-size: 10px; color: var(--rs-c-link, #1672dd); }
  .acc-mwallet__link svg { width: 12px; height: 12px; }

  .acc-menu--m { background: #fff; margin-top: 10px; border-top: 0; }
  .acc-menu--m .acc-menu__item { padding: 15px 14px; border-bottom: 1px solid #f7f7f9; }

  .acc-stats { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .acc-stat { flex-direction: column; text-align: center; gap: 8px; padding: 10px 4px; }
  .acc-stat__body b { font-size: 11.5px; }
  .acc-stat__body span { font-size: 10.5px; }

  .acc-only-m { display: flex; }
  .acc-card__head h2 { font-size: 13.5px; }

  .acc-row { margin: 0 -14px; padding: 0 14px; }
  .acc-prod { flex: 0 0 150px; padding: 12px 10px; }
  .acc-grid { grid-template-columns: repeat(2, 1fr); }

  .acc-shipitem { flex-wrap: wrap; }
  .acc-shipitem__rate { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
  .acc-shipitem__rate .acc-btn { flex: 0 0 auto; }

  .acc-order__meta { font-size: 11px; }
  .acc-msg { margin: 0 -14px; padding: 14px; }

  .pf-head { padding: 12px 14px; }
  .pf-head__back span { font-size: 14px; }
  .page-profile { padding: 0 0 24px; }
  .pf-wrap { display: block; }
  .pf-side { border-radius: 0; border-right: 0; border-left: 0; margin-bottom: 10px; }
  .pf-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .pf-tabs::-webkit-scrollbar { display: none; }
  .pf-tab { white-space: nowrap; padding: 12px 14px; }
  .pf-tab__ic { display: none; }
  .pf-tab.is-active { background: none; color: var(--rs-c-red, var(--rs-primary, #183661)); border-bottom: 2px solid var(--rs-c-red, var(--rs-primary, #183661)); }
  .pf-card { border-radius: 0; border-right: 0; border-left: 0; padding: 14px; }
  .pf-grid, .pf-grid--switch { grid-template-columns: 1fr; }
  .pf-field { border-left: 0; }
  .pf-field:nth-last-child(-n+2) { border-bottom: 1px solid #f0f0f2; }
  .pf-field:last-child { border-bottom: 0; }
  .pf-switch { border-left: 0; }
}

/* ردیف افقی کالاها با دکمه‌های ناوبری */
.acc-rowwrap { position: relative; }
.acc-rownav {
  position: absolute; top: 42%;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ededf0;
  box-shadow: 0 2px 10px rgba(0,0,0,.14);
  display: flex; align-items: center; justify-content: center;
  color: #3f4064;
  z-index: 2;
  transition: opacity .2s ease, visibility .2s;
}
.acc-rownav svg { width: 18px; height: 18px; }
.acc-rownav--prev { right: -8px; }
.acc-rownav--next { left: -8px; }
.acc-rownav.is-hidden { opacity: 0; visibility: hidden; }

@media (max-width: 768px) {
  .acc-rownav { display: none; }
}


/* کارت‌های ردیف کالا هم‌قد */
.acc-row { align-items: stretch; }
.acc-prod { height: auto; }
.acc-prod__title { flex: 0 0 auto; }
.acc-prod__price { margin-top: auto; }
.acc-prod__actions { flex: 0 0 auto; }

/* ============================================================
   Plugin additions: the account page widget
   ============================================================ */
.acc-part-m { display: none; }
.acc-part-d { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 768px) {
  .acc-part-m { display: block; }
  .acc-part-d { display: none; }
  /* With a section open, the phone shows just the section. */
  .acc-wrap.is-tab .acc-mhome { display: none; }
}
.acc-guest { max-width: 420px; margin: 40px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.acc-order__note { margin: 8px 0 0; font-size: 12px; line-height: 1.9; color: #62666d; }
.acc-order__foot:empty { display: none; }
.acc-tab { font: inherit; }
.acc-tab b { margin-right: 6px; }
button.acc-link, button.acc-tab, .acc-icon-btn, .acc-btn { font-family: inherit; cursor: pointer; }
.acc-btn { text-decoration: none; }

/* one field: view, then its inline editor */
.acc-pf { display: block; }
.acc-pf__view { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acc-pf__text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.acc-pf .pf-field__value { word-break: break-word; }
.acc-pf__req { color: var(--rs-c-red, var(--rs-primary, #183661)); font-weight: 700; }
.pf-empty { font-style: normal; color: #c0c2c5; }
.acc-pf__form { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.acc-pf__form[hidden] { display: none; }
.acc-pf__form input, .acc-pf__form textarea { width: 100%; box-sizing: border-box; height: 42px; padding: 0 12px; border: 1px solid #d9dade; border-radius: 8px; font: inherit; font-size: 13px; color: #23254b; background: #fff; outline: 0; }
.acc-pf__form textarea { height: auto; padding: 10px 12px; line-height: 1.9; resize: vertical; }
.acc-pf__form input:focus, .acc-pf__form textarea:focus { border-color: #23254b; }
.acc-pf__btns { display: flex; gap: 8px; }
.acc-pf__btns .acc-btn { height: 36px; padding: 0 16px; }
.acc-pf__msg { margin: 0; font-size: 11.5px; color: var(--rs-c-red, var(--rs-primary, #183661)); }
.acc-pf__msg.is-ok { color: #00a049; }
.acc-pf.is-busy { opacity: .6; pointer-events: none; }

/* person / company */
.acc-ptype { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 6px; }
.acc-ptype__item { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1px solid #e0e0e2; border-radius: 10px; background: #fff; font: inherit; font-size: 13px; color: #62666d; cursor: pointer; }
.acc-ptype__item.is-active { border-color: #23254b; color: #23254b; font-weight: 700; background: #f7f8fa; }
.acc-ptype__dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c0c2c5; box-sizing: border-box; }
.acc-ptype__item.is-active .acc-ptype__dot { border: 5px solid #1672dd; }
.acc-legal[hidden], .acc-legal-cta[hidden] { display: none; }
.acc-legal-cta .acc-link { padding: 0; }
@media (min-width: 769px) { .acc-back-title a.acc-only-m { display: none !important; } }

/* A document inside its message: number, amount, status, the file. */
.acc-msg__doc {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin: 8px 0 0; padding: 10px 12px;
  border: 1px solid #ededf0; border-radius: 10px; background: #fafafb;
  font-size: 12px; color: #62666d;
}
.acc-msg__doc b { color: #23254b; }
.acc-msg__doc .acc-order__status { font-size: 12px; }
.acc-msg__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.acc-msg__acts .acc-btn { height: 38px; padding: 0 14px; font-size: 12.5px; }
.acc-msg__agent { font-size: 11.5px; color: #81858b; }
.acc-msg.is-doc .acc-msg__ic { background: var(--rs-primary-soft, #eef2f8); color: var(--rs-primary, #183661); }

/* account-tools */
/* Standalone electronic invoice */
.account-live-invoice { width: 980px; max-width: 100%; margin: 0 auto; padding: 22px 0; color: #111; background: #fff; border: 0; font-family: Vazirmatn, var(--font), Tahoma, Arial, sans-serif; }
.account-invoice-topbar { display: flex; justify-content: space-between; align-items: center; min-height: 48px; border-bottom: 4px solid #eee; padding: 0 0 12px; }
.account-invoice-topbar img { display: block; width: 120px; height: 40px; object-fit: contain; }
.account-invoice-topbar button { border: 0; border-radius: 8px; padding: 10px 16px; background: var(--rs-c-red, var(--rs-primary, #183661)); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.account-live-invoice h1 { margin: 18px 0 8px; text-align: center; font-size: 20px; font-weight: 800; }
.invoice-party-row { border-radius: 5px; overflow: hidden; display: grid; grid-template-columns: 54px minmax(0,1fr) 226px; gap: 0; min-height: 88px; margin: 8px 0; border: 1px solid #222; }
.invoice-party-details { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 6px 12px; padding: 9px 12px; font-size: 10px; line-height: 1.7; }
.invoice-party-details b { grid-column: 1 / -1; font-size: 11px; }
.invoice-side-meta { grid-column: 3; grid-row: 1; display: grid; grid-template-columns: auto 1fr; align-content: center; gap: 4px 8px; border-right: 1px solid #222; padding: 8px; font-size: 9px; line-height: 1.6; }
.invoice-party-label { grid-column: 1; grid-row: 1; border-left: 1px solid #222; display: grid; place-items: center; border-right: 1px solid #222; background: #eee; writing-mode: vertical-rl; font-size: 11px; }
.account-invoice-table { width: 100%; overflow-x: auto; }
.account-invoice-table table { width: 100%; min-width: 920px; border-collapse: collapse; table-layout: auto; font-size: 9px; }
.account-invoice-table th, .account-invoice-table td { border: 1px solid #111; padding: 6px 4px; text-align: center; vertical-align: middle; line-height: 1.55; }
.account-invoice-table th { background: #eee; font-weight: 700; }
.account-invoice-table .invoice-product-name { min-width: 180px; text-align: right; }
.account-invoice-table tfoot th { text-align: right; }
.account-invoice-total th, .account-invoice-total td { background: #e9e9e9; font-weight: 800; }
.invoice-settlement { border-radius: 5px; display: flex; justify-content: space-between; gap: 12px; border: 1px solid #111; border-top: 0; padding: 9px; font-size: 10px; }
.invoice-barcode { grid-column: 1 / -1; justify-self: center; display: flex; align-items: center; width: 145px; margin: 0 0 3px; color: #111; }
.invoice-barcode__svg { display: block; width: 100%; height: 25px; fill: #111; }

.invoice-validation-footer { border-radius: 5px; overflow: hidden; display: grid; grid-template-columns: 150px 150px minmax(0,1fr); min-height: 112px; margin-top: 8px; border: 1px solid #111; }
.invoice-signature-box, .invoice-stamp-box { display: flex; flex-direction: column; align-items: center; justify-content: space-between; min-height: 110px; padding: 9px; text-align: center; font-size: 10px; }
.invoice-signature-box, .invoice-stamp-box { border-left: 1px solid #111; }
.invoice-signature-box i { display: block; width: 82%; height: 28px; margin-top: auto; border-bottom: 1px solid #555; }
.invoice-stamp-box i { display: block; width: 62px; height: 62px; margin-top: auto; border: 1px dashed #aaa; border-radius: 50%; }
.tax-authority-logo { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 10px; color: #176c42; text-align: center; }
.tax-authority-logo svg { display: block; flex: 0 0 54px; width: 54px; height: 54px; }
.tax-authority-logo span { display: flex; flex-direction: column; gap: 2px; font-size: 11px; }
.tax-authority-logo small { font-size: 9px; }
.invoice-legal-note { border-radius: 5px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid #111; border-top: 0; padding: 9px; font-size: 9px; }
.account-tool-dialog { width: min(520px, calc(100% - 28px)); max-height: min(85vh, 740px); border: 0; border-radius: 14px; padding: 0; box-shadow: 0 18px 60px #0004; }
.account-tool-dialog::backdrop { background: #10132688; }
.account-tool-dialog form { padding: 22px; }
.account-tool-dialog h2 { margin: 0 0 16px; font-size: 18px; }
.account-tool-dialog .tool-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-tool-dialog label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #555; }
.account-tool-dialog input, .account-tool-dialog textarea { width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 10px; font: inherit; color: #222; background: #fff; }
.account-tool-dialog textarea { min-height: 82px; resize: vertical; }
.account-tool-dialog .tool-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.account-tool-dialog button { border: 0; border-radius: 8px; padding: 9px 16px; font: inherit; cursor: pointer; }
.account-tool-dialog [type=submit] { color: #fff; background: var(--rs-c-red, var(--rs-primary, #183661)); }
.account-tool-dialog [data-tool-cancel] { background: #f1f1f3; color: #444; }
.acc-addr__actions { display: flex; flex-direction: column; gap: 6px; }
.acc-addr__actions button { border: 0; background: transparent; color: #555; font: inherit; cursor: pointer; white-space: nowrap; }
.acc-addr__actions button:hover { color: var(--rs-c-red, var(--rs-primary, #183661)); }

.acc-addr__actions { display: flex; flex-direction: column; gap: 6px; }
.acc-addr__actions button { border: 0; background: transparent; color: #555; font: inherit; cursor: pointer; white-space: nowrap; }
.acc-addr__actions button:hover { color: var(--rs-c-red, var(--rs-primary, #183661)); }
@media (max-width: 768px) {
  .invoice-standalone__main { margin: 10px auto; padding: 0 8px; }
  .account-live-invoice { padding: 12px 0; }
  .invoice-party-row { grid-template-columns: 34px minmax(0,1fr) 160px; }
  .invoice-party-details { grid-template-columns: 1fr; gap: 3px; }
  .invoice-party-details b { grid-column: auto; }
  .invoice-settlement, .invoice-legal-note { flex-wrap: wrap; }
  .invoice-validation-footer { grid-template-columns: 1fr 1fr; }
  .tax-authority-logo { grid-column: 1 / -1; grid-row: 1; border-bottom: 1px solid #111; }
  .invoice-signature-box, .invoice-stamp-box { min-height: 94px; }
}
@media print {
  .invoice-standalone { background: #fff !important; }
  .invoice-standalone .topstrip, .invoice-standalone .dheader, .invoice-standalone .dnav,
  .invoice-standalone .acc-mhead, .invoice-standalone .acc-side, .invoice-standalone .sfooter,
  .invoice-standalone .mnav, .invoice-standalone .account-invoice-actions { display: none !important; }
  .invoice-standalone .page-account, .invoice-standalone .acc-wrap, .invoice-standalone .acc-body { display: block !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
  .invoice-standalone .account-live-invoice { width: 100%; padding: 0; border: 0; color: #000; }
  .invoice-standalone .account-invoice-table { overflow: visible; }
  .invoice-standalone .account-invoice-table table { min-width: 0; font-size: 9pt; }
  .invoice-standalone .account-invoice-table th, .invoice-standalone .account-invoice-table td { padding: 5px 3px; }
  @page { size: A4 landscape; margin: 12mm; }
}



/* Standalone invoice page layout */
.invoice-standalone { background: var(--rs-inv-page-bg, #fff); }
.invoice-standalone__main { width: min(1100px, 100%); margin: 24px auto; padding: 0 16px; }
.invoice-standalone__main #accBody { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
.invoice-standalone__loading { color: #777; text-align: center; padding: 32px; }
@media print {
  .invoice-standalone { background: #fff !important; }
  .invoice-standalone__main { width: 100% !important; margin: 0 !important; padding: 0 !important; }
  .account-live-invoice { width: 100% !important; max-width: none !important; padding: 0 !important; }
  .account-invoice-topbar button { display: none !important; }
  .account-invoice-table { overflow: visible !important; }
  .account-invoice-table table { min-width: 0 !important; font-size: 7pt !important; }
  @page { size: A4 landscape; margin: 10mm; }
}

.rs-shadow{visibility:visible;animation:none}
