/* LIVE 2026-11-07: last-resort specificity fix for legacy mobile rules.
   Product/settlement data, checkout, pickup and permissions are unchanged. */
@media (max-width:760px){
  /* The modern order history is a real collapsible account tile.
     The old generic .member-active-commerce rule previously hid its list forever. */
  #tpbProfile #memberModernOrders014P.member-active-commerce:not(.is-expanded) .member-modern-tabs,
  #tpbProfile #memberModernOrders014P.member-active-commerce:not(.is-expanded) .member-active-commerce-items{display:none!important}
  #tpbProfile #memberModernOrders014P.member-active-commerce.is-expanded .member-modern-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;width:100%!important}
  #tpbProfile #memberModernOrders014P.member-active-commerce.is-expanded .member-active-commerce-items{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;min-width:0!important;overflow:visible!important;padding:10px!important}
  #tpbProfile #memberModernOrders014P.member-active-commerce .member-modern-tabs button{min-width:0!important;max-width:100%;white-space:normal!important;overflow-wrap:normal;font-size:12px!important;line-height:1.2;padding:9px 5px!important}
  #tpbProfile #memberModernOrders014P.member-active-commerce .toura-modern-order-card{min-width:0;width:100%;max-width:100%;display:flex!important;flex-direction:column!important;align-items:stretch!important;overflow-wrap:break-word}
  #tpbProfile #memberModernOrders014P.member-active-commerce .toura-modern-order-card .member-active-commerce-copy{min-width:0;width:100%}
  /* The legacy 008f mobile script tags every orders panel and applies a two-column
     grid with !important AFTER our first release. Explicitly neutralize it here. */
  body.supplier-studio-page .tp008f-orders-panel .booking-row.toura-merch-order{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;grid-template-columns:none!important;gap:13px!important;min-width:0!important;width:100%!important;padding:16px!important}
  body.supplier-studio-page .tp008f-orders-panel .booking-row.toura-merch-order>div{width:100%!important;min-width:0!important;max-width:100%!important;grid-column:auto!important;grid-row:auto!important;overflow-wrap:break-word!important}
  body.supplier-studio-page .tp008f-orders-panel .booking-row.toura-merch-order>.toura-merch-order-money{display:flex!important;align-items:center!important;gap:7px!important;flex-wrap:wrap!important;grid-column:auto!important;grid-row:auto!important;padding:12px!important;margin:0!important;border:1px solid #e5eef1!important;border-radius:12px!important;background:#f6f9fb!important}
  body.supplier-studio-page .tp008f-orders-panel .booking-row.toura-merch-order>.toura-merch-order-action{display:block!important;grid-column:auto!important;grid-row:auto!important}
  body.supplier-studio-page .tp008f-orders-panel .booking-row.toura-merch-order h3{font-size:17px!important;line-height:1.3!important;overflow-wrap:break-word!important}
  body.supplier-studio-page .tp008f-orders-panel .booking-row.toura-merch-order .booking-status{display:inline-block!important;width:auto!important;max-width:100%!important;white-space:normal!important;overflow-wrap:normal!important;font-size:11px!important;letter-spacing:.02em!important;line-height:1.35!important}
  body.supplier-studio-page .tp008f-orders-panel .booking-row.toura-merch-order .toura-pickup-complete,
  body.supplier-studio-page .tp008f-orders-panel .booking-row.toura-merch-order .toura-pickup-progress{font-size:13px!important;line-height:1.45!important;margin:0!important;max-width:100%!important}
  body.supplier-studio-page:has(.tp008f-orders-panel.toura-unified-orders) .tp008a-workspace-context{position:relative!important;top:auto!important}
}
