/* Shop page layout. Visual styling comes from the store's own CSS (store.css, copied from the live store). */
.dw-glass{background:rgba(16,12,8,.72)!important;-webkit-backdrop-filter:blur(6px) saturate(1.3)!important;backdrop-filter:blur(6px) saturate(1.3)!important}
.ws-bg{position:fixed;inset:0;z-index:-2;background:#0B0D10 url('/img/wall.webp') 50% 50%/cover no-repeat}
#exchange.ws{max-width:1400px}
.ws-grid{display:grid;grid-template-columns:240px minmax(0,1fr) 330px;gap:16px;align-items:start}
#exchange .ws-side{position:sticky;top:72px}
#exchange .ws-side ul{display:grid;gap:6px}
#exchange .ws-cat{display:grid;grid-template-columns:24px minmax(0,1fr) auto;grid-template-areas:none;align-items:center;gap:10px;width:100%;min-height:40px;padding:8px 10px;cursor:pointer;text-align:left}
#exchange .ws-cat .s,#exchange .ws-cat .v{grid-area:auto;font-size:10px}
#exchange .ws-cat .v{color:var(--mut)}
#exchange .ws-cat[aria-current=true]{border-color:var(--g);box-shadow:0 0 0 1px rgba(245,184,46,.5),0 0 10px 1px rgba(245,184,46,.3)}
#exchange .ws-cat[aria-current=true] .s{color:var(--g)}
.ws-cico{width:20px;height:20px;image-rendering:pixelated;flex:none}
.ws-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
#exchange .ws-tabs{margin-left:0}
.ws-acct{margin-left:auto;display:flex;align-items:center;gap:12px}
.ws-who{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--off)}
.ws-who img{image-rendering:pixelated}
.ws-search.dwx-dd{width:100%!important;height:44px!important;margin-bottom:12px}
.ws-search input{width:100%;height:100%;padding:0 12px;background:transparent;border:0;outline:0;color:var(--off);font:inherit;font-size:11px}
.ws-search input::placeholder{color:var(--dim)}
#exchange .ws-chips{display:none}
.ws-head{display:flex;align-items:center;gap:12px;margin:4px 0 12px}
.ws-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.ws-card{display:flex;flex-direction:column;gap:8px;padding:12px;min-width:0}
.ws-ct{display:flex;align-items:center;gap:10px;min-height:48px}
.ws-ic{width:48px;height:48px;flex:none;display:flex;align-items:center;justify-content:center;background:#0B0B0B;border:2px solid var(--edge)}
.ws-ic img{width:32px;height:32px;image-rendering:pixelated}
.ws-nm{margin:0;font-size:10px;line-height:1.6;font-weight:400;color:var(--ink);overflow-wrap:anywhere}
.ws-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px}
.ws-k{color:var(--mut)}
.ws-na{color:var(--dim)}
.ws-tr{font-size:8px}.ws-tr.up{color:var(--up)}.ws-tr.down{color:var(--down)}.ws-tr.flat{color:var(--dim)}
.ws-trow{justify-content:flex-end;min-height:14px}
.ws-qty{display:flex;gap:6px;align-items:stretch}
#exchange .ws-qty .dwx-ranges{margin-left:0;flex:1;gap:6px}
#exchange .ws-qty .dwx-ranges .mc-btn{flex:1;min-width:0;padding:0 4px;min-height:34px;font-size:10px}
#exchange .ws-cq.dwx-dd{width:58px;height:auto;min-height:34px}
.ws-cq input{width:100%;background:transparent;border:0;outline:0;color:var(--off);font:inherit;font-size:10px;text-align:center;padding:0}
#exchange .ws-card .dwx-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}
#exchange .ws-card .mc-btn.is-buy,#exchange .ws-card .mc-btn.is-sell{min-height:38px!important;font-size:11px!important;margin:0 0 5px}
#exchange .mc-btn:disabled{opacity:.45;cursor:not-allowed}
.ws-more{display:flex;justify-content:center;margin-top:16px}
.ws-empty{color:var(--mut);font-size:9px;line-height:1.9;padding:10px 0}
#exchange .ws-cart{position:sticky;top:72px}
.ws-cart-hd{display:flex;align-items:center;justify-content:space-between}
.ws-x{background:none;border:0;color:var(--dim);font:inherit;font-size:16px;cursor:pointer;padding:4px 6px}
.ws-x:hover{color:var(--g)}
.ws-cart-hd .ws-x{display:none}
#ws-lines{max-height:min(46vh,420px);overflow-y:auto}
.ws-line{display:grid;grid-template-columns:28px minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line)}
.ws-line img{width:28px;height:28px;image-rendering:pixelated}
.ws-lt{display:flex;flex-direction:column;gap:5px;min-width:0}
.ws-ln{font-size:9px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ws-ls{font-size:8px;color:var(--mut)}
.ws-side.buy{color:var(--up)}.ws-side.sell{color:var(--down)}
.ws-lp{font-size:9px}
.ws-mbx{margin:12px 0 0;padding:10px;font-size:9px;line-height:1.8;color:var(--off);background:#2A1D13;border:1px solid #5A4318;border-left:4px solid var(--g)}
.ws-mhd{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.ws-note{font-size:9px;line-height:1.9;color:var(--off);margin:0 0 12px}
.ws-tscroll{overflow-x:auto}
.ws-tbl{width:100%;border-collapse:collapse;font-size:9px}
.ws-tbl th{color:var(--mut);font-weight:400;text-align:left;padding:10px 8px;border-bottom:2px solid var(--edge);white-space:nowrap}
.ws-tbl td{padding:12px 8px;border-bottom:1px solid var(--line)}
.ws-tbl .r{text-align:right}
.ws-tbl td.ws-empty{text-align:center}
.ws-sum{margin:6px 0 4px}
.ws-sum dt{font-size:9px!important}
#ws-modal .modal{width:min(520px,100%);max-height:calc(100vh - 32px);overflow:auto;padding:20px}
#ws-modal h3{color:#E6B422;font-size:14px;margin:0 0 12px}
#ws-modal .dwx-kv{display:grid;grid-template-columns:1fr auto;gap:0 12px}
#ws-modal .dwx-kv dt,#ws-modal .dwx-kv dd{padding:10px 0;border-bottom:1px solid rgba(255,255,255,.08);font-size:10px;margin:0}
#ws-modal .dwx-kv dd{text-align:right}
#ws-modal .ws-soon{color:#E6B422;font-size:10px;margin:14px 0 8px;text-align:center}
#ws-modal .ws-note{color:#F4F0E6}
#ws-modal .mc-btn{margin-top:12px}
#ws-modal .dwx-em-ico,.site-ticker .dwx-em-ico{width:1.5em;height:1.5em;vertical-align:-.4em;margin-left:1px;image-rendering:pixelated;display:inline-block}
.ws-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:80;max-width:calc(100% - 24px);padding:12px 16px;font-size:10px;line-height:1.8;color:#F4F0E6;border:2px solid #E6B422}
.ws-toast b{color:#E6B422;font-weight:400}
.ws-toast .dwx-em-ico{width:1.5em;height:1.5em;vertical-align:-.4em;image-rendering:pixelated}
.ws-bar{display:none}
@media (max-width:1180px){.ws-grid{grid-template-columns:200px minmax(0,1fr)}#exchange .ws-cart{grid-column:1/-1;position:static}}
@media (max-width:899px){
  .ws-grid{grid-template-columns:minmax(0,1fr)}
  .ws-side{display:none}
  #exchange .ws-chips{display:flex;overflow-x:auto;gap:8px;margin:0 0 12px;padding-bottom:6px;scrollbar-width:none}
  #exchange .ws-chips .mc-btn{flex:0 0 auto;gap:8px;white-space:nowrap}
  .ws-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .ws-card{padding:9px;gap:7px}
  .ws-ct{flex-direction:column;align-items:flex-start;gap:6px}
  .ws-nm{font-size:9px;min-height:30px}
  .ws-row{font-size:9px}
  .ws-qty{flex-direction:column}
  #exchange .ws-cq.dwx-dd{width:100%;min-height:32px}
  #exchange .ws-qty .dwx-ranges .mc-btn{min-height:32px;font-size:9px}
  #exchange .ws-card .mc-btn.is-buy,#exchange .ws-card .mc-btn.is-sell{font-size:9px!important;min-height:34px!important}
  #exchange .ws-cart{display:none;position:fixed;left:0;right:0;bottom:0;top:auto;z-index:90;max-height:85vh;overflow-y:auto;border-top:2px solid #E6B422!important}
  body.ws-cart-open #exchange .ws-cart{display:block}
  .ws-cart-hd .ws-x{display:block}
  .ws-bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:70;align-items:center;gap:10px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:rgba(16,12,8,.94);border-top:2px solid #E6B422}
  .ws-bar .mc-btn{margin:0}
  .ws-bar-in{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:6px;background:none;border:0;color:#F4F0E6;font:inherit;font-size:9px;cursor:pointer;text-align:left}
  .ws-bar-p{font-size:11px}
  .ws-bar-p .dwx-em-ico{width:1.5em;height:1.5em;vertical-align:-.4em;image-rendering:pixelated}
  body{padding-bottom:76px}
  .ws-toast{bottom:84px;font-size:9px}
  .ws-acct{margin-left:0;width:100%;justify-content:space-between}
  .ws-tabs{width:100%}#exchange .ws-tabs .mc-btn{flex:1}
}
#exchange .ws-grid>*{grid-area:auto;align-self:start}
.ws-p{white-space:nowrap}
.ws-p img{display:inline-block!important;max-width:none!important;width:1.5em;height:1.5em;vertical-align:-.4em;image-rendering:pixelated}
html body #ws-toast{position:fixed!important;left:50%!important;bottom:24px;top:auto!important;width:max-content!important;max-width:calc(100% - 24px)!important}
html body #ws-toast[hidden]{display:none!important}
html body .ws-cart .ws-mbx{padding:10px 12px!important}
@media (max-width:899px){html body #ws-toast{bottom:84px}}
@media (max-width:899px){body.ws-cart-open .ws-bar{display:none!important}html body #exchange .ws-cart{z-index:95!important}body.ws-cart-open{overflow:hidden}}
html body #ws-modal{z-index:200}
