/* JOON Frontend Styles v1.1.8 */
.joon-app{position:fixed;inset:0;background:#030712;color:#fff;font-family:Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif;z-index:2147483000}
.joon-app.joon-offset{top:32px}
@media (max-width:782px){ .joon-app.joon-offset{ top:46px } }

.joon-sidebar{position:fixed;left:0;top:0;bottom:0;width:20vw;min-width:240px;background:linear-gradient(180deg,#020617 0%,#06111f 100%);border-right:1px solid rgba(148,163,184,.16);transition:transform .25s ease;z-index:2147483300}
.joon-sidebar-inner{display:flex;flex-direction:column;height:100%;padding:20px 10px;gap:6px;overflow:auto}
.joon-tab{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:10px;color:#c9c9c9;text-decoration:none;transition:background .2s,color .2s}
.joon-tab i{width:20px;text-align:center}
.joon-tab:hover{background:rgba(255,255,255,.08);color:#fff}
.joon-tab.is-active{background:rgba(255,255,255,.14);color:#fff}
.joon-tab.is-logout{color:#ff6b6b}
.joon-tab.is-logout:hover{background:rgba(255,70,70,.15);color:#fff}

.joon-main{margin-left:20vw;height:100vh;display:flex;flex-direction:column}
.joon-header{display:flex;align-items:center;justify-content:space-between;margin:18px 24px 10px 24px;padding:16px 18px;border-radius:20px;background:linear-gradient(135deg,rgba(7,15,28,.96) 0%,rgba(10,25,47,.96) 55%,rgba(8,42,45,.92) 100%);border:1px solid rgba(125,211,252,.16);box-shadow:0 24px 60px rgba(2,8,23,.36);color:#e2e8f0}
.joon-header-left{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
.joon-header-right{display:flex;align-items:center;gap:10px}
.joon-header-brand{display:flex;flex-direction:column;gap:4px;min-width:0}
.joon-header-name{font-weight:800;font-size:1.08rem;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#f8fafc}
.joon-header-btn{background:rgba(255,255,255,.08);border:1px solid rgba(148,163,184,.18);border-radius:12px;padding:8px 10px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.joon-header-btn i{color:#e2e8f0}
.joon-header-address-chip{gap:8px;max-width:320px;min-height:40px;padding:8px 12px;color:#dbeafe;text-decoration:none}
.joon-header-address-chip:hover{transform:translateY(-1px);border-color:rgba(191,219,254,.3)}
.joon-header-address-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;font-weight:600}

.joon-search{display:flex;align-items:center;gap:6px;margin-left:8px;flex:1;min-width:180px;max-width:420px}
.joon-search-input{flex:1;border-radius:999px;border:0;padding:8px 12px;font-size:.9rem;outline:none;background:rgba(255,255,255,.85)}
.joon-search-btn{display:inline-flex;align-items:center;gap:6px;border-radius:999px;border:0;padding:8px 12px;font-size:.85rem;font-weight:600;cursor:pointer;background:#0b1b22;color:#f8fafc}
.joon-search-btn i{color:inherit}

.joon-header-controls{display:flex;align-items:center;gap:10px;position:relative;flex-wrap:nowrap}
.joon-header-phone{gap:8px;min-height:40px;padding:8px 12px;background:linear-gradient(135deg,#f97316 0%,#ea580c 100%);border-color:rgba(255,255,255,.08);color:#fff;box-shadow:0 14px 30px rgba(234,88,12,.24);text-decoration:none}
.joon-header-phone i{color:#fff}
.joon-header-phone:hover{transform:translateY(-1px);box-shadow:0 18px 36px rgba(234,88,12,.32)}
.joon-header-phone-number{font-size:.88rem;font-weight:700;letter-spacing:.01em;white-space:nowrap}
.joon-notify-wrap{position:relative;z-index:2147483215}
.joon-notify-toggle{position:relative}
.joon-notify-badge{position:absolute;top:-5px;right:-5px;min-width:16px;height:16px;border-radius:999px;background:#ef4444;color:#fff;font-size:10px;display:flex;align-items:center;justify-content:center;padding:0 4px}
.joon-notify-panel{position:absolute;right:0;top:110%;width:360px;max-width:min(92vw,380px);background:#020617;color:#e5e7eb;border-radius:16px;box-shadow:0 18px 45px rgba(15,23,42,.55);padding:12px 14px;opacity:0;transform:translateY(-6px) scale(.98);pointer-events:none;visibility:hidden;transition:opacity .16s ease,transform .16s ease,visibility 0s linear .16s}
.joon-notify-wrap.is-open .joon-notify-panel{opacity:1;transform:translateY(0) scale(1);pointer-events:auto;visibility:visible;transition:opacity .16s ease,transform .16s ease,visibility 0s}
.joon-notify-panel-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;font-weight:700}
.joon-notify-panel-actions{display:flex;align-items:center;gap:10px}
.joon-notify-mark-read,.joon-notify-clear{border:0;background:transparent;color:#93c5fd;font-size:.78rem;font-weight:600;cursor:pointer;padding:0}
.joon-notify-list{display:flex;flex-direction:column;gap:8px;max-height:320px;overflow:auto}
.joon-notify-empty{font-size:.85rem;color:#94a3b8;padding:8px 0}
.joon-notify-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:flex-start;gap:8px;padding:10px 12px;border-radius:12px;background:rgba(15,23,42,.75);border:1px solid rgba(148,163,184,.14)}
.joon-notify-item.is-unread{border-color:rgba(59,130,246,.4);background:rgba(30,41,59,.96)}
.joon-notify-link{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;color:#e5e7eb;text-decoration:none;min-width:0}
.joon-notify-item-main{display:flex;flex-direction:column;gap:4px;min-width:0}
.joon-notify-item-title{font-size:.86rem;font-weight:700;color:#f8fafc}
.joon-notify-item-message{font-size:.8rem;color:#cbd5e1;line-height:1.35}
.joon-notify-item-time{font-size:.72rem;color:#8fa3bf;white-space:nowrap;padding-top:2px}
.joon-notify-dismiss{width:28px;height:28px;border-radius:999px;border:1px solid rgba(148,163,184,.18);background:rgba(255,255,255,.04);color:#cbd5e1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:1rem;line-height:1}
.joon-notify-dismiss:hover{background:rgba(239,68,68,.14);color:#fff;border-color:rgba(248,113,113,.28)}

.joon-cart-wrapper{position:relative;z-index:2147483210}
.joon-cart-btn{position:relative}
.joon-cart-badge{position:absolute;top:-4px;right:-4px;min-width:16px;height:16px;border-radius:999px;background:#ef4444;color:#fff;font-size:10px;display:flex;align-items:center;justify-content:center;padding:0 4px}

.joon-canvas{flex:1;overflow:auto;padding:10px 24px 24px 24px}
.joon-panel{min-height:240px;background:linear-gradient(180deg,#06111f 0%,#09172a 100%);border:1px solid rgba(148,163,184,.14);border-radius:20px;padding:16px;color:#e2e8f0;box-shadow:0 18px 45px rgba(2,8,23,.22)}
.joon-muted{opacity:.6}
.joon-search-note{margin-bottom:8px;font-size:.85rem}

.joon-search-results{margin:0 0 14px 0;padding-left:18px}
.joon-search-results li{margin:2px 0}
.joon-search-results a{text-decoration:none;color:#0b1b22;font-size:.9rem}
.joon-search-results a:hover{text-decoration:underline}

.joon-notice{padding:16px;border-radius:12px;background:#111;color:#ddd}
@media (max-width: 960px){
  .joon-sidebar{width:260px;min-width:260px;transform:translateX(-100%)}
  .joon-sidebar.is-open{transform:translateX(0)}
  .joon-main{margin-left:0}
  .joon-tab span{display:inline}
}

@media (max-width: 720px){
  .joon-header{margin:10px 10px 6px 10px;padding:12px 14px;border-radius:16px;flex-direction:column;gap:12px}
  .joon-header-left,.joon-header-right{width:100%}
  .joon-header-left{align-items:center}
  .joon-header-right{justify-content:space-between}
  .joon-header-controls{width:100%;justify-content:flex-end;gap:8px}
  .joon-header-address-chip{max-width:none}
  .joon-notify-panel{width:min(92vw,400px)}
  .joon-canvas{padding:10px 0 calc(120px + env(safe-area-inset-bottom))}
}
@media (max-width: 540px){
  .joon-search{flex-basis:100%}
  .joon-search-btn span{display:none}
  .joon-header-name{font-size:1rem}
  .joon-header-address-chip{max-width:180px;padding:8px 10px}
  .joon-header-phone{padding:8px 10px}
  .joon-header-phone-number{max-width:122px;overflow:hidden;text-overflow:ellipsis}
  .joon-notify-panel{right:auto;left:0;width:min(92vw,360px)}
}

.joon-menu-toggle{display:none}
@media (max-width: 960px){
  .joon-menu-toggle{display:inline-flex}
}

.joon-app.joon-dark{background:#030712;color:#fff}
.joon-app.joon-light{background:#f4f6fb;color:#111}
.joon-app.joon-light .joon-sidebar{background:linear-gradient(180deg,#0f172a 0%,#172554 100%);border-right:1px solid rgba(0,0,0,.08)}
.joon-app.joon-light .joon-tab{color:#e0e0e0}
.joon-app.joon-light .joon-tab.is-active{background:rgba(255,255,255,.24);color:#fff}
.joon-app.joon-light .joon-header{background:linear-gradient(135deg,#ffffff 0%,#dbeafe 52%,#dcfce7 100%);color:#0f172a;border-color:rgba(37,99,235,.14);box-shadow:0 20px 46px rgba(15,23,42,.14)}
.joon-app.joon-light .joon-header-name{color:#0f172a}
.joon-app.joon-light .joon-header-btn{background:rgba(15,23,42,.06);border-color:rgba(15,23,42,.08)}
.joon-app.joon-light .joon-header-btn i{color:#0f172a}
.joon-app.joon-light .joon-header-address-chip{color:#0f172a}
.joon-app.joon-light .joon-panel{background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);color:#0f172a;border-color:rgba(15,23,42,.08)}
.joon-app.joon-light .joon-search-results a{color:#0f172a}
.joon-app.joon-light .joon-notify-panel{background:#ffffff;color:#0f172a;box-shadow:0 18px 45px rgba(15,23,42,.16)}
.joon-app.joon-light .joon-notify-item{background:#f8fbff;border-color:rgba(15,23,42,.08);color:#0f172a}
.joon-app.joon-light .joon-notify-item.is-unread{background:#eff6ff;border-color:rgba(37,99,235,.24)}
.joon-app.joon-light .joon-notify-link{color:#0f172a}
.joon-app.joon-light .joon-notify-item-title{color:#0f172a}
.joon-app.joon-light .joon-notify-item-message{color:#334155}
.joon-app.joon-light .joon-notify-item-time{color:#64748b}
.joon-app.joon-light .joon-notify-empty{color:#64748b}
.joon-app.joon-light .joon-notify-dismiss{background:rgba(15,23,42,.03);border-color:rgba(15,23,42,.08);color:#334155}

.joon-mode-toggle i{transition:transform .25s,filter .25s}
.joon-mode-toggle.is-night i{filter:drop-shadow(0 0 6px rgba(255,255,255,.7));transform:rotate(15deg)}

/* JOON header mini-cart (desktop dropdown + mobile drawer) */
.joon-header{overflow:visible}

.joon-cart-overlay{position:fixed;inset:0;background:rgba(2,6,23,.45);backdrop-filter:blur(4px);opacity:0;pointer-events:none;transition:opacity .18s ease;z-index:2147483190}
.joon-app.joon-cart-open .joon-cart-overlay{opacity:1;pointer-events:auto}

.joon-cart-menu{position:absolute;right:0;top:110%;width:340px;max-width:min(100vw - 24px, 380px);background:#020617;color:#e5e7eb;border-radius:16px;padding:12px 14px;box-shadow:0 18px 45px rgba(15,23,42,.55);z-index:2147483200;display:block;opacity:0;transform:translateY(-6px) scale(.98);pointer-events:none;visibility:hidden;transition:opacity .16s ease, transform .16s ease, visibility 0s linear .16s}
.joon-cart-menu.is-open{opacity:1;transform:translateY(0) scale(1);pointer-events:auto;visibility:visible;transition:opacity .16s ease, transform .16s ease, visibility 0s}
.joon-app.joon-light .joon-cart-menu{background:#ffffff;color:#0f172a;box-shadow:0 18px 45px rgba(15,23,42,.16)}
.joon-app.joon-light .joon-cart-item{border-bottom:1px solid rgba(15,23,42,.12)}
.joon-app.joon-light .joon-cart-remove:hover{background:rgba(15,23,42,.06)}

.joon-cart-menu-inner{display:flex;flex-direction:column;gap:8px}
.joon-cart-menu-header{display:flex;align-items:center;justify-content:space-between;font-weight:600;font-size:.9rem;margin-bottom:4px}
.joon-cart-items{list-style:none;margin:4px 0 10px;padding:0;max-height:260px;overflow-y:auto}
.joon-cart-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;column-gap:8px;align-items:center;padding:6px 0;border-bottom:1px solid rgba(148,163,184,.18)}
.joon-cart-item:last-child{border-bottom:none}
.joon-cart-name{font-size:.83rem;font-weight:500;line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.joon-cart-meta{font-size:.78rem;opacity:.75;white-space:nowrap}
.joon-cart-remove{border:0;background:transparent;cursor:pointer;font-size:1.05rem;line-height:1;padding:4px;border-radius:999px}
.joon-cart-remove:hover{background:rgba(148,163,184,.20)}
.joon-cart-empty{font-size:.83rem;opacity:.7;padding:4px 0 6px}

.joon-cart-menu-actions{display:flex;justify-content:space-between;gap:8px}
.joon-cart-link{flex:1;text-align:center;font-size:.82rem;padding:7px 10px;border-radius:999px;border:1px solid rgba(148,163,184,.35);text-decoration:none}
.joon-cart-link.button{background:#111827;color:#e5e7eb;border-color:transparent}
.joon-cart-link.button-primary{background:#2563eb;color:#eff6ff;border-color:transparent}
.joon-app.joon-light .joon-cart-link.button{background:#0f172a;color:#e5e7eb}
.joon-app.joon-light .joon-cart-link.button-primary{background:#2563eb;color:#eff6ff}

@media (max-width: 720px){
  .joon-cart-menu{
    position:fixed;
    top:0;
    right:0;
    height:100vh;
    width:min(92vw, 420px);
    max-width:none;
    border-radius:18px 0 0 18px;
    padding:calc(14px + env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom));
    transform:translateX(102%);
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transition:transform .22s cubic-bezier(.2,.8,.2,1);
  }
  .joon-app.joon-cart-open .joon-cart-menu{transform:translateX(0)}
  .joon-cart-menu-actions{flex-direction:column}
  .joon-cart-link{width:100%}
}

/* Search dropdown table for search */
.joon-search-dropdown{position:relative;margin:4px 24px 0 24px;max-width:900px;background:#ffffff;border-radius:18px;padding:10px 14px;box-shadow:0 16px 40px rgba(0,0,0,.12);z-index:2147483200}
.joon-search-panel-header{display:flex;align-items:center;gap:6px;font-size:.9rem;font-weight:600;margin-bottom:4px}
.joon-search-keyword{padding:2px 8px;border-radius:999px;background:rgba(15,23,42,.06)}
.joon-search-table-wrap{max-height:260px;overflow-y:auto;border-radius:12px;border:1px solid rgba(15,23,42,.06);margin-top:4px}
.joon-search-table{width:100%;border-collapse:collapse;font-size:.86rem}
.joon-search-row:nth-child(odd){background:rgba(15,23,42,.01)}
.joon-search-row:hover{background:rgba(15,23,42,.05)}
.joon-search-cell{padding:6px 10px;vertical-align:middle}
.joon-search-cell-title a{text-decoration:none;color:#0f172a;display:block}
.joon-search-cell-title a:hover{text-decoration:underline}
.joon-search-cell-view{text-align:right;white-space:nowrap}
.joon-search-cell-view a{text-decoration:none;font-size:.78rem;padding:4px 10px;border-radius:999px;border:1px solid rgba(15,23,42,.12);color:#0f172a}
.joon-search-cell-view a:hover{background:rgba(15,23,42,.04)}

/* Responsive enhancements for JOON plugin */
@media (max-width: 720px){
  .joon-sidebar{width:50vw;max-width:none;min-width:0}
  .joon-canvas{padding:10px 0}
  .joon-panel{
    background:transparent;
    border-radius:0;
    padding:0;
    min-height:auto;
    box-shadow:none;
    border:0;
  }

  .joon-panel .woocommerce,
  .joon-panel .woocommerce-page,
  .joon-panel .woocommerce-account,
  .joon-panel .woocommerce-cart,
  .joon-panel .woocommerce-checkout,
  .joon-panel .woocommerce-MyAccount-content,
  .joon-panel .woocommerce-MyAccount-navigation,
  .joon-panel .woocommerce .woocommerce-MyAccount-content{
    width:100% !important;
    max-width:none !important;
    float:none !important;
  }

  .joon-panel .container,
  .joon-panel .site-content,
  .joon-panel .content-area,
  .joon-panel .wrap{
    max-width:none !important;
    width:100% !important;
  }
  .joon-tab span{display:inline}
}
@media (max-width: 540px){
  .joon-sidebar{width:50vw;max-width:none;min-width:0}
  .joon-tab span{display:inline}
}

/* 2026 refresh: modern-classic JOON shell */
.joon-app{
  --joon-font-body: "Avenir Next","Plus Jakarta Sans","Segoe UI",sans-serif;
  --joon-font-display: "Iowan Old Style","Palatino Linotype","Book Antiqua",Georgia,serif;
  --joon-sidebar-w: clamp(268px, 20vw, 308px);
  --joon-sidebar-w-collapsed: 104px;
  --joon-canvas-max: 1540px;
  --joon-bg: linear-gradient(180deg,#edf2f8 0%,#f7fafc 48%,#eef4f9 100%);
  --joon-sidebar-bg: linear-gradient(180deg,#0f172a 0%,#162236 54%,#1d3650 100%);
  --joon-sidebar-line: rgba(255,255,255,.08);
  --joon-tab-bg: rgba(255,255,255,.03);
  --joon-tab-hover: rgba(255,255,255,.08);
  --joon-tab-active: linear-gradient(135deg,rgba(255,255,255,.16),rgba(191,219,254,.09));
  --joon-header-bg: linear-gradient(135deg,rgba(255,255,255,.92) 0%,rgba(247,241,231,.96) 58%,rgba(236,247,255,.92) 100%);
  --joon-header-line: rgba(15,23,42,.08);
  --joon-panel-bg: linear-gradient(180deg,rgba(255,255,255,.86) 0%,rgba(247,250,252,.92) 100%);
  --joon-panel-line: rgba(148,163,184,.18);
  --joon-chip-bg: rgba(255,255,255,.82);
  --joon-chip-line: rgba(15,23,42,.08);
  --joon-dropdown-bg: rgba(255,255,255,.98);
  --joon-dropdown-line: rgba(148,163,184,.16);
  --joon-ink: #10233f;
  --joon-ink-soft: #445972;
  --joon-muted: #677b91;
  --joon-accent: #2e5bea;
  --joon-accent-strong: #1d46ba;
  --joon-accent-warm: #f97316;
  --joon-glow: 0 24px 60px rgba(15,23,42,.12);
  background: var(--joon-bg);
  color: var(--joon-ink);
  font-family: var(--joon-font-body);
  overflow: hidden;
}

.joon-app::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.10), transparent 28%),
    radial-gradient(circle at 22% 14%, rgba(249,115,22,.08), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0));
  pointer-events:none;
}

.joon-app.joon-light{
  --joon-bg: linear-gradient(180deg,#f7fafc 0%,#ffffff 42%,#f2f6fb 100%);
  --joon-sidebar-bg: linear-gradient(180deg,#ffffff 0%,#eef3f9 100%);
  --joon-sidebar-line: rgba(15,23,42,.08);
  --joon-tab-bg: rgba(15,23,42,.03);
  --joon-tab-hover: rgba(37,99,235,.08);
  --joon-tab-active: linear-gradient(135deg,#eff6ff,#ffffff);
  --joon-header-bg: linear-gradient(135deg,#ffffff 0%,#edf5ff 52%,#f7f9fc 100%);
  --joon-header-line: rgba(37,99,235,.12);
  --joon-panel-bg: linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  --joon-panel-line: rgba(15,23,42,.10);
  --joon-chip-bg: rgba(255,255,255,.94);
  --joon-chip-line: rgba(15,23,42,.08);
  --joon-dropdown-bg: #ffffff;
  --joon-dropdown-line: rgba(15,23,42,.12);
  --joon-glow: 0 22px 54px rgba(15,23,42,.09);
}

.joon-sidebar{
  width:var(--joon-sidebar-w);
  min-width:var(--joon-sidebar-w);
  height:calc(100vh - var(--joon-app-top, 0px));
  top:var(--joon-app-top, 0px);
  bottom:auto;
  padding:18px 14px 18px 18px;
  background:transparent;
  border-right:0;
  box-sizing:border-box;
  overflow:visible;
  transition:transform .26s ease, width .26s ease, min-width .26s ease, padding .26s ease;
}

.joon-sidebar-inner{
  position:relative;
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:0;
  padding:18px 14px 16px;
  gap:0;
  border-radius:30px;
  background:var(--joon-sidebar-bg);
  border:1px solid var(--joon-sidebar-line);
  box-shadow:0 24px 44px rgba(15,23,42,.18);
  overflow:hidden;
}

.joon-sidebar-scroll{
  position:relative;
  display:flex;
  flex:1 1 auto;
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding-bottom:6px;
  padding-right:4px;
  margin-right:-4px;
  scrollbar-width:thin;
  scrollbar-color:rgba(148,163,184,.42) transparent;
}

.joon-sidebar-scroll::-webkit-scrollbar{
  width:8px;
}

.joon-sidebar-scroll::-webkit-scrollbar-thumb{
  background:rgba(148,163,184,.36);
  border-radius:999px;
}

.joon-sidebar-scroll::-webkit-scrollbar-track{
  background:transparent;
}

.joon-sidebar-inner::before{
  content:"";
  position:absolute;
  inset:auto -24% 62% 28%;
  height:220px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(255,255,255,.12), transparent 62%);
  pointer-events:none;
}

.joon-sidebar-brand{
  position:relative;
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:6px 10px 20px;
  margin-bottom:18px;
  border-bottom:1px solid rgba(255,255,255,.08);
  z-index:1;
}

.joon-sidebar-brand-mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  flex:0 0 46px;
  border-radius:16px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 10px 18px rgba(15,23,42,.12);
}

.joon-sidebar-brand-mark i{
  font-size:1rem;
  color:#f8fafc;
}

.joon-sidebar-brand-copy{
  min-width:0;
  flex:1 1 auto;
}

.joon-sidebar-kicker{
  display:block;
  font-size:.72rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.18em;
  color:rgba(226,232,240,.64);
}

.joon-sidebar-brand-title{
  display:block;
  margin-top:10px;
  font-family:var(--joon-font-display);
  font-size:1.5rem;
  font-weight:700;
  line-height:1.08;
  color:#f8fafc;
  letter-spacing:-.02em;
}

.joon-sidebar-brand-meta{
  margin:10px 0 0;
  font-size:.89rem;
  line-height:1.55;
  color:rgba(226,232,240,.78);
}

.joon-sidebar-nav{
  display:flex;
  flex-direction:column;
  gap:8px;
  position:relative;
  z-index:1;
}

.joon-sidebar-footer{
  flex:0 0 auto;
  margin-top:14px;
  padding:18px 2px 0;
  border-top:1px solid rgba(255,255,255,.08);
  position:relative;
  z-index:1;
}

.joon-sidebar-footer .joon-tab{
  width:100%;
}

.joon-tab{
  position:relative;
  gap:14px;
  padding:14px 16px 14px 18px;
  border-radius:18px;
  background:var(--joon-tab-bg);
  color:rgba(241,245,249,.86);
  font-weight:600;
  letter-spacing:.01em;
}

.joon-tab i{
  width:1.2rem;
  font-size:1rem;
  color:rgba(226,232,240,.86);
}

.joon-tab:hover{
  background:var(--joon-tab-hover);
  color:#ffffff;
  transform:translateX(3px);
}

.joon-tab.is-active{
  background:var(--joon-tab-active);
  color:#ffffff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}

.joon-tab.is-active::before{
  content:"";
  position:absolute;
  left:12px;
  top:12px;
  bottom:12px;
  width:3px;
  border-radius:999px;
  background:linear-gradient(180deg,#fbbf24 0%,#ffffff 100%);
}

.joon-tab.is-logout{
  color:#fecaca;
}

.joon-tab.is-logout i{
  color:#fda4af;
}

.joon-tab.is-logout:hover{
  background:rgba(239,68,68,.14);
  color:#ffffff;
}

.joon-main{
  position:relative;
  margin-left:var(--joon-sidebar-w);
  height:calc(100vh - var(--joon-app-top, 0px));
  min-height:calc(100vh - var(--joon-app-top, 0px));
  transition:margin-left .26s ease;
}

.joon-main::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.34), transparent 32%),
    radial-gradient(circle at 80% 0%, rgba(191,219,254,.18), transparent 22%);
  pointer-events:none;
}

.joon-header{
  position:relative;
  margin:16px 24px 10px;
  padding:14px 18px;
  border-radius:24px;
  background:var(--joon-header-bg);
  border:1px solid var(--joon-header-line);
  box-shadow:var(--joon-glow);
  color:var(--joon-ink);
  backdrop-filter:blur(18px);
}

.joon-header-left,
.joon-header-right,
.joon-header-controls{
  position:relative;
  z-index:1;
}

.joon-header-left{
  gap:12px;
}

.joon-header-brand{
  gap:0;
}

.joon-header-name{
  font-family:var(--joon-font-display);
  font-size:clamp(1.28rem,1.55vw,1.7rem);
  font-weight:700;
  color:var(--joon-ink);
  line-height:1.08;
  letter-spacing:-.03em;
}

.joon-header-btn{
  min-height:42px;
  padding:9px 11px;
  border-radius:16px;
  background:var(--joon-chip-bg);
  border:1px solid var(--joon-chip-line);
  box-shadow:0 10px 20px rgba(15,23,42,.06);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.joon-header-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(37,99,235,.18);
  box-shadow:0 16px 30px rgba(15,23,42,.08);
}

.joon-header-btn i{
  color:var(--joon-ink);
}

.joon-header-controls{
  gap:12px;
}

.joon-canvas{
  min-height:0;
}

.joon-shell-toggle{
  position:fixed;
  left:calc(var(--joon-sidebar-w) - 14px);
  top:50%;
  z-index:2147483350;
  width:34px;
  height:34px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:999px;
  background:linear-gradient(180deg, rgba(15,23,42,.96) 0%, rgba(22,34,54,.96) 100%);
  color:#f8fafc;
  box-shadow:0 14px 26px rgba(15,23,42,.22);
  transform:translateY(-50%);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:left .26s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.joon-shell-toggle:hover{
  transform:translateY(-50%) scale(1.04);
  box-shadow:0 18px 32px rgba(15,23,42,.28);
}

.joon-shell-toggle i{
  font-size:.86rem;
}

.joon-app.joon-sidebar-collapsed .joon-sidebar{
  width:var(--joon-sidebar-w-collapsed);
  min-width:var(--joon-sidebar-w-collapsed);
  padding-right:10px;
}

.joon-app.joon-sidebar-collapsed .joon-main{
  margin-left:var(--joon-sidebar-w-collapsed);
}

.joon-app.joon-sidebar-collapsed .joon-shell-toggle{
  left:calc(var(--joon-sidebar-w-collapsed) - 14px);
}

.joon-app.joon-sidebar-collapsed .joon-sidebar-brand{
  justify-content:center;
  padding-inline:6px;
}

.joon-app.joon-sidebar-collapsed .joon-sidebar-brand-copy,
.joon-app.joon-sidebar-collapsed .joon-tab span{
  display:none;
}

.joon-app.joon-sidebar-collapsed .joon-sidebar-brand-mark{
  margin:0 auto;
}

.joon-app.joon-sidebar-collapsed .joon-tab{
  justify-content:center;
  padding-inline:12px;
}

.joon-app.joon-sidebar-collapsed .joon-sidebar-footer{
  padding-inline:0;
}

.joon-app.joon-sidebar-collapsed .joon-tab.is-active::before{
  left:8px;
}

.joon-header-address-chip{
  max-width:360px;
  padding:10px 14px;
  background:rgba(255,255,255,.72);
  color:var(--joon-ink);
}

.joon-header-address-text{
  font-size:.84rem;
  font-weight:700;
}

.joon-header-phone{
  padding:10px 16px;
  border-radius:18px;
  background:linear-gradient(135deg,#fb923c 0%,#ea580c 100%);
  border-color:rgba(255,255,255,.14);
  box-shadow:0 18px 34px rgba(234,88,12,.24);
}

.joon-header-phone-number{
  font-size:.93rem;
  font-weight:800;
}

.joon-notify-panel,
.joon-cart-menu{
  background:var(--joon-dropdown-bg);
  border:1px solid var(--joon-dropdown-line);
  color:var(--joon-ink);
  box-shadow:0 28px 56px rgba(15,23,42,.16);
}

.joon-notify-panel-header{
  color:var(--joon-ink);
}

.joon-notify-mark-read,
.joon-notify-clear{
  color:var(--joon-accent);
}

.joon-notify-item{
  background:#f8fbff;
  border-color:rgba(148,163,184,.16);
}

.joon-notify-item.is-unread{
  background:#eef5ff;
  border-color:rgba(59,130,246,.28);
}

.joon-notify-link,
.joon-notify-item-title{
  color:var(--joon-ink);
}

.joon-notify-item-message{
  color:var(--joon-ink-soft);
}

.joon-notify-empty,
.joon-notify-item-time{
  color:var(--joon-muted);
}

.joon-notify-dismiss{
  background:rgba(15,23,42,.03);
  border-color:rgba(15,23,42,.10);
  color:var(--joon-ink-soft);
}

.joon-cart-menu-header{
  color:var(--joon-ink);
}

.joon-cart-item{
  border-bottom:1px solid rgba(148,163,184,.18);
}

.joon-cart-meta,
.joon-cart-empty{
  color:var(--joon-muted);
}

.joon-cart-link{
  border-radius:999px;
}

.joon-canvas{
  position:relative;
  padding:14px 24px 28px;
}

.joon-canvas > *{
  position:relative;
  z-index:1;
}

.joon-panel{
  max-width:var(--joon-canvas-max);
  margin:0 auto;
  min-height:320px;
  padding:18px;
  border-radius:30px;
  background:var(--joon-panel-bg);
  border:1px solid var(--joon-panel-line);
  box-shadow:0 20px 40px rgba(15,23,42,.08);
  backdrop-filter:blur(18px);
  color:var(--joon-ink);
}

.joon-panel.is-boom-embed{
  padding:20px;
}

.joon-panel > :first-child{
  margin-top:0;
}

.joon-panel .boom-agent-dashboard,
.joon-panel .boom-orders-shell,
.joon-panel .boom-statements-shell,
.joon-panel .boom-portal-home,
.joon-panel .boom-profile-shell,
.joon-panel .boom-find-user-shell,
.joon-panel .boom-credit-center,
.joon-panel .boom-card{
  margin-top:0;
}

.joon-panel .boom-agent-card,
.joon-panel .boom-card{
  border-radius:24px;
}

.joon-search-dropdown{
  max-width:var(--joon-canvas-max);
  margin:6px auto 0;
  padding:12px 16px;
  border-radius:24px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(148,163,184,.16);
  box-shadow:0 18px 32px rgba(15,23,42,.08);
}

.joon-search-panel-header{
  color:var(--joon-ink);
}

.joon-search-keyword{
  background:rgba(37,99,235,.08);
  color:var(--joon-accent-strong);
}

.joon-search-table-wrap{
  border-radius:18px;
  border:1px solid rgba(148,163,184,.14);
}

.joon-search-row:hover{
  background:rgba(37,99,235,.04);
}

.joon-search-cell-view a{
  border-color:rgba(15,23,42,.12);
  border-radius:999px;
}

.joon-app.joon-light .joon-sidebar-inner{
  box-shadow:0 22px 40px rgba(15,23,42,.08);
}

.joon-app.joon-light .joon-sidebar-brand{
  border-bottom-color:rgba(15,23,42,.08);
}

.joon-app.joon-light .joon-sidebar-brand-mark{
  background:rgba(37,99,235,.08);
  border-color:rgba(37,99,235,.12);
  box-shadow:0 12px 22px rgba(15,23,42,.06);
}

.joon-app.joon-light .joon-sidebar-brand-mark i{
  color:var(--joon-accent-strong);
}

.joon-app.joon-light .joon-sidebar-kicker{
  color:#6c7e93;
}

.joon-app.joon-light .joon-sidebar-brand-title{
  color:var(--joon-ink);
}

.joon-app.joon-light .joon-sidebar-brand-meta{
  color:var(--joon-ink-soft);
}

.joon-app.joon-light .joon-sidebar-footer{
  border-top-color:rgba(15,23,42,.08);
}

.joon-app.joon-light .joon-tab{
  color:#314760;
}

.joon-app.joon-light .joon-tab i{
  color:#4b6380;
}

.joon-app.joon-light .joon-tab:hover{
  color:var(--joon-accent-strong);
}

.joon-app.joon-light .joon-tab.is-active{
  color:var(--joon-accent-strong);
  box-shadow:inset 0 0 0 1px rgba(37,99,235,.12);
}

.joon-app.joon-light .joon-tab.is-logout{
  color:#c2410c;
}

.joon-app.joon-light .joon-tab.is-logout i{
  color:#f97316;
}

.joon-app.joon-light .joon-header-phone{
  color:#ffffff;
}

.joon-app.joon-light .joon-header-phone i{
  color:#ffffff;
}

.joon-app.joon-light .joon-search-dropdown{
  background:#ffffff;
}

@media (max-width: 960px){
  .joon-shell-toggle{
    display:none;
  }

  .joon-sidebar{
    width:min(84vw,320px);
    min-width:0;
    padding:14px 10px 14px 14px;
    transform:translateX(-110%);
    top:var(--joon-app-top, 0px);
    height:calc(100vh - var(--joon-app-top, 0px));
  }

  .joon-sidebar.is-open{
    transform:translateX(0);
  }

  .joon-main{
    margin-left:0;
  }

  .joon-header{
    margin:14px 14px 10px;
  }

  .joon-canvas{
    padding:10px 14px calc(112px + env(safe-area-inset-bottom));
  }

  .joon-panel,
  .joon-search-dropdown{
    border-radius:24px;
  }
}

@media (max-width: 720px){
  .joon-header{
    padding:14px 15px;
    gap:12px;
  }

  .joon-header-left,
  .joon-header-right{
    width:100%;
  }

  .joon-header-controls{
    justify-content:flex-start;
    overflow-x:auto;
    padding-bottom:2px;
  }

  .joon-header-address-chip{
    max-width:260px;
  }

  .joon-panel{
    padding:16px;
  }
}

@media (max-width: 540px){
  .joon-sidebar{
    width:min(88vw,300px);
  }

  .joon-sidebar-brand-title{
    font-size:1.3rem;
  }

  .joon-header-name{
    font-size:1.42rem;
  }

  .joon-header-btn,
  .joon-header-phone{
    min-height:42px;
  }

  .joon-header-address-chip{
    max-width:210px;
  }

  .joon-panel,
  .joon-search-dropdown{
    border-radius:22px;
  }
}

/* 2026 stability patch: header layering, sidebar footer spacing, and toggle hitbox */
.joon-main{
  isolation:isolate;
}

.joon-header{
  z-index:2147483380;
  overflow:visible;
}

.joon-header-left,
.joon-header-right,
.joon-header-controls{
  z-index:2147483381;
}

.joon-header-controls{
  overflow:visible;
}

.joon-notify-wrap,
.joon-cart-wrapper{
  z-index:2147483388;
}

.joon-notify-panel,
.joon-cart-menu{
  z-index:2147483395;
}

.joon-canvas{
  z-index:0;
}

.joon-canvas > *{
  z-index:0;
}

.joon-sidebar-inner{
  isolation:isolate;
}

.joon-sidebar-scroll{
  padding-bottom:96px;
  scroll-padding-bottom:96px;
}

.joon-sidebar-footer{
  margin-top:0;
  padding:18px 2px 6px;
  background:linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(15,23,42,.84) 24%, rgba(15,23,42,.96) 100%);
  backdrop-filter:blur(14px);
  box-shadow:0 -18px 30px rgba(15,23,42,.18);
  z-index:3;
}

.joon-app.joon-light .joon-sidebar-footer{
  background:linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(238,245,252,.92) 24%, rgba(244,248,252,.98) 100%);
  box-shadow:0 -18px 30px rgba(148,163,184,.16);
}

.joon-shell-toggle{
  left:calc(var(--joon-sidebar-w) + 16px);
  transform:translate(-50%, -50%);
  transition:left .26s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  will-change:left, transform;
}

.joon-shell-toggle:hover{
  transform:translate(-50%, -50%);
}

.joon-app.joon-sidebar-collapsed .joon-shell-toggle{
  left:calc(var(--joon-sidebar-w-collapsed) + 16px);
}

@media (max-width: 720px){
  .joon-header-controls{
    overflow:visible;
  }

  .joon-notify-panel{
    position:fixed;
    top:calc(var(--joon-app-top, 0px) + 84px);
    right:14px;
    left:auto;
    width:min(92vw,380px);
    max-height:calc(100vh - 116px);
    overflow:auto;
  }
}

/* ---------------------------------------------------------------------- *
 * SPA panel loading state
 * ---------------------------------------------------------------------- */
/* A flex row between the header and the canvas: no positioning context
   assumptions, so it sits correctly in every shell variant. */
.joon-panel-progress{
  flex:0 0 auto;
  height:2px;
  margin:0 24px;
  border-radius:2px;
  overflow:hidden;
  pointer-events:none;
  opacity:0;
  transition:opacity .15s ease;
}
@media (max-width: 720px){
  .joon-panel-progress{margin:0 10px}
}
.joon-app.joon-panel-loading .joon-panel-progress{opacity:1}
.joon-panel-progress > span{
  display:block;
  width:40%;
  height:100%;
  border-radius:2px;
  background:linear-gradient(90deg,rgba(239,68,68,0),rgba(239,68,68,.95),rgba(239,68,68,0));
  transform:translateX(-40%);
}
.joon-app.joon-panel-loading .joon-panel-progress > span{
  animation:joonPanelProgress 1s linear infinite;
}
@keyframes joonPanelProgress{
  0%{transform:translateX(-100%)}
  100%{transform:translateX(260%)}
}
.joon-app.joon-panel-loading .joon-canvas{
  opacity:.55;
  transition:opacity .12s ease;
}
.joon-canvas{transition:opacity .12s ease}
.joon-panel-error{
  padding:18px 20px;
  border-radius:12px;
  border:1px solid rgba(239,68,68,.4);
  background:rgba(239,68,68,.08);
  color:#fca5a5;
  font-size:14px;
}
.joon-sidebar-nav .joon-tab{cursor:pointer}
@media (prefers-reduced-motion: reduce){
  .joon-app.joon-panel-loading .joon-panel-progress > span{animation:none}
  .joon-app.joon-panel-loading .joon-canvas{opacity:1}
}

/* ======================================================================== *
 * THEME LAYER  (2026-08-19)
 *
 * Everything above this line is the original styling and is left untouched.
 * This layer does three things:
 *
 *  1. Defines one complete token set for dark AND light. Before this, the
 *     `.joon-app` defaults were a *light* palette and `.joon-dark` only
 *     repainted the page background — which is why dark mode showed white
 *     cards, white tables and white inputs on a black page.
 *  2. Re-points every hardcoded component at those tokens.
 *  3. Scopes itself with `#joon-app` (an id) so it reliably wins over the
 *     older class-based rules without a wall of !important.
 *
 * Only the dashboard is affected; nothing outside the shell is restyled.
 * ======================================================================== */

/* ---------- Dark (default) ----------
 * Dashboard chrome and the dashboard dialog only. The WooCommerce cart and
 * checkout pages are owned by a separate theme plugin and are not painted
 * from this palette — see the note in class-joon.php.
 */
#joon-app,
.boom-ov-modal{
  --joon-bg:            radial-gradient(1200px 600px at 12% -10%, #10243f 0%, rgba(6,11,20,0) 60%), linear-gradient(180deg,#070d18 0%,#050a12 100%);
  --joon-bg-flat:       #070d18;

  --joon-surface:       linear-gradient(180deg,#0e1a2c 0%,#111e33 100%);
  --joon-surface-flat:  #0e1a2c;
  --joon-surface-2:     #132036;
  --joon-surface-3:     rgba(148,163,184,.10);
  --joon-surface-hover: rgba(148,163,184,.16);

  --joon-line:          rgba(148,163,184,.20);
  --joon-line-strong:   rgba(148,163,184,.34);

  --joon-ink:           #e9eff9;
  --joon-ink-soft:      #b9c8dc;
  --joon-muted:         #8ba0ba;

  --joon-accent:        #dc2626;
  --joon-accent-hover:  #b91c1c;
  --joon-accent-ink:    #ffffff;
  --joon-accent-soft:   rgba(220,38,38,.16);
  --joon-link:          #7dd3fc;

  --joon-success:       #34d399;
  --joon-success-soft:  rgba(16,185,129,.16);
  --joon-warning:       #fbbf24;
  --joon-warning-soft:  rgba(251,191,36,.16);
  --joon-danger:        #f87171;
  --joon-danger-soft:   rgba(248,113,113,.16);

  --joon-field-bg:      #0f192a;
  --joon-field-ink:     #eef4fd;
  --joon-field-line:    #2b3c57;
  --joon-field-line-focus:#60a5fa;
  --joon-field-placeholder:#7f93ab;

  --joon-sidebar-bg:    linear-gradient(180deg,#0b1524 0%,#0d1c30 55%,#102741 100%);
  --joon-sidebar-line:  rgba(148,163,184,.16);
  --joon-sidebar-ink:   #eef4fd;
  --joon-sidebar-muted: #8ba0ba;

  --joon-tab-bg:        transparent;
  --joon-tab-hover:     rgba(148,163,184,.14);
  --joon-tab-active:    linear-gradient(135deg,rgba(220,38,38,.24),rgba(220,38,38,.08));
  --joon-tab-ink:       #c3d1e3;
  --joon-tab-ink-active:#ffffff;

  --joon-header-bg:     linear-gradient(135deg,rgba(14,26,44,.96) 0%,rgba(17,30,51,.96) 100%);
  --joon-header-line:   rgba(148,163,184,.18);

  --joon-panel-bg:      transparent;
  --joon-panel-line:    transparent;

  --joon-shadow:        0 20px 44px rgba(2,8,23,.42);
  --joon-shadow-soft:   0 10px 24px rgba(2,8,23,.28);

  color-scheme: dark;
}

/* ---------- Light ---------- */
/* ---------- Light ----------
 *
 * `body.joon-wc-skin` used to be listed here so the cart and checkout were
 * always painted light. That whole layer is gone: those two pages belong to a
 * separate theme plugin now, and this palette applies to the dashboard shell
 * and its dialog only.
 */
#joon-app.joon-light,
.boom-ov-modal.joon-light{
  --joon-bg:            radial-gradient(1100px 560px at 10% -12%, #dbeafe 0%, rgba(238,242,247,0) 62%), linear-gradient(180deg,#eef2f7 0%,#e9eef5 100%);
  --joon-bg-flat:       #eef2f7;

  --joon-surface:       linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
  --joon-surface-flat:  #ffffff;
  --joon-surface-2:     #f2f6fb;
  --joon-surface-3:     rgba(15,23,42,.05);
  --joon-surface-hover: rgba(15,23,42,.07);

  --joon-line:          rgba(15,23,42,.12);
  --joon-line-strong:   rgba(15,23,42,.22);

  --joon-ink:           #0f1b2d;
  --joon-ink-soft:      #41546e;
  --joon-muted:         #64748b;

  --joon-accent:        #dc2626;
  --joon-accent-hover:  #b91c1c;
  --joon-accent-ink:    #ffffff;
  --joon-accent-soft:   rgba(220,38,38,.10);
  --joon-link:          #1d4ed8;

  --joon-success:       #047857;
  --joon-success-soft:  rgba(4,120,87,.10);
  --joon-warning:       #b45309;
  --joon-warning-soft:  rgba(180,83,9,.10);
  --joon-danger:        #b91c1c;
  --joon-danger-soft:   rgba(185,28,28,.09);

  --joon-field-bg:      #ffffff;
  --joon-field-ink:     #0f1b2d;
  --joon-field-line:    #cbd5e1;
  --joon-field-line-focus:#2563eb;
  --joon-field-placeholder:#94a3b8;

  --joon-sidebar-bg:    linear-gradient(180deg,#ffffff 0%,#f4f8fd 60%,#eef4fb 100%);
  --joon-sidebar-line:  rgba(15,23,42,.10);
  --joon-sidebar-ink:   #1d2f47;
  --joon-sidebar-muted: #64748b;

  --joon-tab-bg:        transparent;
  --joon-tab-hover:     rgba(15,23,42,.06);
  --joon-tab-active:    linear-gradient(135deg,rgba(220,38,38,.12),rgba(220,38,38,.04));
  --joon-tab-ink:       #33475f;
  --joon-tab-ink-active:#b91c1c;

  --joon-header-bg:     linear-gradient(135deg,#ffffff 0%,#f6faff 100%);
  --joon-header-line:   rgba(15,23,42,.10);

  --joon-panel-bg:      transparent;
  --joon-panel-line:    transparent;

  --joon-shadow:        0 18px 40px rgba(15,23,42,.10);
  --joon-shadow-soft:   0 8px 20px rgba(15,23,42,.07);

  color-scheme: light;
}

/* ---------- Shell ---------- */
#joon-app.joon-dark,
#joon-app.joon-light{
  background: var(--joon-bg);
  background-color: var(--joon-bg-flat);
  color: var(--joon-ink);
}

#joon-app .joon-sidebar{background:transparent;border-right:0}
#joon-app .joon-sidebar-inner{
  background: var(--joon-sidebar-bg);
  border: 1px solid var(--joon-sidebar-line);
  box-shadow: var(--joon-shadow);
  color: var(--joon-sidebar-ink);
}

/* Collapse control: now the first thing in the sidebar, above the workspace
   mark, instead of a floating pill halfway down the page edge. */
#joon-app .joon-sidebar-top{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  padding:2px 2px 0;
  margin-bottom:2px;
}
#joon-app .joon-shell-toggle{
  position:static;
  transform:none;
  left:auto;
  top:auto;
  width:32px;
  height:32px;
  border-radius:10px;
  background: var(--joon-surface-3);
  border:1px solid var(--joon-line);
  color: var(--joon-sidebar-ink);
  box-shadow:none;
  flex:0 0 auto;
}
#joon-app .joon-shell-toggle:hover{
  transform:none;
  background: var(--joon-surface-hover);
  border-color: var(--joon-line-strong);
  box-shadow:none;
}
#joon-app .joon-shell-toggle:focus-visible{
  outline:2px solid var(--joon-field-line-focus);
  outline-offset:2px;
}
#joon-app.joon-sidebar-collapsed .joon-sidebar-top{justify-content:center}

#joon-app .joon-sidebar-kicker{color:var(--joon-sidebar-muted)}
#joon-app .joon-sidebar-brand-title{color:var(--joon-sidebar-ink)}
#joon-app .joon-sidebar-brand-mark{
  background: var(--joon-accent-soft);
  border:1px solid var(--joon-line);
  color: var(--joon-accent);
  box-shadow:none;
}
#joon-app .joon-sidebar-brand-mark i{color:var(--joon-accent)}
#joon-app .joon-sidebar-footer{
  background:linear-gradient(180deg, rgba(0,0,0,0) 0%, var(--joon-surface-3) 60%);
  box-shadow:none;
}

/* ---------- Navigation ---------- */
#joon-app .joon-tab{background:var(--joon-tab-bg);color:var(--joon-tab-ink)}
#joon-app .joon-tab i{color:var(--joon-muted)}
#joon-app .joon-tab:hover{background:var(--joon-tab-hover);color:var(--joon-ink)}
#joon-app .joon-tab:hover i{color:var(--joon-ink)}
#joon-app .joon-tab.is-active{
  background:var(--joon-tab-active);
  color:var(--joon-tab-ink-active);
  box-shadow:inset 0 0 0 1px var(--joon-line);
}
#joon-app .joon-tab.is-active i{color:var(--joon-tab-ink-active)}
#joon-app .joon-tab.is-active::before{background:var(--joon-accent)}
#joon-app .joon-tab.is-logout{color:var(--joon-danger)}
#joon-app .joon-tab.is-logout i{color:var(--joon-danger)}
#joon-app .joon-tab.is-logout:hover{background:var(--joon-danger-soft);color:var(--joon-danger)}

/* ---------- Header ---------- */
#joon-app .joon-header{
  background: var(--joon-header-bg);
  border:1px solid var(--joon-header-line);
  box-shadow: var(--joon-shadow-soft);
  color: var(--joon-ink);
}
#joon-app .joon-header-name{color:var(--joon-ink)}
#joon-app .joon-header-btn{
  background: var(--joon-surface-3);
  border:1px solid var(--joon-line);
  color: var(--joon-ink);
}
#joon-app .joon-header-btn:hover{background:var(--joon-surface-hover);border-color:var(--joon-line-strong)}
#joon-app .joon-header-btn i{color:var(--joon-ink-soft)}
#joon-app .joon-header-address-chip{color:var(--joon-ink-soft)}
#joon-app .joon-header-address-text{color:var(--joon-ink-soft)}
#joon-app .joon-header-phone{
  background:linear-gradient(135deg,var(--joon-accent) 0%,var(--joon-accent-hover) 100%);
  border-color:transparent;
  color:var(--joon-accent-ink);
}
#joon-app .joon-header-phone i,
#joon-app .joon-header-phone .joon-header-phone-number{color:var(--joon-accent-ink)}

/* ---------- Canvas & panels ---------- */
#joon-app .joon-panel{
  background:var(--joon-panel-bg);
  border-color:var(--joon-panel-line);
  box-shadow:none;
  color:var(--joon-ink);
  backdrop-filter:none;
  padding:0;
  min-height:0;
}
#joon-app .joon-panel-error{
  background:var(--joon-danger-soft);
  border:1px solid var(--joon-danger);
  color:var(--joon-danger);
}
#joon-app .joon-muted{color:var(--joon-muted)}
#joon-app .joon-panel-progress > span{
  background:linear-gradient(90deg,transparent,var(--joon-accent),transparent);
}

/* ---------- Notifications & cart ---------- */
#joon-app .joon-notify-panel,
#joon-app .joon-cart-menu-inner{
  background:var(--joon-surface-flat);
  border:1px solid var(--joon-line);
  color:var(--joon-ink);
  box-shadow:var(--joon-shadow);
}
#joon-app .joon-notify-panel-header{
  border-bottom:1px solid var(--joon-line);
  color:var(--joon-ink);
}
#joon-app .joon-notify-panel-actions button{
  background:var(--joon-surface-3);
  border:1px solid var(--joon-line);
  color:var(--joon-ink-soft);
  border-radius:8px;
  padding:4px 8px;
  cursor:pointer;
}
#joon-app .joon-notify-panel-actions button:hover{background:var(--joon-surface-hover);color:var(--joon-ink)}
#joon-app .joon-notify-sound{min-width:30px;display:inline-flex;align-items:center;justify-content:center}
#joon-app .joon-notify-sound.is-off{color:var(--joon-muted);opacity:.75}
#joon-app .joon-notify-item{border-bottom:1px solid var(--joon-line)}
#joon-app .joon-notify-item.is-unread{background:var(--joon-accent-soft)}
#joon-app .joon-notify-item-title{color:var(--joon-ink)}
#joon-app .joon-notify-item-message,
#joon-app .joon-notify-item-time,
#joon-app .joon-notify-empty{color:var(--joon-muted)}
#joon-app .joon-notify-link{color:inherit;text-decoration:none}
#joon-app .joon-notify-badge,
#joon-app .joon-cart-badge{background:var(--joon-accent);color:var(--joon-accent-ink)}
#joon-app .joon-notify-toggle.is-ringing{
  animation:joonBellRing .45s ease-in-out 3;
  border-color:var(--joon-accent);
}
@keyframes joonBellRing{
  0%,100%{transform:rotate(0)}
  25%{transform:rotate(-12deg)}
  75%{transform:rotate(12deg)}
}
#joon-app .joon-cart-item{border-bottom:1px solid var(--joon-line);color:var(--joon-ink)}
#joon-app .joon-cart-meta,
#joon-app .joon-cart-empty,
#joon-app .joon-cart-menu-count{color:var(--joon-muted)}
#joon-app .joon-cart-remove{background:transparent;border:0;color:var(--joon-danger);cursor:pointer;font-size:16px}
#joon-app .joon-cart-link.button{
  background:var(--joon-surface-3);
  border:1px solid var(--joon-line);
  color:var(--joon-ink);
}
#joon-app .joon-cart-link.button.button-primary{
  background:var(--joon-accent);
  border-color:var(--joon-accent);
  color:var(--joon-accent-ink);
}

/* ---------- Form controls (issue: white text on a white field) ----------
 * Both the colour and the background are forced together, and the caret and
 * the iOS text-fill colour with them, so a theme that styles inputs globally
 * can no longer leave a field unreadable in either mode.
 */
#joon-app input[type="text"],
#joon-app input[type="search"],
#joon-app input[type="email"],
#joon-app input[type="tel"],
#joon-app input[type="url"],
#joon-app input[type="number"],
#joon-app input[type="password"],
#joon-app input[type="date"],
#joon-app select,
#joon-app textarea{
  background-color: var(--joon-field-bg) !important;
  color: var(--joon-field-ink) !important;
  -webkit-text-fill-color: var(--joon-field-ink);
  caret-color: var(--joon-field-ink);
  border:1px solid var(--joon-field-line);
  border-radius:12px;
  box-shadow:none;
  color-scheme: inherit;
}
#joon-app input::placeholder,
#joon-app textarea::placeholder{color:var(--joon-field-placeholder) !important;opacity:1}
#joon-app input:focus,
#joon-app select:focus,
#joon-app textarea:focus{
  outline:none;
  border-color: var(--joon-field-line-focus);
  box-shadow:0 0 0 3px rgba(96,165,250,.28);
}
#joon-app.joon-light input:focus,
#joon-app.joon-light select:focus,
#joon-app.joon-light textarea:focus{
  box-shadow:0 0 0 3px rgba(37,99,235,.18);
}
#joon-app select option{
  background-color: var(--joon-field-bg);
  color: var(--joon-field-ink);
}
#joon-app input:-webkit-autofill,
#joon-app textarea:-webkit-autofill,
#joon-app select:-webkit-autofill{
  -webkit-text-fill-color: var(--joon-field-ink);
  -webkit-box-shadow: 0 0 0 1000px var(--joon-field-bg) inset;
}
#joon-app label{color:var(--joon-ink-soft)}

/* Buttons that WordPress/WooCommerce ship unstyled inside our panels. */
#joon-app .button,
#joon-app button.button{
  background: var(--joon-surface-3);
  border:1px solid var(--joon-line);
  color: var(--joon-ink);
  border-radius:12px;
  text-shadow:none;
  box-shadow:none;
}
#joon-app .button:hover,
#joon-app button.button:hover{background:var(--joon-surface-hover);border-color:var(--joon-line-strong);color:var(--joon-ink)}
#joon-app .button-primary,
#joon-app button.button-primary,
#joon-app input.button-primary,
#joon-app input[type="submit"]{
  background: var(--joon-accent);
  border:1px solid var(--joon-accent);
  color: var(--joon-accent-ink);
  border-radius:12px;
  text-shadow:none;
  box-shadow:none;
}
#joon-app .button-primary:hover,
#joon-app button.button-primary:hover,
#joon-app input.button-primary:hover,
#joon-app input[type="submit"]:hover{background:var(--joon-accent-hover);border-color:var(--joon-accent-hover);color:var(--joon-accent-ink)}

/* WordPress admin notices rendered inside a panel. */
#joon-app .notice{
  background: var(--joon-surface-3);
  border:1px solid var(--joon-line);
  border-left:4px solid var(--joon-muted);
  color: var(--joon-ink);
  border-radius:12px;
  padding:10px 14px;
  margin:0 0 14px;
  box-shadow:none;
}
#joon-app .notice-success{border-left-color:var(--joon-success);background:var(--joon-success-soft)}
#joon-app .notice-error{border-left-color:var(--joon-danger);background:var(--joon-danger-soft)}
#joon-app .notice p{margin:0;color:inherit}

/* The collapse control only makes sense on desktop; the mobile drawer is
   driven by the header hamburger. */
@media (max-width: 960px){
  #joon-app .joon-sidebar-top{display:none}
}

/* ---------------------------------------------------------------------- *
 * Header popovers: cart + notifications
 *
 * Both are the same width and the same skin, and only one can be open at a
 * time (handled in frontend.js).
 * ---------------------------------------------------------------------- */
#joon-app .joon-popover{
  width: min(420px, calc(100vw - 32px));
  /* Twice the previous height. Product names wrap in full rather than being
     clipped to "Bumper for...", so the list needs the room. */
  max-height: min(84vh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  background: var(--joon-surface-flat);
  border: 1px solid var(--joon-line);
  border-radius: 16px;
  box-shadow: var(--joon-shadow);
  color: var(--joon-ink);
}
#joon-app .joon-popover-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px;
  border-bottom:1px solid var(--joon-line);
  font-weight:700;
  font-size:.92rem;
  flex:0 0 auto;
  background:var(--joon-surface-2);
  color:var(--joon-ink);
}
#joon-app .joon-cart-menu-inner{
  display:flex;
  flex-direction:column;
  min-height:0;
  background:transparent;
  border:0;
  box-shadow:none;
  padding:0;
  width:100%;
}
#joon-app .joon-notify-list,
#joon-app .joon-cart-items{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  margin:0;
  padding:0;
  list-style:none;
  background:transparent;
}

/* ---- Cart rows: name + SKU, then qty / unit / line total, then remove ---- */
#joon-app .joon-cart-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:6px 12px;
  padding:11px 14px;
  border-bottom:1px solid var(--joon-line);
  background:transparent;
}
#joon-app .joon-cart-item:last-child{border-bottom:0}
#joon-app .joon-cart-item:hover{background:var(--joon-surface-3)}
#joon-app .joon-cart-item.is-removing{opacity:.4}
#joon-app .joon-cart-item-main{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
/* The full name, wrapped. It used to be clamped to two lines with an
   ellipsis, which cut "Front Bumper Side Moulding for Toyota Rav4..." exactly
   where the useful part starts. */
#joon-app .joon-cart-name{
  font-size:.86rem;
  font-weight:600;
  line-height:1.35;
  color:var(--joon-ink);
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
}
#joon-app .joon-cart-sku{
  font-size:.72rem;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.02em;
  color:var(--joon-muted);
}
/* Quantity, unit price and line total stay on a single line whatever the
   name does — the figures column never wraps and never shrinks. */
#joon-app .joon-cart-item-figures{
  display:flex;
  align-items:baseline;
  gap:8px;
  white-space:nowrap;
  flex:0 0 auto;
  font-size:.78rem;
  color:var(--joon-muted);
}
#joon-app .joon-cart-qty{font-weight:700;color:var(--joon-ink-soft)}
#joon-app .joon-cart-unit{opacity:.85}
#joon-app .joon-cart-line{
  font-size:.86rem;
  font-weight:700;
  color:var(--joon-ink);
}
#joon-app .joon-cart-remove{
  width:26px;
  height:26px;
  border-radius:8px;
  border:1px solid var(--joon-line);
  background:var(--joon-surface-3);
  color:var(--joon-danger);
  font-size:15px;
  line-height:1;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:background .12s ease,border-color .12s ease;
}
#joon-app .joon-cart-remove:hover{
  background:var(--joon-danger-soft);
  border-color:var(--joon-danger);
}
#joon-app .joon-cart-remove:disabled{opacity:.5;cursor:default}
#joon-app .joon-cart-empty{
  padding:22px 14px;
  text-align:center;
  color:var(--joon-muted);
  font-size:.86rem;
}
#joon-app .joon-cart-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:11px 14px;
  border-top:1px solid var(--joon-line);
  background:var(--joon-surface-2);
  font-size:.86rem;
  flex:0 0 auto;
}
#joon-app .joon-cart-summary span{color:var(--joon-muted)}
#joon-app .joon-cart-total{font-size:1rem;font-weight:700;color:var(--joon-ink)}
#joon-app .joon-cart-menu-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  padding:12px 14px;
  border-top:1px solid var(--joon-line);
  background:transparent;
  flex:0 0 auto;
}
#joon-app .joon-cart-link.button{
  text-align:center;
  padding:9px 12px;
  font-size:.86rem;
  font-weight:600;
  text-decoration:none;
}

/* ---- Notification rows ---- */
#joon-app .joon-notify-item{
  position:relative;
  display:flex;
  align-items:flex-start;
  gap:6px;
  padding:0;
  border-bottom:1px solid var(--joon-line);
  background:transparent;
}
#joon-app .joon-notify-item:last-child{border-bottom:0}
#joon-app .joon-notify-item:hover{background:var(--joon-surface-3)}
#joon-app .joon-notify-item.is-unread{background:transparent}
#joon-app .joon-notify-item.is-unread::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:3px;
  background:var(--joon-accent);
}
#joon-app .joon-notify-link{
  flex:1 1 auto;
  min-width:0;
  display:block;
  padding:11px 6px 11px 14px;
  text-decoration:none;
  color:inherit;
}
#joon-app .joon-notify-item-title{
  font-size:.86rem;
  font-weight:700;
  color:var(--joon-ink);
  margin-bottom:2px;
}
#joon-app .joon-notify-item.is-unread .joon-notify-item-title{color:var(--joon-accent)}
#joon-app .joon-notify-item-message{
  font-size:.82rem;
  line-height:1.4;
  color:var(--joon-ink-soft);
}
#joon-app .joon-notify-item-time{
  margin-top:4px;
  font-size:.72rem;
  color:var(--joon-muted);
}
#joon-app .joon-notify-dismiss{
  flex:0 0 auto;
  align-self:center;
  margin-right:10px;
  width:24px;
  height:24px;
  border-radius:7px;
  border:1px solid transparent;
  background:transparent;
  color:var(--joon-muted);
  font-size:15px;
  line-height:1;
  cursor:pointer;
}
#joon-app .joon-notify-dismiss:hover{
  background:var(--joon-surface-3);
  border-color:var(--joon-line);
  color:var(--joon-ink);
}
#joon-app .joon-notify-empty{
  padding:22px 14px;
  text-align:center;
  color:var(--joon-muted);
  font-size:.86rem;
}

@media (max-width: 720px){
  #joon-app .joon-popover{width:calc(100vw - 24px)}
  /* Even here the figures keep their own single line; only the name/figures
     split moves, so a row is never two half-lines of numbers. */
  #joon-app .joon-cart-item{grid-template-columns:minmax(0,1fr) auto}
  #joon-app .joon-cart-item-figures{grid-column:1 / 2}
}

/* =========================================================================
 * Cart popover summary
 *
 * Subtotal / discount / shipping / taxes / total, so the popover reports the
 * same figures as the cart page and the checkout.
 * ===================================================================== */
#joon-app .joon-cart-summary{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:10px 14px;
  border-top:1px solid var(--joon-line);
  background:transparent;
}
#joon-app .joon-cart-summary-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  font-size:.82rem;
  color:var(--joon-ink-soft);
}
#joon-app .joon-cart-summary-row[hidden]{display:none}
#joon-app .joon-cart-summary-row span,
#joon-app .joon-cart-summary-row strong{color:inherit}
#joon-app .joon-cart-summary-row .amount,
#joon-app .joon-cart-summary-row bdi{color:inherit}
#joon-app .joon-cart-summary-row.is-total{
  margin-top:4px;
  padding-top:8px;
  border-top:1px solid var(--joon-line);
  font-size:.95rem;
  color:var(--joon-ink);
}
#joon-app .joon-cart-summary-row.is-total strong{font-weight:800}


/* A tax or shipping row whose value is being recalculated server-side after an
   instant removal: dimmed rather than showing a figure we cannot yet know. */
#joon-app .joon-cart-summary-row.is-recalculating{opacity:.45}

/* -------------------------------------------------------------------------
 * Header address chip
 *
 * The chip was capped at 320px and clipped with an ellipsis, so it read
 * "2707 Av. Charland, Montréal, Montréal, H1Z ..." — the city twice and the
 * postcode cut off. The duplicate is gone (Core::join_address_parts) and the
 * chip now shows street + city only, sized to fit that. The full address is
 * still on the tooltip and the map link.
 * ------------------------------------------------------------------------- */
#joon-app .joon-header-address-chip{
  max-width:min(340px, 30vw);
}
#joon-app .joon-header-address-text{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
@media (max-width: 1180px){
  #joon-app .joon-header-address-chip{max-width:220px}
}
@media (max-width: 900px){
  /* Below this the chip is the icon only; the address lives in the tooltip. */
  #joon-app .joon-header-address-text{display:none}
  #joon-app .joon-header-address-chip{max-width:none;padding:8px 10px}
}

/* -------------------------------------------------------------------------
 * Phone chip hover
 *
 * The phone chip is also a .joon-header-btn, so the generic
 * `.joon-header-btn:hover { background: var(--joon-surface-hover) }` fired on
 * it — in light mode that is rgba(15,23,42,.07), practically white, while the
 * label stayed --joon-accent-ink, which is white. White on white: the number
 * disappeared under the cursor. The chip keeps its own accent on hover.
 * ------------------------------------------------------------------------- */
#joon-app .joon-header-phone:hover,
#joon-app .joon-header-phone:focus-visible{
  background:linear-gradient(135deg,var(--joon-accent-hover) 0%,var(--joon-accent) 100%);
  border-color:transparent;
  color:var(--joon-accent-ink);
}
#joon-app .joon-header-phone:hover i,
#joon-app .joon-header-phone:hover .joon-header-phone-number,
#joon-app .joon-header-phone:focus-visible i,
#joon-app .joon-header-phone:focus-visible .joon-header-phone-number{
  color:var(--joon-accent-ink);
}

/* -------------------------------------------------------------------------
 * Address chip: the whole address, not an abbreviation
 *
 * Now that the duplicated city is gone the string is short enough to show in
 * full ("2707 Av. Charland, Montréal, H1Z 1C8"). The chip is given the room
 * for it and only ever truncates on a genuinely narrow screen.
 * ------------------------------------------------------------------------- */
#joon-app .joon-header-address-chip{
  max-width:none;
  flex:0 1 auto;
  min-width:0;
}
#joon-app .joon-header-address-text{
  display:block;
  min-width:0;
  overflow:visible;
  text-overflow:clip;
  white-space:nowrap;
}
@media (max-width: 1280px){
  #joon-app .joon-header-address-chip{max-width:340px}
  #joon-app .joon-header-address-text{overflow:hidden;text-overflow:ellipsis}
}
@media (max-width: 900px){
  /* Icon only below this; the address stays on the tooltip and the map link. */
  #joon-app .joon-header-address-text{display:none}
  #joon-app .joon-header-address-chip{max-width:none;padding:8px 10px}
}

/* -------------------------------------------------------------------------
 * Cart popover width
 *
 * 420px was still narrow enough that a name like "Front Bumper Side Moulding
 * for Toyota Rav4 LE/XLE 2019-2022 RH and LH" wrapped to four cramped lines
 * beside the figures. The popover is wider now, and the name column is given
 * the space rather than the numbers.
 * ------------------------------------------------------------------------- */
#joon-app .joon-popover{
  width:min(560px, calc(100vw - 32px));
}
#joon-app .joon-cart-item{
  grid-template-columns:minmax(0,1fr) auto auto;
  column-gap:16px;
}
#joon-app .joon-cart-item-main{min-width:0}
#joon-app .joon-cart-name{
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
}
@media (max-width: 620px){
  #joon-app .joon-popover{width:calc(100vw - 24px)}
}

/* =========================================================================
 * Cart popover — round 9
 *
 * Three separate faults, all visible in the same screenshot:
 *
 *  1. The product name was printed *on top of* the SKU. The base rule (near
 *     the top of this file) still declares
 *         display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical
 *     and a later rule sets `overflow:visible` so the name is not cut off.
 *     Those two together are the bug: a -webkit-box clamped to two lines lays
 *     out *all* its lines and then relies on `overflow:hidden` to hide the
 *     rest. Make the overflow visible and the third line ("Side") is painted
 *     outside the box, straight over the SKU underneath it. The fix is to stop
 *     clamping at all — the name is allowed to wrap, so the box model should
 *     be an ordinary block.
 *
 *  2. The line total sat wherever the figures group happened to end. It is now
 *     pinned to the right edge of the row, in its own column.
 *
 *  3. The popover was too small for a cart of any length.
 * ===================================================================== */

/* --- 1. the name is a plain wrapping block, never a clamped box --- */
#joon-app .joon-cart-name,
.joon-cart-menu .joon-cart-name{
  display:block;
  -webkit-line-clamp:none;
  -webkit-box-orient:horizontal;
  overflow:visible;
  text-overflow:clip;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
}
/* The two lines are stacked by the flex column, with real space between them
   so they can never read as one run-on string. */
#joon-app .joon-cart-item-main{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:3px;
  min-width:0;
}
#joon-app .joon-cart-sku{display:block;line-height:1.3}

/* --- 2. quantity and unit price stay together; the total goes hard right --- */
#joon-app .joon-cart-item{
  grid-template-columns:minmax(0,1fr) auto auto auto;
  column-gap:14px;
}
#joon-app .joon-cart-item-figures{
  justify-content:flex-end;
  text-align:right;
}
#joon-app .joon-cart-line{
  margin-left:auto;
  text-align:right;
  min-width:88px;
}

/* The summary lines: label left, money right, always. `space-between` alone
   left the amount hugging the label whenever the row grew a second element. */
#joon-app .joon-cart-summary-row > :first-child{
  margin-right:auto;
  text-align:left;
}
#joon-app .joon-cart-summary-row > :last-child{
  margin-left:auto;
  text-align:right;
  white-space:nowrap;
}
#joon-app .joon-cart-summary-row.is-total > :last-child{
  font-size:1rem;
  font-weight:800;
  color:var(--joon-ink);
}

/* --- 3. the popover size, measured off the drawing ---
 *
 * The requested box is 38% of the viewport wide, with its right edge under the
 * cart button and its height unchanged. On the 1920 screen it was drawn on
 * that is ~720px, which is the floor below; `38vw` keeps the same proportion
 * on a wider monitor instead of leaving a 720px box marooned in the corner,
 * and `100vw - 32px` stops it ever exceeding the window.
 */
#joon-app .joon-popover{
  width:min(calc(100vw - 32px), max(720px, 38vw));
  max-height:min(88vh, 900px);
}
/* A cart with one line should not look like a broken tooltip, and a cart with
   twenty should scroll inside the popover rather than off the screen. */
#joon-app .joon-cart-items{
  max-height:min(66vh, 620px);
}

@media (max-width: 760px){
  #joon-app .joon-popover{width:calc(100vw - 24px)}
  /* Narrow: the name takes the first row across the figures, the numbers and
     the remove button share the second. The total still sits on the right. */
  #joon-app .joon-cart-item{grid-template-columns:minmax(0,1fr) auto auto}
  #joon-app .joon-cart-item-main{grid-column:1 / -1}
  #joon-app .joon-cart-item-figures{grid-column:1 / 2;justify-content:flex-start;text-align:left}
  #joon-app .joon-cart-line{margin-left:auto;min-width:0}
}

/* -------------------------------------------------------------------------
 * The selected sidebar item's marker bar
 *
 * `.joon-tab.is-active::before` drew a 3px vertical bar to the left of the
 * icon. Once the accent token became red it read as a stray red "I" sitting
 * in front of every selected item. The active tab is already distinguished by
 * its filled background and inset ring, so the bar is simply removed — here
 * rather than by deleting the rule above, so nothing else in the cascade that
 * positions it (the collapsed-sidebar offset) has to change.
 * ------------------------------------------------------------------------- */
#joon-app .joon-tab.is-active::before,
.joon-app .joon-tab.is-active::before,
.joon-app.joon-sidebar-collapsed .joon-tab.is-active::before{
  content:none;
  display:none;
  background:none;
}

/* =========================================================================
 * Mobile: the page behind the shell must not scroll
 *
 * `.joon-app` is `position:fixed; inset:0` — it covers the document entirely,
 * and the only scroller inside it is `.joon-canvas`. The document behind it
 * was still scrollable, so on a touch screen two things went wrong:
 *
 *   · a drag that began anywhere outside the canvas moved the hidden page
 *     instead of the dashboard, and
 *   · a drag inside the canvas that reached the end of the list chained to
 *     that hidden page — the list stopped, and the background scrolled.
 *
 * That is the reported "the catalogue stops scrolling and the background just
 * browses". The document is locked while the shell is on screen (the class is
 * set from frontend.js, so no body_class filter is involved and no other page
 * on the site is affected), and every scroller inside the shell refuses to
 * chain.
 * ===================================================================== */
html.joon-shell-active,
html.joon-shell-active body{
  overflow:hidden;
  height:100%;
  overscroll-behavior:none;
}

#joon-app .joon-canvas,
#joon-app .joon-sidebar-inner,
#joon-app .joon-sidebar-scroll,
#joon-app .joon-popover,
#joon-app .joon-cart-items,
#joon-app .joon-notify-list,
#joon-app .joon-table-scroll,
#joon-app .boom-table-scroll,
#joon-app .boom-orders-table-wrap{
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}

/* -------------------------------------------------------------------------
 * The pinned viewport
 *
 * `Joon\Core::lock_mobile_viewport()` fixes the viewport width on a phone —
 * by default the device's own, so the mobile layout is laid out once at full
 * size and never re-laid-out again. Two things still need saying explicitly.
 * ------------------------------------------------------------------------- */
html.joon-viewport-locked{
  /* Safari inflates text on its own when it decides a column is too narrow,
     which changes line breaks after the layout has been settled — the one
     thing a pinned viewport exists to prevent. Sizes are what the stylesheet
     says they are. */
  -webkit-text-size-adjust:none;
  text-size-adjust:none;
}
html.joon-viewport-locked body{
  /* A theme that pins its own minimum width would reintroduce a horizontal
     scrollbar under the fixed shell. */
  min-width:0;
}

/* -------------------------------------------------------------------------
 * The shell is exactly one screen tall — including on a phone
 *
 * `100vh` on iOS is the height of the window with the URL bar HIDDEN, so while
 * the bar is showing the bottom of the shell sits underneath it: the last rows
 * of a list, and the buttons under them, are unreachable. `dvh` is the height
 * actually available right now. It is applied only where supported, so every
 * browser that does not know the unit keeps the `vh` rule above verbatim — and
 * on a desktop the two are identical, so the web version does not move.
 * ------------------------------------------------------------------------- */
@supports (height: 100dvh){
  .joon-main{
    height:calc(100dvh - var(--joon-app-top, 0px));
    min-height:calc(100dvh - var(--joon-app-top, 0px));
  }
  @media (max-width: 960px){
    .joon-sidebar{
      height:calc(100dvh - var(--joon-app-top, 0px));
    }
  }
}

/* -------------------------------------------------------------------------
 * Zooming, once the layout is pinned
 *
 * Pinch and double-tap already worked — nothing sets `touch-action` anywhere,
 * so the gestures reach the browser. What did not work was living at a zoom
 * level once you got there.
 *
 * The shell is `position:fixed` and fills the viewport, and the one scroller
 * inside it, `.joon-canvas`, claims every drag in both axes. Zoomed in, that
 * means the page can only ever be moved up and down: a sideways drag is
 * swallowed by a scroller that has nothing to scroll sideways, so half the
 * table you zoomed in to read is unreachable without a two-finger pan most
 * people never try.
 *
 * `pan-y pinch-zoom` hands the horizontal axis back. A vertical drag still
 * scrolls the list exactly as before; a horizontal one falls through to the
 * browser and pans the magnified page. `pinch-zoom` on the chrome around it
 * means a drag that starts on the header or the sidebar pans too, rather than
 * doing nothing at all.
 *
 * Only on a pinned viewport — a desktop never sees these rules, and a phone
 * at 1× behaves exactly as it did, because there is nothing to pan to.
 * ------------------------------------------------------------------------- */
html.joon-viewport-locked #joon-app .joon-canvas,
html.joon-viewport-locked #joon-app .joon-sidebar-inner,
html.joon-viewport-locked #joon-app .joon-sidebar-scroll,
html.joon-viewport-locked #joon-app .joon-cart-items,
html.joon-viewport-locked #joon-app .joon-notify-list,
html.joon-viewport-locked .boom-ov-modal .boom-ov-panel{
  touch-action:pan-y pinch-zoom;
}

html.joon-viewport-locked #joon-app,
html.joon-viewport-locked #joon-app .joon-header,
html.joon-viewport-locked #joon-app .joon-sidebar,
html.joon-viewport-locked .boom-ov-modal,
html.joon-viewport-locked .boom-ov-modal-backdrop{
  touch-action:pinch-zoom;
}

/* A table wide enough to scroll sideways keeps that scroll — it is the reason
   the element exists — so it asks for both axes explicitly rather than
   inheriting the rule above. */
html.joon-viewport-locked #joon-app .joon-table-scroll,
html.joon-viewport-locked #joon-app .boom-table-scroll,
html.joon-viewport-locked #joon-app .boom-orders-table-wrap{
  touch-action:pan-x pan-y pinch-zoom;
}

/* =========================================================================
 * THE LANGUAGE SWITCH
 *
 * A segmented pair, not a dropdown. There are two languages, both fit in the
 * header, and showing the alternative without being opened turns a three-step
 * interaction into one press — which matters because the person most likely to
 * need this control is the one who cannot read the label on it.
 *
 * It is painted from the theme layer's tokens, so it follows light and dark
 * with the rest of the header rather than needing a second rule per mode.
 * ========================================================================= */
#joon-app .joon-lang-switch{
  display:inline-flex;
  align-items:stretch;
  padding:2px;
  border:1px solid var(--joon-line, rgba(148,163,184,.18));
  border-radius:12px;
  background:var(--joon-surface-3, rgba(255,255,255,.08));
  min-height:40px;
}

#joon-app .joon-lang-option{
  appearance:none;
  border:0;
  margin:0;
  padding:0 10px;
  border-radius:10px;
  background:transparent;
  color:var(--joon-ink-soft, #cbd5e1);
  font:inherit;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.04em;
  cursor:pointer;
  transition:background .15s ease,color .15s ease;
}

#joon-app .joon-lang-option:hover{
  color:var(--joon-ink, #f8fafc);
  background:var(--joon-surface-hover, rgba(148,163,184,.16));
}

/* The language in force reads as chosen, not merely highlighted. */
#joon-app .joon-lang-option.is-active{
  background:var(--joon-accent, #dc2626);
  color:var(--joon-accent-ink, #fff);
}

#joon-app .joon-lang-switch.is-busy{
  opacity:.6;
  pointer-events:none;
}

#joon-app .joon-lang-option:focus-visible{
  outline:2px solid var(--joon-field-line-focus, #60a5fa);
  outline-offset:2px;
}

@media (max-width: 760px){
  /* The short codes stay; there is nothing left to abbreviate. */
  #joon-app .joon-lang-option{padding:0 8px}
}

/* =========================================================================
 * THE PHONE LAYOUT — ROUND 34
 *
 * Two faults, both measured in a real browser at 390px rather than judged
 * from a screenshot. See the numbers in each block.
 * ===================================================================== */

/* -------------------------------------------------------------------------
 * 1. THE SLIVER OF "ANOTHER PAGE" DOWN THE RIGHT EDGE
 *
 * It is the cart drawer, closed.
 *
 * On a phone the cart popover becomes a full-height drawer parked off to the
 * right with `transform: translateX(102%)`. A percentage in `translateX`
 * resolves against the element's OWN width — and a later, higher-specificity
 * rule (`#joon-app .joon-popover`) had already changed that width. 102% of a
 * width the parked position was never calculated against left the drawer's
 * left edge measured at x=382 in a 390px viewport: eight pixels of a
 * full-height bordered panel, painted down the whole right-hand side of every
 * screen. It reads exactly as the edge of a second page behind the first.
 *
 * Parking it further away would only move the arithmetic. A closed drawer is
 * not supposed to be painted at all, so it is not: `visibility: hidden` takes
 * it out of rendering and out of the tap targets, and the delayed transition
 * means it stays visible for the length of the slide-out and disappears at the
 * end of it. The open state is unchanged.
 * ------------------------------------------------------------------------- */
@media (max-width: 720px){
  #joon-app .joon-cart-menu{
    transform: translateX(110%);
    visibility: hidden;
    transition: transform .22s cubic-bezier(.2,.8,.2,1), visibility 0s linear .22s;
  }

  #joon-app.joon-cart-open .joon-cart-menu{
    transform: translateX(0);
    visibility: visible;
    transition: transform .22s cubic-bezier(.2,.8,.2,1), visibility 0s linear 0s;
  }
}

/* -------------------------------------------------------------------------
 * 2. THE HEADER THAT DID NOT FIT
 *
 * Measured at 390px: the phone chip was 159px wide — forty per cent of the
 * screen, spent on a number nobody reads off the screen because tapping it
 * dials. That pushed the cart to x=393: past the right edge, gone.
 *
 * The map pin has been icon-only below 900px since it was built, for exactly
 * this reason, and tapping it opens directions. The phone chip now behaves the
 * same way: the icon stays, the number goes, and tapping it dials — the number
 * is still on the link's title and aria-label for anyone who needs to read it.
 *
 * That returns about 135px to the row, which is the cart, the bell and the
 * light/dark toggle with room left over.
 * ------------------------------------------------------------------------- */
@media (max-width: 900px){
  #joon-app .joon-header-phone-number{
    display: none;
  }

  #joon-app .joon-header-phone{
    max-width: none;
    padding: 9px 11px;
  }
}

/* With the row no longer overflowing, the controls sit against the right-hand
   edge of the header where they belong, rather than being pushed from the
   left by a chip that was too wide to fit. */
@media (max-width: 720px){
  #joon-app .joon-header-controls{
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 8px;
  }
}

/* =========================================================================
 * ROUND 35
 * ===================================================================== */

/* -------------------------------------------------------------------------
 * 1. THE SECTION NAME IS SET LIKE THE SECTION NAME
 *
 * The header heading was in the display face while the sidebar item it names —
 * the same word, highlighted, a few centimetres to its left — was in the body
 * face. Two faces for one label made it read as two separate things.
 *
 * The workspace name keeps the display face: "Business Dashboard" and the
 * kicker above it are the portal's identity, not a section, and they are the
 * one place that type belongs. The template marks it with `.is-workspace`.
 * ------------------------------------------------------------------------- */
#joon-app .joon-header-name{
  font-family: var(--joon-font-body);
  font-weight: 650;
  letter-spacing: -.01em;
}

#joon-app .joon-header-name.is-workspace{
  font-family: var(--joon-font-display);
  font-weight: 700;
  letter-spacing: -.03em;
}

/* -------------------------------------------------------------------------
 * 2. THE HEADER CONTROLS, ON A PHONE
 *
 * Six controls fit, but fitting is not the same as being arranged. They were
 * six different shapes at three different widths with a filled red chip in the
 * middle of them, bunched at one end of a row that had space left over — which
 * is what "crowded and undisciplined" describes.
 *
 * One size, one gap, one shape, spread across the row. The three that carry a
 * number — the language pair, the bell, the cart — keep their badge; the rest
 * are plain. Nothing here changes the desktop, where the chips carry their
 * labels and the sizes differ on purpose.
 * ------------------------------------------------------------------------- */
@media (max-width: 720px){
  #joon-app .joon-header-right{
    width: 100%;
  }

  #joon-app .joon-header-controls{
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
  }

  /* Every chip is the same square. A row of equal targets reads as a set of
     controls; a row of different ones reads as clutter. */
  #joon-app .joon-header-controls > * ,
  #joon-app .joon-header-btn,
  #joon-app .joon-header-phone,
  #joon-app .joon-notify-toggle,
  #joon-app .joon-cart-btn,
  #joon-app .joon-mode-toggle{
    /* border-box, and a fixed width rather than a minimum.
       The two chips that are links carry a 1px border and were measuring 42
       against the 40 of everything else — two pixels, but two pixels that made
       the row read as almost-aligned rather than aligned. */
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
  }

  /* The wrappers are not chips themselves — they only hold one. */
  #joon-app .joon-notify-wrap,
  #joon-app .joon-cart-wrapper{
    min-width: 40px;
    border: 0;
    background: none;
    box-shadow: none;
    position: relative;
  }

  /* The language pair is two targets, so it is the one control allowed to be
     wider than a square — by exactly the width of its second half. */
  #joon-app .joon-lang-switch{
    box-sizing: border-box;
    height: 40px;
    min-height: 40px;
    width: auto;
    flex: 0 0 auto;
    border-radius: 12px;
  }

  #joon-app .joon-lang-option{
    min-width: 34px;
    padding: 0 6px;
  }

  /* A badge belongs to its chip, not to the gap beside it. */
  #joon-app .joon-notify-badge,
  #joon-app .joon-cart-badge{
    top: -4px;
    right: -4px;
  }

  /* The phone chip keeps the accent — it is the one control that does
     something outside the portal — but not the extra bulk that came with it. */
  #joon-app .joon-header-phone{
    box-shadow: none;
  }
}

/* Below 360px the gap is the only thing left to give. */
@media (max-width: 360px){
  #joon-app .joon-header-controls{ gap: 4px; }
  #joon-app .joon-lang-option{ min-width: 30px; padding: 0 4px; }
}

/* ------------------------------------------------------------------ *
 * BOOM 1.53.0 — the staff sidebar by job (Phase E1, Figma 21.1).
 * Group headings appear only when something under them is shown;
 * Settings sits with Sign out under a line; the person's name and jobs
 * replace "Agent Dashboard".
 * ------------------------------------------------------------------ */
.boom-nav-group{
  display:block;
  margin:14px 0 2px;
  padding:0 18px;
  font-size:.7rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(226,232,240,.56);
}
.joon-app.joon-light .boom-nav-group{ color:#6c7e93; }
.joon-sidebar-nav .boom-nav-group:first-child{ margin-top:0; }
.boom-nav-footer{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.08);
}
.joon-app.joon-light .boom-nav-footer{ border-top-color:rgba(15,23,42,.08); }
.boom-staff-id .joon-sidebar-brand-title{ font-size:1.25rem; margin-top:6px; }
.boom-staff-chips{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
}
.boom-staff-chip{
  display:inline-block;
  padding:2px 9px;
  border-radius:999px;
  font-size:.74rem;
  font-weight:600;
  line-height:1.6;
  background:rgba(255,255,255,.10);
  color:rgba(241,245,249,.9);
}
.boom-staff-chip.is-accent{ background:rgba(239,68,68,.18); color:#fecaca; }
.boom-staff-chip.is-good{ background:rgba(16,185,129,.18); color:#a7f3d0; }
.joon-app.joon-light .boom-staff-chip{ background:rgba(15,23,42,.06); color:#314760; }
.joon-app.joon-light .boom-staff-chip.is-accent{ background:#fde8e8; color:#b91c1c; }
.joon-app.joon-light .boom-staff-chip.is-good{ background:#e3f6ee; color:#047857; }
.boom-job-moved{
  margin:12px 16px 0;
  padding:10px 14px;
  border-radius:10px;
  background:rgba(100,116,139,.14);
  color:inherit;
  font-size:14px;
  line-height:1.5;
}
.boom-job-moved i{ margin-right:6px; opacity:.75; }
.joon-app.joon-sidebar-collapsed .boom-nav-group,
.joon-app.joon-sidebar-collapsed .boom-staff-chips{ display:none; }
.boom-staff .joon-sidebar-scroll > .joon-sidebar-nav{ flex:1 1 auto; min-width:0; }
.boom-staff .boom-nav-footer .joon-tab{ width:100%; }
/* 1.53.0 — on a phone the staff header keeps the title, ☰, the bell and (for sellers) the cart (Figma 21.5). */
.boom-drawer-prefs{ display:none; }
@media (max-width: 960px){
  .boom-staff .boom-drawer-prefs{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:12px 0 0; padding:0 4px; }
  .boom-staff .joon-header .joon-lang-switch,
  .boom-staff .joon-header .joon-mode-toggle{ display:none; }
  .boom-drawer-mode{ padding:6px 12px; border-radius:999px; border:0; background:rgba(255,255,255,.10); color:inherit; font:inherit; font-size:.8rem; font-weight:600; cursor:pointer; }
  .joon-app.joon-light .boom-drawer-mode{ background:rgba(15,23,42,.06); }
}

/* 1.55.0 (Figma 23.1): the cart's warehouse tabs. */
.joon-cart-tabs{display:flex;flex-wrap:wrap;gap:0;margin:12px 14px 8px;border:1px solid var(--joon-line,#e2e8f0);border-radius:10px;overflow:hidden}
.joon-cart-tab{flex:1 1 0;display:flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:8px 10px;border:0;border-left:1px solid var(--joon-line,#e2e8f0);background:transparent;color:inherit;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.joon-cart-tab:first-child{border-left:0}
.joon-cart-tab.is-on{background:rgba(220,38,38,.10);color:#b91c1c}
.joon-cart-tab-n{min-width:20px;padding:1px 6px;border-radius:999px;background:rgba(100,116,139,.15);font-size:11px;text-align:center}
.joon-cart-tab.is-transfer .joon-cart-tab-n{background:rgba(180,83,9,.14);color:#b45309}
.joon-cart-tab:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}
.joon-cart-tab-note{flex:1 0 100%;margin:0;padding:6px 10px;font-size:12px;opacity:.8;border-top:1px solid var(--joon-line,#e2e8f0)}

/* ---- 1.59.0 (Figma 24.1–24.2): the pop-up cart, a group per warehouse ---- */
#joon-app .joon-cart-menu.has-groups{width:400px;max-width:min(100vw - 24px, 420px)}
#joon-app .joon-cart-items.is-groups{display:flex;flex-direction:column;gap:10px;padding:2px 0 4px;max-height:min(70vh, 620px)}
#joon-app .joon-cart-group{border:1px solid var(--joon-line);border-radius:12px;background:var(--joon-surface-3);padding:10px 12px;display:flex;flex-direction:column;gap:8px}
#joon-app .joon-cart-group.is-busy{opacity:.55}
#joon-app .joon-cart-group-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
#joon-app .joon-cart-group-head strong{font-size:.92rem;color:var(--joon-ink)}
#joon-app .joon-cart-chip{font-size:.7rem;font-weight:700;padding:2px 8px;border-radius:999px;background:rgba(52,211,153,.14);color:#059669;white-space:nowrap}
#joon-app .joon-cart-chip.is-warn{background:rgba(251,191,36,.16);color:#b45309}
#joon-app.joon-dark .joon-cart-chip{color:#34d399}
#joon-app.joon-dark .joon-cart-chip.is-warn{color:#fbbf24}
#joon-app .joon-cart-glines{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
#joon-app .joon-cart-gline{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:8px;align-items:center;padding:6px 0;border-top:1px solid var(--joon-line)}
#joon-app .joon-cart-gline:first-child{border-top:0}
#joon-app .joon-cart-gname{display:flex;flex-direction:column;gap:1px;min-width:0}
#joon-app .joon-cart-step{display:inline-flex;align-items:center;gap:2px;border:1px solid var(--joon-line);border-radius:8px;padding:1px}
#joon-app .joon-cart-step button{width:24px;height:24px;border:0;border-radius:6px;background:transparent;color:var(--joon-ink-soft);font-size:15px;line-height:1;cursor:pointer}
#joon-app .joon-cart-step button:hover{background:var(--joon-surface-hover)}
#joon-app .joon-cart-step b{min-width:20px;text-align:center;font-size:.82rem;color:var(--joon-ink)}
#joon-app .joon-cart-gremove{width:24px;height:24px;border-radius:7px;border:1px solid var(--joon-line);background:transparent;color:var(--joon-danger);cursor:pointer;line-height:1}
#joon-app .joon-cart-gnote{margin:0;font-size:.74rem;color:var(--joon-muted)}
#joon-app .joon-cart-gfoot{display:flex;align-items:center;justify-content:space-between;gap:10px}
#joon-app .joon-cart-gtotal{display:flex;flex-direction:column;gap:1px}
#joon-app .joon-cart-gtotal small{font-size:.7rem;color:var(--joon-muted)}
#joon-app .joon-cart-gtotal strong{font-size:.98rem;color:var(--joon-ink)}
#joon-app .joon-cart-gcheckout{border:0;border-radius:10px;padding:9px 18px;background:var(--joon-accent);color:var(--joon-accent-ink);font-weight:700;font-size:.85rem;cursor:pointer}
#joon-app .joon-cart-gcheckout:hover{background:var(--joon-accent-hover)}
#joon-app .joon-cart-gfootnote{list-style:none;font-size:.74rem;color:var(--joon-muted);padding:0 2px}
@media (max-width:720px){#joon-app .joon-cart-menu.has-groups{width:auto}}
#joon-app .joon-cart-menu.has-groups .joon-cart-summary,
#joon-app .joon-cart-menu.has-groups .joon-cart-menu-actions,
#joon-app .joon-cart-menu.has-groups .joon-cart-tabs{display:none !important}
#joon-app .joon-cart-items.is-groups{padding:10px 12px 12px}

/* ---- 1.59.0 (Figma 24.4): the number on the Warehouse entry ---- */
.joon-sidebar-nav .joon-tab .boom-nav-n{margin-left:auto;min-width:22px;padding:1px 8px;border-radius:999px;background:rgba(220,38,38,.18);color:#fca5a5;font-size:11px;font-weight:700;line-height:18px;text-align:center}
.joon-app.joon-light .joon-sidebar-nav .joon-tab .boom-nav-n{color:#b91c1c}
.joon-sidebar.is-collapsed .boom-nav-n{display:none}
