/* SCUZO One RC6.6.8 – visible, no-slider desktop checkout */
#posView .cart-panel{background:#fff;min-width:0}
#posView .cart-scroll-body{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden!important;padding-right:0!important}
#posView .cart-scroll-body .cart-lines{flex:1 1 auto!important;height:auto!important;max-height:none!important;min-height:90px!important;overflow-y:auto!important;margin-bottom:0!important}
#posView .cart-quick-controls{flex:0 0 auto;position:relative;z-index:2;display:grid;gap:7px;min-width:0;border-top:1px solid #e2e9f3;background:#fff;padding:8px 0 5px}
#posView .cart-quick-controls .pos-offer-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px}
#posView .pos-offer-buttons button{font-size:11px;font-weight:800;min-height:37px;padding:6px;border-radius:9px;display:flex;gap:4px;align-items:center;justify-content:center}
#posView .pos-offer-buttons #posLoyaltyBadge{font-size:10px;font-weight:700}
#posView .pos-payment-quick{margin:0;padding:7px 8px 8px;background:#f2f6fc;border:1px solid #d2dfef;border-radius:13px;min-width:0}
#posView .pos-payment-quick legend{font-size:10px;letter-spacing:.1px;font-weight:900}
#posView .pos-payment-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
#posView .pos-payment-buttons button{min-height:47px;font-size:12px;font-weight:850;line-height:1.2;border-radius:9px;white-space:normal;padding:5px 3px}
#posView #voucherQuickBtn.is-voucher-applied{background:#e5f8ed;border-color:#16a065;color:#09693b}
#posView .pos-payment-quick small{font-size:10px;min-height:14px;line-height:1.3;margin-top:5px}
#posView .pos-payment-quick.is-marketplace{opacity:.76}
#posView .pos-floating-panel{position:absolute;bottom:calc(100% + 8px);left:0;right:0;max-height:min(450px,65vh);overflow-y:auto;z-index:7;box-shadow:0 12px 45px rgba(10,35,70,.2);background:white;border:1px solid #c7d8ee;border-radius:15px;padding:13px}
#posView .pos-floating-panel .loyalty-preview{margin-top:0}
#posView .pos-floating-panel.bill-discount-control{margin:0}
#posView .pos-voucher-panel{display:grid;gap:6px;background:#f5f8ff;border:1px solid #d0ddf0;border-radius:12px;padding:8px}
#posView .pos-voucher-panel label{font-size:11px;font-weight:800}
#posView .pos-voucher-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:5px}
#posView .pos-voucher-input-row input{min-width:0;width:100%;padding:8px 9px;font-size:12px}
#posView .pos-voucher-input-row button{font-size:11px;padding:8px 9px}
#posView #posVoucherStatus{font-size:10px;color:#687b91;line-height:1.3}
#posView #posVoucherStatus.is-valid{color:#087949;font-weight:700}
#posView #posVoucherAdminOpen{padding:6px 8px;font-size:10px}
#posView #posPaymentLegacySelect{display:none}
#posView #posPaymentLegacySelect:not(.hidden){display:grid}
#posView .cart-quick-controls .cart-money-breakdown{margin:0;padding:6px 2px 3px;gap:4px;border:0;font-size:11px}
#posView .cart-quick-controls .cart-money-breakdown>div{padding:2px 0}
#posView .cart-checkout-footer{gap:6px;padding:8px 0 6px}
#posView .cart-checkout-footer #checkoutBtn{font-weight:900;min-height:46px}
#posView .cart-checkout-footer #cartPayable{font-size:25px}
#posView .cart-scroll-body .cart-customer{margin:5px 0 5px!important}
.pos-voucher-admin-dialog{width:min(740px,95vw)!important;max-height:88vh;overflow:auto}
.pos-voucher-issue-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
.pos-voucher-issue-form>button{grid-column:1/-1}
.pos-voucher-admin-dialog textarea{width:100%;margin:9px 0;font-family:monospace;font-size:12px}
.pos-voucher-admin-list{max-height:260px;overflow:auto;margin-top:8px;border:1px solid #e0e8f2;border-radius:10px}
.pos-voucher-admin-row{padding:9px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e8eef7}
.pos-voucher-admin-row small{display:block;color:#64758b;font-size:10px;margin-top:3px}
.pos-voucher-admin-row button{font-size:11px}
@media(min-width:901px){
 #posView.active .cart-panel{height:100%;overflow:hidden;display:flex;flex-direction:column;padding:10px 13px}
 #posView .cart-head{flex:0 0 auto}
 #posView .cart-scroll-body{flex:1 1 auto}
}
@media(max-width:900px){
 #posView .cart-scroll-body{height:auto;overflow:visible!important}
 #posView .cart-scroll-body .cart-lines{min-height:140px!important;max-height:300px!important;overflow-y:auto!important}
 #posView .cart-quick-controls{position:sticky;bottom:68px;z-index:19;background:#fff}
 #posView .cart-checkout-footer{bottom:0}
 #posView .pos-floating-panel{position:absolute;bottom:calc(100% + 4px)}
}
@media(max-width:560px){.pos-voucher-issue-form{grid-template-columns:1fr}}

/* RC6.6.8.1 mandatory discount reason, confined to the fixed bill sidebar */
#posView .pos-discount-reason{display:grid;gap:4px;padding:7px 9px;background:#fff9e8;border:1px solid #eecb7b;border-radius:10px}
#posView .pos-discount-reason label{font-size:11px;font-weight:850;color:#624213}
#posView .pos-discount-reason textarea{resize:vertical;width:100%;min-height:46px;max-height:90px;line-height:1.35;padding:7px 9px;border:1px solid #d9bc81;border-radius:8px;font-size:12px;background:#fff;box-sizing:border-box}
#posView .pos-discount-reason textarea:focus{outline:2px solid #c99130;outline-offset:1px}
#posView .pos-discount-reason small{font-size:10px;color:#795a2f}
#posView .pos-discount-reason.is-invalid{border-color:#c62e39;background:#fff1f2}
#posView .pos-discount-reason.is-invalid small{color:#ac1e2b;font-weight:750}
#posView .pos-discount-reason.hidden{display:none!important}


/* RC6.6.8.2 — cart body scrolls as a WHOLE. Do not shrink item rows to a 90px viewport. */
@media (min-width:901px){
  #posView.active .cart-scroll-body{
    overflow-x:hidden!important; overflow-y:auto!important;
    overscroll-behavior:contain; min-height:0; scrollbar-gutter:stable;
  }
  #posView.active .cart-scroll-body .cart-lines{
    flex:0 0 auto!important; height:auto!important; max-height:none!important;
    min-height:100px!important; overflow:visible!important;
  }
  #posView.active .cart-scroll-body .cart-quick-controls{
    flex:0 0 auto!important;
  }
}


/* RC6.6.8.2 receipt choice + secure customer invoice delivery */
#posView .receipt-delivery-choice{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;font-weight:800}
#posView .receipt-delivery-choice select{max-width:170px;padding:6px;border:1px solid #c9d8e5;border-radius:7px;background:#fff;font-size:11px}
.digital-invoice-modal{position:fixed;inset:0;z-index:9999;background:#0b244780;display:flex;align-items:center;justify-content:center;padding:14px}
.digital-invoice-modal.hidden{display:none!important}
.digital-invoice-card{width:min(540px,96vw);max-height:94vh;overflow:auto;padding:20px;background:#fff;border-radius:16px;display:grid;gap:12px;box-shadow:0 12px 50px #0003}
.digital-invoice-card h3{margin:0}.digital-invoice-card p{margin:0;font-size:12px}
.digital-invoice-card label{display:grid;gap:5px;font-size:12px;font-weight:800}
.digital-invoice-card input{min-width:0;width:100%;box-sizing:border-box;padding:9px;border:1px solid #c9d8e5;border-radius:7px}
.digital-invoice-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.digital-invoice-card small{color:#61758e;font-size:11px}
