/* Give the live paper more room, with compact controls anchored below it. */
input[data-money]{direction:ltr;text-align:left;font-variant-numeric:tabular-nums}
.money-input-words{display:block;max-width:100%;font:400 10px/1.9 Vazirmatn,sans-serif!important;color:#59734f!important;text-align:right;white-space:normal;overflow-wrap:anywhere;letter-spacing:0}
.money-input-words[hidden]{display:none}
.cash-tender>.money-input-words{margin:4px 0 7px}
.totals>div:has(>.money-input-words){flex-wrap:wrap;gap:4px 10px}
.totals>div>.money-input-words{flex-basis:100%}
.line-item:has(.money-input-words){align-items:start}
.line-item:has(.money-input-words)>.icon-btn{margin-top:25px}
.thermal-total-words{margin:12px 0 4px;padding-top:9px;border-top:1px dashed #d0d2c5;text-align:center;line-height:1.9;overflow-wrap:anywhere}
.thermal-total-words>span{display:block;font-size:8px;color:#8b907d}
.thermal-total-words>strong{display:block;font-size:10px;font-weight:700;color:#505942;letter-spacing:0;word-spacing:normal}
.counter-bank-field{display:flex;align-items:center;gap:9px;margin-bottom:7px;min-width:0}
.counter-bank-field>label{flex-shrink:0;margin:0!important;font-size:10px!important;color:#526e48}
.counter-bank-field>select{width:auto!important;flex:1;min-width:0;margin:0!important;min-height:32px;padding:4px 27px 4px 8px;border:1px solid #acc5a1;border-radius:8px;background:#e6f0df;color:#365b32;font:11px Vazirmatn,sans-serif;outline-offset:2px}
.counter-checkout{margin-top:auto;padding-top:8px}
.counter-checkout .counter-credit-option{padding:7px 9px;margin:0 0 7px;gap:8px;border-radius:9px}
.counter-checkout .counter-credit-option input{width:15px;height:15px;flex-shrink:0}
.counter-checkout .counter-credit-option>span{display:flex;align-items:center;justify-content:space-between;gap:5px 12px;flex-wrap:wrap;min-width:0;flex:1}
.counter-checkout .counter-credit-option strong{font-size:10px}
.counter-checkout .counter-credit-option small{font-size:9px;margin-top:0;line-height:1.6}
.counter-checkout .checkout-total{margin:0 0 7px;align-items:center;gap:8px}
.counter-checkout .checkout-total>strong{font-size:28px;line-height:1.35}
.counter-checkout .checkout-total>span{font-size:10px}
.counter-checkout .payment-buttons button,.counter-checkout .completed-actions button{min-height:42px;font-size:12px;border-radius:9px}
.counter-checkout .checkout-secondary{margin-top:5px;gap:16px}
.counter-checkout .checkout-secondary button{min-height:24px;font-size:9px}
.counter-checkout .last-receipt-link{min-height:18px;margin-top:3px}
.receipt-panel-toolbar{margin-bottom:7px;gap:7px}
.receipt-panel-toolbar .receipt-expand{display:inline-flex;border:1px solid #abc39e;border-radius:7px}
.receipt-panel-toolbar .receipt-expand .ph{font-size:15px}
.counter-app:not(.is-counter-view) .receipt-expand{display:none}
.counter-search{display:flex;align-items:center;gap:7px;min-width:0}
.counter-search input{width:auto;min-width:0;flex:1}
.counter-search .scan-button{position:static;min-height:36px;height:36px;font-size:10px;display:flex;align-items:center;gap:4px}
.counter-search .scan-button .ph{position:static;width:16px;height:16px;font-size:16px}
@media(min-width:601px){
 .is-counter-view .counter-workspace{grid-template-columns:minmax(0,48fr) minmax(0,52fr)}
 .is-counter-view .counter-header{min-height:65px;padding:17px 20px 8px}
 .is-counter-view .counter-header h1{font-size:21px}
 .is-counter-view .workspace-user{padding:4px 20px 12px;font-size:10px}
 .is-counter-view .workspace-user button{font-size:9px;padding:4px 8px}
 .is-counter-view .counter-tools{padding-inline:20px;padding-bottom:12px;gap:8px}
 .is-counter-view .counter-search input{height:39px;font-size:11px}
 .is-counter-view .counter-search>.ph{top:10px}
 .is-counter-view .counter-categories button{font-size:10px;padding:4px 10px}
 .is-counter-view .counter-products{padding-inline:20px;gap:10px}
 .is-counter-view .counter-product{min-height:140px;padding:14px 12px 10px}
 .is-counter-view .product-card-title h2{font-size:15px}
 .is-counter-view .counter-product>p{font-size:10px}
 .is-counter-view .product-price-row{padding-top:9px}
 .is-counter-view .product-price-row strong{font-size:18px}
 .is-counter-view .counter-receipt-panel{padding:14px 23px 8px}
 .is-counter-view .receipt-paper-track{padding-top:9px}
 .is-counter-view .receipt-paper-track>.thermal-receipt{max-width:420px}
 .is-counter-view.receipt-open .counter-workspace{grid-template-columns:minmax(0,1fr)}
 .is-counter-view.receipt-open .counter-catalog-pane{display:none}
 .is-counter-view.receipt-open .receipt-back{display:inline-flex}
 .is-counter-view.receipt-open .counter-receipt-panel{padding-inline:max(24px,calc((100% - 640px)/2))}
 .is-counter-view.receipt-open .receipt-paper-track>.thermal-receipt{max-width:480px}
 .is-counter-view.receipt-open .counter-checkout{width:100%;max-width:640px;align-self:center}
}
@media(max-width:800px) and (min-width:601px){
 .is-counter-view .counter-product{min-height:128px;padding:12px 9px 9px}
 .is-counter-view .counter-products,.is-counter-view .counter-tools{padding-inline:13px}
 .is-counter-view .product-card-title h2{font-size:13px}
 .is-counter-view .product-price-row strong{font-size:16px}
 .is-counter-view .counter-receipt-panel{padding-inline:15px}
 .is-counter-view .workspace-user{padding-inline:13px}
 .counter-bank-field{flex-wrap:wrap;gap:3px}
 .counter-bank-field>select{flex-basis:100%}
}
@media(max-width:600px){
 .receipt-panel-toolbar .receipt-expand{display:none}
 .counter-checkout .payment-buttons button,.counter-checkout .completed-actions button{min-height:44px}
 .counter-checkout .checkout-secondary button{min-height:30px;font-size:10px}
 .counter-bank-field>select{min-height:36px;font-size:11px}
 .counter-checkout .counter-credit-option{padding:8px 10px}
 .counter-checkout .counter-credit-option strong{font-size:11px}
 .counter-checkout .counter-credit-option input{width:18px;height:18px}
}
@media print{.receipt-expand{display:none!important}}
