/* RC6710 — one scroll owner, zero overlays: OBSIDIAN Payment UAT 8831 ONLY.
   The scroll body contains cart lines, discounts, tender inputs and GST breakdown.
   The footer contains only payable/receipt/confirmation; no dropdown may overlap it.
   Presentation only; no modification to sale totals, validation or auditing. */
#posView .cart-panel,
#posView .cart-panel * {box-sizing:border-box;}
#posView .cart-panel {isolation:isolate;background:#141c20!important;color:#ebf3ef!important;}
#posView .cart-panel .cart-head{padding:4px 0 12px!important;border-bottom:1px solid #35454b!important;}
#posView .cart-panel .cart-head h2 {line-height:1.2!important;}
#posView .cart-panel .cart-customer {margin:8px 0!important;}
#posView .cart-panel #cartLines {
 display:block!important;height:auto!important;min-height:0!important;max-height:none!important;
 flex:0 0 auto!important;overflow:visible!important;margin:0 0 12px!important;
 padding:5px 0 7px!important;background:transparent!important;
 border-top:0!important;border-bottom:1px solid #34474d!important;
}
#posView .cart-panel .cart-line {min-width:0!important;gap:8px!important;padding:9px 4px!important;border-color:#364b4d!important;}
#posView .cart-panel .cart-line strong {color:#f4f7f6!important;overflow-wrap:anywhere!important;}
#posView .cart-panel .cart-line small {color:#cad8d2!important;}
#posView .rc6710-panel-section-label {
 margin:9px 0 8px;padding:0 2px;color:#a9dac6;font-size:10px;
 font-weight:850;letter-spacing:.09em;line-height:1.4;
}
/* All variable-height options belong to the SAME scroll stream. */
#posView .cart-scroll-body > #cartQuickControls{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 flex:0 0 auto!important;position:static!important;inset:auto!important;
 z-index:auto!important;min-height:0!important;height:auto!important;
 max-height:none!important;overflow:visible!important;scrollbar-gutter:auto!important;
 border:0!important;gap:10px!important;padding:0 0 8px!important;margin:0!important;
 background:transparent!important;
}
#posView .cart-scroll-body #cartQuickControls > *{
 position:relative!important;inset:auto!important;transform:none!important;
 min-width:0!important;width:100%!important;margin:0!important;
 flex:0 0 auto!important;
}
/* Legacy 'floating' discount/loyalty/voucher forms cannot float over totals. */
#posView .cart-scroll-body .pos-floating-panel{
 position:relative!important;inset:auto!important;transform:none!important;
 width:100%!important;max-height:none!important;overflow:visible!important;
 z-index:auto!important;box-shadow:none!important;
 background:#1d292e!important;border:1px solid #4b6464!important;
 border-radius:13px!important;padding:12px!important;
}
#posView .cart-scroll-body .pos-floating-panel.hidden{display:none!important;}
#posView #cartQuickControls .pos-offer-buttons{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
#posView #cartQuickControls .pos-offer-buttons button{min-width:0!important;min-height:43px!important;white-space:normal!important;color:#eff7f3!important;}
#posView #cartQuickControls #posDiscountReasonBox{
 background:#202b31!important;border:1px solid #52676a!important;
 border-radius:13px!important;padding:12px!important;
}
#posView #cartQuickControls #posDiscountReason{width:100%!important;min-height:72px!important;resize:vertical!important;background:#f9faf8!important;color:#1b2925!important;}
#posView #cartQuickControls #posDiscountReasonFeedback{color:#ddeddf!important;}
#posView #cartQuickControls #posPaymentQuick{
 display:block!important;position:relative!important;inset:auto!important;
 margin:0!important;min-height:0!important;padding:13px 11px 10px!important;
 background:#202c31!important;border:1px solid #557069!important;border-radius:13px!important;
}
#posView #cartQuickControls #posPaymentQuick legend{color:#c6edda!important;white-space:normal!important;line-height:1.4!important;}
#posView #cartQuickControls #posPaymentQuick .pos-payment-buttons {
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;
}
#posView #cartQuickControls #posPaymentQuick .pos-payment-buttons button {
 display:flex!important;align-items:center!important;justify-content:center!important;
 min-height:46px!important;min-width:0!important;padding:7px 3px!important;
 line-height:1.18!important;font-size:12px!important;white-space:normal!important;
}
#posView #cartQuickControls #posPaymentQuick small{display:block!important;margin:8px 0 0!important;min-height:0!important;line-height:1.45!important;color:#d6e5de!important;}
#posView #cartQuickControls #rc6708TenderPanel{position:relative!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:0!important;}
#posView #cartQuickControls #rc6708NetworkGrid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;}
#posView #cartQuickControls #rc6708NetworkGrid button{min-width:0!important;min-height:42px!important;padding:7px 3px!important;}
#posView #cartQuickControls .cart-money-breakdown {
 display:grid!important;gap:7px!important;background:#1c292e!important;
 border:1px solid #4a6264!important;border-radius:13px!important;
 padding:11px 12px!important;margin:5px 0 0!important;
 min-height:0!important;
}
#posView #cartQuickControls .cart-money-breakdown>div {
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 gap:8px!important;margin:0!important;padding:3px 0!important;min-width:0!important;
}
#posView #cartQuickControls .cart-money-breakdown span {color:#d9e9e2!important;font-size:12px!important;line-height:1.3!important;}
#posView #cartQuickControls .cart-money-breakdown strong {color:#f3fff7!important;font-size:13px!important;white-space:nowrap!important;font-variant-numeric:tabular-nums;}
#posView .cart-scroll-body>#rc6708AmountWords{
 display:block!important;margin:8px 0!important;padding:7px 5px!important;
 color:#d7e9df!important;font-size:11px!important;line-height:1.35!important;
}
/* Footer is a separate normal-flow flex child: no sticky nested button or fixed overlay. */
#posView .cart-panel > #cartCheckoutFooter{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 flex:0 0 auto!important;position:relative!important;inset:auto!important;
 z-index:2!important;max-height:none!important;height:auto!important;
 min-height:0!important;overflow:visible!important;gap:6px!important;
 margin:0!important;padding:11px 0 6px!important;
 border-top:1px solid #5d8c78!important;background:#141c20!important;
 box-shadow:0 -8px 15px rgba(0,0,0,.32)!important;
}
#posView #cartCheckoutFooter>.payable{
 display:flex!important;justify-content:space-between!important;align-items:center!important;
 min-height:52px!important;padding:9px 12px!important;margin:0!important;
 background:#14382b!important;border:1px solid #4d9474!important;border-radius:12px!important;
}
#posView #cartCheckoutFooter #cartPayable{font-size:clamp(21px,2.5vw,28px)!important;line-height:1.14!important;}
#posView #cartCheckoutFooter #scuzo6700DeliveryModes{position:static!important;margin:1px 0 0!important;}
#posView #cartCheckoutFooter .scuzo6700-delivery-heading{line-height:1.2!important;font-size:10px!important;}
#posView #cartCheckoutFooter .scuzo6700-delivery-modes{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;margin:5px 0 0!important;}
#posView #cartCheckoutFooter .scuzo6700-delivery-modes button{min-width:0!important;min-height:42px!important;padding:5px 2px!important;}
#posView #cartCheckoutFooter .scuzo6700-delivery-note{display:block!important;margin:4px 1px 0!important;font-size:9px!important;line-height:1.25!important;color:#c6d8d0!important;}
#posView #cartCheckoutFooter #checkoutBtn{
 display:block!important;position:static!important;inset:auto!important;z-index:auto!important;
 flex:0 0 auto!important;min-height:48px!important;width:100%!important;
 margin:3px 0 0!important;padding:11px 12px!important;
}
#posView #cartCheckoutFooter #licenseNote{font-size:9px!important;line-height:1.25!important;color:#cedbd5!important;}
/* Desktop: one scroll owner, cart no longer reserves a blank 32% height. */
@media screen and (min-width:901px){
 #posView.active .cart-panel {display:flex!important;flex-direction:column!important;
   height:100%!important;max-height:100%!important;min-height:0!important;overflow:hidden!important;
   padding:11px 14px 9px!important;}
 #posView.active .cart-panel>.cart-scroll-body{
   display:block!important;flex:1 1 0!important;min-height:0!important;max-height:none!important;
   height:auto!important;overflow-y:auto!important;overflow-x:hidden!important;
   overscroll-behavior-y:contain!important;scroll-behavior:auto!important;
   scrollbar-gutter:stable!important;padding:2px 5px 12px 0!important;
 }
}
/* Tablet / mobile: one natural document scroll, not a nested desktop viewport. */
@media screen and (max-width:900px){
 #posView .cart-panel{height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;}
 #posView .cart-panel>.cart-scroll-body{display:block!important;overflow:visible!important;flex:0 0 auto!important;height:auto!important;min-height:0!important;max-height:none!important;padding-bottom:14px!important;}
 #posView .cart-panel>#cartCheckoutFooter{position:relative!important;bottom:auto!important;}
 #posView #cartQuickControls #posPaymentQuick .pos-payment-buttons{gap:5px!important;}
 #posView #cartQuickControls #posPaymentQuick .pos-payment-buttons button{font-size:11px!important;}
}
@media screen and (max-width:480px){
 #posView #cartQuickControls #rc6708NetworkGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
/* Browser / mobile bug: legacy .cart-panel input {width:100%} expands tender checkboxes
   to full card width and compresses confirmation text into a thin strip. */
#posView #rc6708TenderPanel .rc6708-confirm {
 display:flex!important;flex-direction:row!important;align-items:flex-start!important;
 gap:10px!important;min-width:0!important;width:100%!important;line-height:1.4!important;
 white-space:normal!important;overflow-wrap:normal!important;
}
#posView #rc6708TenderPanel .rc6708-confirm input[type="checkbox"] {
 appearance:auto!important;-webkit-appearance:checkbox!important;
 box-sizing:border-box!important;display:inline-block!important;flex:0 0 20px!important;
 width:20px!important;min-width:20px!important;max-width:20px!important;
 height:20px!important;min-height:20px!important;max-height:20px!important;
 padding:0!important;margin:2px 0 0!important;accent-color:#63d39e!important;
}
