dialog.amount-keypad{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,430px);max-width:100%;border-radius:24px 24px 0 0;padding:20px 22px calc(20px + env(safe-area-inset-bottom));background:#faf7f0;color:#76624f}dialog.amount-keypad::backdrop{background:#34312d55}.keypad-head{display:flex;justify-content:space-between;align-items:center}.keypad-head h2{margin:0;font-size:15px}.keypad-head button{background:transparent;padding:8px}.keypad-value{font-size:34px;text-align:right;padding:18px 4px 20px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.keypad-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.keypad-grid button{border:0;border-radius:14px;background:#ede7dd;color:#76624f;height:56px;font-size:24px}.keypad-grid button[data-key=clear],.keypad-grid button[data-key=delete]{font-size:15px}.keypad-done{border:0;background:#76624f;color:white;width:100%;padding:15px;border-radius:14px;margin-top:12px;font-size:16px}.keypad-grid button:active{background:#dcd0ba}

.keypad-error{font-size:12px;color:#a56060;margin:0 0 10px}.keypad-error:empty{display:none}#keypad[hidden]{display:none!important}

/* Shared amount keypad: dimensions stay the same in both themes. */
html[data-theme] dialog.amount-keypad{background:var(--theme-bg,#faf7f0)!important;color:var(--theme-accent,#76624f)!important;border:0!important;box-shadow:none!important}
html[data-theme] dialog.amount-keypad::backdrop{background:color-mix(in srgb,var(--theme-accent,#76624f) 28%,transparent)}
html[data-theme] dialog.amount-keypad :is(.keypad-head h2,.keypad-value){color:var(--theme-accent,#76624f)!important}
html[data-theme] dialog.amount-keypad .keypad-head button{background:transparent!important;color:var(--theme-accent,#76624f)!important;border:0!important}
html[data-theme] dialog.amount-keypad .keypad-grid button{background:var(--theme-surface,#ede7dd)!important;color:var(--theme-accent,#76624f)!important;border:0!important;box-shadow:none!important}
html[data-theme] dialog.amount-keypad .keypad-grid button:active{background:var(--theme-card,#dcd0ba)!important;color:var(--theme-accent,#76624f)!important}
html[data-theme] dialog.amount-keypad .keypad-done{background:var(--theme-accent,#76624f)!important;color:var(--theme-on-accent,#fff)!important;border:0!important;box-shadow:none!important}
html[data-theme] dialog.amount-keypad .keypad-error{color:color-mix(in srgb,var(--theme-accent,#76624f) 55%,#b54040)!important}
html[data-theme] dialog.amount-keypad button:focus-visible{outline:2px solid var(--theme-accent,#76624f)!important;outline-offset:2px}
