/* Store layout: the category / group list (flags, faces, ...) on the RIGHT,
   styled like the Settings side menu; the worm preview on the LEFT; the
   store tabs (Accessories, Skins, Tokens, ...) centred. Loaded after the
   theme stylesheets so it wins. */
body.wn-ui .wzs-tabs{justify-content:center}

body.wn-ui .wzs-shell:has(> .wzs-side){grid-template-columns:1fr 230px}
body.wn-ui .wzs-shell > .wzs-stage{order:1}
body.wn-ui .wzs-shell > .wzs-side{order:2;padding:12px;gap:6px;border-radius:10px;background:#0b1d33;border:1px solid #2a4563}
body.wn-ui .wzs-side h5{margin:4px 2px 10px;font-size:17px;text-align:left}
body.wn-ui .wzs-side .wzs-vlist{gap:6px}

/* text buttons look like the Settings menu items */
body.wn-ui .wzs-side .wzs-vbtn:not(:has(img)){height:auto;min-height:42px;padding:0 12px;text-align:left;font-size:15px;font-weight:400;
  border-radius:7px;background:#1b3352;border:1px solid #34557c;color:#d6e4f3;box-shadow:none}
body.wn-ui .wzs-side .wzs-vbtn:not(:has(img)).active{background:#1b6288;border-color:#38bce1;color:#fff}
/* picture buttons keep their picture, same frame */
body.wn-ui .wzs-side .wzs-vbtn:has(img){height:54px;border-radius:7px;box-shadow:none}

/* red theme: the Settings menu's red colours */
html[data-wn-theme=red] body.wn-ui .wzs-shell > .wzs-side{background:#2a0b16;border-color:#6d293d}
html[data-wn-theme=red] body.wn-ui .wzs-side .wzs-vbtn:not(:has(img)){background:#451526;border-color:#814055;color:#ffe4ed}
html[data-wn-theme=red] body.wn-ui .wzs-side .wzs-vbtn:not(:has(img)).active{background:#8b1b3b;border-color:#ff547a;color:#fff}

/* phones: the store stacks; keep the categories above the worm */
@media (max-width:680px){
  body.wn-ui .wzs-shell > .wzs-side,body.wn-ui .wzs-shell > .wzs-stage{order:0}
  body.wn-ui .wzs-side .wzs-vbtn:not(:has(img)){min-height:36px;font-size:13px;text-align:center}
}

/* Kill Message tab: its groups on the RIGHT too, Settings-menu style */
body.wn-ui .wx-km-layout{grid-template-columns:minmax(0,1fr) 210px}
body.wn-ui .wx-km-layout > .wx-km-groups{order:2;padding:12px;gap:6px;border-radius:10px;background:#0b1d33;border:1px solid #2a4563}
body.wn-ui .wx-km-layout > .wx-km-main{order:1;position:relative}
body.wn-ui .wx-km-group{min-height:42px;padding:0 12px;text-align:left;font-size:15px;font-weight:400;border-radius:7px;background:#1b3352;border:1px solid #34557c;color:#d6e4f3}
body.wn-ui .wx-km-group.active{background:#1b6288;border-color:#38bce1;color:#fff}
html[data-wn-theme=red] body.wn-ui .wx-km-layout > .wx-km-groups{background:#2a0b16;border-color:#6d293d}
html[data-wn-theme=red] body.wn-ui .wx-km-group{background:#451526;border-color:#814055;color:#ffe4ed}
html[data-wn-theme=red] body.wn-ui .wx-km-group.active{background:#8b1b3b;border-color:#ff547a;color:#fff}

/* no scroll bars in the store (the mouse wheel still scrolls) */
body.wn-ui #wzs-store .wzs-view,body.wn-ui #wzs-store .wzs-side,body.wn-ui #wzs-store .wx-km-groups,body.wn-ui #wzs-store .wzs-body,body.wn-ui #wzs-store .wx-km-main{scrollbar-width:none}
body.wn-ui #wzs-store .wzs-view::-webkit-scrollbar,body.wn-ui #wzs-store .wzs-side::-webkit-scrollbar,body.wn-ui #wzs-store .wx-km-groups::-webkit-scrollbar,body.wn-ui #wzs-store .wzs-body::-webkit-scrollbar,body.wn-ui #wzs-store .wx-km-main::-webkit-scrollbar{display:none}

@media (max-width:680px){
  body.wn-ui .wx-km-layout > .wx-km-groups,body.wn-ui .wx-km-layout > .wx-km-main{order:0}
  body.wn-ui .wx-km-group{min-height:36px;font-size:13px}
}
