.duoo-payment-checkout{margin:.75rem 0 1rem;padding:.85rem;max-height:min(72vh,680px);max-height:min(72dvh,680px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch;border:1px solid #dfe5ec;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(22,34,51,.06)}
.duoo-payment-checkout::-webkit-scrollbar{width:8px}.duoo-payment-checkout::-webkit-scrollbar-track{background:#eef2f6;border-radius:999px}.duoo-payment-checkout::-webkit-scrollbar-thumb{background:#9aabba;border:2px solid #eef2f6;border-radius:999px}.duoo-payment-checkout{scrollbar-width:thin;scrollbar-color:#9aabba #eef2f6}
.duoo-payment-toolbar{display:flex;flex-wrap:wrap;gap:.5rem}.duoo-payment-action,.duoo-payment-add,.duoo-use-remaining,.duoo-link-button{border:0;border-radius:10px;padding:.65rem .8rem;font-weight:700;cursor:pointer}
.duoo-payment-action,.duoo-payment-add{background:#eef4ff;color:#174b8b}.duoo-use-remaining,.duoo-link-button{background:transparent;color:#174b8b;padding:.35rem 0}
.duoo-split-box,.duoo-discount-box{margin-top:.8rem;padding:.75rem;border-radius:12px;background:#f7f9fc}.duoo-payment-checkout .hidden{display:none!important}
.duoo-payment-progress{display:flex;justify-content:space-between;gap:.6rem;margin-bottom:.65rem;color:#41546b}.duoo-payment-row{display:grid;grid-template-columns:minmax(130px,1.3fr) minmax(100px,1fr);gap:.55rem;margin:.55rem 0;padding:.7rem;border:1px solid #e0e6ee;border-radius:11px;background:#fff}
.duoo-single-cash{display:flex;flex-direction:column;gap:.3rem;margin-top:.7rem;font-size:.85rem;font-weight:700;color:#41546b}.duoo-single-cash input{border:1px solid #cbd5e1;border-radius:9px;padding:.65rem}
.duoo-payment-row-head{grid-column:1/-1;display:flex;justify-content:space-between}.duoo-payment-row-head button{border:0;background:transparent;color:#b42318;font-size:1.3rem}.duoo-payment-row label,.duoo-discount-box label{display:flex;flex-direction:column;gap:.25rem;font-size:.82rem;font-weight:700;color:#41546b}
.duoo-payment-row input,.duoo-payment-row select,.duoo-discount-box input{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:9px;padding:.62rem;background:#fff;color:#182230}.duoo-cash-received{grid-column:1/-1}.duoo-payment-summary{margin-top:.7rem;padding:.65rem;border-radius:10px;background:#fff5e8;color:#7a3e00;font-weight:800}.duoo-payment-summary.is-valid{background:#eaf8ef;color:#176b36}
.duoo-segmented{display:grid;grid-template-columns:1fr 1fr;gap:.3rem;margin-bottom:.65rem}.duoo-segmented button{border:1px solid #ccd7e4;background:#fff;padding:.55rem;border-radius:9px}.duoo-segmented button.active{background:#174b8b;color:#fff;border-color:#174b8b}.duoo-discount-box{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}.duoo-discount-box .duoo-segmented,.duoo-discount-box .duoo-link-button{grid-column:1/-1}.duoo-optional{font-weight:400}.duoo-select-muted{opacity:.55}
#close-table-modal{box-sizing:border-box;height:100vh;height:100dvh;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));overflow:hidden}
#close-table-modal .modal-content,#admin-delivery-settlement-modal .modal-content{position:relative;box-sizing:border-box;display:flex;flex-direction:column;width:min(92vw,500px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:hidden}
#close-table-modal .modal-content>h2,#close-table-modal .modal-content>p,#admin-delivery-settlement-modal .modal-content>h2,#admin-delivery-settlement-modal .modal-content>p{flex:0 0 auto;padding-right:2.5rem}
#close-table-modal .modal-content>form{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:.35rem;-webkit-overflow-scrolling:touch}
#admin-delivery-settlement-modal .admin-delivery-settlement-content{width:min(94vw,560px);text-align:left}
html.admin-delivery-settlement-open,body.admin-delivery-settlement-open{overflow:hidden;overscroll-behavior:none}
.admin-delivery-settlement-eyebrow{margin-bottom:.25rem;color:#7a8798;font-size:.7rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.admin-delivery-settlement-order{margin:.35rem 0 .2rem;color:#172033;font-size:1rem;font-weight:800}
.admin-delivery-settlement-intended{margin:.15rem 0 1rem;padding:.65rem .8rem;color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;font-size:.86rem;font-weight:700}
.admin-delivery-settlement-help{margin:.8rem 0;color:#5d6878;font-size:.8rem;line-height:1.45}
#admin-delivery-settlement-form{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden}
.admin-delivery-settlement-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable;padding-right:.35rem;touch-action:pan-y;-webkit-overflow-scrolling:touch}
.admin-delivery-settlement-scroll>label{display:block;margin-bottom:.45rem;font-weight:700}
.admin-delivery-settlement-scroll>select{width:100%;min-height:44px;padding:.65rem;border:1px solid #cbd5e1;border-radius:8px;background:#fff}
#admin-delivery-settlement-modal .duoo-payment-checkout{max-height:none;overflow:visible;scrollbar-gutter:auto}
#close-table-modal .modal-close-btn,#close-table-modal .modal-close-button{position:absolute;top:.55rem;right:.65rem;z-index:10;display:grid;place-items:center;width:2.5rem;height:2.5rem;padding:0;border-radius:999px;background:#fff;color:#344054;box-shadow:0 2px 8px rgba(22,34,51,.14);font-size:1.75rem;line-height:1;cursor:pointer}
#close-table-modal .duoo-payment-checkout{max-height:none;overflow:visible;scrollbar-gutter:auto}
#close-table-modal .modal-actions{position:sticky;bottom:0;z-index:5;margin-top:1rem;padding:.75rem 0 max(.15rem,env(safe-area-inset-bottom));background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 18%)}
#admin-delivery-settlement-modal .modal-actions{position:relative;z-index:5;flex:0 0 auto;margin-top:.5rem;padding:.75rem 0 max(.15rem,env(safe-area-inset-bottom));background:#fff}
@media(max-width:560px){.duoo-payment-checkout{padding:.7rem;max-height:64vh;max-height:64dvh}.duoo-payment-row,.duoo-discount-box{grid-template-columns:1fr}.duoo-payment-row-head,.duoo-cash-received,.duoo-discount-box .duoo-segmented,.duoo-discount-box .duoo-link-button{grid-column:1}.duoo-payment-toolbar>*{flex:1 1 100%}}
@media(max-width:560px){#close-table-modal,#admin-delivery-settlement-modal{align-items:flex-start;padding:8px}#close-table-modal .modal-content,#admin-delivery-settlement-modal .modal-content{width:100%;max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);padding:.85rem}#close-table-modal .duoo-payment-checkout{max-height:none}#close-table-modal .modal-content>form,.admin-delivery-settlement-scroll{padding-right:.25rem}}
@media(prefers-reduced-motion:reduce){.duoo-payment-checkout *{scroll-behavior:auto!important;transition:none!important}}

.duoo-payment-summary.discount-error{color:#b42318;background:#fff1f0;border-color:#fda29b}.duoo-discount-limit{font-size:.85rem;line-height:1.4;color:#475569;margin:0 0 .6rem}
