/* Checkout: summary and confirmation stay visible; payment fields scroll independently. */
@media screen {
 .mode-pos .pos-layout{grid-template-columns:minmax(0,1fr) minmax(390px,41%);border-radius:18px}
 .mode-pos .touch-checkout{display:flex;flex-direction:column;overflow:hidden;padding:0;background:linear-gradient(155deg,#282b43,#202338);gap:0}
 .mode-pos .checkout-summary{flex:none;padding:16px 20px 0;min-width:0}
 .mode-pos .sale-customer{margin:0 0 12px;padding:8px 10px;background:#30334c99;border-color:#494963;border-radius:10px;gap:8px;min-height:44px}
 .mode-pos .sale-customer strong{display:block;font-size:12px;font-weight:600;line-height:1.35}
 .mode-pos .sale-customer small{font-size:10px;margin-top:2px;line-height:1.35}
 .mode-pos .sale-customer button{min-height:34px;padding:6px 9px;font-size:11px;border-radius:8px}
 .mode-pos .touch-checkout .total-row{border:0;margin:0;padding:0;display:block}
 .mode-pos .touch-checkout .total-row>span{font-size:10px;letter-spacing:.12em;color:#b8b9d0}
 .mode-pos .touch-checkout .total-row strong{font-size:clamp(36px,3.6vw,54px);line-height:1.08;margin:5px 0 10px;letter-spacing:-.045em;color:#f2edff}
 .mode-pos .touch-checkout .total-row small{display:none}
 .mode-pos .checkout-details{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 0 10px;margin:0;border-bottom:1px solid #41455f}
 .mode-pos .checkout-details .sum-row{display:flex;align-items:center;gap:8px;margin:0;font-size:11px}
 .mode-pos .sum-row input{width:54px;min-height:28px;padding:3px 7px;border-radius:7px}
 .mode-pos .sale-savings,.mode-pos #club-savings-row{font-size:11px;padding:5px 0;margin:0}
 .mode-pos .checkout-scroll{flex:1 1 auto;min-height:0;overflow:auto;overflow-x:hidden;padding:12px 20px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#6a6489 transparent;scroll-padding:12px}
 .mode-pos .payment-title{margin:0 0 8px;font-size:11px;font-weight:600;color:#d7d3e9}
 .mode-pos .inline-methods{grid-template-columns:1fr 1.35fr 1fr .8fr;gap:5px;margin:0 0 12px}
 .mode-pos .inline-methods button{min-height:38px;font-size:11px;padding:7px 3px;border-radius:8px;transition:background .15s,border-color .15s}
 .mode-pos .inline-methods button.selected{background:#c0afff;color:#241b3b;border-color:#c0afff;font-weight:700;box-shadow:0 2px 10px #0b0b2626}
 .mode-pos #inline-cash{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);grid-template-rows:auto auto 1fr;gap:6px 14px;height:186px;min-height:186px;margin:0 0 12px;flex:none}
 .mode-pos #inline-cash .received-label{grid-column:1;grid-row:1;margin:0;align-self:end;font-size:11px;color:#c4c0d9}
 .mode-pos #inline-cash .received-wrap{grid-column:1;grid-row:2;padding:10px;gap:6px;min-width:0;border-radius:10px;background:#1d2035;border-color:#51516f}
 .mode-pos #inline-cash .received-wrap input{font-size:26px;line-height:1.25;color:#fff}
 .mode-pos #inline-cash .touch-keypad{display:grid;grid-column:2;grid-row:1/4;grid-template-rows:repeat(4,1fr) 26px;height:186px;min-height:0;margin:0;gap:5px}
 .mode-pos #inline-cash .touch-keypad button{min-height:0;padding:3px;font-size:22px;border-radius:8px;background:#343850;border-color:#4b4e6b}
 .mode-pos #inline-cash .touch-keypad button:hover{background:#494563;border-color:#9484c7}
 .mode-pos #inline-cash .touch-keypad button:active{background:#67558e}
 .mode-pos #inline-cash .touch-keypad .decimal-key{font-size:10px;color:#d1c9e8}
 .mode-pos #inline-cash .touch-change{grid-column:1;grid-row:3;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:4px;align-self:stretch;margin:0;padding:8px 0;font-size:11px}
 .mode-pos #inline-cash .touch-change strong{font-size:29px;line-height:1.1;max-width:100%;overflow-wrap:anywhere;color:#c1f1d8}
 .mode-pos #inline-cash .touch-change strong.short{color:#ffd3a8}
 .mode-pos .mp-pos-tools{display:flex;flex-wrap:nowrap;gap:8px;margin:0;padding:0}
 .mode-pos .mp-pos-tools button{min-height:36px;font-size:11px;padding:7px 10px;border-radius:8px;white-space:nowrap}
 .mode-pos .mp-pos-tools #mp-open{background:#34334e;border-color:#766892;color:#e7dcff}
 .mode-pos .mp-pos-tools #mp-open-history{color:#c6bfd8}
 .mode-pos .payment-fields{margin:0 0 12px;padding:0 0 10px;border-bottom:1px solid #41455f}
 .mode-pos .payment-fields .field{font-size:11px;margin-bottom:9px}
 .mode-pos .payment-fields input,.mode-pos .payment-fields select{min-height:38px;font-size:12px;padding:8px 32px 8px 10px}
 .mode-pos .payment-fields input{padding-right:10px}
 .mode-pos .payment-check,.mode-pos .payment-hint{font-size:11px;line-height:1.5}
 .mode-pos .checkout-footer{flex:none;padding:10px 20px 14px;border-top:1px solid #484760;background:#25283e;box-shadow:0 -8px 18px #11142826;min-width:0;z-index:1}
 .mode-pos .inline-payment-note{font-size:10px;line-height:1.45;margin:0 0 8px;color:#cbc5dc}
 .mode-pos #inline-error{font-size:11px;line-height:1.4;margin:0 0 8px;min-height:0}
 .mode-pos .touch-checkout #pay{margin:0;min-height:48px;padding:12px 16px;font-size:16px;border-radius:10px;background:#c0afff;color:#231a37;box-shadow:0 4px 12px #15122a33}
 .mode-pos .touch-checkout #pay:disabled{opacity:1;background:#49435f;color:#bfb5d8;box-shadow:none}
 .mode-pos .touch-checkout #pay kbd{font-size:10px;background:#ffffff1a}
 .mode-pos .touch-checkout .footnote{display:none}
 .mode-pos .checkout-scroll :is(button,input,select):focus-visible{outline:2px solid #d1c2ff;outline-offset:2px}
}
@media screen and (min-width:761px) and (max-width:1100px){
 .mode-pos .pos-layout{grid-template-columns:minmax(0,1fr) minmax(320px,43%)}
 .mode-pos .checkout-summary,.mode-pos .checkout-scroll,.mode-pos .checkout-footer{padding-left:14px;padding-right:14px}
}
@media screen and (max-height:720px) and (min-width:761px){
 .mode-pos .checkout-summary{padding-top:10px}
 .mode-pos .sale-customer{margin-bottom:8px;min-height:40px;padding:5px 8px}
 .mode-pos .touch-checkout .total-row strong{font-size:38px;margin:4px 0 7px}
 .mode-pos .checkout-details{padding-bottom:7px}
 .mode-pos .checkout-scroll{padding-top:9px;padding-bottom:9px}
 .mode-pos .inline-methods{margin-bottom:9px}
 .mode-pos .inline-methods button{min-height:34px}
 .mode-pos #inline-cash,.mode-pos #inline-cash .touch-keypad{height:164px;min-height:164px}
 .mode-pos #inline-cash .touch-keypad{grid-template-rows:repeat(4,1fr) 24px}
 .mode-pos #inline-cash .touch-keypad button{font-size:20px}
 .mode-pos .checkout-footer{padding-top:8px;padding-bottom:10px}
 .mode-pos .touch-checkout #pay{min-height:44px;font-size:15px}
}
@media screen and (max-width:760px),(max-height:540px){
 .mode-pos .pos-layout{display:flex}
 .mode-pos .checkout-summary{padding:12px 14px 0}
 .mode-pos .checkout-scroll{padding:12px 14px}
 .mode-pos .checkout-footer{padding:10px 14px 12px}
 .mode-pos .touch-checkout{padding:0}
 .mode-pos .touch-checkout .total-row strong{font-size:38px}
 .mode-pos .checkout-details>.sum-row:first-child{display:none}
 .mode-pos .checkout-details{justify-content:flex-end}
 .mode-pos .sale-customer{margin-bottom:9px}
 .mode-pos .sale-customer button{min-height:40px}
 .mode-pos .inline-methods button{min-height:44px;font-size:11px}
 .mode-pos #inline-cash{height:244px;min-height:244px;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:7px 10px}
 .mode-pos #inline-cash .touch-keypad{display:grid;height:244px;min-height:244px;grid-template-rows:repeat(4,1fr) 34px;gap:6px}
 .mode-pos #inline-cash .touch-keypad button{font-size:23px}
 .mode-pos #inline-cash .received-wrap input{font-size:25px}
 .mode-pos #inline-cash .touch-change strong{font-size:26px}
 .mode-pos .mp-pos-tools button{min-height:44px}
 .mode-pos .payment-fields input,.mode-pos .payment-fields select{min-height:44px}
 .mode-pos .touch-checkout #pay{min-height:48px}
}
@media screen and (max-width:760px){
 body.mode-pos main>header{gap:7px}
 body.mode-pos .header-right{flex-wrap:nowrap;gap:6px;justify-content:space-between}
 body.mode-pos .header-right .header-action{margin-inline-start:0;padding:8px;min-width:40px;min-height:40px}
 body.mode-pos .header-right #workspace-switch .workspace-label-short,
 body.mode-pos .header-right .support-help-short{display:none}
 .mode-pos .checkout-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px}
 .mode-pos .sale-customer{grid-column:1/-1;width:100%}
 .mode-pos .sale-customer strong,.mode-pos .sale-customer small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
 .mode-pos .checkout-details{border:0;padding:0}
 .mode-pos .checkout-details .sum-row{gap:6px;font-size:10px}
 .mode-pos .checkout-details input{width:42px}
 .mode-pos .sale-savings,.mode-pos #club-savings-row{grid-column:1/-1}
 .mode-pos .touch-checkout .total-row strong{margin-bottom:8px}
}
@media screen and (max-height:540px){
 .mode-pos .checkout-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,1fr);gap:4px 16px;padding:8px 14px}
 .mode-pos .sale-customer{grid-column:2;grid-row:1/3;margin:0;padding:6px 8px}
 .mode-pos .sale-customer small{display:none}
 .mode-pos .touch-checkout .total-row{grid-column:1;grid-row:1}
 .mode-pos .touch-checkout .total-row strong{font-size:28px;margin:2px 0}
 .mode-pos .checkout-details{grid-column:1;grid-row:2;border:0;padding:0;justify-content:flex-start}
 .mode-pos .checkout-details input{min-height:24px}
 .mode-pos .sale-savings,.mode-pos #club-savings-row{grid-column:2;padding:0}
 .mode-pos .checkout-footer{padding:6px 14px 8px}
 .mode-pos .inline-payment-note{margin-bottom:5px}
 .mode-pos .touch-checkout #pay{min-height:40px;padding:8px 14px;font-size:14px}
}
