.touch-keyboard{position:fixed;inset:auto 12px 12px;margin:0 auto;width:min(880px,calc(100% - 24px));max-height:82dvh;overflow:auto;border:1px solid #b6cbb1;border-radius:16px;padding:14px;background:#f7faf2;color:#173f2e;box-shadow:0 12px 60px #091b1660;font:16px system-ui;box-sizing:border-box}.touch-keyboard::backdrop{background:#122c245c}.touch-keyboard h2{font-size:18px;margin:0 0 10px;overflow-wrap:anywhere}.touch-keyboard-display{display:block;width:100%;min-height:50px;padding:10px 14px;font:24px system-ui;box-sizing:border-box;border:2px solid #285e44;border-radius:9px;background:white;color:#173f2e;margin:0 0 12px}.touch-keyboard-row,.touch-keyboard-tools,.touch-keyboard-actions{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin:6px 0}.touch-keyboard button{min-height:46px;min-width:40px;flex:1 0 40px;padding:8px;border:1px solid #b8cdb1;border-radius:8px;background:white;color:#194c36;font:600 18px system-ui;cursor:pointer;touch-action:manipulation;margin:0}.touch-keyboard-tools button{font-size:15px;flex:1 0 auto;min-width:60px}.touch-keyboard-actions button{min-height:50px;flex:1}.touch-keyboard-actions .touch-keyboard-accept{background:#225b41;color:white}.touch-keyboard-feedback{font-size:14px;min-height:18px;margin:6px 0;overflow-wrap:anywhere}.touch-keyboard-numeric{max-width:430px;margin:auto}.touch-keyboard-numeric .touch-keyboard-row button{flex:1;min-width:80px;font-size:24px}.touch-keyboard-open{display:inline-flex;align-items:center;justify-content:center;justify-self:end;width:auto!important;max-width:100%;min-height:44px;padding:7px 12px!important;margin:4px 0!important;border:1px solid #bbceb4!important;border-radius:7px;background:#edf3e6!important;color:#24563d!important;font:600 13px system-ui!important;cursor:pointer}.touch-keyboard button:focus-visible,.touch-keyboard-open:focus-visible{outline:3px solid #daed9e;outline-offset:2px}@media(max-height:650px){.touch-keyboard{padding:8px;max-height:90dvh}.touch-keyboard button{min-height:44px}.touch-keyboard h2{font-size:15px}.touch-keyboard-display{min-height:44px;margin-bottom:6px}}@media print{.touch-keyboard,.touch-keyboard-open{display:none!important}}

/* Native typing first. Screen keyboard is an explicit desktop/tablet option. */
.touch-keyboard-open{display:none!important}input:focus+.touch-keyboard-open,textarea:focus+.touch-keyboard-open,.touch-keyboard-open:focus{display:inline-flex!important}
.touch-keyboard-row{flex-wrap:nowrap}.touch-keyboard-row button{min-width:0;flex:1 1 0;padding:7px 2px;font-size:17px}.touch-keyboard{max-width:780px;max-height:72dvh}.touch-keyboard-actions{position:sticky;bottom:-14px;background:#f7faf2;padding:9px 0 2px;margin-bottom:0}.touch-keyboard-display{font-size:20px;min-height:44px}.touch-keyboard-tools{gap:5px}.touch-keyboard-tools button{min-height:38px;font-size:12px;padding:6px}.touch-keyboard-feedback:empty{display:none}@media(max-width:767px){.touch-keyboard-open{display:none!important}.touch-keyboard{width:calc(100% - 16px);inset:auto 8px 8px;padding:10px;max-height:65dvh}.touch-keyboard h2{font-size:14px}.touch-keyboard-row{gap:3px}.touch-keyboard-row button{min-height:36px;font-size:14px}.touch-keyboard-actions button{min-height:42px}.touch-keyboard-numeric .touch-keyboard-row button{min-width:0}.touch-keyboard-actions{bottom:-10px}}

@media(max-width:767px){body.checkout-fixed [data-pos-payment=true] .pos-keypad{display:none!important}body.checkout-fixed [data-pos-payment=true] #service-form{grid-template-columns:minmax(0,1fr)!important}body.checkout-fixed [data-pos-payment=true] #service-fields{grid-column:1!important}}
@media(max-width:767px){input:focus+.touch-keyboard-open,textarea:focus+.touch-keyboard-open,.touch-keyboard-open:focus{display:none!important}}

.touch-keyboard-field{position:relative}.touch-keyboard-field>.touch-keyboard-open{position:absolute!important;bottom:5px;right:6px;z-index:1;margin:0!important;min-height:30px!important;height:30px;padding:3px 8px!important;font-size:11px!important;line-height:1.2}.touch-keyboard-field>input:focus{padding-right:76px}@media(max-width:767px){.touch-keyboard-field>input:focus{padding-right:12px}}

/* Larger, darker labels without widening the keyboard. */
.touch-keyboard .touch-keyboard-row button{font-size:21px!important;font-weight:700!important;color:#173f2e!important;line-height:1.2}
.touch-keyboard .touch-keyboard-tools button{font-size:16px!important;font-weight:650!important;color:#173f2e!important;min-height:44px;line-height:1.25}
.touch-keyboard .touch-keyboard-actions button{font-size:20px!important;font-weight:700!important;line-height:1.25}
.touch-keyboard .touch-keyboard-display{font-size:24px!important}
.touch-keyboard .touch-keyboard-numeric .touch-keyboard-row button{font-size:28px!important}
@media(max-width:767px){.touch-keyboard .touch-keyboard-row button{font-size:18px!important}.touch-keyboard .touch-keyboard-tools button{font-size:15px!important}.touch-keyboard .touch-keyboard-actions button{font-size:18px!important}}
