.lk-terminal-keyboard{position:fixed;z-index:10010;bottom:10px;left:50%;transform:translateX(-50%);width:min(980px,calc(100% - 20px));max-height:49dvh;overflow:auto;display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid #ddcfc1;border-radius:20px;background:#fffaf4;color:#39261d;box-shadow:0 -8px 48px #35201430;font-family:inherit;overscroll-behavior:contain}
.lk-terminal-keyboard header{display:flex;align-items:center;gap:12px;margin-bottom:3px}.lk-terminal-keyboard header strong{flex:1;font-size:16px}.lk-terminal-keyboard header button{font-size:14px;flex:none;min-height:40px}
.lk-terminal-key-row{display:flex;gap:6px}.lk-terminal-keyboard button{flex:1;min-width:0;min-height:46px;border:1px solid #ddcfc1;border-radius:10px;background:#f4eee5;color:inherit;font:inherit;font-size:19px;cursor:pointer;touch-action:manipulation;user-select:none}.lk-terminal-keyboard button:active{background:#ebd7c5}.lk-terminal-keyboard button[aria-pressed=true]{background:#edd7c7;border-color:#ad381f}.lk-terminal-keyboard button:focus-visible{outline:3px solid #cc885f;outline-offset:1px}
.lk-terminal-key-row>.lk-terminal-key-space{flex:3}.lk-terminal-key-row>.lk-terminal-key-next{flex:2;background:#ad381f;color:#fff;font-size:15px}.lk-terminal-keyboard-open .login-panel,.lk-terminal-keyboard-open .kiosk-stage{padding-bottom:min(370px,50dvh)!important;overflow:auto}.lk-terminal-keyboard-open .lk-pair{margin-top:16px}
.lk-terminal-keyboard-open #modal-root .modal-overlay{bottom:0;align-items:flex-start;padding:12px 12px calc(var(--lk-terminal-keyboard-height,49dvh) + 20px);overflow:hidden}.lk-terminal-keyboard-open #modal-root .modal{max-height:100%;overflow:auto;margin:0;padding:16px;display:flex;flex-direction:column}.lk-terminal-keyboard-open #modal-root .modal>.modal-header{flex:none;margin-bottom:12px}.lk-terminal-keyboard-open #modal-root .modal>form{min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding-block:8px 90px}.lk-terminal-keyboard-open #modal-root .modal>form .modal-footer{margin-top:12px;padding-top:10px}.lk-terminal-keyboard-open textarea{scroll-margin-bottom:calc(var(--lk-terminal-keyboard-height,49dvh) + 20px)}
 @media(max-width:600px){.lk-terminal-keyboard{padding:8px;gap:5px}.lk-terminal-key-row{gap:3px}.lk-terminal-keyboard button{font-size:16px;min-height:43px}.lk-terminal-key-row>.lk-terminal-key-next{font-size:13px}}

/* Customer entry stays within the modal and uses its own keyboard. */
 .lk-terminal-keyboard.lk-terminal-keyboard-inline{position:static;transform:none;width:100%;max-height:none;overflow:visible;box-sizing:border-box;margin:20px 0 0;border-radius:20px;box-shadow:none;background:#f5eee4;border:1px solid #e7dacb}
 .lk-terminal-keyboard-inline header{display:none}.lk-terminal-keyboard-inline button{min-height:clamp(46px,5vh,72px);font-size:clamp(19px,2.2vh,27px);background:#fffaf4;border-radius:12px;box-shadow:0 3px 0 #e5d8c8}.lk-terminal-keyboard-inline button:active{box-shadow:none;background:#ead8c3}
 body.kiosk-mode #modal-root .modal.lk-checkout-entry-modal{width:min(800px,calc(100vw - 36px));max-width:800px;max-height:calc(100dvh - 36px);padding:clamp(22px,3vw,42px);border-radius:30px;margin:0;overflow:auto;background:#fffaf3;color:#39261d}
 .lk-checkout-entry-modal .modal-header{margin-bottom:22px}.lk-checkout-entry-modal .modal-header h2{font-size:clamp(28px,3vw,38px)}.lk-checkout-entry-modal .modal-header .icon-btn{width:52px;height:52px;border-radius:50%}
 .lk-entry-eyebrow{display:block;font-size:12px;letter-spacing:2px;color:#a8784f}.lk-entry-lead{font-size:clamp(24px,3vw,34px);font-weight:600;margin:10px 0}.lk-entry-copy,.lk-checkout-entry-modal .modal-copy{font-size:18px;line-height:1.55;color:#796354;margin:0 0 24px}
 .lk-checkout-entry-modal label{display:block;font-size:16px;font-weight:600;margin-bottom:10px}.lk-checkout-entry-modal .input{height:76px;font-size:clamp(25px,3.5vw,38px);text-align:center;letter-spacing:2px;border:2px solid #decebc;border-radius:16px;background:#fffdf9;color:#39261d}.lk-checkout-entry-modal .input:focus{outline:none;border-color:#ad381f;box-shadow:0 0 0 4px #ad381f15}
 .lk-entry-help{display:block;font-size:14px;color:#856b56;margin-top:12px;line-height:1.5}.lk-entry-help[data-coupon-error]{color:#a12e21;min-height:20px}.lk-checkout-entry-modal .modal-footer{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px;padding-top:20px}.lk-checkout-entry-modal .modal-footer .btn{flex:1;min-height:64px;min-width:180px;font-size:18px;justify-content:center;border-radius:16px}
 .lk-checkout-cpf .lk-terminal-keyboard{max-width:440px;margin:20px auto 0;padding:12px;gap:10px}.lk-checkout-cpf .lk-terminal-key-row{gap:10px}.lk-checkout-cpf .lk-terminal-keyboard button{font-size:28px;min-height:70px}.lk-checkout-cpf [data-terminal-action=clear]{font-size:17px}
 @media(max-height:800px){body.kiosk-mode #modal-root .modal.lk-checkout-entry-modal{padding:18px;max-height:calc(100dvh - 20px)}.lk-checkout-entry-modal .modal-header{margin-bottom:10px}.lk-checkout-entry-modal .input{height:60px}.lk-entry-copy,.lk-checkout-entry-modal .modal-copy{margin-bottom:12px}.lk-checkout-cpf .lk-terminal-keyboard button{min-height:48px}.lk-checkout-entry-modal .modal-footer{margin-top:12px;padding-top:12px}.lk-checkout-entry-modal .modal-footer .btn{min-height:50px}}
 
/* Cashier CPF: the numeric keypad and all decisions share one responsive dialog. */
#modal-root .modal.lk-pdv-cpf-modal{box-sizing:border-box;width:min(820px,calc(100dvw - 24px));max-width:820px;max-height:calc(100dvh - 24px);margin:0;padding:24px;display:flex;flex-direction:column;overflow:hidden}
.lk-pdv-cpf-modal .modal-header{flex:none;margin-bottom:16px;gap:12px}.lk-pdv-cpf-modal .modal-header h2{font-size:clamp(22px,2.6vw,30px);line-height:1.15}.lk-pdv-cpf-modal .modal-header .icon-btn{flex:none}
.lk-pdv-cpf-modal .lkh-club-simple{min-height:0;overflow:auto;overscroll-behavior:contain;gap:8px}.lk-pdv-cpf-modal .lkh-lead{font-size:14px;line-height:1.4;margin:0 0 8px}
.lk-pdv-cpf-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,240px);gap:20px;align-items:start}.lk-pdv-cpf-controls{display:flex;flex-direction:column;gap:10px;min-width:0}.lk-pdv-cpf-controls>label{font-size:14px}.lk-pdv-cpf-modal .cpf-field{min-width:0}.lk-pdv-cpf-modal .cpf-field input{box-sizing:border-box;width:100%;height:56px;font-size:24px;letter-spacing:.025em;text-align:center}.lk-pdv-cpf-modal .lk-pdv-cpf-controls .btn{min-height:48px;white-space:normal;justify-content:center;font-size:14px;margin:0}.lk-pdv-cpf-modal .lkh-note{font-size:11px;line-height:1.4;margin:0}
.lk-pdv-cpf-modal .lk-terminal-keyboard-inline{width:100%;max-width:100%;margin:0;padding:10px;gap:8px}.lk-pdv-cpf-modal .lk-terminal-keyboard-inline .lk-terminal-key-row{gap:8px}.lk-pdv-cpf-modal .lk-terminal-keyboard-inline button{min-height:48px;font-size:24px}.lk-pdv-cpf-modal .lk-terminal-keyboard-inline [data-terminal-action=clear]{font-size:13px}
.lk-pdv-cpf-modal .modal-footer{flex:none;margin-top:16px;padding-top:12px}.lk-pdv-cpf-modal .modal-footer .btn{min-height:46px;white-space:normal;justify-content:center}
@media(max-height:650px){#modal-root .modal.lk-pdv-cpf-modal{padding:16px}.lk-pdv-cpf-modal .modal-header{margin-bottom:10px}.lk-pdv-cpf-controls{gap:7px}.lk-pdv-cpf-modal .cpf-field input{height:48px}.lk-pdv-cpf-modal .lk-terminal-keyboard-inline{gap:6px;padding:8px}.lk-pdv-cpf-modal .lk-terminal-keyboard-inline .lk-terminal-key-row{gap:6px}.lk-pdv-cpf-modal .lk-terminal-keyboard-inline button{min-height:44px}.lk-pdv-cpf-modal .modal-footer{margin-top:10px;padding-top:10px}}
@media(max-width:520px){.lk-pdv-cpf-grid{grid-template-columns:minmax(0,1fr);gap:12px}.lk-pdv-cpf-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.lk-pdv-cpf-controls>label,.lk-pdv-cpf-controls>.cpf-field,.lk-pdv-cpf-controls>.lkh-note{grid-column:1/-1}.lk-pdv-cpf-modal .lk-pdv-cpf-controls .btn{padding:8px;font-size:13px}.lk-pdv-cpf-modal [data-terminal-keyboard-host]{max-width:300px;width:100%;justify-self:center}.lk-pdv-cpf-modal .modal-footer .btn{width:100%}}

/* Keep the coupon and Apply button above the floating keyboard on cashier screens. */
body.lk-terminal-coupon-open .commerce .order-panel{height:calc(100dvh - 78px - var(--lk-terminal-keyboard-height,49dvh) - 24px)!important;max-height:calc(100dvh - var(--lk-terminal-keyboard-height,49dvh) - 24px);display:flex!important;overflow-y:auto!important}
body.lk-terminal-coupon-open .commerce .order-panel>*{flex-shrink:0}

/* CPF focus: use one aligned, visible brand border instead of the browser outline. */
#modal-root .lk-pdv-cpf-modal .cpf-field input{border:2px solid var(--line,#e2d7cb);border-radius:14px;outline:none;outline-offset:0;box-shadow:none;transition:border-color .15s,background-color .15s;caret-color:var(--brown,#ad381f)}
#modal-root .lk-pdv-cpf-modal .cpf-field input:is(:focus,:focus-visible){border-color:var(--brown,#ad381f);outline:none;outline-offset:0;box-shadow:none;background:var(--paper,#fff)}
@media(forced-colors:active){#modal-root .lk-pdv-cpf-modal .cpf-field input:is(:focus,:focus-visible){outline:2px solid Highlight;outline-offset:-4px}}
