.modal.checkout-reference-screen{--checkout-gap:clamp(8px,.83vw,16px);position:relative;display:grid!important;grid-template-columns:6.25% minmax(0,1fr);width:100vw!important;height:100dvh!important;max-height:none!important;margin:0!important;border-radius:0!important;background:var(--cream);color:var(--ink);font-family:Calibri,"Segoe UI",Arial,sans-serif!important;overflow:hidden}
.checkout-reference-screen>.modal-head,.checkout-reference-screen>.modal-foot{display:none!important}
.checkout-reference-screen>.modal-body{grid-column:2;grid-row:1;min-height:0;overflow:hidden!important;padding:0!important}
.checkout-reference-screen .checkout-navigation{grid-column:1;grid-row:1;min-height:0;background:var(--paper);border-right:1px solid var(--line)}
.checkout-navigation .cashier-rail{position:static!important;width:100%!important;height:100%!important;min-width:0!important;border:0!important}
.checkout-reference-screen #payment-form{display:grid!important;grid-template-columns:33.333% 40% 26.667%;grid-template-rows:minmax(0,1fr);height:100%!important;min-height:0;padding:0!important;gap:0!important}
.checkout-reference-screen .checkout-ticket{display:flex!important;border:0;border-radius:0;overflow:hidden;background:var(--paper);font-size:clamp(14px,1.3vw,25px)}
.checkout-reference-screen .checkout-ticket>header{padding:clamp(10px,.83vw,16px);border:0}
.checkout-ticket-identity{display:flex;gap:10px;align-items:start}.checkout-ticket-identity>span{font-size:1.4em}.checkout-ticket-identity>div{flex:1;min-width:0}.checkout-ticket-identity strong{display:block;font-size:1em}.checkout-ticket-identity small{display:block;color:var(--muted);font-size:.6em}.checkout-ticket-identity button{border:0;border-radius:50%;width:clamp(40px,3.9vw,75px);height:clamp(40px,3.9vw,75px);background:var(--mint);color:var(--green);font-size:1.15em}
.checkout-ticket-tags{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0;color:var(--green);font-weight:700}.checkout-ticket-tags>span{background:var(--cream);padding:1px 5px}.checkout-ticket-memo{padding:clamp(10px,.83vw,16px);margin-top:10px;background:var(--cream);color:var(--muted)}
.checkout-reference-screen .checkout-lines{flex:1;min-height:0;overflow:auto;padding:0 clamp(10px,.83vw,16px)}
.checkout-reference-screen .checkout-lines article{display:grid;grid-template-columns:16px minmax(0,1fr) auto minmax(76px,25%);gap:8px;align-items:start;padding:clamp(12px,1.3vw,25px) 0;border-bottom:1px solid var(--line)}
.checkout-reference-screen .checkout-lines article>i{font-style:normal;color:var(--green-2)}.checkout-reference-screen .checkout-lines article>span{min-width:0}.checkout-reference-screen .checkout-lines article>span>strong{font-size:.95em}.checkout-reference-screen .checkout-lines article small{display:block;font-size:.85em;color:var(--muted);margin-top:7px}.checkout-reference-screen .checkout-lines article>b{font-size:.95em;background:var(--cream);border-radius:4px;padding:3px 12px}.checkout-reference-screen .checkout-lines article>strong{color:var(--green-2);text-align:right;font-size:.95em;white-space:nowrap}.checkout-reference-screen .checkout-lines em{display:inline-block;font-style:normal;font-size:.65em;background:var(--mint);color:var(--green);padding:3px 5px;margin:3px 4px 0 0}.checkout-combo-child{position:relative;padding:10px 40px 10px 25px;background:var(--cream);font-size:.8em}.checkout-combo-child small{display:block}.checkout-combo-child b{position:absolute;right:8px;top:8px}
.checkout-ticket-status{display:flex;justify-content:space-around;gap:4px;background:var(--cream);font-size:clamp(8px,.65vw,12px);color:var(--muted);padding:4px 0}.checkout-reference-screen .checkout-ticket>footer{padding:clamp(12px,1.3vw,25px) clamp(10px,.83vw,16px);border-top:0;border-bottom:1px solid var(--line);font-size:clamp(18px,1.8vw,35px)}.checkout-reference-screen .checkout-ticket>footer strong{color:var(--green-2);font-size:1em}
.checkout-ticket-toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) 34%;gap:5px;padding:clamp(8px,.83vw,16px)}.checkout-ticket-toolbar button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:0;background:transparent;color:var(--ink);font-size:clamp(23px,2.1vw,40px);min-height:clamp(58px,4.3vw,84px);padding:4px}.checkout-ticket-toolbar small{font-size:clamp(10px,.8vw,16px)}.checkout-ticket-toolbar button:last-child{background:var(--green-2);color:#fff;border-radius:8px;font-weight:700;font-size:clamp(18px,1.5vw,29px)}
.checkout-reference-screen .checkout-controls{display:flex!important;flex-direction:column;gap:var(--checkout-gap);padding:var(--checkout-gap)!important;min-height:0;background:var(--cream);border-radius:0;overflow:auto}
.checkout-primary-board{position:relative;display:grid;grid-template-columns:59% minmax(0,1fr);grid-template-rows:minmax(0,1fr) 33%;gap:8px;flex:1;min-height:460px;background:var(--paper);border-radius:10px;padding:clamp(8px,.83vw,16px);box-shadow:0 0 0 1px var(--line)}
.checkout-round-number{position:absolute;top:0;left:32%;transform:translateY(-25%);display:grid;place-items:center;border-radius:50%;width:clamp(42px,4.15vw,80px);height:clamp(42px,4.15vw,80px);background:var(--green-2);color:#fff;font-size:clamp(18px,1.5vw,28px);z-index:1}
.checkout-reference-screen .checkout-reference-bill{grid-column:1;grid-row:1;align-content:start;display:block;margin:0;padding:8px;background:var(--cream);border:0;border-radius:0;min-height:0;overflow:auto;font-size:clamp(13px,1.05vw,20px)}
.checkout-reference-bill .checkout-bill-row{display:flex;justify-content:space-between;align-items:start;gap:8px;padding:5px 0;color:var(--ink);background:transparent;font-size:1em;font-weight:700}.checkout-reference-bill .checkout-bill-row strong{white-space:nowrap}.checkout-reference-bill .checkout-bill-row.subtotal,.checkout-reference-bill .checkout-bill-row.total{background:var(--mint);color:var(--green-2);font-size:1.2em;padding:4px 6px}.checkout-reference-bill .checkout-bill-row.discount strong{color:var(--red)}.checkout-reference-bill .checkout-bill-detail{display:flex;justify-content:space-between;gap:8px;padding:4px 10px;color:var(--muted);font-size:.85em}
.checkout-reference-tools{grid-column:2;grid-row:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:8px;min-height:0}.checkout-reference-screen .checkout-member-card{grid-column:1/-1;margin:0;border:0;border-radius:0;background:var(--cream);grid-template-rows:1fr;padding:10px;box-shadow:none;text-align:center;font-size:clamp(13px,1.1vw,21px)}.checkout-reference-screen .checkout-member-card>span{grid-row:1}.checkout-reference-screen .checkout-member-card>small{display:none}.checkout-reference-screen .checkout-member-card>strong{align-self:center;font-weight:400}
.checkout-reference-discounts{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:8px;min-height:0}.checkout-action-spacer{background:var(--cream);border-radius:9px}
.checkout-reference-screen :is(.checkout-reference-tools,.checkout-reference-discounts)>button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:clamp(6px,.8vw,16px);min-width:0;min-height:0;padding:8px 4px;border:1px solid var(--green-2);border-radius:9px;background:var(--green-2);color:#fff;box-shadow:none;cursor:pointer}.checkout-reference-screen :is(.checkout-reference-tools,.checkout-reference-discounts)>button>span{font-size:clamp(24px,2vw,38px);line-height:1}.checkout-reference-screen :is(.checkout-reference-tools,.checkout-reference-discounts)>button>strong{font-size:clamp(12px,1.05vw,20px);line-height:1.15;text-align:center}.checkout-reference-screen :is(.checkout-reference-tools,.checkout-reference-discounts)>button.checkout-action-info{background:var(--gold);border-color:var(--gold)}.checkout-reference-screen :is(.checkout-reference-tools,.checkout-reference-discounts)>button.checkout-action-danger{background:var(--green);border-color:var(--green)}.checkout-reference-screen :is(.checkout-reference-tools,.checkout-reference-discounts)>button.checkout-action-gold{background:var(--green);border-color:var(--green)}.checkout-reference-screen button:disabled{opacity:.4;cursor:not-allowed}
.checkout-reference-screen .checkout-method-tiles{display:grid;flex:none;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(54px,9.3vh);gap:8px;margin:0}.checkout-reference-screen .checkout-method-tiles .method{display:flex;flex-direction:row;gap:8px;min-height:0;padding:8px 4px;border:1px solid var(--line);background:var(--paper);color:var(--ink);font-size:clamp(12px,1vw,19px)!important;line-height:1.2}.checkout-reference-screen .checkout-method-tiles .method.active{border-color:var(--green-2);background:var(--mint)}.checkout-reference-screen .checkout-method-icon{font-size:clamp(24px,2.2vw,42px)}.checkout-method-placeholder{border-radius:8px;border:1px solid var(--line);background:var(--paper)}
.checkout-reference-screen .checkout-payment-side{display:grid;grid-template-columns:1fr;grid-template-rows:minmax(200px,1.35fr) minmax(260px,1fr) auto;grid-column:3;gap:var(--checkout-gap);padding:var(--checkout-gap) var(--checkout-gap) var(--checkout-gap) 0;background:var(--cream);border:0;overflow:hidden}
.checkout-reference-screen .checkout-due{position:relative;min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:clamp(10px,.83vw,16px);padding-bottom:clamp(70px,8.5vh,105px);border:1px solid var(--line);border-radius:10px;background:var(--mint);color:var(--green-2)}.checkout-reference-screen .checkout-due>span{font-size:clamp(22px,2.1vw,40px)}.checkout-reference-screen .checkout-due>strong{font-size:clamp(25px,2.2vw,43px)}.checkout-reference-screen .checkout-due #confirm-payment{position:absolute;bottom:clamp(10px,.83vw,16px);left:clamp(10px,.83vw,16px);right:clamp(10px,.83vw,16px);width:auto;min-height:clamp(54px,7vh,84px);margin:0;background:var(--green-2);color:white;font-size:clamp(17px,1.45vw,28px)!important;border:0;box-shadow:none}.checkout-reference-screen .checkout-received-amount{position:absolute;width:1px;max-height:1px;overflow:hidden;opacity:0;pointer-events:none}
.checkout-reference-screen .checkout-keypad{min-height:0;height:100%;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:8px}.checkout-reference-screen .checkout-keypad>button{min-height:0;border:1px solid var(--line);border-radius:9px;background:var(--paper);font-size:clamp(20px,1.8vw,35px)!important;color:var(--ink);box-shadow:none}.checkout-reference-screen .checkout-keypad [data-checkout-key=pay]{grid-column:4;grid-row:3/span 2;background:var(--green-2);color:#fff}.checkout-reference-dock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.checkout-reference-dock button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:5px;border:1px solid var(--line);border-radius:8px;color:var(--green);background:var(--paper);font-size:clamp(10px,.8vw,15px);min-height:clamp(48px,6.8vh,82px)}.checkout-reference-dock button>span{font-size:clamp(25px,2vw,38px)}.checkout-reference-dock button:last-child{background:var(--green-2);color:#fff}
.checkout-reference-backdrop{position:fixed;inset:0;z-index:125;background:rgba(15,32,46,.57);display:flex;justify-content:center;align-items:center;padding:16px}
.checkout-reference-modal{display:grid;grid-template-columns:1fr 1fr;width:min(1200px,62.5vw);height:min(750px,62.5vh);max-height:calc(100dvh - 32px);border-radius:10px;overflow:hidden;background:var(--paper);color:var(--ink);font:clamp(16px,1.4vw,27px) Calibri,"Segoe UI",Arial,sans-serif;box-shadow:var(--shadow)}
.checkout-reference-modal.checkout-adjust-fees{grid-template-columns:40% 60%;width:min(1000px,52.1vw);height:min(840px,70vh)}.checkout-reference-modal.checkout-adjust-whole{grid-template-columns:1fr;width:min(600px,60vw);height:min(800px,80vh)}
.checkout-adjust-left{padding:clamp(15px,1.25vw,24px);border-right:1px solid var(--line);overflow:auto;min-width:0}.checkout-adjust-left>header{display:flex;justify-content:space-between;align-items:center;gap:10px}.checkout-adjust-left h2,.checkout-adjust-right h2{font-size:1em;margin:0 0 24px;font-weight:700}.checkout-adjust-left>header h2{margin:0}.checkout-adjust-left header label{display:flex;align-items:center;gap:4px;white-space:nowrap}.checkout-reference-modal input[type=checkbox]{appearance:none;width:clamp(19px,1.25vw,24px);height:clamp(19px,1.25vw,24px);min-height:0;border-radius:50%;border:1px solid var(--muted);background:#fff;flex-shrink:0;margin:0;cursor:pointer}.checkout-reference-modal input[type=checkbox]:checked{border:6px solid var(--green-2)}.checkout-reference-modal input[type=checkbox]:disabled{opacity:.35;cursor:not-allowed}
.checkout-adjust-items{margin-top:24px}.checkout-adjust-items>label{display:flex;align-items:start;gap:8px;padding:0 0 10px;margin-bottom:14px;border-bottom:1px solid var(--line)}.checkout-adjust-items>label>span{flex:1;min-width:0}.checkout-adjust-items strong{display:block;font-size:.95em}.checkout-adjust-items small{display:block;color:var(--muted);margin-top:10px;font-size:.82em}.checkout-adjust-items b{padding:2px 12px;border-radius:4px;background:var(--cream);font-size:.9em}
.checkout-adjust-right{padding:clamp(15px,1.25vw,24px);display:flex;flex-direction:column;gap:clamp(12px,1.25vw,24px);min-width:0;min-height:0;overflow:auto}.checkout-adjust-right>header{display:flex;justify-content:space-between;align-items:start;gap:10px}.checkout-adjust-right>header h2{margin:0}.checkout-adjust-right>header button{border:0;background:transparent;color:var(--ink);font-size:1.5em;line-height:1;padding:0}.checkout-adjust-bottom{margin-top:auto;display:grid;gap:10px}.checkout-adjust-confirm{width:100%;min-height:clamp(54px,7vh,84px);border:0;border-radius:9px;background:var(--green-2);color:#fff;font:bold 1.15em Calibri,"Segoe UI",Arial,sans-serif;margin-top:14px}.checkout-adjust-bottom [data-adjust-error]{margin:0;font-size:.75em;color:var(--red)}
.checkout-adjust-number{display:flex;align-items:center;gap:4px;min-height:clamp(45px,5.7vh,68px);padding:8px 14px;border:2px solid var(--green-2);border-radius:10px}.checkout-adjust-number>span{white-space:nowrap}.checkout-adjust-number input{flex:1;width:0;min-width:0;min-height:0!important;padding:0;border:0!important;border-radius:0;background:transparent;box-shadow:none!important;outline:none;text-align:right;font:inherit!important;color:var(--ink)}.checkout-adjust-number input::placeholder{color:var(--muted)}.checkout-adjust-units{display:flex;gap:4px}.checkout-adjust-units button{padding:5px 8px;border:1px solid var(--line);background:var(--paper);color:var(--muted);font:inherit}.checkout-adjust-units button.active{background:var(--mint);color:var(--green-2)}
.checkout-adjust-protection{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.9em}.checkout-adjust-protection>input{position:absolute;opacity:0;pointer-events:none}.checkout-adjust-protection>i{display:block;flex-shrink:0;width:clamp(48px,4.2vw,80px);height:clamp(25px,2vw,39px);background:var(--line);border-radius:30px;position:relative}.checkout-adjust-protection>i::before{content:"";position:absolute;left:3px;top:3px;bottom:3px;aspect-ratio:1;border-radius:50%;background:white}.checkout-protection-note{margin:-10px 0 0;font-size:.65em;color:var(--muted)}
.checkout-adjust-name,.checkout-adjust-reason{display:grid;gap:6px;font-size:.8em}.checkout-reference-modal :is(.checkout-adjust-name input,.checkout-adjust-reason select){font:inherit;padding:10px;border:1px solid var(--line);border-radius:7px;min-width:0}
.checkout-adjust-presets{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.checkout-adjust-keypad{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.checkout-adjust-presets button,.checkout-adjust-keypad button{min-height:clamp(40px,5vh,60px);border:1px solid var(--line);border-radius:9px;background:var(--cream);color:var(--ink);font:inherit;padding:4px}.checkout-adjust-presets button{font-size:.8em}.checkout-adjust-keypad button{min-height:clamp(54px,7vh,84px)}
.checkout-adjust-total{display:flex;justify-content:space-between;align-items:center;gap:10px}.checkout-adjust-total strong{color:var(--green-2)}.checkout-adjust-tabs{display:grid;grid-template-columns:1fr 1fr;border:2px solid var(--green-2);border-radius:50px;overflow:hidden;min-height:clamp(48px,5.7vh,68px)}.checkout-adjust-tabs button{border:0;background:var(--paper);color:var(--green-2);border-radius:50px;font:bold .85em Calibri,"Segoe UI",Arial,sans-serif;padding:8px}.checkout-adjust-tabs button.active{background:var(--green-2);color:#fff}.checkout-adjust-right h3{font-size:1em;margin:0 0 18px}.checkout-adjust-right [data-fee-presets] h3:not(:first-child){margin-top:28px}.checkout-fee-choice{display:flex;align-items:center;gap:16px;margin-bottom:12px}.checkout-fee-choice input{width:clamp(24px,1.9vw,36px)!important;height:clamp(24px,1.9vw,36px)!important}.checkout-adjust-left [data-fee-applied]>h2:not(:first-child){margin-top:28px}.checkout-adjust-left [data-fee-applied]>p{margin:0}.checkout-adjust-left article{display:flex;justify-content:space-between;gap:8px;padding:0 0 10px;margin:0 0 15px;border-bottom:1px solid var(--line)}.checkout-adjust-left article small{display:block;margin-top:5px}.checkout-adjust-left article button{align-self:center;flex-shrink:0;border:0;border-radius:50%;background:var(--red);color:#fff;font-size:.8em;width:24px;height:24px;padding:0}.checkout-adjust-left [data-fee-applied] p{font-size:.95em}.checkout-reference-modal [hidden]{display:none!important}
@media(max-width:1100px){.checkout-primary-board{min-height:400px}.checkout-reference-modal{width:78vw;height:75vh}.checkout-reference-modal.checkout-adjust-fees{width:72vw;height:82vh}.checkout-reference-screen #payment-form{grid-template-columns:32% 41% 27%}.checkout-reference-screen .checkout-payment-side{grid-template-rows:minmax(180px,1.15fr) minmax(235px,1fr) auto}}
@media(max-width:700px){.modal.checkout-reference-screen{grid-template-columns:58px minmax(0,1fr)}.checkout-reference-screen>.modal-body{overflow:auto!important}.checkout-reference-screen #payment-form{display:flex!important;flex-direction:column;height:auto!important;min-height:100%}.checkout-reference-screen .checkout-ticket{min-height:320px}.checkout-reference-screen .checkout-lines{max-height:240px}.checkout-primary-board{min-height:540px}.checkout-reference-screen .checkout-controls{overflow:visible}.checkout-reference-screen .checkout-payment-side{padding:8px;min-height:630px;overflow:visible}.checkout-reference-screen .checkout-method-tiles{grid-auto-rows:68px}.checkout-reference-modal,.checkout-reference-modal.checkout-adjust-fees{width:calc(100vw - 24px);height:calc(100dvh - 32px);max-height:none;font-size:17px}.checkout-reference-modal.checkout-adjust-partial{grid-template-columns:38% 62%}.checkout-adjust-left,.checkout-adjust-right{padding:12px}.checkout-adjust-left>header{align-items:start;flex-direction:column}.checkout-adjust-keypad{gap:4px}.checkout-adjust-keypad button{min-height:48px}.checkout-adjust-items small{font-size:.7em}.checkout-adjust-confirm{min-height:50px}.checkout-reference-backdrop{padding:12px}}

/* Checkout owns its full-screen rail and ticket; general mobile dialogs and
   register navigation must not constrain these panes or reorder the rail. */
.modal-backdrop:has(.checkout-reference-screen){padding:0!important;overflow:hidden!important}
html:has(.checkout-reference-screen),body:has(.checkout-reference-screen){overflow:hidden!important}
.modal.checkout-reference-screen{grid-template-columns:clamp(70px,6.25vw,96px) minmax(0,1fr)}
.modal.checkout-reference-screen{max-width:none!important;overflow:hidden!important}
.checkout-reference-screen .checkout-ticket{max-height:none}
.checkout-navigation .cashier-rail{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;gap:0;overflow:hidden}
.checkout-navigation .cashier-rail-brand{width:100%;min-width:0;flex:none}
.checkout-navigation .cashier-rail nav{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;flex:1;min-height:0;min-width:0;width:100%!important;padding:0!important;order:0!important;overflow-y:auto;overflow-x:hidden}
.checkout-navigation .cashier-rail nav a,.checkout-navigation .cashier-rail nav button{flex:none;width:100%!important;min-width:0;min-height:52px;padding:4px 2px}
.checkout-navigation .cashier-rail nav a span,.checkout-navigation .cashier-rail nav button span{max-width:100%;font-size:9px!important;white-space:normal;overflow-wrap:break-word;text-align:center}
.checkout-navigation .cashier-rail-user{flex:none;width:100%;min-width:0;min-height:62px;max-height:76px;order:0!important}
.checkout-reference-screen .checkout-reference-tools>button>strong{overflow-wrap:normal}
.checkout-reference-screen .checkout-payment-side{overflow-y:auto;overflow-x:hidden}
.checkout-reference-screen .checkout-reference-dock{min-height:64px;grid-auto-rows:minmax(64px,auto)}
.checkout-reference-screen .checkout-reference-dock button{min-height:64px;line-height:1.15}
@media(min-width:701px) and (max-width:900px){
  .checkout-reference-screen>.modal-body{overflow-y:auto!important}
  .checkout-reference-screen #payment-form{height:auto!important;min-height:100%;grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);grid-template-rows:auto minmax(700px,1fr)}
  .checkout-reference-screen .checkout-ticket{grid-column:1/-1;min-height:260px;max-height:320px}
  .checkout-reference-screen .checkout-controls{grid-column:1;grid-row:2;overflow:visible}
  .checkout-reference-screen .checkout-payment-side{grid-column:2;grid-row:2;min-height:700px}
}
/* Keep reference dialog fields clear of legacy compact form styles. */
#modal-root .checkout-reference-modal label{font:inherit!important;color:var(--ink);font-weight:400!important}
#modal-root .checkout-reference-modal .checkout-adjust-items>label,#modal-root .checkout-reference-modal .checkout-adjust-left header label,#modal-root .checkout-reference-modal .checkout-adjust-protection,#modal-root .checkout-reference-modal .checkout-fee-choice{display:flex!important;flex-direction:row!important}
#modal-root .checkout-reference-modal .checkout-adjust-name,#modal-root .checkout-reference-modal .checkout-adjust-reason{display:grid!important;font-size:.8em!important}
#modal-root .checkout-reference-modal .checkout-adjust-items>label>span>strong{font-size:.95em!important}
#modal-root .checkout-reference-modal .checkout-adjust-items>label>span>small{font-size:.82em!important}
#modal-root .checkout-reference-modal .checkout-adjust-items>label>b{font-size:.9em!important}
#modal-root .checkout-reference-modal .checkout-fee-choice>span{font-size:1em!important}
#modal-root .checkout-reference-modal .checkout-adjust-protection{justify-content:space-between;font-size:.9em!important}
#modal-root .checkout-reference-modal .checkout-adjust-protection>input{display:none!important}
.checkout-reference-screen .checkout-reference-tools>.checkout-member-card{display:grid;background:var(--cream);border:0;color:var(--ink);grid-template-columns:auto 1fr;gap:10px}
.checkout-reference-screen .checkout-reference-tools>.checkout-member-card>strong{font-weight:400}
.checkout-reference-screen .checkout-reference-tools>.checkout-member-card>span{background:var(--mint);color:var(--green-2)}
.checkout-reference-screen .control-icon{width:1em;height:1em}
.checkout-reference-screen :is(.checkout-reference-tools,.checkout-reference-discounts)>button>span,
.checkout-ticket-toolbar button>span,.checkout-reference-dock button>span{display:grid;place-items:center;line-height:1;flex-shrink:0}
.checkout-ticket-identity>span{display:grid;place-items:center;flex:0 0 auto;width:clamp(30px,3.2vw,54px);height:clamp(30px,3.2vw,54px)}
.checkout-ticket-identity>span .control-icon{width:100%;height:100%}
.checkout-ticket-identity [data-checkout-member]{display:grid;place-items:center;padding:0}
.checkout-ticket-identity [data-checkout-member] .control-icon{width:60%;height:60%}
.checkout-ticket-tags>span{display:inline-flex;align-items:center;gap:5px;line-height:1.25}
.checkout-ticket-memo{display:flex;align-items:center;gap:8px}
.checkout-ticket-memo .control-icon,.checkout-ticket-tags .control-icon{flex-shrink:0}
.checkout-reference-screen .checkout-method-icon{display:grid;place-items:center;flex:0 0 clamp(30px,2.8vw,48px);width:clamp(30px,2.8vw,48px);height:clamp(30px,2.8vw,48px);border-radius:50%;background:var(--cream);color:var(--green);line-height:1}
.checkout-reference-screen .checkout-method-icon .control-icon{width:82%;height:82%}
.checkout-navigation .cashier-rail nav{display:grid!important;grid-auto-rows:minmax(42px,1fr);align-content:stretch}
.checkout-navigation .cashier-rail nav a,.checkout-navigation .cashier-rail nav button{min-height:0;font-size:clamp(10px,.9vw,17px)}
/* Match the supplied landscape dialog bounds and inline Name row. */
#modal-root .checkout-reference-modal.checkout-adjust-whole{width:min(600px,31.25vw);height:min(750px,62.5vh);line-height:1.2}
#modal-root .checkout-reference-modal .checkout-adjust-name{display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between;gap:10px;min-height:5.667vh;padding:8px 14px;border:1px solid var(--ink);border-radius:10px;font-size:1em!important}
#modal-root .checkout-reference-modal .checkout-adjust-name input{flex:1;width:0;min-width:0;min-height:0!important;border:0!important;padding:0;text-align:right;font:inherit!important;background:transparent;box-shadow:none}
#modal-root .checkout-reference-modal .checkout-adjust-units{background:var(--mint);border-radius:30px;gap:0;overflow:hidden}
#modal-root .checkout-reference-modal .checkout-adjust-units button{width:clamp(48px,5.2vw,100px);border:0;border-radius:30px;background:transparent;font-weight:700}
#modal-root .checkout-reference-modal .checkout-adjust-units button.active{background:var(--green-2);color:white}
@media(min-width:901px){
  .modal.checkout-reference-screen{grid-template-columns:6.25% minmax(0,1fr)}
  .checkout-reference-screen .checkout-controls{padding:var(--checkout-gap) 0 var(--checkout-gap) var(--checkout-gap)!important}
  .checkout-reference-screen #payment-form{grid-template-columns:33.333% 40% 26.667%!important}
  .checkout-reference-screen .checkout-primary-board{min-height:0;grid-template-columns:60% minmax(0,1fr);grid-template-rows:minmax(0,1fr) 33%}
  .checkout-reference-screen .checkout-method-tiles{grid-auto-rows:minmax(48px,9.583vh)}
  .checkout-reference-screen .checkout-payment-side{grid-template-rows:minmax(0,1fr) 37.333vh minmax(64px,7vh);padding:var(--checkout-gap)!important}
  .checkout-reference-screen .checkout-ticket-toolbar button{height:7vh;min-height:0;line-height:1}
  .checkout-reference-screen .checkout-ticket-toolbar small{line-height:1.2}
  .checkout-reference-screen .checkout-ticket>footer{line-height:1}
  .checkout-reference-screen .checkout-ticket-status{height:2vh;min-height:15px;padding:0;align-items:center;font-size:clamp(9px,.833vw,16px);line-height:1}
  #modal-root .checkout-reference-modal.checkout-adjust-partial{width:min(1200px,62.5vw);height:min(750px,62.5vh);line-height:1.2}
  #modal-root .checkout-reference-modal.checkout-adjust-fees{width:min(1000px,52.083vw);height:min(840px,70vh);line-height:1.2}
  #modal-root .checkout-reference-modal .checkout-adjust-left,#modal-root .checkout-reference-modal .checkout-adjust-right{padding:clamp(12px,1.25vw,24px)}
  #modal-root .checkout-reference-modal .checkout-adjust-right{gap:clamp(10px,2vh,24px)}
  #modal-root .checkout-reference-modal .checkout-adjust-number{min-height:5.667vh}
  #modal-root .checkout-reference-modal .checkout-adjust-keypad{gap:clamp(4px,.417vw,8px)}
  #modal-root .checkout-reference-modal .checkout-adjust-keypad button{min-height:0;height:7vh}
  #modal-root .checkout-reference-modal .checkout-adjust-presets button{min-height:0;height:5vh}
  #modal-root .checkout-reference-modal .checkout-adjust-confirm{min-height:0;height:7vh;margin-top:clamp(5px,1.167vh,14px)}
  #modal-root .checkout-reference-modal .checkout-adjust-bottom{gap:clamp(5px,.83vh,10px)}
}
@media(max-width:1100px) and (min-width:701px){#modal-root .checkout-reference-modal{font-size:clamp(14px,1.4vw,27px)}.checkout-protection-note{font-size:.62em}}
@media(max-width:700px){#modal-root .checkout-reference-modal.checkout-adjust-whole{width:calc(100vw - 24px);height:calc(100dvh - 32px)}}
@media(max-width:700px){
  .checkout-reference-screen .checkout-ticket{max-height:420px}
  .checkout-reference-screen .checkout-reference-bill{font-size:12px}
  .checkout-reference-screen .checkout-reference-bill .checkout-bill-row{flex-wrap:wrap}
  .checkout-reference-screen .checkout-primary-board{grid-template-columns:55% minmax(0,1fr);min-height:540px}
  .checkout-reference-screen .checkout-reference-tools>button>strong{font-size:11px}
}

/* Voucher / applied Discount: the supplied 600 × 750 landscape popups,
   scaled with the checkout viewport and retaining the Taro POS palette. */
#modal-root .checkout-reference-modal:is(.checkout-adjust-voucher-list,.checkout-adjust-discount-list){grid-template-columns:1fr;width:min(600px,31.25vw);height:min(750px,62.5vh);border-radius:clamp(5px,.521vw,10px);line-height:1.2}
#modal-root .checkout-reference-modal:is(.checkout-adjust-voucher-list,.checkout-adjust-discount-list) .checkout-adjust-right{padding:clamp(12px,1.25vw,24px);gap:0;overflow:hidden}
#modal-root .checkout-reference-modal:is(.checkout-adjust-voucher-list,.checkout-adjust-discount-list) header{flex:none;height:clamp(38px,5vh,60px)}
#modal-root .checkout-reference-modal:is(.checkout-adjust-voucher-list,.checkout-adjust-discount-list) header h2{font-size:1em;line-height:1.2}
#modal-root .checkout-reference-modal:is(.checkout-adjust-voucher-list,.checkout-adjust-discount-list) header button{width:1em;height:1em;font-size:1.2em;line-height:.8}
.checkout-selection-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}
.checkout-voucher-list{display:flex;flex-direction:column;gap:clamp(12px,2vh,24px)}
#modal-root .checkout-voucher-choice{flex:none;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:clamp(8px,1vh,12px);width:100%;min-height:clamp(66px,8.833vh,106px);padding:clamp(7px,1.167vh,14px) calc(clamp(8px,.833vw,16px) - 1px);border:1px solid var(--line);border-radius:clamp(5px,.469vw,9px);background:var(--paper);color:var(--ink);font:inherit;text-align:left;box-shadow:none}
#modal-root .checkout-voucher-choice.selected{border:clamp(1px,.104vw,2px) solid var(--green-2);background:var(--mint);padding:calc(clamp(7px,1.167vh,14px) - clamp(1px,.104vw,2px) + 1px) calc(clamp(8px,.833vw,16px) - clamp(1px,.104vw,2px))}
#modal-root .checkout-voucher-choice strong{font-size:1em;color:var(--red);font-weight:700}
#modal-root .checkout-voucher-choice span{font-size:.89em;line-height:1.2;overflow-wrap:anywhere}
#modal-root :is(.checkout-adjust-voucher-list,.checkout-adjust-discount-list) .checkout-adjust-bottom{flex:none;margin-top:clamp(12px,2vh,24px);gap:8px}
.checkout-voucher-footer{display:flex;justify-content:space-between;align-items:center;gap:clamp(12px,1.25vw,24px)}
#modal-root .checkout-voucher-footer .checkout-adjust-confirm{width:38.043%;height:clamp(50px,6.667vh,80px);min-height:0;margin:0;border-radius:clamp(6px,.573vw,11px);font-size:1em}
.checkout-voucher-quantity{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;width:38.043%;height:clamp(39px,5.25vh,63px);border:clamp(1px,.104vw,2px) solid var(--muted);border-radius:clamp(5px,.417vw,8px)}
#modal-root .checkout-voucher-quantity button{height:100%;min-width:0;border:0;background:transparent;color:var(--ink);font:inherit;font-size:1.6em;padding:0;line-height:1;box-shadow:none}
.checkout-voucher-quantity output{text-align:center;font-weight:700;font-size:1.2em}
#modal-root .checkout-discount-entry{display:flex;align-items:center;gap:clamp(8px,.833vw,16px);padding:clamp(11px,1.333vh,16px) 0 clamp(11px,1.5vh,18px);border-bottom:1px solid var(--muted)}
.checkout-discount-entry>span{flex:1;min-width:0;overflow-wrap:anywhere}
.checkout-discount-entry>strong{font-weight:400;color:var(--red);white-space:nowrap}
#modal-root .checkout-discount-entry button{position:relative;flex:none;width:clamp(15px,1.25vw,24px);height:clamp(15px,1.25vw,24px);padding:0;border:0;border-radius:50%;background:var(--red);color:#fff;font:inherit;font-size:.8em;line-height:1;box-shadow:none}
.checkout-discount-entry button::before{content:"";position:absolute;inset:-10px}
#modal-root .checkout-clear-discounts{justify-self:start;display:flex;align-items:center;gap:clamp(7px,.625vw,12px);height:clamp(37px,5vh,60px);padding:clamp(8px,.833vw,16px);border:1px solid var(--muted);border-radius:clamp(6px,.521vw,10px);background:var(--paper);color:var(--red);font:inherit;font-size:.93em;box-shadow:none;white-space:nowrap}
.checkout-clear-discounts svg{width:1.1em;height:1.1em}
.checkout-selection-empty{margin:clamp(10px,1.333vh,16px) 0;color:var(--muted);font-size:.85em}
#modal-root :is(.checkout-voucher-quantity button,.checkout-voucher-footer button,.checkout-clear-discounts,.checkout-discount-entry button):disabled{opacity:.4;cursor:not-allowed}
#modal-root :is(.checkout-voucher-choice,.checkout-voucher-quantity button,.checkout-clear-discounts,.checkout-discount-entry button):focus-visible{outline:2px solid var(--green-2);outline-offset:2px}
@media(max-width:700px){#modal-root .checkout-reference-modal:is(.checkout-adjust-voucher-list,.checkout-adjust-discount-list){width:calc(100vw - 24px);height:min(750px,calc(100dvh - 32px))}.checkout-voucher-quantity,#modal-root .checkout-voucher-footer .checkout-adjust-confirm{width:44%}}

/* Never squeeze action rows when reference/member/credit details consume space. */
.checkout-reference-screen{--checkout-tile-min:clamp(68px,7vh,84px);--checkout-board-pad:clamp(8px,.83vw,16px);--checkout-board-top:32px}
.checkout-reference-screen [hidden]{display:none!important}
.checkout-reference-screen .checkout-primary-board{flex:1 0 auto;min-height:calc(6 * var(--checkout-tile-min) + 40px + var(--checkout-board-pad) + var(--checkout-board-top));grid-template-rows:minmax(calc(4 * var(--checkout-tile-min) + 24px),2fr) minmax(calc(2 * var(--checkout-tile-min) + 8px),1fr);padding:var(--checkout-board-top) var(--checkout-board-pad) var(--checkout-board-pad)}
.checkout-reference-screen .checkout-reference-tools{grid-template-rows:repeat(4,minmax(var(--checkout-tile-min),1fr))}
.checkout-reference-screen .checkout-reference-discounts{grid-template-rows:repeat(2,minmax(var(--checkout-tile-min),1fr))}
.checkout-reference-screen :is(.checkout-reference-tools,.checkout-reference-discounts)>button{min-height:var(--checkout-tile-min);gap:6px;padding:8px 6px}
.checkout-reference-screen :is(.checkout-reference-tools,.checkout-reference-discounts)>button>strong{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.25}
.checkout-reference-screen :is(.checkout-reference-tools,.checkout-reference-discounts)>button>span{flex-shrink:0;line-height:1.2}
.checkout-reference-screen .checkout-reference-tools>button>strong{font-size:clamp(12px,.85vw,16px);overflow-wrap:normal}
.checkout-reference-screen .checkout-round-number{top:6px;left:50%;width:32px;height:32px;transform:translateX(-50%);font-size:18px}
.checkout-reference-screen :is(.checkout-detail-panel,.checkout-split-panel,.checkout-info-panel){flex:0 0 auto;min-width:0}
.checkout-reference-screen .checkout-detail-panel{grid-template-columns:minmax(0,1fr)}
.checkout-reference-screen .checkout-detail-panel :is(label,input,select){min-width:0;max-width:100%}
.checkout-reference-screen .checkout-reference-bill :is(.checkout-bill-row,.checkout-bill-detail){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start}
.checkout-reference-screen .checkout-reference-bill :is(.checkout-bill-row,.checkout-bill-detail)>:first-child{min-width:0;overflow-wrap:anywhere}
.checkout-reference-screen .checkout-ticket-toolbar{grid-template-columns:repeat(4,minmax(44px,1fr)) minmax(80px,1.4fr)}
.checkout-reference-screen .checkout-ticket-toolbar button{height:auto;min-height:84px;line-height:1.2}
.checkout-reference-screen .checkout-ticket-toolbar small{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.checkout-reference-screen .checkout-method-tiles{grid-auto-rows:minmax(84px,9.583vh)}
.checkout-reference-screen .checkout-method-tiles .method{flex-wrap:wrap;align-content:center;min-height:84px;overflow-wrap:anywhere}
@media(min-width:1181px) and (max-height:850px){
  .checkout-reference-screen :is(.checkout-reference-tools,.checkout-reference-discounts)>button{gap:4px;padding:4px}
  .checkout-reference-screen :is(.checkout-reference-tools,.checkout-reference-discounts)>button>span{font-size:24px;line-height:1}
  .checkout-reference-screen :is(.checkout-reference-tools,.checkout-reference-discounts)>button>strong{font-size:12px;line-height:1.15}
  .checkout-reference-screen .checkout-method-tiles{grid-auto-rows:minmax(60px,9.583vh)}
  .checkout-reference-screen .checkout-method-tiles .method{min-height:60px}
}
@media(min-width:701px) and (max-width:1366px){
  .checkout-reference-screen .checkout-primary-board{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .checkout-reference-screen :is(.checkout-reference-tools,.checkout-reference-discounts)>button>strong{font-size:13px}
  .checkout-reference-screen :is(.checkout-reference-tools,.checkout-reference-discounts)>button>span{font-size:26px}
  .checkout-reference-screen .checkout-reference-tools>.checkout-member-card>span{font-size:18px}
  .checkout-reference-screen .checkout-ticket-toolbar button{min-height:72px}
}
@media(min-width:701px) and (max-width:1180px){
  .checkout-reference-screen .checkout-primary-board{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto}
  .checkout-reference-screen .checkout-reference-bill{grid-column:1;grid-row:1;min-height:160px;max-height:320px;overflow:auto}
  .checkout-reference-screen .checkout-reference-tools{grid-column:1;grid-row:2}
  .checkout-reference-screen .checkout-reference-discounts{grid-column:1;grid-row:3;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:minmax(var(--checkout-tile-min),auto)}
  .checkout-reference-screen .checkout-action-spacer{display:none}
  .checkout-reference-screen :is(.checkout-reference-tools,.checkout-reference-discounts)>button>strong{font-size:12px;overflow-wrap:normal}
}

/* One continuous Pay action from the third keypad row to the bottom dock. */
.checkout-reference-screen .checkout-payment-side{
  grid-template-rows:minmax(180px,1fr) minmax(288px,calc(37.333vh + 64px + var(--checkout-gap)));
}
.checkout-reference-screen .checkout-payment-pad{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  grid-template-rows:repeat(4,minmax(48px,1fr)) minmax(64px,auto);
  gap:8px;min-width:0;min-height:288px;
}
.checkout-reference-screen .checkout-payment-pad :is(.checkout-keypad,.checkout-reference-dock){display:contents!important}
.checkout-reference-screen .checkout-payment-pad [data-checkout-key="pay"]{grid-column:4;grid-row:3/span 3;font-weight:700}
.checkout-reference-screen .checkout-payment-pad [data-checkout-key="0"]{grid-column:1;grid-row:4}
.checkout-reference-screen .checkout-payment-pad [data-checkout-key="."]{grid-column:2;grid-row:4}
.checkout-reference-screen .checkout-payment-pad [data-checkout-key="00"]{grid-column:3;grid-row:4}
.checkout-reference-screen .checkout-payment-pad [data-checkout-dock="0"]{grid-column:1;grid-row:5}
.checkout-reference-screen .checkout-payment-pad [data-checkout-dock="1"]{grid-column:2;grid-row:5}
.checkout-reference-screen .checkout-payment-pad [data-checkout-dock="2"]{grid-column:3;grid-row:5}
.checkout-reference-screen .checkout-reference-dock button:last-child{background:var(--paper);color:var(--green)}
.checkout-reference-screen .checkout-ticket-toolbar [data-checkout-place]:disabled{
  background:#e5e7eb;color:#6b7280;border:1px solid #d1d5db;opacity:1;cursor:not-allowed;box-shadow:none;
}
@media(max-width:700px){
  .checkout-reference-screen .checkout-primary-board{flex:0 0 auto;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto}
  .checkout-reference-screen .checkout-reference-bill{grid-column:1;grid-row:1;min-height:160px;max-height:320px;overflow:auto}
  .checkout-reference-screen .checkout-reference-tools{grid-column:1;grid-row:2}
  .checkout-reference-screen .checkout-reference-discounts{grid-column:1;grid-row:3;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(var(--checkout-tile-min),auto)}
  .checkout-reference-screen .checkout-action-spacer,.checkout-reference-screen .checkout-method-placeholder{display:none}
  .checkout-reference-screen .checkout-method-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .checkout-reference-screen :is(.checkout-reference-tools,.checkout-reference-discounts)>button>strong{font-size:12px;overflow-wrap:normal}
}
