.amount-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 43px;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid #dde2dc;
  border-radius: 10px;
  background: #fafbfa;
  color: var(--ink);
  font: 14px inherit;
  cursor: pointer;
  text-align: left;
}

.amount-display > span:last-child {
  color: #6e7c73;
  font-size: 20px;
  line-height: .7;
}

.amount-keypad-dialog {
  width: min(360px, calc(100% - 32px));
  border: 0;
  border-radius: 24px;
  padding: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 25px 80px rgba(16, 30, 20, .22);
}

.amount-keypad-dialog::backdrop {
  background: rgba(26, 35, 28, .38);
  backdrop-filter: blur(4px);
}

.amount-keypad-content { padding: 24px; }
.amount-keypad-header { display: flex; justify-content: space-between; align-items: flex-start; }
.amount-keypad-header h2 { margin: 0; font-size: 21px; letter-spacing: -.5px; }
.amount-keypad-value { display: block; margin: 22px 0 16px; font-size: 32px; font-weight: 700; letter-spacing: -.06em; text-align: right; }
.amount-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.amount-keypad button { min-height: 48px; border: 0; border-radius: 13px; background: #f0f3ef; color: var(--ink); font: 600 18px inherit; cursor: pointer; }
.amount-keypad button[data-action="clear"] { color: #647169; font-size: 12px; }
.amount-keypad-confirm { width: 100%; margin-top: 14px; }
.amount-keypad-confirm:disabled { opacity: .42; cursor: default; box-shadow: none; }

@media (max-width: 760px) {
  .amount-display { min-height: 47px; font-size: 16px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .amount-keypad-dialog { width: min(390px, calc(100% - 24px)); border-radius: 22px; }
  .amount-keypad-content { padding: 22px 20px; }
  .amount-keypad-value { margin: 19px 0 15px; font-size: 31px; }
  .amount-keypad button { min-height: 50px; }
}
