:root{
  --ord-bg:#f6ecdd;
  --ord-surface:#fffaf2;
  --ord-surface-2:#fffdf9;
  --ord-line:#e6d2b2;
  --ord-line-strong:#d6b57c;
  --ord-brown:#2a180d;
  --ord-brown-2:#4a2b17;
  --ord-text:#3a281b;
  --ord-muted:#806b57;
  --ord-gold:#b77d2e;
  --ord-gold-soft:#f0dbb3;
  --ord-green:#237c52;
  --ord-blue:#476f9d;
  --ord-red:#ab4138;
  --ord-shadow:0 18px 50px rgba(62,38,17,.09);
  --ord-shadow-soft:0 10px 28px rgba(62,38,17,.07);
}

.rmord-page,
.rmord-page *{box-sizing:border-box}
.rmord-page{
  min-height:100vh;
  padding:28px clamp(12px,2vw,30px) 48px;
  color:var(--ord-text);
  background:
    radial-gradient(circle at 3% 0%,rgba(196,145,72,.18),transparent 27%),
    radial-gradient(circle at 98% 8%,rgba(210,170,105,.12),transparent 24%),
    linear-gradient(180deg,#fbf5eb 0%,var(--ord-bg) 100%);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.rmord-overview,
.rmord-toolbar,
.rmord-list,
.rmord2-empty{width:min(1680px,100%);margin-inline:auto}

.rmord-overview{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(520px,.92fr);
  gap:18px;
  margin-bottom:18px;
}
.rmord-overview-copy,
.rmord-overview-stats{
  border:1px solid var(--ord-line);
  border-radius:26px;
  background:rgba(255,250,242,.93);
  box-shadow:var(--ord-shadow);
}
.rmord-overview-copy{
  position:relative;
  overflow:hidden;
  padding:30px 32px;
}
.rmord-overview-copy:after{
  content:"";
  position:absolute;
  right:-70px;
  top:-95px;
  width:290px;
  height:290px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(196,145,72,.20) 0%,rgba(196,145,72,.06) 44%,transparent 72%);
  pointer-events:none;
}
.rmord-eyebrow{
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 13px;
  border:1px solid #ecd5ad;
  border-radius:999px;
  background:#fff1d4;
  color:#8d5b1c;
  font-size:10px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.rmord-overview h1{
  position:relative;
  z-index:1;
  margin:15px 0 9px;
  color:#20140c;
  font-size:clamp(38px,4vw,64px);
  font-weight:950;
  letter-spacing:-.055em;
  line-height:.96;
}
.rmord-overview-copy p{
  position:relative;
  z-index:1;
  max-width:760px;
  margin:0;
  color:var(--ord-muted);
  font-size:14px;
  font-weight:700;
  line-height:1.7;
}
.rmord-overview-stats{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  padding:15px;
}
.rmord-overview-stats article{
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  align-items:center;
  gap:12px;
  min-height:112px;
  padding:15px;
  border:1px solid #ead6b5;
  border-radius:20px;
  background:linear-gradient(180deg,#fffefa 0%,#fbf2e5 100%);
}
.rmord-overview-stats article>span{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border-radius:15px;
  background:#f3dfbb;
  color:#9b6422;
  font-size:20px;
}
.rmord-overview-stats article div{display:grid;gap:2px;min-width:0}
.rmord-overview-stats small{
  color:#96785c;
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.rmord-overview-stats strong{
  color:#26170e;
  font-size:28px;
  font-weight:950;
  letter-spacing:-.035em;
  overflow-wrap:anywhere;
}
.rmord-overview-stats em{
  color:#8d755f;
  font-size:11px;
  font-style:normal;
  font-weight:750;
}
.rmord-overview-stats article.is-value{
  border-color:#785022;
  background:linear-gradient(135deg,#2e1a0e 0%,#76481c 100%);
}
.rmord-overview-stats article.is-value>span{background:rgba(255,255,255,.12);color:#f6d8a1}
.rmord-overview-stats article.is-value small,
.rmord-overview-stats article.is-value strong,
.rmord-overview-stats article.is-value em{color:#fff4e0}

.rmord-toolbar{
  position:sticky;
  top:84px;
  z-index:30;
  display:grid;
  grid-template-columns:minmax(320px,1fr) 220px 220px 115px;
  gap:12px;
  margin-bottom:16px;
  padding:13px;
  border:1px solid var(--ord-line);
  border-radius:20px;
  background:rgba(255,250,242,.94);
  box-shadow:var(--ord-shadow-soft);
  backdrop-filter:blur(12px);
}
.rmord-search,
.rmord-filter,
.rmord-visible{
  min-height:58px;
  border:1px solid #e6d4b8;
  border-radius:15px;
  background:#fffdf9;
}
.rmord-search{
  display:flex;
  align-items:center;
  gap:11px;
  padding:0 14px;
}
.rmord-search>i{color:#a36c26}
.rmord-search input{
  flex:1;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:#2d1b10;
  font:inherit;
  font-size:13px;
  font-weight:800;
}
.rmord-search button{
  width:34px;
  height:34px;
  border:0;
  border-radius:10px;
  background:#f6ead7;
  color:#8d735b;
  cursor:pointer;
}
.rmord-filter{
  display:grid;
  align-content:center;
  gap:3px;
  padding:7px 12px;
}
.rmord-filter span{
  color:#967551;
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.rmord-filter select{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:#2e1c11;
  font:inherit;
  font-size:12px;
  font-weight:850;
}
.rmord-visible{
  display:grid;
  place-items:center;
  align-content:center;
  gap:1px;
  background:linear-gradient(135deg,#3a2111,#71451c);
  color:#fff4e0;
}
.rmord-visible span{font-size:22px;font-weight:950;line-height:1}
.rmord-visible small{font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}

.rmord-list{display:grid;gap:16px}
.rmord-order{
  overflow:hidden;
  border:1px solid var(--ord-line);
  border-radius:22px;
  background:linear-gradient(180deg,#fffdf9 0%,#fff8ef 100%);
  box-shadow:var(--ord-shadow-soft);
  transition:box-shadow .2s ease,border-color .2s ease,transform .2s ease;
}
.rmord-order[hidden]{display:none!important}
.rmord-order:hover{border-color:#d5b071;box-shadow:var(--ord-shadow)}
.rmord-order-head{
  display:grid;
  grid-template-columns:94px minmax(300px,1fr) minmax(210px,.48fr) minmax(190px,.38fr) auto;
  align-items:center;
  gap:16px;
  min-height:142px;
  padding:18px 20px;
  cursor:pointer;
  background:linear-gradient(180deg,#fffefa 0%,#fff9f1 100%);
  user-select:none;
}
.rmord-order-head:focus-visible{outline:3px solid rgba(183,125,46,.28);outline-offset:-5px}
.rmord-order-mark{
  position:relative;
  width:94px;
  height:94px;
  overflow:hidden;
  border:1px solid #dfc79f;
  border-radius:20px;
  background:#f0dfc2;
}
.rmord-order-mark img{width:100%;height:100%;object-fit:cover;display:block}
.rmord-order-mark span{
  position:absolute;
  left:8px;
  bottom:8px;
  display:grid;
  place-items:center;
  min-width:31px;
  height:26px;
  padding:0 8px;
  border-radius:9px;
  background:rgba(40,23,12,.88);
  color:#fff1d7;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
}
.rmord-order-title{min-width:0}
.rmord-order-kicker,
.rmord-order-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 14px;
}
.rmord-order-kicker span,
.rmord-order-meta span{display:inline-flex;align-items:center;gap:7px}
.rmord-order-kicker span{
  color:#9a6a28;
  font-size:10px;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.rmord-order-title h2{
  margin:7px 0 8px;
  color:#1f140c;
  font-size:clamp(34px,3.3vw,54px);
  font-weight:950;
  letter-spacing:-.06em;
  line-height:.94;
}
.rmord-order-meta{color:#7e6854;font-size:12px;font-weight:800}
.rmord-order-meta i{color:#b57a2f}
.rmord-order-state{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  padding:10px;
  border:1px solid #e7d5ba;
  border-radius:17px;
  background:#fffdfa;
}
.rmord-order-state>div{display:grid;gap:7px;justify-items:start}
.rmord-order-state small{
  color:#9b7d62;
  font-size:9px;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 12px;
  border:1px solid #e5d9c8;
  border-radius:999px;
  background:#f4eee5;
  color:#80644c;
  font-size:10px;
  font-weight:950;
  letter-spacing:.07em;
  text-transform:uppercase;
  white-space:nowrap;
}
.pill.delivered,.pill.paid{border-color:#cfe6d7;background:#e8f5ed;color:var(--ord-green)}
.pill.confirmed,.pill.processing,.pill.packed,.pill.shipped{border-color:#d8e4f0;background:#edf4fb;color:var(--ord-blue)}
.pill.cancelled,.pill.failed,.pill.returned,.pill.refunded{border-color:#edcfca;background:#faecea;color:var(--ord-red)}
.rmord-order-total{
  display:grid;
  align-content:center;
  gap:3px;
  min-height:84px;
  padding:13px 16px;
  border:1px solid #e5d2b1;
  border-radius:18px;
  background:linear-gradient(180deg,#fffdfa 0%,#fbf1e2 100%);
  text-align:right;
}
.rmord-order-total small{
  color:#9b6f30;
  font-size:9px;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.rmord-order-total strong{
  color:#26170e;
  font-size:24px;
  font-weight:950;
  letter-spacing:-.04em;
  line-height:1.05;
}
.rmord-order-total em{color:#8c735c;font-size:10px;font-style:normal;font-weight:800}
.rmord-order-buttons{display:flex;align-items:center;gap:9px}
.rmord-bill-button,
.rmord2-open-btn{
  border:1px solid #301b0e;
  border-radius:16px;
  background:linear-gradient(135deg,#301b0e,#5a3315);
  color:#fff4df;
  box-shadow:none;
  cursor:pointer;
}
.rmord-bill-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:88px;
  height:56px;
  padding:0 14px;
  text-decoration:none;
  font-size:12px;
  font-weight:900;
}
.rmord2-open-btn{width:56px;height:56px;font-size:15px}
.rmord-order.is-open .rmord2-open-btn{border-color:#a96f1d;background:linear-gradient(135deg,#d7a343,#b97720);color:#25160c}
.rmord2-open-btn i{transition:transform .2s ease}
.rmord-order.is-open .rmord2-open-btn i{transform:rotate(180deg)}

.rmord2-body{display:none}
.rmord-order.is-open .rmord2-body{display:block;animation:rmordIn .22s ease both}
@keyframes rmordIn{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
.rmord-order-body{
  padding:18px 20px 20px;
  border-top:1px solid #ecdcc3;
  background:linear-gradient(180deg,#fffdf9 0%,#fff7eb 100%);
}
.rmord-journey{
  display:grid;
  grid-template-columns:180px minmax(0,1fr);
  align-items:center;
  gap:18px;
  margin-bottom:16px;
  padding:16px;
  border:1px solid #e7d5b9;
  border-radius:18px;
  background:#fffdf9;
}
.rmord-journey-copy{display:grid;gap:2px}
.rmord-journey-copy span{color:#a0702d;font-size:9px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}
.rmord-journey-copy strong{color:#2b1a0f;font-size:19px;font-weight:950}
.rmord-journey-track{position:relative;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.rmord-journey-track:before{
  content:"";
  position:absolute;
  left:28px;
  right:28px;
  top:16px;
  height:4px;
  border-radius:999px;
  background:#ebddc9;
}
.rmord-journey-track>div{position:relative;z-index:1;display:grid;justify-items:center;gap:8px;text-align:center}
.rmord-journey-track>div span{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border:4px solid #fffdf9;
  border-radius:50%;
  background:#e7d9c3;
  color:#fff;
  box-shadow:0 0 0 2px #e0ceb1;
  font-size:10px;
}
.rmord-journey-track>div.done span{background:linear-gradient(135deg,#d7a345,#b87926);box-shadow:0 0 0 2px #c9913b}
.rmord-journey-track b{color:#947d67;font-size:9px;font-weight:900;letter-spacing:.05em;text-transform:uppercase}
.rmord-journey-track>div.done b{color:#654b34}

.rmord-bento{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(330px,.6fr);gap:16px;align-items:start}
.rmord-products,
.rmord-summary-card,
.rmord-source-card,
.rmord-bill-card{
  border:1px solid #e5d2b3;
  border-radius:20px;
  background:linear-gradient(180deg,#fffefa 0%,#fff9f1 100%);
}
.rmord-products{padding:16px}
.rmord-products>header,
.rmord-box-section>header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.rmord-products header div,
.rmord-box-section header div{display:grid;gap:2px}
.rmord-products header span,
.rmord-box-section header span{color:#a06f2b;font-size:9px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.rmord-products h3,
.rmord-box-section h3{margin:0;color:#28180e;font-size:22px;font-weight:950;letter-spacing:-.025em}
.rmord-products header em,
.rmord-box-section header em{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 12px;
  border:1px solid #ead6b5;
  border-radius:999px;
  background:#fff2da;
  color:#966722;
  font-size:10px;
  font-style:normal;
  font-weight:900;
}
.rmord-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.rmord-product{
  display:grid;
  grid-template-columns:78px minmax(0,1fr);
  grid-template-areas:"image copy" "image price";
  gap:4px 13px;
  min-width:0;
  padding:11px;
  border:1px solid #e8d7bd;
  border-radius:16px;
  background:#fffdfa;
}
.rmord-product img{grid-area:image;width:78px;height:78px;border-radius:13px;object-fit:cover;background:#f0e1ca}
.rmord-product-copy{grid-area:copy;min-width:0}
.rmord-product-copy>span{display:block;color:#a2712d;font-size:9px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
.rmord-product h4{margin:3px 0 2px;color:#24170e;font-size:14px;font-weight:950;line-height:1.25;overflow-wrap:anywhere}
.rmord-product p{margin:0;color:#66503e;font-size:11px;font-weight:800}
.rmord-product small{display:block;margin-top:3px;color:#8b7560;font-size:10px;font-weight:700;line-height:1.35}
.rmord-product>strong{grid-area:price;align-self:end;color:#9b6722;font-size:16px;font-weight:950;letter-spacing:-.025em}
.rmord-product.is-box{background:#fff5e3}
.rmord-box-section{margin-top:16px;padding-top:14px;border-top:1px dashed #e6d5bc}
.rmord-no-items{grid-column:1/-1;padding:24px;border:1px dashed #dcc6a2;border-radius:16px;color:#8b745f;text-align:center;font-size:12px;font-weight:800}

.rmord-summary{display:grid;gap:12px}
.rmord-summary-card{padding:15px}
.rmord-summary-card>header{display:flex;align-items:center;gap:11px;margin-bottom:10px;padding-bottom:12px;border-bottom:1px solid #eadbc4}
.rmord-summary-card>header>span{
  display:grid;
  place-items:center;
  width:43px;
  height:43px;
  border-radius:13px;
  background:#f2dfbd;
  color:#9c6420;
  font-size:17px;
}
.rmord-summary-card header div{display:grid;gap:1px}
.rmord-summary-card header small{color:#9a7857;font-size:9px;font-weight:900;letter-spacing:.11em;text-transform:uppercase}
.rmord-summary-card h3{margin:0;color:#28180e;font-size:18px;font-weight:950}
.rmord-summary-card dl{display:grid;gap:0;margin:0}
.rmord-summary-card dl div{display:grid;grid-template-columns:112px minmax(0,1fr);gap:10px;padding:9px 0;border-bottom:1px dashed #e8d7bd}
.rmord-summary-card dl div:last-child{border-bottom:0}
.rmord-summary-card dt{color:#8c755f;font-size:11px;font-weight:750}
.rmord-summary-card dd{margin:0;color:#2d1c11;font-size:12px;font-weight:900;line-height:1.4;text-align:right;overflow-wrap:anywhere}
.rmord-source-card,
.rmord-bill-card{display:flex;align-items:flex-start;gap:12px;padding:14px}
.rmord-source-card>span,
.rmord-bill-card>span{
  display:grid;
  place-items:center;
  flex:0 0 42px;
  width:42px;
  height:42px;
  border-radius:13px;
  background:#f1debd;
  color:#9f6824;
}
.rmord-source-card div,
.rmord-bill-card div{display:grid;gap:4px;min-width:0}
.rmord-source-card small,
.rmord-bill-card small{color:#9b7138;font-size:9px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.rmord-source-card p,
.rmord-bill-card p{margin:0;color:#66503e;font-size:11px;font-weight:750;line-height:1.55}
.rmord-bill-card.is-ready{border-color:#cde5d5;background:#eef8f1}
.rmord-bill-card.is-ready>span{background:#d9efe0;color:#237c52}
.rmord-bill-card.is-ready small{color:#237c52}
.rmord-bill-card a{display:inline-flex;align-items:center;gap:7px;margin-top:4px;color:#236f4d;font-size:11px;font-weight:900;text-decoration:none}
.rmord-card-actions{display:grid}
.rmord2-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:46px;
  padding:0 16px;
  border:1px solid #2e1a0e;
  border-radius:14px;
  background:linear-gradient(135deg,#2e1a0e,#563116);
  color:#fff4df;
  font:inherit;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}

.rmord2-empty{
  margin-top:20px;
  padding:42px 22px;
  border:1px solid var(--ord-line);
  border-radius:22px;
  background:#fffaf2;
  box-shadow:var(--ord-shadow-soft);
  text-align:center;
}
.rmord2-empty[hidden]{display:none}
.rmord2-empty div{display:grid;place-items:center;width:82px;height:82px;margin:0 auto 13px;border-radius:24px;background:#f3dfbb;color:#9b6422;font-size:28px}
.rmord2-empty h2{margin:0 0 6px;color:#25170e;font-size:27px;font-weight:950}
.rmord2-empty p{margin:0 0 14px;color:#846d58;font-size:13px;font-weight:700}
.rmord2-empty a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:13px;background:#2e1a0e;color:#fff4df;text-decoration:none;font-size:12px;font-weight:900}

/* Modal and toast */
html.rm-modal-open{overflow:hidden}
.rm-modal-backdrop{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:18px;background:rgba(25,14,7,.56);backdrop-filter:blur(9px)}
.rm-modal-backdrop[hidden]{display:none}
.rm-modal{position:relative;width:min(820px,100%);max-height:88vh;overflow:auto;padding:24px;border:1px solid #ead8bd;border-radius:22px;background:linear-gradient(180deg,#fffdf9,#f9eedf);box-shadow:0 30px 100px rgba(28,16,8,.34);color:var(--ord-text)}
.rm-modal-close{position:absolute;right:15px;top:15px;width:42px;height:42px;border:1px solid #dcc39a;border-radius:13px;background:#fffaf2;color:#3b2414;cursor:pointer}
.rm-modal h2{margin:10px 50px 8px 0;color:#24170e;font-size:34px;font-weight:950;letter-spacing:-.04em}
.rmord-modal-meta{display:flex;gap:8px;flex-wrap:wrap;color:#7f6954;font-size:12px;font-weight:800}
.rmord-modal-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}
.rmord-modal-summary>div,.rmord-items-mini{padding:14px;border:1px solid #e6d4b8;border-radius:16px;background:#fffaf4}
.rmord-modal-summary h3,.rmord-items-mini h3{margin:0 0 5px;color:#2a190f;font-size:15px;font-weight:950}
.rmord-modal-summary p{margin:0;color:#9a6723;font-size:20px;font-weight:950}
.modal-items{display:grid;gap:0}
.modal-item{display:grid;grid-template-columns:62px minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px 0;border-top:1px solid #eadbc5}
.modal-item:first-of-type{border-top:0}
.modal-item img{width:62px;height:62px;border-radius:13px;object-fit:cover;background:#efe0c7}
.modal-item strong{display:block;color:#29190f;font-size:13px;font-weight:950}
.modal-item small{display:flex;gap:7px;flex-wrap:wrap;margin-top:3px;color:#816c58;font-size:10px;font-weight:750}
.modal-item>b{color:#9a6723;font-size:14px;white-space:nowrap}
.rmord-modal-boxes{margin-top:13px;padding-top:12px;border-top:1px dashed #dcc6a4}
.rmord-modal-boxes h3{margin:0 0 5px;color:#2a190f;font-size:14px;font-weight:950;text-transform:uppercase;letter-spacing:.08em}
.modal-box-item{padding-inline:8px;border-radius:12px;background:#fff4df}
.rm-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:15px}
.rmord-action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 15px;border:1px solid #dcc39a;border-radius:13px;background:#fffaf2;color:#3b2414;text-decoration:none;font-size:12px;font-weight:900}
.rmord-action.primary{border-color:#2e1a0e;background:#2e1a0e;color:#fff4df}
.rmord-action.muted{color:#8c745e}
.rm-toast-wrap{position:fixed;left:22px;bottom:22px;z-index:100000;display:grid;gap:10px}
.rm-toast{display:grid;grid-template-columns:52px minmax(0,1fr) 42px;align-items:center;gap:12px;width:min(420px,calc(100vw - 32px));padding:12px;border:1px solid #dfc8a3;border-radius:15px;background:#fffaf2;box-shadow:0 20px 60px rgba(34,19,9,.23);transition:.25s ease}
.rm-toast-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:12px;background:#f1ddba;color:#9a6421;font-size:20px}
.rm-toast-copy strong{display:block;color:#2d1b10;font-size:14px}
.rm-toast-copy small{display:block;margin-top:3px;color:#806a56;font-size:11px;font-weight:700}
.rm-toast-check{width:40px;height:40px;border:0;border-radius:50%;background:#2e1a0e;color:#fff;cursor:pointer}
.rm-order-success-page-modal .rm-order-success-modal{text-align:center}
.rm-order-success-icon{display:grid;place-items:center;width:72px;height:72px;margin:0 auto 12px;border-radius:22px;background:#e5f3e9;color:#237c52;font-size:28px}
.rm-order-success-thankyou{margin-top:14px;color:#9a6723;font-size:28px;font-weight:950}

@media(max-width:1320px){
  .rmord-overview{grid-template-columns:1fr}
  .rmord-order-head{grid-template-columns:80px minmax(260px,1fr) minmax(190px,.5fr) auto}
  .rmord-order-mark{width:80px;height:80px}
  .rmord-order-total{grid-column:2/3;justify-self:start;min-width:230px;text-align:left}
  .rmord-order-buttons{grid-column:4/5;grid-row:1/3;align-self:center}
  .rmord-bento{grid-template-columns:1fr}
  .rmord-summary{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
  .rmord-summary-card{grid-row:span 2}
  .rmord-card-actions{grid-column:2/4}
}
@media(max-width:1050px){
  .rmord-toolbar{top:74px;grid-template-columns:1fr 1fr 1fr 100px}
  .rmord-search{grid-column:1/-1}
  .rmord-order-head{grid-template-columns:76px minmax(0,1fr) auto}
  .rmord-order-state{grid-column:2/3;justify-self:start}
  .rmord-order-total{grid-column:2/3}
  .rmord-order-buttons{grid-column:3/4;grid-row:1/4}
  .rmord-journey{grid-template-columns:1fr}
  .rmord-product-grid{grid-template-columns:1fr}
  .rmord-summary{grid-template-columns:1fr 1fr}
  .rmord-summary-card{grid-row:auto}
  .rmord-card-actions{grid-column:1/-1}
}
@media(max-width:760px){
  .rmord-page{padding:18px 10px 36px}
  .rmord-overview-copy,.rmord-overview-stats,.rmord-toolbar,.rmord-order{border-radius:18px}
  .rmord-overview-copy{padding:22px 18px}
  .rmord-overview-stats{grid-template-columns:1fr 1fr;padding:11px}
  .rmord-overview-stats article{grid-template-columns:40px 1fr;min-height:94px;padding:12px}
  .rmord-overview-stats article>span{width:40px;height:40px;border-radius:12px;font-size:17px}
  .rmord-overview-stats strong{font-size:22px}
  .rmord-toolbar{position:static;grid-template-columns:1fr 1fr;padding:10px}
  .rmord-search{grid-column:1/-1}
  .rmord-visible{grid-column:1/-1}
  .rmord-order-head{grid-template-columns:66px minmax(0,1fr) 50px;gap:12px;padding:14px}
  .rmord-order-mark{width:66px;height:66px;border-radius:15px}
  .rmord-order-title h2{font-size:30px}
  .rmord-order-meta{display:grid;gap:5px}
  .rmord-order-state,.rmord-order-total{grid-column:1/-1;width:100%}
  .rmord-order-total{text-align:left}
  .rmord-order-buttons{grid-column:3/4;grid-row:1/2;align-self:start}
  .rmord-bill-button{display:none}
  .rmord2-open-btn{width:50px;height:50px;border-radius:14px}
  .rmord-order-body{padding:13px}
  .rmord-journey-track{overflow-x:auto;grid-template-columns:repeat(6,105px);padding-bottom:4px}
  .rmord-journey-track:before{left:20px;right:20px}
  .rmord-products{padding:13px}
  .rmord-summary{grid-template-columns:1fr}
  .rmord-card-actions{grid-column:auto}
  .rmord-modal-summary{grid-template-columns:1fr}
}
@media(max-width:480px){
  .rmord-overview-stats{grid-template-columns:1fr}
  .rmord-toolbar{grid-template-columns:1fr}
  .rmord-search,.rmord-visible{grid-column:auto}
  .rmord-order-head{grid-template-columns:58px minmax(0,1fr) 46px}
  .rmord-order-mark{width:58px;height:58px}
  .rmord2-open-btn{width:46px;height:46px}
  .rmord-order-state{grid-template-columns:1fr}
  .rmord-product{grid-template-columns:64px minmax(0,1fr);grid-template-areas:"image copy" "price price"}
  .rmord-product img{width:64px;height:64px}
  .rmord-product>strong{margin-top:4px}
  .modal-item{grid-template-columns:52px minmax(0,1fr)}
  .modal-item img{width:52px;height:52px}
  .modal-item>b{grid-column:2}
}

/* Final header controls: no journey, strict status colors, equal sizing */
.rmord-order-body{padding-top:14px}
.rmord-journey{display:none!important}

.rmord-order-head{
  grid-template-columns:92px minmax(260px,1fr) 360px 320px auto!important;
  gap:16px!important;
  align-items:center!important;
}
.rmord-order-state{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  width:360px!important;
  height:64px!important;
  min-height:64px!important;
  padding:0!important;
  border:1px solid var(--ord-line)!important;
  border-radius:16px!important;
  background:#fffaf3!important;
  overflow:hidden!important;
}
.rmord-order-state>div{
  display:grid!important;
  grid-template-rows:auto 1fr!important;
  align-content:center!important;
  justify-items:start!important;
  gap:4px!important;
  min-width:0!important;
  padding:8px 12px!important;
}
.rmord-order-state>div+div{border-left:1px solid var(--ord-line)!important}
.rmord-order-state small{
  margin:0!important;
  color:#9b6b2a!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
}
.rmord-order-state .pill{
  min-height:26px!important;
  height:26px!important;
  padding:0 12px!important;
  border-radius:999px!important;
  border:1px solid transparent!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.05em!important;
}
.rmord-order-state .pill.delivered,
.rmord-order-state .pill.paid{
  background:#e7f5ec!important;
  color:#167447!important;
  border-color:#c9e8d4!important;
}
.rmord-order-state .pill:not(.delivered):not(.paid){
  background:#fff0ee!important;
  color:#b33931!important;
  border-color:#efc8c4!important;
}

.rmord-order-total{
  display:grid!important;
  grid-template-rows:auto auto!important;
  align-content:center!important;
  justify-items:end!important;
  gap:2px!important;
  width:320px!important;
  min-width:320px!important;
  height:64px!important;
  min-height:64px!important;
  padding:8px 14px!important;
  border:1px solid var(--ord-line)!important;
  border-radius:16px!important;
  background:#fffaf3!important;
  text-align:right!important;
  overflow:hidden!important;
}
.rmord-order-total small{margin:0!important;font-size:9px!important;line-height:1!important}
.rmord-order-total strong{margin:0!important;font-size:24px!important;line-height:1!important}
.rmord-order-total em{display:none!important}

.rmord-order-buttons{display:flex!important;align-items:center!important;gap:10px!important;height:64px!important}
.rmord-bill-button,
.rmord2-open-btn{
  height:64px!important;
  min-height:64px!important;
  border-radius:16px!important;
  box-sizing:border-box!important;
}
.rmord-bill-button{
  min-width:104px!important;
  padding:0 18px!important;
  border:1px solid #111!important;
  background:#111!important;
  color:#fff!important;
  box-shadow:none!important;
}
.rmord-bill-button:hover{background:#000!important;color:#fff!important}
.rmord2-open-btn{
  width:64px!important;
  min-width:64px!important;
  border:1px solid #c84a42!important;
  background:#d9564d!important;
  color:#fff!important;
  box-shadow:none!important;
}
.rmord-order.is-open .rmord2-open-btn{
  border-color:#b93d35!important;
  background:#c9473f!important;
  color:#fff!important;
}

@media(max-width:1500px){
  .rmord-order-head{grid-template-columns:84px minmax(230px,1fr) 320px 280px auto!important}
  .rmord-order-state{width:320px!important}
  .rmord-order-total{width:280px!important;min-width:280px!important}
}
@media(max-width:1260px){
  .rmord-order-head{grid-template-columns:80px minmax(0,1fr) auto!important}
  .rmord-order-state{grid-column:2/3!important;width:100%!important;max-width:360px!important;justify-self:start!important}
  .rmord-order-total{grid-column:2/3!important;width:100%!important;max-width:320px!important;min-width:0!important;justify-self:start!important;justify-items:start!important;text-align:left!important}
  .rmord-order-buttons{grid-column:3/4!important;grid-row:1/4!important;align-self:center!important}
}
@media(max-width:760px){
  .rmord-order-head{grid-template-columns:66px minmax(0,1fr) 56px!important}
  .rmord-order-state,.rmord-order-total{grid-column:1/-1!important;max-width:none!important;width:100%!important}
  .rmord-order-buttons{grid-column:3/4!important;grid-row:1/2!important;height:56px!important}
  .rmord-bill-button{display:none!important}
  .rmord2-open-btn{width:56px!important;min-width:56px!important;height:56px!important;min-height:56px!important}
}

/* Final tightening: compact status/price boxes and quantity badge */
.rmord-order-mark span{
  min-width:34px !important;
  height:34px !important;
  padding:0 8px !important;
  border-radius:999px !important;
  bottom:8px !important;
  left:8px !important;
  font-size:16px !important;
  font-weight:950 !important;
  line-height:1 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.rmord-order-head{
  grid-template-columns:92px minmax(240px,1fr) 300px 250px auto !important;
  gap:14px !important;
}
.rmord-order-state{
  width:300px !important;
  height:64px !important;
  min-height:64px !important;
}
.rmord-order-state > div{
  padding:7px 14px !important;
  gap:5px !important;
  justify-items:start !important;
  align-content:center !important;
}
.rmord-order-state .pill{
  width:auto !important;
  max-width:max-content !important;
  min-width:0 !important;
}
.rmord-order-total{
  width:250px !important;
  min-width:250px !important;
  padding:8px 12px !important;
  justify-items:end !important;
}
.rmord-order-total strong{font-size:21px !important}
.rmord-order-buttons{
  gap:12px !important;
}
.rmord-bill-button{min-width:112px !important}

@media(max-width:1500px){
  .rmord-order-head{grid-template-columns:84px minmax(220px,1fr) 290px 238px auto !important}
  .rmord-order-state{width:290px !important}
  .rmord-order-total{width:238px !important;min-width:238px !important}
}
@media(max-width:1260px){
  .rmord-order-state{max-width:300px !important}
  .rmord-order-total{max-width:250px !important}
}
@media(max-width:760px){
  .rmord-order-mark span{
    min-width:28px !important;
    height:28px !important;
    font-size:13px !important;
    left:6px !important;
    bottom:6px !important;
  }
}

/* Remove header image block + reduce order number weight/size */
.rmord-order-mark{display:none !important}

.rmord-order-head{
  grid-template-columns:minmax(340px,1fr) 300px 250px auto !important;
  gap:14px !important;
  align-items:center !important;
}
.rmord-order-title h2{
  font-size:clamp(28px,2.6vw,40px) !important;
  line-height:1.02 !important;
  font-weight:850 !important;
  letter-spacing:-.04em !important;
}
.rmord-order-kicker{margin-bottom:6px !important}
.rmord-order-meta{margin-top:6px !important}

@media(max-width:1500px){
  .rmord-order-head{grid-template-columns:minmax(300px,1fr) 290px 238px auto !important}
}
@media(max-width:1260px){
  .rmord-order-head{grid-template-columns:minmax(0,1fr) auto !important}
}
@media(max-width:760px){
  .rmord-order-head{grid-template-columns:minmax(0,1fr) 56px !important}
  .rmord-order-title h2{font-size:28px !important;font-weight:820 !important}
}
@media(max-width:480px){
  .rmord-order-head{grid-template-columns:minmax(0,1fr) 46px !important}
  .rmord-order-title h2{font-size:24px !important}
}

/* Sticky toolbar spacing + content-fit order controls */
.rmord-toolbar{
  top:104px !important;
  margin-top:14px !important;
}

.rmord-order-head{
  grid-template-columns:minmax(340px,1fr) max-content max-content auto !important;
  column-gap:14px !important;
}

.rmord-order-state{
  display:flex !important;
  width:max-content !important;
  min-width:0 !important;
  max-width:none !important;
  height:64px !important;
}
.rmord-order-state > div{
  width:max-content !important;
  min-width:0 !important;
  padding:7px 14px !important;
}
.rmord-order-state .pill{
  width:max-content !important;
  max-width:none !important;
  white-space:nowrap !important;
}

.rmord-order-total{
  width:max-content !important;
  min-width:0 !important;
  max-width:none !important;
  padding:8px 14px !important;
  white-space:nowrap !important;
}
.rmord-order-total strong{white-space:nowrap !important}

@media(max-width:1260px){
  .rmord-toolbar{top:96px !important}
  .rmord-order-head{grid-template-columns:minmax(0,1fr) auto !important}
  .rmord-order-state{
    grid-column:1/2 !important;
    width:max-content !important;
    max-width:100% !important;
    justify-self:start !important;
  }
  .rmord-order-total{
    grid-column:1/2 !important;
    width:max-content !important;
    max-width:100% !important;
    justify-self:start !important;
    justify-items:start !important;
    text-align:left !important;
  }
  .rmord-order-buttons{grid-column:2/3 !important;grid-row:1/4 !important}
}

@media(max-width:760px){
  .rmord-toolbar{position:static !important;margin-top:0 !important}
  .rmord-order-state,.rmord-order-total{
    grid-column:1/-1 !important;
    width:max-content !important;
    max-width:100% !important;
  }
}


/* Final sticky toolbar header clearance */
.rmord-toolbar{
  top:130px !important;
  margin-top:16px !important;
}
@media(max-width:1260px){
  .rmord-toolbar{top:118px !important;}
}
@media(max-width:760px){
  .rmord-toolbar{position:static !important;top:auto !important;margin-top:0 !important;}
}
