/* Inventory is a full hub module. Purchases enter here before fulfilment. */
.inventoryHubTile .hubModuleIcon{
  background:radial-gradient(circle at 35% 20%,rgba(255,229,145,.2),transparent 42%),linear-gradient(180deg,#231c0e,#0c0a07)!important;
}
#viewModule .inventoryHero{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:end;
  padding:20px;
  border:1px solid rgba(224,181,59,.24);
  border-radius:24px;
  background:radial-gradient(circle at 88% 0,rgba(220,170,38,.2),transparent 43%),linear-gradient(180deg,#1b160d,#0b0a08);
  box-shadow:inset 0 1px 0 rgba(255,240,190,.06),0 16px 38px rgba(0,0,0,.26);
}
#viewModule .inventoryHero>div:first-child{display:grid;gap:5px}
#viewModule .inventoryHero>div:first-child>span{color:#d2b34d;font-size:10px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}
#viewModule .inventoryHero>div:first-child>strong{color:#fff3cf;font-size:38px;line-height:1}
#viewModule .inventoryHero>div:first-child>small{color:#a89e8a;font-size:12px;line-height:1.4}
#viewModule .inventoryHeroStats{display:grid;grid-template-columns:repeat(2,minmax(64px,1fr));gap:8px}
#viewModule .inventoryHeroStats>div{min-width:68px;padding:11px 8px;border:1px solid rgba(219,175,51,.18);border-radius:16px;background:rgba(4,4,3,.46);text-align:center}
#viewModule .inventoryHeroStats b{display:block;color:#f2d36b;font-size:19px}
#viewModule .inventoryHeroStats span{display:block;margin-top:2px;color:#9f9685;font-size:9px;font-weight:800;text-transform:uppercase}
#viewModule .inventorySectionHead{display:flex;justify-content:space-between;align-items:center;margin:18px 2px 10px}
#viewModule .inventorySectionHead>div{display:grid;gap:2px}
#viewModule .inventorySectionHead strong{color:#fff1ce;font-size:16px}
#viewModule .inventorySectionHead small{color:#968d7c;font-size:11px}
#viewModule .inventoryList{display:grid;gap:12px;padding-bottom:12px}
#viewModule .inventoryItemCard{
  display:grid;
  grid-template-columns:96px minmax(0,1fr);
  gap:13px;
  padding:12px;
  border:1px solid rgba(219,175,51,.2);
  border-radius:21px;
  background:linear-gradient(180deg,rgba(24,20,14,.98),rgba(10,9,8,.99));
  box-shadow:inset 0 1px 0 rgba(255,236,170,.05),0 12px 28px rgba(0,0,0,.22);
}
#viewModule .inventoryItemImage{width:96px;aspect-ratio:1/1;border-radius:17px;overflow:hidden;display:grid;place-items:center;background:linear-gradient(145deg,#f1dfb1,#b79658);border:1px solid rgba(255,227,146,.24)}
#viewModule .inventoryItemImage img{width:100%;height:100%;object-fit:contain;display:block}
#viewModule .inventoryImageFallback{width:38px;height:38px;color:#241a08}
#viewModule .inventoryImageFallback svg{width:100%;height:100%}
#viewModule .inventoryItemBody{min-width:0;display:grid;gap:10px}
#viewModule .inventoryItemTop{display:flex;gap:8px;align-items:flex-start;justify-content:space-between}
#viewModule .inventoryItemTop>div{min-width:0}
#viewModule .inventoryItemTop h3{margin:0;color:#fff3d2;font-size:14px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#viewModule .inventoryItemTop small{display:block;margin-top:4px;color:#8f8779;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#viewModule .inventoryStatus{flex:0 0 auto;padding:5px 7px;border-radius:999px;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.03em;border:1px solid rgba(205,168,60,.22)}
#viewModule .inventoryStatus.stored{color:#efd269;background:rgba(205,161,39,.1)}
#viewModule .inventoryStatus.delivery{color:#8fc8ff;background:rgba(65,138,209,.12);border-color:rgba(83,156,225,.25)}
#viewModule .inventoryStatus.delivered{color:#82d7a1;background:rgba(63,162,99,.12);border-color:rgba(85,190,122,.25)}
#viewModule .inventoryItemMeta{display:flex;flex-wrap:wrap;gap:5px 10px;color:#a99f8c;font-size:9px}
#viewModule .inventoryItemMeta span:first-child{color:#f1cf66;font-weight:900}
#viewModule .inventoryItemActions{display:grid;grid-template-columns:1fr 1.35fr;gap:8px}
#viewModule .inventoryItemActions button,#viewModule .inventoryDeliveryForm button,#viewModule .inventoryEmpty button{min-height:38px;border-radius:13px;font-size:10px;font-weight:900;cursor:pointer}
#viewModule .inventoryPrimary{border:1px solid rgba(255,229,151,.38);color:#181105;background:linear-gradient(180deg,#f4d36b,#d09d22)}
#viewModule .inventorySecondary{border:1px solid rgba(216,177,65,.2);color:#d9cfbb;background:#0d0c0a}
#viewModule .inventoryDeliveryForm{grid-column:1/-1;display:grid;gap:10px;margin-top:2px;padding:12px;border:1px solid rgba(214,173,52,.18);border-radius:16px;background:#080806}
#viewModule .inventoryDeliveryForm label{display:grid;gap:5px}
#viewModule .inventoryDeliveryForm label span{color:#b9ae99;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}
#viewModule .inventoryDeliveryForm input{width:100%;min-height:42px;padding:0 11px;border-radius:12px;border:1px solid rgba(219,175,51,.2);background:#11100d;color:#fff2cf;font-size:12px;outline:none}
#viewModule .inventoryDeliveryForm>div{display:grid;grid-template-columns:1fr 1.45fr;gap:8px}
#viewModule .inventoryEmpty{display:grid;justify-items:center;gap:8px;padding:36px 18px;border:1px dashed rgba(218,175,54,.25);border-radius:22px;background:rgba(17,14,9,.7);text-align:center}
#viewModule .inventoryEmpty>span{width:42px;height:42px;color:#e3bd4e}
#viewModule .inventoryEmpty svg{width:100%;height:100%}
#viewModule .inventoryEmpty strong{color:#fff1cd;font-size:16px}
#viewModule .inventoryEmpty small{max-width:260px;color:#9c9382;font-size:11px;line-height:1.45}
#viewModule .inventoryEmpty button{margin-top:4px;padding:0 18px;border:1px solid rgba(255,229,151,.36);color:#181105;background:linear-gradient(180deg,#f4d36b,#cf9c21)}

/* Checkout payment choices */
#viewCheckout .checkoutPaymentBlock{display:grid;gap:9px;margin-top:8px}
#viewCheckout .checkoutPaymentTitle{color:#c6bca7;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
#viewCheckout .checkoutPaymentChoices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#viewCheckout .checkoutPaymentChoice{min-width:0;min-height:94px;padding:10px 7px;border:1px solid rgba(215,175,57,.2);border-radius:16px;background:#0d0c09;color:#dcd2bd;display:grid;justify-items:center;align-content:center;gap:6px;text-align:center}
#viewCheckout .checkoutPaymentChoice.active{border-color:rgba(247,210,101,.66);background:linear-gradient(180deg,rgba(55,43,17,.98),rgba(20,16,9,.99));box-shadow:0 0 0 3px rgba(212,175,55,.08)}
#viewCheckout .checkoutPaymentChoice>span:last-child{min-width:0;display:grid;gap:2px}
#viewCheckout .checkoutPaymentChoice strong{color:#fff1ca;font-size:11px}
#viewCheckout .checkoutPaymentChoice small{color:#948b7b;font-size:8px;line-height:1.25}
#viewCheckout .checkoutPaymentIcon{width:26px;height:26px;color:#e1bb4a}
#viewCheckout .checkoutPaymentIcon svg{width:100%;height:100%}
#viewCheckout .checkoutPaymentNote{min-height:31px;padding:8px 10px;border-radius:11px;background:rgba(222,179,53,.07);color:#a99f8d;font-size:9px;line-height:1.4}

/* Switch Mode returns to the planned five controls. */
#bottomBar.bottombar[data-module="switchmode"]{--nav-count:5!important}
#bottomBar.bottombar[data-module="inventory"]{--nav-count:3!important}

@media(max-width:420px){
  #viewModule .inventoryHero{padding:17px;border-radius:20px}
  #viewModule .inventoryHero>div:first-child>strong{font-size:32px}
  #viewModule .inventoryItemCard{grid-template-columns:82px minmax(0,1fr);gap:11px;padding:10px;border-radius:18px}
  #viewModule .inventoryItemImage{width:82px;border-radius:15px}
  #viewModule .inventoryItemTop{display:grid;gap:5px}
  #viewModule .inventoryStatus{justify-self:start}
  #viewCheckout .checkoutPaymentChoice{min-height:88px;padding:8px 4px}
}
@media(max-width:350px){
  #viewModule .inventoryHero{grid-template-columns:1fr}
  #viewModule .inventoryHeroStats{width:100%}
  #viewModule .inventoryItemCard{grid-template-columns:72px minmax(0,1fr)}
  #viewModule .inventoryItemImage{width:72px}
  #viewCheckout .checkoutPaymentChoice strong{font-size:10px}
  #viewCheckout .checkoutPaymentChoice small{font-size:7px}
}

#viewCheckout .checkoutInputGrid{display:grid;grid-template-columns:1fr 1.35fr;gap:10px;margin-top:14px}
#viewCheckout .checkoutInputField{display:grid;gap:6px;min-width:0}
#viewCheckout .checkoutInputField>span{color:#c6bca7;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
#viewCheckout .checkoutInputField .in{margin:0!important;min-width:0!important}
@media(max-width:390px){#viewCheckout .checkoutInputGrid{grid-template-columns:1fr;gap:9px}}
