/* One card-footer contract, independent of category and optional controls.
 * Keep existing behaviour hooks; flatten their layout-only wrappers so all
 * controls participate in the same wrapping flow. No fixed control tracks. */
body.tom-customer-order-page .tom-menu-product .tom-card-footer{
  display:flex!important;
  flex-flow:row wrap!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  grid-template:none!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin: auto 0 0!important;
  padding:8px 0 0!important;
  position:static!important;
  transform:none!important;
  font-size:12px!important;
  line-height:1.3!important;
}
body.tom-customer-order-page .tom-menu-product .tom-card-footer .tom-card-action-container{
  display:contents!important;
}
body.tom-customer-order-page .tom-menu-product .tom-card-footer .tom-card-action-container>div:empty{
  display:none!important;
}
body.tom-customer-order-page .tom-menu-product .tom-card-footer :is(.tom-card-footer-price,.tom-card-footer-picker,.tom-card-footer-quantity,.tom-card-footer-secondary,.tom-card-footer-status){
  grid-area:auto!important;
  position:static!important;
  inset:auto!important;
  transform:none!important;
  float:none!important;
  align-self:center!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  box-sizing:border-box!important;
}
body.tom-customer-order-page .tom-menu-product .tom-card-footer .tom-card-footer-price{
  order:1!important;
  display:flex!important;
  align-items:baseline!important;
  flex:1 1 60px!important;
  flex-wrap:wrap!important;
  gap:4px!important;
  width:auto!important;
  padding:0!important;
  font-size:13px!important;
  font-weight:600!important;
  line-height:18px!important;
}
body.tom-customer-order-page .tom-menu-product .tom-card-footer .tom-menu-price,
body.tom-customer-order-page .tom-menu-product .tom-card-footer .tom-menu-price *{
  font-size:13px!important;
  line-height:18px!important;
  font-weight:600!important;
}
body.tom-customer-order-page .tom-menu-product .tom-card-footer .tom-price-from{
  font-size:11px!important;
  line-height:18px!important;
  margin:0!important;
}
body.tom-customer-order-page .tom-menu-product .tom-card-footer .tom-card-footer-picker{
  order:2!important;
  display:flex!important;
  flex:1 1 160px!important;
  align-items:center!important;
  gap:6px!important;
  width:auto!important;
  max-width:220px!important;
  padding:0!important;
}
body.tom-customer-order-page .tom-menu-product .tom-card-footer .tom-card-footer-picker select{
  flex:1 1 110px!important;
  width:0!important;
  min-width:0!important;
  max-width:100%!important;
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  margin:0!important;
  padding:0 22px 0 8px!important;
  font-family:inherit!important;
  font-size:12px!important;
  line-height:normal!important;
  box-sizing:border-box!important;
  border-radius:8px!important;
}
body.tom-customer-order-page .tom-menu-product .tom-card-footer .tom-card-footer-picker button{
  flex:0 0 34px!important;
  width:34px!important;
  min-width:34px!important;
  max-width:34px!important;
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  margin:0!important;
  padding:0!important;
  font-size:20px!important;
  line-height:1!important;
  border-radius:8px!important;
}
body.tom-customer-order-page .tom-menu-product .tom-card-footer .tom-card-footer-quantity{
  order:2!important;
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  gap:0!important;
  width:auto!important;
  height:34px!important;
  padding:0!important;
  overflow:hidden!important;
}
body.tom-customer-order-page .tom-menu-product .tom-card-footer .tom-card-footer-quantity :is(button,span){
  flex:0 0 30px!important;
  width:30px!important;
  min-width:30px!important;
  max-width:30px!important;
  height:32px!important;
  min-height:32px!important;
  max-height:32px!important;
  margin:0!important;
  padding:0!important;
  box-sizing:border-box!important;
  line-height:32px!important;
  text-align:center!important;
}
body.tom-customer-order-page .tom-menu-product .tom-card-footer .tom-card-footer-quantity button{font-size:18px!important}
body.tom-customer-order-page .tom-menu-product .tom-card-footer .tom-card-footer-quantity span{font-size:12px!important}
body.tom-customer-order-page .tom-menu-product .tom-card-footer .tom-card-footer-secondary{
  order:3!important;
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  height:auto!important;
  min-height:34px!important;
  padding:7px 10px!important;
  margin-left:auto!important;
  font-family:inherit!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:18px!important;
  white-space:normal!important;
  text-align:center!important;
  border-radius:8px!important;
}
body.tom-customer-order-page .tom-menu-product .tom-card-footer .tom-card-footer-status{
  order:0!important;
  flex:0 0 100%!important;
  display:block!important;
  width:100%!important;
  min-height:0!important;
  padding:0!important;
  font-size:10px!important;
  line-height:14px!important;
}
body.tom-customer-order-page .tom-menu-product .tom-card-footer .tom-card-footer-status:is([hidden],:empty){display:none!important}
/* The existing footer picker is used at every width; its inline duplicate
 * retains its behaviour hooks but must not create a second visible control. */
body.tom-customer-order-page .tom-menu-product .tom-card-group-picker--inline,
body.tom-customer-order-page .tom-menu-product .tom-card-in-basket--inline{display:none!important}
