/* Regression repair: the general-purpose compact modal had hidden the MyMart product rows.
   MyMart is a shopping interaction, not a passive dialogue. Give it a scrollable catalogue. */
#modal .card.bj-mymart{
  display:flex;
  flex-direction:column;
  width:min(690px,calc(100vw - 24px));
  height:min(78dvh,740px);
  max-height:calc(100dvh - 24px);
  min-height: min(480px,calc(100dvh - 24px));
  overflow:hidden;
}
#modal .card.bj-mymart .card-h{flex:0 0 auto}
#modal .card.bj-mymart .card-b{
  display:block;
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scroll-behavior:auto;
}
#modal .card.bj-mymart .card-b>.list{
  display:grid;
  grid-auto-rows:max-content;
  align-content:start;
  gap:9px;
  min-width:0;
  height:auto;
  overflow:visible;
}
#modal .card.bj-mymart .card-b .item{
  display:flex;
  min-width:0;
}
#modal .card.bj-mymart .card-b .item h3{
  display:flex;
  align-items:start;
  justify-content:space-between;
  gap:6px;
  flex-wrap:wrap;
  margin:0;
  font-size:15px;
  line-height:1.25;
}
#modal .card.bj-mymart .card-b .item h3 span{
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
#modal .card.bj-mymart .card-b .item .row{gap:6px}
#modal .card.bj-mymart .card-f{
  flex:0 0 auto;
  max-height:min(115px,23dvh);
  overflow:auto;
  display:flex;
  align-items:stretch;
  flex-direction:column;
  gap:5px;
}
#modal .card.bj-mymart .card-f .btn{
  width:100%;
  min-height:44px;
  text-align:left;
  justify-content:center;
  white-space:normal;
}
@media(max-width:600px){
 #modal .card.bj-mymart{
   width:min(94vw,470px);
   height:min(75dvh,655px);
   max-height:calc(100dvh - 16px);
   min-height:min(445px,calc(100dvh - 16px));
 }
 #modal .card.bj-mymart .card-b{padding:9px 11px}
 #modal .card.bj-mymart .card-b>.list{gap:8px}
 #modal .card.bj-mymart .card-b .item{padding:8px;gap:8px!important}
 #modal .card.bj-mymart .card-f{padding:7px 10px;max-height:min(115px,24dvh)}
 #modal .card.bj-mymart .card-b .seg{display:flex;gap:5px;flex-wrap:wrap}
 #modal .card.bj-mymart .card-b .seg button{
   padding:5px 7px;
   min-height:36px;
   line-height:1.15;
 }
}
@media(max-height:540px){
 #modal .card.bj-mymart{height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);min-height:0}
 #modal .card.bj-mymart .card-f{max-height:min(78px,24dvh)}
}
/* Short landscape phones: free space for the actual items, keep category and price controls. */
@media(max-height:540px){
 #modal .card.bj-mymart .card-b>.list>.ev{display:none}
 #modal .card.bj-mymart .card-b .seg button{min-height:28px;padding:3px 6px;font-size:11px}
 #modal .card.bj-mymart .card-b>.list{gap:5px}
 #modal .card.bj-mymart .card-b{padding:6px 9px}
}
