/* Desktop checkout: compact summary beside cash entry, responsive to panel width. */
@media screen and (min-width:701px){
 #app .app-shell:has(#posBarcodeInput) .pos-payment-card{container-type:inline-size;padding:16px!important;border-radius:14px}
 #app .app-shell:has(#posBarcodeInput) .pos-payment-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto!important;grid-template-areas:"summary" "method" "cash"!important;gap:16px!important;align-items:start!important}
 #app .app-shell:has(#posBarcodeInput) .pos-payment-grid>.pos-payment-method{grid-column:auto!important;grid-row:auto!important;grid-area:method!important;min-width:0}
 #app .app-shell:has(#posBarcodeInput) .pos-payment-grid>#cashPanel{grid-column:auto!important;grid-row:auto!important;grid-area:cash!important;display:flex!important;flex-direction:column!important;gap:10px!important;min-width:0}
 #app .app-shell:has(#posBarcodeInput) .pos-payment-grid>.tax-box{grid-column:auto!important;grid-row:auto!important;grid-area:summary!important;align-self:start!important;width:100%;margin:0!important;padding:0!important}
 #app .app-shell:has(#posBarcodeInput) .pos-payment-card label{font-size:13px;font-weight:600;margin-bottom:8px}
 #app .app-shell:has(#posBarcodeInput) .pos-payment-card .field{width:100%;box-sizing:border-box;min-height:44px;font-size:15px;margin-bottom:0}
 #app .app-shell:has(#posBarcodeInput) .pos-cash-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;margin:0!important}
 #app .app-shell:has(#posBarcodeInput) #cashQuick{display:contents}
 #app .app-shell:has(#posBarcodeInput) .pos-cash-actions button{width:100%;min-width:0;min-height:40px;padding:8px 6px;font-size:13px;border-radius:9px;white-space:normal}
 #app .app-shell:has(#posBarcodeInput) #cashExact{grid-column:1/-1}
 #app .app-shell:has(#posBarcodeInput) #cashShort{font-size:13px;line-height:1.5;margin:0}
 #app .app-shell:has(#posBarcodeInput) .cash-change{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:46px;box-sizing:border-box;padding:10px 12px!important;background:var(--bg,#f5f8fc);border:1px solid var(--border)!important;border-radius:10px}
 #app .app-shell:has(#posBarcodeInput) .cash-change span{font-size:13px;margin:0}
 #app .app-shell:has(#posBarcodeInput) .cash-change strong{font-size:18px;overflow-wrap:anywhere;text-align:right}
 #app .app-shell:has(#posBarcodeInput) .tax-box .receipt-row{display:flex;justify-content:space-between;gap:12px;font-size:14px;padding:5px 0;margin:0}
 #app .app-shell:has(#posBarcodeInput) .tax-box .total-line{padding:13px 12px!important;margin-top:10px!important;gap:12px}
 #app .app-shell:has(#posBarcodeInput) .tax-box .total-line span{font-size:15px!important}
 #app .app-shell:has(#posBarcodeInput) .tax-box .total-line strong{font-size:20px!important;overflow-wrap:anywhere;text-align:right}
 #app .app-shell:has(#posBarcodeInput) .pos-tax-heading{font-size:13px;margin-bottom:8px}
 #app .app-shell:has(#posBarcodeInput) :is(#manualPaymentPanel,#memberLimitPanel){width:100%;box-sizing:border-box;min-width:0}
 #app .app-shell:has(#posBarcodeInput) #cashPanel[style*="display: none"],
 #app .app-shell:has(#posBarcodeInput) #cashPanel[style*="display:none"],
 #app .app-shell:has(#posBarcodeInput) :is(#cashPanel,.tax-box,.checkout)[hidden]{display:none!important}
 /* Let long orders and payment details scroll together on short desktop windows. */
 #app .app-shell>.content.pos-content:has(.cafe-catalog)>.cart{height:auto!important;max-height:calc(100dvh - 110px)!important;top:90px!important;overflow-y:auto!important;scrollbar-gutter:stable}
 #app .app-shell>.content.pos-content:has(.cafe-catalog)>.cart>.pos-order-scroll{flex:0 0 auto!important;overflow:visible!important}
 #app .app-shell>.content.pos-content:has(.cafe-catalog)>.cart>.pos-checkout-fixed{flex:0 0 auto!important;overflow:visible!important;margin-top:12px;padding-top:16px!important}
 @container (min-width:460px){
  #app .app-shell:has(#posBarcodeInput) .pos-payment-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:min-content 1fr!important;grid-template-areas:"method cash" "summary cash"!important;gap:14px 20px!important}
 }
}
@media screen and (min-width:900px){
 #app .app-shell:has(#posBarcodeInput) .pos-paybar{position:static!important;transform:none!important;width:100%!important;padding:10px 0 0!important;background:var(--card,#fff)!important;box-sizing:border-box}
 #app .app-shell:has(#posBarcodeInput) .pos-paybar #co{min-height:48px;width:100%;font-size:16px;margin:0}
}
