.compact-order-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.compact-order-item{display:flex;align-items:center;gap:8px;border:1px solid #d4ddd6;padding:7px;min-width:0;break-inside:avoid;page-break-inside:avoid}.compact-order-picture{flex:0 0 58px}.compact-order-picture img{display:block;width:58px;height:64px;object-fit:contain}.compact-order-info{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:12px;overflow-wrap:anywhere}.compact-order-total{text-align:right;font-weight:700;padding:12px 0;border-bottom:1px solid #ccd9cf}.compact-order .a4-customer p{margin:5px 0}.compact-order .a4-signature{margin-top:15px}@media(max-width:500px){.compact-order-grid{grid-template-columns:1fr}}
@page{size:A4 portrait;margin:9mm}
@media print{
 main>.compact-order{font-size:9pt!important;line-height:1.3!important}.compact-order .eyebrow{display:none}.compact-order .a4-heading h1{font-size:16pt!important;margin:0 0 3mm}.compact-order .a4-heading{gap:3mm}.compact-order>p{margin:2mm 0;font-size:8pt;overflow-wrap:anywhere}.compact-order .a4-customer{padding:2mm 0;margin:0 0 3mm;font-size:9pt}.compact-order .a4-customer p{margin:1mm 0}.compact-order-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:2mm}.compact-order-item{padding:1.5mm;gap:2mm;break-inside:avoid;page-break-inside:avoid;min-height:17mm}.compact-order-picture{flex:0 0 17mm}.compact-order-picture img{width:17mm;height:18mm}.compact-order-info{font-size:8pt;line-height:1.35;gap:1mm}.compact-order-total{font-size:10pt;padding:3mm 0;break-inside:avoid}.compact-order .a4-signature{margin-top:4mm;font-size:8pt;break-inside:avoid}
}

@media print{html,body{padding:0!important;margin:0!important;height:auto!important;min-height:0!important}.shell,main{height:auto!important;min-height:0!important}main>.compact-order{margin:0!important}#shop-bottom-nav,#merchant-bottom-nav,#floating-cart{display:none!important}.compact-order-grid{gap:1.5mm}.compact-order-item{min-height:0}.compact-order-picture img{height:16mm}.compact-order-picture{flex-basis:16mm}.compact-order-info{gap:.5mm;font-size:8pt}}

@media print{.compact-order .a4-heading h1{font-size:14pt!important;margin:0!important}.compact-order .a4-heading{margin:0!important;padding:0!important;min-height:0!important}.compact-order .a4-customer{padding:1mm 0!important;margin:1mm 0!important}.compact-order .a4-customer p{margin:0!important}.compact-order-item{padding:1mm!important;gap:1.5mm!important}.compact-order-info{font-size:7.5pt!important;line-height:1.2!important;gap:.3mm!important}.compact-order-picture img{height:15mm!important;width:15mm!important}.compact-order>p{margin:1mm 0!important}.compact-order .a4-signature{margin-top:2mm!important}}
