/* =========================================================
   Rainzon Seller — flat, professional vendor workspace
   ========================================================= */
:root{
  --rs-bg:#F4F6F3;
  --rs-surface:#FFFFFF;
  --rs-ink:#14221B;
  --rs-ink-2:#3F5248;
  --rs-muted:#74827A;
  --rs-line:#E2E7E1;
  --rs-line-soft:#EEF1ED;
  --rs-green:#0B6B4F;
  --rs-green-dark:#07523D;
  --rs-green-soft:#ECF5F0;
  --rs-lime:#DDF57F;
  --rs-amber:#9A6A13;
  --rs-amber-soft:#FBF4E3;
  --rs-red:#A9472F;
  --rs-red-soft:#FBEDE8;
  --rs-blue:#2E5E88;
  --rs-blue-soft:#EEF4F9;
  --rs-radius:12px;
  --rs-font:"Manrope",system-ui,-apple-system,"Segoe UI",sans-serif;
  --rs-display:"Bricolage","Manrope",system-ui,sans-serif;
}

.seller-body{
  margin:0;
  background:var(--rs-bg);
  color:var(--rs-ink);
  font-family:var(--rs-font);
  font-size:14px;
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
}
.seller-body *{box-sizing:border-box}
.seller-body a{color:inherit;text-decoration:none}
.seller-body img{max-width:100%;display:block}
.seller-body button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
.seller-body h1,.seller-body h2,.seller-body h3,.seller-body h4{
  font-family:var(--rs-display);
  margin:0;
  letter-spacing:-.025em;
  font-weight:700;
}
.seller-body :focus-visible{outline:2px solid var(--rs-green);outline-offset:2px;border-radius:6px}
.rs-skip{
  position:fixed;left:12px;top:-60px;z-index:200;background:var(--rs-green);color:#fff;
  padding:10px 14px;border-radius:8px;font-size:12px;font-weight:700;transition:top .15s;
}
.rs-skip:focus{top:12px}

/* ---------- shell ---------- */
.rs-shell{min-height:100vh}
.rs-side{
  position:fixed;inset:0 auto 0 0;width:248px;z-index:60;
  display:flex;flex-direction:column;gap:0;
  background:var(--rs-surface);border-right:1px solid var(--rs-line);
  padding:18px 14px 14px;
}
.rs-brand-row{display:flex;align-items:center;gap:10px;padding:2px 8px 16px}
.rs-brand-mark{
  width:36px;height:36px;border-radius:8px;background:var(--rs-green);color:#fff;
  display:grid;place-items:center;font-family:var(--rs-display);font-size:20px;font-weight:800;
}
.rs-brand-copy{min-width:0}
.rs-brand-copy strong{display:block;font-family:var(--rs-display);font-size:15px;line-height:1.1;letter-spacing:-.02em}
.rs-brand-copy small{display:block;margin-top:2px;color:var(--rs-muted);font-size:9px;letter-spacing:.16em;font-weight:800;text-transform:uppercase}
.rs-store-card{
  display:flex;align-items:center;gap:10px;
  border:1px solid var(--rs-line);border-radius:10px;background:#FAFBF9;
  padding:10px;margin:0 2px 18px;
}
.rs-store-avatar{
  width:32px;height:32px;border-radius:8px;background:var(--rs-green-soft);color:var(--rs-green);
  display:grid;place-items:center;font-family:var(--rs-display);font-size:12px;font-weight:800;flex:none;
}
.rs-store-copy{min-width:0;flex:1}
.rs-store-copy strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rs-store-copy span{display:flex;align-items:center;gap:5px;margin-top:2px;color:var(--rs-muted);font-size:10px}
.rs-store-copy i{width:6px;height:6px;border-radius:50%;background:var(--rs-green);display:inline-block}
.rs-store-edit{color:var(--rs-muted);flex:none;padding:4px}
.rs-store-edit:hover{color:var(--rs-green)}
.rs-nav{display:flex;flex-direction:column;gap:18px;overflow-y:auto;flex:1;padding:0 2px 10px;scrollbar-width:thin}
.rs-nav-label{font-size:9px;font-weight:800;letter-spacing:.15em;text-transform:uppercase;color:#9AA69E;padding:0 10px 6px}
.rs-nav-items{display:flex;flex-direction:column;gap:2px}
.rs-nav a{
  display:flex;align-items:center;gap:10px;min-height:38px;padding:8px 10px;border-radius:8px;
  color:var(--rs-ink-2);font-size:12.5px;font-weight:600;transition:background .12s,color .12s;
}
.rs-nav a svg{color:#7D8B82;flex:none}
.rs-nav a:hover{background:#F5F7F4;color:var(--rs-ink)}
.rs-nav a.is-on{background:var(--rs-green-soft);color:var(--rs-green);box-shadow:inset 3px 0 0 var(--rs-green)}
.rs-nav a.is-on svg{color:var(--rs-green)}
.rs-nav a span{flex:1;min-width:0}
.rs-nav a b{
  min-width:19px;height:19px;padding:0 5px;border-radius:99px;background:var(--rs-amber-soft);color:var(--rs-amber);
  font-size:9px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;
}
.rs-side-bottom{border-top:1px solid var(--rs-line);padding-top:10px;margin-top:auto}
.rs-side-help{
  display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:8px;color:var(--rs-muted);
  font-size:11.5px;font-weight:600;
}
.rs-side-help:hover{background:#F5F7F4;color:var(--rs-green)}
.rs-user{display:flex;align-items:center;gap:9px;padding:10px 8px 2px;margin-top:4px;border-top:1px solid var(--rs-line-soft)}
.rs-user-avatar{
  width:30px;height:30px;border-radius:50%;background:var(--rs-green-soft);color:var(--rs-green);
  display:grid;place-items:center;font-size:11px;font-weight:800;flex:none;
}
.rs-user-copy{min-width:0;flex:1}
.rs-user-copy strong{display:block;font-size:11px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rs-user-copy small{display:block;font-size:9px;color:var(--rs-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rs-user form{display:flex}
.rs-user form button{width:28px;height:28px;display:grid;place-items:center;border-radius:6px;color:var(--rs-muted)}
.rs-user form button:hover{background:var(--rs-red-soft);color:var(--rs-red)}

.rs-main-wrap{margin-left:248px;min-height:100vh;display:flex;flex-direction:column;min-width:0}
.rs-topbar{
  height:68px;background:var(--rs-surface);border-bottom:1px solid var(--rs-line);
  display:flex;align-items:center;gap:16px;padding:0 28px;position:sticky;top:0;z-index:40;
}
.rs-burger{display:none;width:36px;height:36px;border:1px solid var(--rs-line);border-radius:8px;place-items:center;color:var(--rs-ink-2)}
.rs-top-title{min-width:0;margin-right:auto}
.rs-top-title span{display:block;font-size:9px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--rs-muted);margin-bottom:1px}
.rs-top-title h1{font-size:18px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rs-global-search{
  display:flex;align-items:center;gap:8px;width:290px;height:38px;padding:0 11px;
  border:1px solid var(--rs-line);border-radius:8px;background:#F9FAF8;color:var(--rs-muted);
}
.rs-global-search:focus-within{border-color:#BCD6C8;background:#fff}
.rs-global-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:12px;color:var(--rs-ink)}
.rs-global-search input::placeholder{color:#98A49C}
.rs-top-actions{display:flex;align-items:center;gap:7px}
.rs-live{
  display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 9px;border-radius:99px;
  background:var(--rs-green-soft);color:var(--rs-green);font-size:10px;font-weight:800;letter-spacing:.02em;
}
.rs-live i{width:6px;height:6px;border-radius:50%;background:var(--rs-green);animation:rsPulse 1.8s infinite}
@keyframes rsPulse{0%,100%{opacity:1}50%{opacity:.35}}
.rs-icon-btn{
  width:36px;height:36px;border:1px solid var(--rs-line);border-radius:8px;background:#fff;
  display:grid;place-items:center;color:var(--rs-ink-2);position:relative;
}
.rs-icon-btn:hover{border-color:#C3D4C9;color:var(--rs-green);background:#FAFCFA}
.rs-icon-btn b{
  position:absolute;top:-5px;right:-5px;min-width:16px;height:16px;padding:0 4px;border-radius:99px;
  background:var(--rs-amber);color:#fff;font-size:8px;font-weight:800;display:grid;place-items:center;
  border:2px solid #fff;
}
.rs-top-link{
  display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 11px;border:1px solid var(--rs-line);
  border-radius:8px;background:#fff;color:var(--rs-ink-2);font-size:11px;font-weight:700;
}
.rs-top-link:hover{border-color:#C3D4C9;color:var(--rs-green)}
.rs-top-link--primary{background:var(--rs-green);border-color:var(--rs-green);color:#fff}
.rs-top-link--primary:hover{background:var(--rs-green-dark);border-color:var(--rs-green-dark);color:#fff}
.rs-avatar-btn{width:34px;height:34px;border-radius:50%;background:var(--rs-green);color:#fff;font-size:11px;font-weight:800;display:grid;place-items:center;margin-left:2px}

.rs-content{width:100%;max-width:1500px;margin:0 auto;padding:28px;flex:1}
.rs-flash{
  max-width:1500px;margin:18px auto 0;padding:11px 14px;border:1px solid #CBE5D6;border-radius:8px;
  background:#F1FAF4;color:#0A5A40;font-size:12px;font-weight:600;
}
.rs-flash--error{border-color:#EFD2C8;background:var(--rs-red-soft);color:var(--rs-red)}
.rs-imp{max-width:1500px;margin:14px auto 0;font-size:11px;color:var(--rs-muted)}
.rs-imp a{color:var(--rs-green);font-weight:700}

/* ---------- page primitives ---------- */
.rs-page{display:flex;flex-direction:column;gap:18px}
.rs-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap}
.rs-page-head h2{font-size:25px;line-height:1.1;letter-spacing:-.035em}
.rs-page-head p{margin:4px 0 0;color:var(--rs-muted);font-size:12.5px;max-width:620px}
.rs-head-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.rs-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;padding:0 12px;
  border:1px solid var(--rs-line);border-radius:8px;background:#fff;color:var(--rs-ink-2);
  font-size:11.5px;font-weight:700;cursor:pointer;text-decoration:none;white-space:nowrap;
}
.rs-btn:hover{border-color:#C3D4C9;color:var(--rs-green);background:#FAFCFA}
.rs-btn--primary{background:var(--rs-green);border-color:var(--rs-green);color:#fff}
.rs-btn--primary:hover{background:var(--rs-green-dark);border-color:var(--rs-green-dark);color:#fff}
.rs-btn--danger{color:var(--rs-red);border-color:#E7C8BD;background:#fff}
.rs-btn--sm{height:29px;padding:0 9px;font-size:10.5px;border-radius:6px}
.rs-btn:disabled{opacity:.45;cursor:not-allowed}
.rs-seg{display:inline-flex;border:1px solid var(--rs-line);border-radius:8px;background:#fff;overflow:hidden}
.rs-seg a{display:inline-flex;align-items:center;height:34px;padding:0 11px;border-right:1px solid var(--rs-line);font-size:10.5px;font-weight:700;color:var(--rs-muted)}
.rs-seg a:last-child{border-right:0}
.rs-seg a:hover{background:#F7F9F6;color:var(--rs-ink)}
.rs-seg a.is-on{background:var(--rs-green-soft);color:var(--rs-green)}

.rs-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.rs-kpi{background:var(--rs-surface);border:1px solid var(--rs-line);border-radius:var(--rs-radius);padding:16px 17px;min-width:0}
.rs-kpi-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:13px}
.rs-kpi-label{font-size:9.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--rs-muted)}
.rs-kpi-ic{width:29px;height:29px;border-radius:7px;background:#F4F7F3;color:var(--rs-green);display:grid;place-items:center;flex:none}
.rs-kpi-value{display:block;font-family:var(--rs-display);font-size:25px;line-height:1.05;letter-spacing:-.04em;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rs-kpi-foot{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:10px;color:var(--rs-muted);min-height:16px;flex-wrap:wrap}
.rs-delta{display:inline-flex;align-items:center;gap:2px;font-size:10px;font-weight:800;color:var(--rs-green)}
.rs-delta.is-down{color:var(--rs-red)}
.rs-delta.is-flat{color:var(--rs-muted)}

.rs-grid{display:grid;gap:14px}
.rs-grid--2-1{grid-template-columns:minmax(0,1.75fr) minmax(280px,1fr)}
.rs-grid--1-1{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.rs-stack{display:flex;flex-direction:column;gap:14px;min-width:0}
.rs-card{background:var(--rs-surface);border:1px solid var(--rs-line);border-radius:var(--rs-radius);min-width:0}
.rs-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--rs-line-soft)}
.rs-card-head h3{font-size:14px;letter-spacing:-.02em}
.rs-card-head p{margin:3px 0 0;color:var(--rs-muted);font-size:11px;line-height:1.45}
.rs-card-link{display:inline-flex;align-items:center;gap:4px;color:var(--rs-green);font-size:10.5px;font-weight:800;white-space:nowrap}
.rs-card-link:hover{text-decoration:underline}
.rs-card-body{padding:16px 18px}
.rs-card-body--flush{padding:0}
.rs-muted{color:var(--rs-muted)}
.rs-num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}

/* ---------- chart ---------- */
.rs-chart-card .rs-card-body{padding:14px 18px 12px}
.rs-chart-top{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:8px}
.rs-chart-total{font-family:var(--rs-display);font-size:24px;letter-spacing:-.04em;line-height:1}
.rs-chart-sub{margin-top:4px;color:var(--rs-muted);font-size:10.5px}
.rs-chart{position:relative;width:100%;margin-top:6px}
.rs-chart svg{display:block;width:100%;height:190px;overflow:visible}
.rs-chart svg .grid{stroke:#ECEFEB;stroke-width:1}
.rs-chart svg .area{fill:#EAF4EE}
.rs-chart svg .line{fill:none;stroke:var(--rs-green);stroke-width:2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.rs-chart svg .dot{fill:#fff;stroke:var(--rs-green);stroke-width:2;vector-effect:non-scaling-stroke}
.rs-chart-labels{display:flex;justify-content:space-between;gap:4px;margin-top:6px;color:#96A29A;font-size:9px}
.rs-chart-labels span{flex:1;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rs-chart-empty{display:grid;place-items:center;height:190px;color:var(--rs-muted);font-size:11px;border-top:1px dashed var(--rs-line)}

/* ---------- live ---------- */
.rs-live-card .rs-card-head{border-bottom:0;padding-bottom:6px}
.rs-live-head{display:flex;align-items:center;gap:6px;color:var(--rs-green);font-size:9.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.rs-live-head i{width:6px;height:6px;border-radius:50%;background:var(--rs-green);animation:rsPulse 1.8s infinite}
.rs-live-time{font-size:9px;color:var(--rs-muted);font-weight:600;text-transform:none;letter-spacing:0}
.rs-live-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--rs-line-soft);border-top:1px solid var(--rs-line-soft);border-bottom:1px solid var(--rs-line-soft)}
.rs-live-stat{background:#fff;padding:12px 12px 11px}
.rs-live-stat span{display:block;font-size:8.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--rs-muted);margin-bottom:3px}
.rs-live-stat strong{display:block;font-family:var(--rs-display);font-size:17px;letter-spacing:-.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rs-live-feed{list-style:none;margin:0;padding:6px 0 0}
.rs-live-feed li{display:flex;align-items:flex-start;gap:8px;padding:8px 0;border-bottom:1px solid var(--rs-line-soft)}
.rs-live-feed li:last-child{border-bottom:0}
.rs-live-feed-dot{width:6px;height:6px;border-radius:50%;background:var(--rs-green);margin-top:5px;flex:none}
.rs-live-feed-copy{min-width:0;flex:1}
.rs-live-feed-copy b{display:block;font-size:10.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rs-live-feed-copy small{display:block;margin-top:1px;color:var(--rs-muted);font-size:9px}
.rs-live-feed-amt{font-size:10px;font-weight:800;white-space:nowrap}

/* ---------- fulfil / status ---------- */
.rs-pipeline{display:flex;flex-direction:column;gap:11px}
.rs-pipe-row{display:grid;grid-template-columns:82px minmax(0,1fr) 30px;align-items:center;gap:9px;font-size:10.5px;color:var(--rs-ink-2)}
.rs-pipe-row span:first-child{font-weight:600}
.rs-pipe-track{height:6px;border-radius:99px;background:#F0F3EF;overflow:hidden}
.rs-pipe-track i{display:block;height:100%;border-radius:99px;background:var(--rs-green);min-width:3px}
.rs-pipe-row b{text-align:right;font-variant-numeric:tabular-nums;font-weight:800;color:var(--rs-ink)}
.rs-pipe-row.is-amber i{background:#D39A32}
.rs-pipe-row.is-blue i{background:#4C82AA}
.rs-pipe-row.is-red i{background:var(--rs-red)}
.rs-pipe-links{margin-top:13px;display:flex;gap:7px;flex-wrap:wrap}
.rs-pipe-links a{font-size:10px;font-weight:800;color:var(--rs-green)}

/* ---------- tables ---------- */
.rs-table-wrap{overflow-x:auto}
.rs-table{width:100%;border-collapse:collapse}
.rs-table th{
  padding:9px 16px;background:#FAFBF9;border-bottom:1px solid var(--rs-line-soft);
  font-size:9px;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:#8B988F;text-align:left;white-space:nowrap;
}
.rs-table td{padding:12px 16px;border-bottom:1px solid var(--rs-line-soft);font-size:11.5px;vertical-align:middle}
.rs-table tr:last-child td{border-bottom:0}
.rs-table tbody tr:hover td{background:#FBFCFA}
.rs-table .rs-num{text-align:right}
.rs-order-main b{display:block;font-size:11.5px;font-weight:800}
.rs-order-main small{display:block;margin-top:1px;font-size:9.5px;color:var(--rs-muted)}
.rs-customer b{display:block;font-size:11.5px;font-weight:700}
.rs-customer small{display:block;margin-top:1px;font-size:9.5px;color:var(--rs-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}
.rs-thumb{width:32px;height:32px;border-radius:6px;overflow:hidden;background:#F2F4F1;flex:none}
.rs-thumb img{width:100%;height:100%;object-fit:cover}
.rs-product-cell{display:flex;align-items:center;gap:9px;min-width:0}
.rs-product-cell span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.rs-pill{display:inline-flex;align-items:center;gap:5px;padding:3px 7px;border-radius:99px;font-size:8.5px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;white-space:nowrap;border:1px solid transparent}
.rs-pill i{width:5px;height:5px;border-radius:50%;background:currentColor;display:inline-block}
.rs-pill--green{background:#EDF7F1;color:#0A6246;border-color:#D4EADB}
.rs-pill--amber{background:var(--rs-amber-soft);color:var(--rs-amber);border-color:#EDDFB8}
.rs-pill--blue{background:var(--rs-blue-soft);color:var(--rs-blue);border-color:#D6E4F0}
.rs-pill--red{background:var(--rs-red-soft);color:var(--rs-red);border-color:#EFD2C8}
.rs-pill--slate{background:#F2F4F1;color:#617067;border-color:#E4E8E2}
.rs-empty{padding:44px 20px;text-align:center;color:var(--rs-muted)}
.rs-empty strong{display:block;color:var(--rs-ink);font-family:var(--rs-display);font-size:15px;margin-bottom:3px}
.rs-empty span{font-size:11.5px}
.rs-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;border-top:1px solid var(--rs-line-soft);flex-wrap:wrap;color:var(--rs-muted);font-size:10.5px}
.rs-pager nav{display:flex;gap:5px}
.rs-pager a,.rs-pager span{border:1px solid var(--rs-line);border-radius:6px;padding:5px 8px;background:#fff;color:var(--rs-ink-2);font-size:10px}
.rs-pager .is-off{opacity:.4}

/* ---------- toolbar / forms ---------- */
.rs-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fff;border:1px solid var(--rs-line);border-radius:10px;padding:8px}
.rs-search{display:flex;align-items:center;gap:7px;flex:1;min-width:210px;height:34px;padding:0 10px;border:1px solid var(--rs-line);border-radius:7px;background:#FAFBF9;color:var(--rs-muted)}
.rs-search:focus-within{border-color:#BCD6C8;background:#fff}
.rs-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:11.5px;color:var(--rs-ink)}
.rs-select{height:34px;border:1px solid var(--rs-line);border-radius:7px;background:#fff;color:var(--rs-ink-2);font:inherit;font-size:10.5px;padding:0 9px;min-width:100px}
.rs-clear{font-size:10px;font-weight:800;color:var(--rs-red);padding:0 4px}
.rs-stock-form{display:inline-flex;align-items:center;gap:4px}
.rs-stock-input{width:58px;height:29px;border:1px solid var(--rs-line);border-radius:6px;background:#fff;font:inherit;font-size:10.5px;padding:0 6px;text-align:right}
.rs-stock-save{width:29px;height:29px;border:1px solid var(--rs-line);border-radius:6px;display:grid;place-items:center;background:#fff;color:var(--rs-muted)}
.rs-stock-save:hover{border-color:#C3D4C9;color:var(--rs-green);background:#FAFCFA}
.rs-inline-form{display:inline}
.rs-link{color:var(--rs-green);font-weight:700}
.rs-link:hover{text-decoration:underline}

/* ---------- order detail ---------- */
.rs-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}
.rs-detail-head h2{font-size:24px}
.rs-detail-head p{color:var(--rs-muted);font-size:11.5px;margin:4px 0 0}
.rs-detail-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);gap:14px;align-items:start}
.rs-detail-list{margin:0;display:flex;flex-direction:column;gap:8px}
.rs-detail-list div{display:flex;justify-content:space-between;gap:12px;font-size:11.5px}
.rs-detail-list dt{color:var(--rs-muted)}
.rs-detail-list dd{margin:0;text-align:right;font-weight:600;min-width:0;overflow-wrap:anywhere}
.rs-section-title{font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--rs-muted);margin:0 0 10px}
.rs-timeline{list-style:none;padding:0;margin:0;display:flex;flex-direction:column}
.rs-timeline li{display:flex;gap:9px;position:relative;padding:0 0 15px 0}
.rs-timeline li:last-child{padding-bottom:0}
.rs-timeline li::before{content:"";position:absolute;left:4px;top:14px;bottom:0;width:1px;background:var(--rs-line)}
.rs-timeline li:last-child::before{display:none}
.rs-timeline i{width:9px;height:9px;border-radius:50%;border:2px solid #C8D3CB;background:#fff;flex:none;margin-top:3px;z-index:1}
.rs-timeline li.is-on i{border-color:var(--rs-green);background:var(--rs-green)}
.rs-timeline div{min-width:0}
.rs-timeline b{display:block;font-size:11px;font-weight:700}
.rs-timeline small{display:block;color:var(--rs-muted);font-size:9.5px;margin-top:1px}
.rs-status-form{display:flex;flex-direction:column;gap:8px}
.rs-status-form label{font-size:9.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--rs-muted)}
.rs-status-form .rs-select{width:100%;height:38px}
.rs-status-form .rs-btn{width:100%;height:38px}
.rs-tracking-input{width:100%;height:36px;border:1px solid var(--rs-line);border-radius:7px;padding:0 9px;font:inherit;font-size:11px;background:#fff}

/* ---------- product grid fallbacks ---------- */
.rs-product-name-row{display:flex;align-items:center;gap:9px;min-width:0}
.rs-product-name-row b{display:block;font-size:11.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:270px}
.rs-product-name-row small{display:block;font-size:9.5px;color:var(--rs-muted);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:250px}
.rs-stock-text{font-size:10px;color:var(--rs-muted);white-space:nowrap}
.rs-stock-text.is-low{color:var(--rs-amber);font-weight:700}
.rs-stock-text.is-out{color:var(--rs-red);font-weight:700}

/* ---------- admin form overrides ---------- */
.seller-body .ad-card,.seller-body .ad-stat,.seller-body .pf-card{box-shadow:none!important;border-radius:12px!important}
.seller-body .ad-btn{box-shadow:none!important;border-radius:8px!important}
.seller-body .ad-flash{margin:16px 28px 0!important;max-width:none!important}

/* ---------- mobile nav ---------- */
.rs-overlay{display:none;position:fixed;inset:0;background:rgba(15,30,23,.4);z-index:55}
.rs-mobile-nav{display:none}
@media(max-width:1180px){
  .rs-global-search{width:220px}
  .rs-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:980px){
  .rs-side{transform:translateX(-100%);transition:transform .2s ease;width:270px}
  .rs-side.is-open{transform:none}
  .rs-overlay.is-open{display:block}
  .rs-main-wrap{margin-left:0}
  .rs-burger{display:grid}
  .rs-topbar{padding:0 16px;height:60px;gap:10px}
  .rs-content{padding:18px 16px 76px}
  .rs-top-title h1{font-size:16px}
  .rs-global-search{display:none}
  .rs-top-link{display:none}
  .rs-grid--2-1,.rs-grid--1-1,.rs-detail-grid{grid-template-columns:1fr}
  .rs-mobile-nav{
    display:flex;position:fixed;left:0;right:0;bottom:0;z-index:45;height:58px;
    background:#fff;border-top:1px solid var(--rs-line);padding:5px 8px calc(5px + env(safe-area-inset-bottom));
  }
  .rs-mobile-nav a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--rs-muted);font-size:8px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;border-radius:7px}
  .rs-mobile-nav a.is-on{color:var(--rs-green);background:var(--rs-green-soft)}
  .rs-live{display:none}
  .rs-content{padding-bottom:78px}
}
@media(max-width:640px){
  .rs-page-head h2{font-size:22px}
  .rs-kpis{grid-template-columns:1fr 1fr;gap:8px}
  .rs-kpi{padding:13px}
  .rs-kpi-value{font-size:21px}
  .rs-kpi-label{font-size:8.5px}
  .rs-kpi-foot{font-size:9px}
  .rs-kpi-ic{width:25px;height:25px}
  .rs-card-head{padding:13px 13px}
  .rs-card-body{padding:13px}
  .rs-table th,.rs-table td{padding:9px 12px}
  .rs-live-grid{grid-template-columns:1fr 1fr 1fr}
  .rs-detail-head h2{font-size:21px}
  .rs-top-actions .rs-icon-btn:nth-of-type(1){display:none}
  .rs-mobile-nav{height:60px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* Button elements need class-level overrides after the base element reset. */
.seller-body .rs-btn{background:#fff;border:1px solid var(--rs-line);color:var(--rs-ink-2)}
.seller-body .rs-btn:hover{border-color:#C3D4C9;color:var(--rs-green);background:#FAFCFA}
.seller-body .rs-btn--primary{background:var(--rs-green);border-color:var(--rs-green);color:#fff}
.seller-body .rs-btn--primary:hover{background:var(--rs-green-dark);border-color:var(--rs-green-dark);color:#fff}
.seller-body .rs-stock-save{border:1px solid var(--rs-line);background:#fff;color:var(--rs-muted)}
.seller-body .rs-stock-save:hover{border-color:#C3D4C9;color:var(--rs-green);background:#FAFCFA}
.seller-body .rs-burger{border:1px solid var(--rs-line);background:#fff}
@media(max-width:640px){
  .rs-page-head .rs-head-actions{width:100%}
  .rs-page-head .rs-head-actions .rs-seg{width:100%}
  .rs-page-head .rs-head-actions .rs-seg a{flex:1;justify-content:center;padding:0 8px}
  .rs-page-head .rs-head-actions>.rs-btn{flex:1;min-width:0}
}

/* Product form: remove glass/gradient treatment inside the seller app. */
.seller-body .pf-head{
  background:#fff!important;border:1px solid var(--rs-line)!important;border-radius:var(--rs-radius)!important;
  padding:18px 20px!important;box-shadow:none!important;
}
.seller-body .pf-head::before,.seller-body .pf-head::after{display:none!important}
.seller-body .pf-kicker{color:var(--rs-green)!important}
.seller-body .pf-head h1{font-size:23px!important;letter-spacing:-.035em!important}
.seller-body .pf-head p{color:var(--rs-muted)!important;font-size:11.5px!important}
.seller-body .pf-ring{
  background:conic-gradient(var(--rs-green) calc(var(--pct)*1%),#E6EBE6 0)!important;
  box-shadow:none!important;width:56px!important;height:56px!important;
}
.seller-body .pf-card{
  border:1px solid var(--rs-line)!important;border-radius:var(--rs-radius)!important;
  box-shadow:none!important;padding:16px!important;
}
.seller-body .pf-card:focus-within{box-shadow:none!important;border-color:#C3D4C9!important}
.seller-body .pf-card-head h2{font-size:14px!important;letter-spacing:-.02em!important}
.seller-body .pf-card-head p{color:var(--rs-muted)!important}
.seller-body .pf-step{background:var(--rs-green-soft)!important;color:var(--rs-green)!important}

/* ---------- seller auth ---------- */
.rs-auth-body{min-height:100vh;background:#F4F6F3}
.rs-auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)}
.rs-auth-brand{background:#0B3B2C;color:#fff;padding:34px 44px;display:flex;flex-direction:column;justify-content:space-between;gap:40px}
.rs-auth-brand .rs-brand-mark{background:#fff;color:#0B3B2C}
.rs-auth-brand .rs-brand-copy small{color:rgba(255,255,255,.55)}
.rs-auth-kicker{display:inline-flex;align-items:center;gap:8px;font-size:9px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:#BFE8CF;margin-bottom:12px}
.rs-auth-kicker::before{content:"";width:18px;height:1px;background:#BFE8CF}
.rs-auth-pitch h1{font-size:clamp(34px,4.2vw,56px);line-height:.98;letter-spacing:-.05em;max-width:520px;margin:0 0 16px}
.rs-auth-pitch>p{color:rgba(255,255,255,.66);font-size:14px;line-height:1.65;max-width:44ch;margin:0}
.rs-auth-list{list-style:none;padding:0;margin:30px 0 0;display:flex;flex-direction:column;gap:16px;max-width:430px}
.rs-auth-list li{display:flex;gap:11px;align-items:flex-start}
.rs-auth-list li>span{width:30px;height:30px;border:1px solid rgba(255,255,255,.16);border-radius:7px;display:grid;place-items:center;flex:none;color:#BFE8CF}
.rs-auth-list b{display:block;font-size:12px;font-weight:800;letter-spacing:-.01em}
.rs-auth-list small{display:block;color:rgba(255,255,255,.55);font-size:10.5px;line-height:1.45;margin-top:1px}
.rs-auth-brand-foot{display:flex;align-items:center;gap:7px;color:rgba(255,255,255,.45);font-size:10px;font-weight:600}
.rs-auth-dot{width:6px;height:6px;border-radius:50%;background:#7ED9A8}
.rs-auth-main{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px;gap:18px}
.rs-auth-card{width:100%;max-width:410px;background:#fff;border:1px solid var(--rs-line);border-radius:14px;padding:28px}
.rs-auth-card-head{display:flex;align-items:center;gap:10px;padding-bottom:18px;border-bottom:1px solid var(--rs-line-soft);margin-bottom:20px}
.rs-auth-mark{width:34px;height:34px;border-radius:7px;background:var(--rs-green);color:#fff;display:grid;place-items:center;font-family:var(--rs-display);font-size:18px;font-weight:800}
.rs-auth-card-head strong{display:block;font-family:var(--rs-display);font-size:14px;line-height:1.1}
.rs-auth-card-head small{display:block;color:var(--rs-muted);font-size:9px;text-transform:uppercase;letter-spacing:.12em;font-weight:800;margin-top:1px}
.rs-auth-card h2{font-size:24px;letter-spacing:-.04em;margin:0 0 5px}
.rs-auth-sub{color:var(--rs-muted);font-size:11.5px;line-height:1.55;margin:0 0 18px}
.rs-auth-note{padding:9px 11px;border-radius:7px;background:var(--rs-green-soft);border:1px solid #CFE8D9;color:#0A5A40;font-size:11px;font-weight:600;margin-bottom:14px}
.rs-auth-note--error{background:var(--rs-red-soft);border-color:#EFD2C8;color:var(--rs-red)}
.rs-auth-form{display:flex;flex-direction:column;gap:12px}
.rs-auth-field{display:flex;flex-direction:column;gap:5px}
.rs-auth-field span{font-size:9.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#66766C}
.rs-auth-field input{height:43px;border:1px solid var(--rs-line);border-radius:8px;background:#fff;padding:0 12px;font:inherit;font-size:12.5px;color:var(--rs-ink);outline:0}
.rs-auth-field input:focus{border-color:#A8CBB8;box-shadow:0 0 0 3px rgba(11,107,79,.07)}
.rs-auth-field input::placeholder{color:#A3ADA6}
.rs-auth-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:1px}
.rs-auth-check{display:flex;align-items:center;gap:7px;color:var(--rs-muted);font-size:10.5px;font-weight:600}
.rs-auth-check input{width:14px;height:14px;accent-color:var(--rs-green)}
.rs-auth-row a{color:var(--rs-green);font-size:10.5px;font-weight:700}
.rs-auth-submit{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:43px;border-radius:8px;background:var(--rs-green);color:#fff;font-size:11.5px;font-weight:800;margin-top:4px;width:100%}
.rs-auth-submit:hover{background:var(--rs-green-dark)}
.rs-auth-divider{display:flex;align-items:center;gap:10px;color:#9AA69E;font-size:9.5px;font-weight:700;margin:20px 0 12px}
.rs-auth-divider::before,.rs-auth-divider::after{content:"";height:1px;background:var(--rs-line-soft);flex:1}
.rs-auth-register{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:39px;border:1px solid var(--rs-line);border-radius:8px;width:100%;color:var(--rs-ink-2);font-size:10.5px;font-weight:800}
.rs-auth-register:hover{border-color:#C3D4C9;color:var(--rs-green);background:#FAFCFA}
.rs-auth-help{font-size:9.5px;line-height:1.55;color:var(--rs-muted);margin:13px 0 0;text-align:center}
.rs-auth-foot{font-size:10.5px;color:var(--rs-muted);margin:0}
.rs-auth-foot a{color:var(--rs-green);font-weight:700}
@media(max-width:900px){
  .rs-auth-shell{grid-template-columns:1fr}
  .rs-auth-brand{padding:22px 20px;gap:22px;min-height:auto}
  .rs-auth-pitch h1{font-size:34px;max-width:none}
  .rs-auth-pitch>p{font-size:12px}
  .rs-auth-list{display:none}
  .rs-auth-brand-foot{display:none}
  .rs-auth-main{padding:20px}
  .rs-auth-card{padding:22px}
}

/* Override the storefront theme's global body canvas. */
html,body.seller-body{background:#F4F6F3!important;color:#14221B!important}
.seller-body .rs-auth-submit{background:var(--rs-green);color:#fff;border:0}
.seller-body .rs-auth-submit:hover{background:var(--rs-green-dark)}

/* ---------- responsive card tables ---------- */
.rs-mobile-cards{display:none}
@media(max-width:760px){
  .rs-desktop-table{display:none}
  .rs-mobile-cards{display:flex;flex-direction:column;gap:0}
  .rs-mobile-card{padding:13px 14px;border-bottom:1px solid var(--rs-line-soft)}
  .rs-mobile-card:last-child{border-bottom:0}
  .rs-mobile-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
  .rs-mobile-card-head a{min-width:0}
  .rs-mobile-card-head strong{display:block;font-size:12px;font-weight:800;color:var(--rs-green);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .rs-mobile-card-head small{display:block;font-size:9.5px;color:var(--rs-muted);margin-top:1px}
  .rs-mobile-meta{font-size:10.5px;color:var(--rs-muted);margin-top:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .rs-mobile-money{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px;padding:9px 10px;border:1px solid var(--rs-line-soft);border-radius:7px;background:#FAFBF9}
  .rs-mobile-money span{display:block;font-size:8px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--rs-muted);margin-bottom:2px}
  .rs-mobile-money strong{display:block;font-size:10.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .rs-mobile-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:9px;flex-wrap:wrap}
  .rs-mobile-actions .rs-select{height:31px;font-size:10px;min-width:110px}
  .rs-mobile-actions .rs-stock-form{flex:1;min-width:0}
  .rs-mobile-actions .rs-stock-input{width:56px}
  .rs-mobile-product{display:flex;align-items:center;gap:9px}
  .rs-mobile-product>div{min-width:0;flex:1}
  .rs-mobile-product a strong{display:block;font-size:11.5px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .rs-mobile-product small{display:block;font-size:9.5px;color:var(--rs-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
  .rs-mobile-product .rs-thumb{width:38px;height:38px}
}

/* Legacy seller pages inside the flat shell. */
.seller-body .ad-stat{
  background:#fff!important;border:1px solid var(--rs-line)!important;border-radius:var(--rs-radius)!important;
  box-shadow:none!important;color:var(--rs-ink)!important;
}
.seller-body .ad-stat .as-ic{background:var(--rs-green-soft)!important;color:var(--rs-green)!important}
.seller-body .ad-card{background:#fff!important;border:1px solid var(--rs-line)!important;border-radius:var(--rs-radius)!important;box-shadow:none!important}
.seller-body .ad-card-head{border-color:var(--rs-line-soft)!important}
.seller-body .ad-table th{background:#FAFBF9!important;color:#8B988F!important;border-color:var(--rs-line-soft)!important}
.seller-body .ad-table td{border-color:var(--rs-line-soft)!important}

@media(max-width:640px){
  .rs-detail-grid .rs-table th:nth-child(2),.rs-detail-grid .rs-table td:nth-child(2),
  .rs-detail-grid .rs-table th:nth-child(5),.rs-detail-grid .rs-table td:nth-child(5){display:none}
}

/* ---------- catalogue v2 ---------- */
.rs-page-eyebrow{
  display:block;margin-bottom:5px;font-size:9px;font-weight:800;letter-spacing:.14em;
  text-transform:uppercase;color:var(--rs-green);
}
.rs-products .rs-page-head h2{font-size:27px}
.rs-kpi-sep{color:#BCC8C0}
.rs-kpi-meter{margin-top:11px;height:4px;border-radius:99px;background:#EEF2EE;overflow:hidden}
.rs-kpi-meter i{display:block;height:100%;border-radius:99px;background:var(--rs-green)}
.rs-catalogue{overflow:hidden}
.rs-catalogue-top{padding:12px 16px 0;border-bottom:1px solid var(--rs-line-soft)}
.rs-tabs{display:flex;align-items:center;gap:2px;overflow-x:auto;scrollbar-width:none}
.rs-tabs::-webkit-scrollbar{display:none}
.rs-tab{
  display:inline-flex;align-items:center;gap:6px;padding:9px 10px 10px;border-bottom:2px solid transparent;
  color:var(--rs-muted);font-size:10.5px;font-weight:700;white-space:nowrap;transition:color .14s,border-color .14s;
}
.rs-tab span{
  display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:17px;padding:0 5px;
  border-radius:99px;background:#F1F4F0;color:#8A988F;font-size:8px;font-weight:800;
}
.rs-tab:hover{color:var(--rs-ink)}
.rs-tab.is-on{color:var(--rs-green);border-bottom-color:var(--rs-green)}
.rs-tab.is-on span{background:var(--rs-green-soft);color:var(--rs-green)}
.rs-catalogue-tools{
  display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:11px 16px;
  border-bottom:1px solid var(--rs-line-soft);background:#FCFDFB;
}
.rs-catalogue-tools .rs-search{flex:1;min-width:210px;height:33px}
.rs-select-wrap{display:inline-flex;min-width:0}
.rs-select-wrap .rs-select{height:33px;font-size:10px;min-width:112px}
.rs-select-wrap--rows .rs-select{min-width:100px}
.rs-sr-only{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;
}
.rs-bulkbar[hidden]{display:none!important}
.rs-bulkbar{
  display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:9px 16px;
  border-bottom:1px solid #D4E9DC;background:var(--rs-green-soft);color:var(--rs-green);
  font-size:10.5px;font-weight:700;
}
.rs-bulk-count b{font-weight:900}
.rs-bulk-sep{width:1px;height:17px;background:#C4DFD0;margin:0 3px}
.rs-bulkbar .rs-select{height:31px;font-size:10px;background:#fff}
.rs-bulkbar .rs-btn--sm{height:31px}
.rs-table--products th,.rs-table--products td{padding-top:11px;padding-bottom:11px}
.rs-check-cell{width:32px;padding-left:14px!important;padding-right:0!important;text-align:left}
.rs-checkbox{
  appearance:none;-webkit-appearance:none;width:15px;height:15px;margin:0;vertical-align:-2px;
  border:1.5px solid #C5D2C9;border-radius:4px;background:#fff;cursor:pointer;position:relative;transition:.12s;
}
.rs-checkbox:hover{border-color:var(--rs-green)}
.rs-checkbox:checked{background:var(--rs-green);border-color:var(--rs-green)}
.rs-checkbox:checked::after{
  content:"";position:absolute;left:4px;top:1px;width:4px;height:8px;border:solid #fff;
  border-width:0 2px 2px 0;transform:rotate(45deg);
}
.rs-checkbox:indeterminate{background:var(--rs-green);border-color:var(--rs-green)}
.rs-checkbox:indeterminate::after{content:"";position:absolute;left:3px;top:6px;width:7px;height:2px;background:#fff;border-radius:2px}
.rs-actions-h{text-align:right!important}
.rs-product-name{min-width:0}
.rs-product-name b{display:block;font-size:11.5px;font-weight:800;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rs-product-name b a:hover{color:var(--rs-green)}
.rs-product-name small{display:block;margin-top:2px;color:var(--rs-muted);font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rs-thumb--md{width:38px;height:38px;border-radius:7px}
.rs-price-compare{margin-top:2px;color:var(--rs-muted);font-size:9px;text-decoration:line-through}
.rs-pill--stack{margin-top:4px}
.rs-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:2px;flex-wrap:wrap}
.rs-action{
  display:inline-flex;align-items:center;justify-content:center;gap:3px;height:27px;padding:0 6px;border-radius:5px;
  border:1px solid transparent;background:transparent;color:var(--rs-ink-2);font:inherit;font-size:9.5px;font-weight:700;
  white-space:nowrap;cursor:pointer;
}
.rs-action:hover{background:#F2F6F2;color:var(--rs-green)}
.rs-action--primary{color:var(--rs-green);background:var(--rs-green-soft)}
.rs-action--primary:hover{background:#DDEFE5}
.rs-action--danger{color:#A9472F;padding:0 5px}
.rs-action--danger:hover{background:var(--rs-red-soft);color:var(--rs-red)}
.rs-empty-actions{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:13px;flex-wrap:wrap}
.rs-check-label{display:inline-flex;align-items:center;flex:none}
.rs-mobile-product-card .rs-mobile-card-head{align-items:flex-start}
.rs-mobile-product-card .rs-mobile-product{flex:1}
.rs-mobile-actions-right{display:flex;gap:4px;flex-wrap:wrap;align-items:center}
@media(max-width:980px){
  .rs-products .rs-page-head h2{font-size:24px}
  .rs-catalogue-tools .rs-search{flex-basis:100%}
  .rs-select-wrap{flex:1}
  .rs-select-wrap .rs-select{width:100%}
  .rs-select-wrap--rows{display:none}
  .rs-catalogue-tools .rs-btn{margin-left:auto}
}
@media(max-width:760px){
  .rs-catalogue-top{padding:8px 10px 0}
  .rs-tab{padding:8px 8px 9px;font-size:10px}
  .rs-catalogue-tools{padding:10px;gap:6px}
  .rs-bulkbar{padding:8px 10px}
  .rs-bulkbar .rs-select{flex:1;min-width:130px}
  .rs-mobile-product-card .rs-check-label{margin-top:2px;margin-right:7px}
  .rs-mobile-product-card .rs-mobile-product .rs-thumb{width:42px;height:42px}
  .rs-mobile-products-empty{padding:30px 10px}
}
.rs-table--products .rs-stock-text{display:block;margin-top:3px}
@media(max-width:760px){
  .rs-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;width:100%}
  .rs-tab{justify-content:space-between;padding:8px 7px;border:1px solid transparent;border-radius:7px;border-bottom:0}
  .rs-tab span{margin-left:auto}
  .rs-tab.is-on{background:var(--rs-green-soft);border-color:#CFE7DA}
}
.rs-flash--preview{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.rs-preview-return{
  display:inline-flex;align-items:center;height:27px;padding:0 9px;border-radius:6px;
  border:1px solid #BFE0CE;background:#fff;color:var(--rs-green);font:inherit;font-size:10px;font-weight:800;
}
.rs-preview-return:hover{background:var(--rs-green);border-color:var(--rs-green);color:#fff}

/* ---------- customer messages ---------- */
.sm-page .rs-page-head{padding-bottom:18px}
.sm-card{background:var(--rs-surface);border:1px solid var(--rs-line);border-radius:var(--rs-radius);overflow:hidden}
.sm-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--rs-line-soft);background:#FCFDFB}
.sm-tabs{display:inline-flex;gap:3px;padding:3px;border-radius:999px;background:#F1F4F0}
.sm-tabs a{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;font-size:10.5px;font-weight:800;color:var(--rs-muted);transition:.14s}
.sm-tabs a span{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:17px;padding:0 5px;border-radius:99px;background:#fff;color:#8A988F;font-size:8px;font-weight:800}
.sm-tabs a:hover{color:var(--rs-ink)}
.sm-tabs a.is-on{background:var(--rs-green);color:#fff}
.sm-tabs a.is-on span{background:rgba(255,255,255,.18);color:#fff}
.sm-toolbar-note{display:inline-flex;align-items:center;gap:6px;font-size:9.5px;font-weight:700;color:var(--rs-muted)}
.sm-live{display:inline-flex;align-items:center;gap:6px;font-size:9.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--rs-green);background:var(--rs-green-soft);border:1px solid #D7EADF;border-radius:999px;padding:6px 10px}
.sm-live i,.sm-live-dot{width:5px;height:5px;border-radius:50%;background:var(--rs-green);box-shadow:0 0 0 3px rgba(11,107,79,.10);flex:none}
.sm-list{display:flex;flex-direction:column}
.sm-row{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--rs-line-soft);transition:background .14s}
.sm-row:last-child{border-bottom:0}
.sm-row:hover{background:#FAFCF9}
.sm-row.is-unread{background:#F8FCF9}
.sm-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;flex:none;background:#ECF5F0;color:var(--rs-green);font-family:var(--rs-display);font-size:14px;font-weight:800;border:1px solid #DFEDE5}
.sm-avatar--lg{width:44px;height:44px;font-size:16px}
.sm-row-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.sm-row-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.sm-row-top strong{font-size:11.5px;font-weight:800;color:var(--rs-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sm-row-top time{font-size:9px;color:var(--rs-muted);white-space:nowrap;flex:none}
.sm-preview{font-size:10.5px;color:var(--rs-ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sm-meta{font-size:9px;color:#9AA69D;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sm-row-side{flex:none;display:grid;place-items:center;color:#A5B2A9;min-width:24px}
.sm-unread{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:99px;background:var(--rs-green);color:#fff;font-size:8.5px;font-weight:800}
.sm-empty{padding:56px 20px;text-align:center}
.sm-empty-icon{display:grid;place-items:center;width:46px;height:46px;margin:0 auto 12px;border-radius:14px;background:var(--rs-green-soft);color:var(--rs-green)}
.sm-empty h3{margin:0 0 5px;font-family:var(--rs-display);font-size:18px;letter-spacing:-.02em}
.sm-empty p{margin:0 0 14px;font-size:11.5px;color:var(--rs-muted)}
.sm-pagination{padding:12px 16px;border-top:1px solid var(--rs-line-soft)}

/* conversation page */
.sm-thread-page{max-width:940px}
.sm-back{display:inline-flex;align-items:center;gap:5px;margin-bottom:12px;font-size:10.5px;font-weight:800;color:var(--rs-muted)}
.sm-back:hover{color:var(--rs-green)}
.sm-thread{display:flex;flex-direction:column;height:calc(100vh - 238px);min-height:500px;background:var(--rs-surface);border:1px solid var(--rs-line);border-radius:var(--rs-radius);overflow:hidden}
.sm-thread-head{display:flex;align-items:center;gap:11px;padding:13px 16px;border-bottom:1px solid var(--rs-line-soft);background:#FCFDFB}
.sm-thread-person{flex:1;min-width:0}
.sm-thread-person h2{margin:0;font-size:14px;font-weight:800;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sm-thread-person p{margin:2px 0 0;font-size:9.5px;color:var(--rs-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sm-thread-log{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding:18px 16px;background:#F6F8F5;overscroll-behavior:contain}
.sm-day{display:flex;align-items:center;justify-content:center;margin:4px 0 8px}
.sm-day span{padding:3px 8px;border-radius:99px;background:#E9EFE9;color:#87948A;font-size:8px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.sm-msg{display:flex;flex-direction:column;align-items:flex-start;gap:3px;max-width:100%}
.sm-msg.is-seller{align-items:flex-end}
.sm-bubble{max-width:78%;padding:9px 12px;border-radius:13px 13px 13px 4px;background:#fff;border:1px solid #E3E9E2;color:#24352C;font-size:11.5px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.sm-msg.is-seller .sm-bubble{background:var(--rs-green);border-color:var(--rs-green);color:#F7FBF7;border-radius:13px 13px 4px 13px}
.sm-msg time{font-size:8px;color:#93A096}
.sm-composer{display:flex;align-items:flex-end;gap:8px;padding:11px 12px;border-top:1px solid var(--rs-line-soft);background:#fff}
.sm-composer textarea{flex:1;min-height:38px;max-height:120px;resize:none;padding:10px 12px;border:1px solid #DCE4DC;border-radius:10px;background:#FBFCFA;color:var(--rs-ink);font:inherit;font-size:11.5px;line-height:1.45}
.sm-composer textarea:focus{outline:none;border-color:var(--rs-green);box-shadow:0 0 0 3px rgba(11,107,79,.08);background:#fff}
.sm-composer button{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:10px;background:var(--rs-green);color:#fff;transition:.14s}
.sm-composer button:hover{background:var(--rs-green-dark)}
.sm-composer button:disabled{opacity:.5}
.sm-foot,.sm-thread-foot{margin:0;padding:0 16px 10px;background:#fff;font-size:8.5px;color:#9AA69D}
.sm-thread-foot{display:flex;align-items:center;gap:5px}
.sm-thread-foot .sm-live-dot{width:4px;height:4px;box-shadow:none}
.sm-page .pagination,.sm-pagination .pagination{display:flex;gap:3px;margin:0;padding:0;list-style:none;flex-wrap:wrap}
.sm-page .page-link,.sm-pagination .page-link{display:inline-flex;align-items:center;justify-content:center;min-width:27px;height:27px;padding:0 7px;border:1px solid var(--rs-line);border-radius:6px;background:#fff;color:var(--rs-ink-2);font-size:10px;font-weight:700}
.sm-page .page-item.active .page-link,.sm-pagination .page-item.active .page-link{background:var(--rs-green);border-color:var(--rs-green);color:#fff}
@media(max-width:760px){
  .sm-toolbar{padding:10px 12px}
  .sm-toolbar-note{display:none}
  .sm-row{padding:12px}
  .sm-row-top strong{font-size:11px}
  .sm-row-top time{font-size:8.5px}
  .sm-preview{font-size:10px}
  .sm-meta{display:none}
  .sm-thread-page{max-width:none}
  .sm-thread{height:calc(100dvh - 232px);min-height:420px}
  .sm-thread-head{padding:11px 12px}
  .sm-thread-log{padding:14px 12px}
  .sm-bubble{max-width:86%;font-size:11px}
  .sm-composer{padding:9px}
  .sm-composer textarea{font-size:11px}
  .sm-thread-person h2{font-size:13px}
  .sm-live{font-size:8px;padding:5px 8px}
}
@media(prefers-reduced-motion:reduce){
  .sm-tabs a,.sm-row,.sm-composer button{transition:none}
}
