/* 24 commerce skin. Load after ui.css. Apply .mlv-commerce only to shop,
 shipping, report panels, and their quantity modal. Existing handlers stay. */
.mlv-commerce.panel{
 width:min(96vw,760px);border:22px solid transparent;
 border-image:url('../assets/ui/shop/panel_frame.png') 40 fill / 22px stretch;
 background:#fae9ca;background-clip:padding-box;border-radius:0;box-shadow:0 6px 0 #2d180e55
}
.mlv-commerce .panel-head{border:0;padding:5px 8px;gap:5px}
.mlv-commerce .panel-head h2{color:#56381e;font-size:19px;line-height:1.35}
.mlv-commerce .panel-close{border:0;background:transparent url('../assets/ui/shop/close_button.png') center/100% 100%;box-shadow:none}
.mlv-commerce .panel-close img{visibility:hidden}
.mlv-commerce .panel-body{padding:6px 4px;min-height:0}
.mlv-commerce .tabs{padding:3px 0 6px;gap:5px;justify-content:center}
.mlv-commerce .tab{flex:0 1 180px;justify-content:center;border:0;border-radius:0;min-height:42px;padding:8px 12px;background:transparent url('../assets/ui/shop/tab_normal.png') center/100% 100%;color:#56391e;box-shadow:none}
.mlv-commerce .tab.on{background-image:url('../assets/ui/shop/tab_selected.png');color:#345128}
.mlv-commerce .shop-head{gap:9px}
.mlv-commerce .shop-head canvas{border:0;background:#dce9b8;border-radius:6px;image-rendering:pixelated}
.mlv-commerce .bubble,.mlv-commerce .row-item{
 border:10px solid transparent;border-image:url('../assets/ui/shop/row_normal.png') 20 fill / 10px stretch;
 background:#f9ecd0;background-clip:padding-box;border-radius:0;box-shadow:none;padding:2px
}
.mlv-commerce .row-item:focus-within{border-image-source:url('../assets/ui/shop/row_highlight.png')}
.mlv-commerce .row-item.locked{opacity:1;border-image-source:url('../assets/ui/shop/row_locked.png');background:#e7dfcf;color:#6d6555}
.mlv-commerce .shop-row{gap:7px;flex-wrap:wrap}
.mlv-commerce .shop-row .grow{min-width:125px}
.mlv-commerce .shop-row .ctrl{gap:5px;flex-wrap:wrap;justify-content:flex-end}
.mlv-commerce .row-item img.icon{width:36px;height:36px}
.mlv-commerce .price img,.mlv-commerce .price img.icon{width:18px;height:18px}
.mlv-commerce .btn{background:transparent url('../assets/ui/shop/action_button.png') center/100% 100%;border:0;box-shadow:none;color:#593a20;min-height:36px;padding:7px 10px}
.mlv-commerce .btn.primary{background-image:url('../assets/ui/shop/buy_button.png');color:#28441e}
.mlv-commerce .btn[data-action="sell"],.mlv-commerce .btn[data-action="ship"]{background-image:url('../assets/ui/shop/sell_button.png');color:#643e12}
.mlv-commerce .btn:disabled{opacity:.45}
.mlv-commerce .stepper button{background:transparent url('../assets/ui/shop/action_button.png') center/100% 100%;border:0;border-radius:0;min-width:30px;min-height:30px}
.mlv-commerce .stepper button[data-step="plus"]{background-image:url('../assets/ui/shop/plus_button.png');font-size:0}
.mlv-commerce .stepper button[data-step="minus"]{background-image:url('../assets/ui/shop/minus_button.png');font-size:0}
.mlv-commerce .grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;justify-items:center}
.mlv-commerce .slot{width:100%;max-width:55px;height:auto;aspect-ratio:1;border:0;box-shadow:none;background:transparent url('../assets/ui/shop/slot_normal.png') center/100% 100%;border-radius:0}
.mlv-commerce .slot img.icon{width:min(68%,32px);height:auto;aspect-ratio:1}
.mlv-commerce .slot.picked,.mlv-commerce .slot.sel{background-image:url('../assets/ui/shop/slot_selected.png')}
.mlv-commerce .slot.dim{opacity:.35}
.mlv-commerce .total{background:transparent url('../assets/ui/shop/sell_button.png') center/100% 100%;padding:10px 15px;color:#6b4217}
.mlv-commerce .chip{border:0;background:transparent url('../assets/ui/shop/action_button.png') center/100% 100%;padding:6px 9px;color:#593a20}
.mlv-commerce button:focus-visible{outline:2px solid #79501f;outline-offset:2px}
.mlv-commerce .mlv-shop-banner{position:relative;aspect-ratio:6/5;background:transparent url('../assets/ui/shop/shop_banner.png') center/100% 100%;width:min(100%,144px);margin:auto}
.mlv-commerce .mlv-shop-banner span{position:absolute;inset:66% 9% 9%;display:grid;place-items:center;font-size:clamp(13px,3vw,19px);font-weight:800;text-align:center;line-height:1.1}
@media(max-width:540px){
 .mlv-commerce.panel{width:calc(100vw - 16px - var(--sal,0px) - var(--sar,0px));border-width:10px;border-image-width:10px}
 .mlv-commerce .panel-body{padding:4px 2px}
 .mlv-commerce .shop-row .grow{min-width:90px}
 .mlv-commerce .shop-row .ctrl{flex:1 0 100%;justify-content:flex-end;margin-left:0}
 .mlv-commerce .shop-head canvas{width:55px;height:55px}
 .mlv-commerce .grid{gap:2px}
 .mlv-commerce .row-item,.mlv-commerce .bubble{border-width:7px;border-image-width:7px}
 .mlv-commerce .row-item img.icon{width:32px;height:32px}
 .mlv-commerce .btn.small{font-size:12px}
 .mlv-commerce .report{font-size:11px}
}
