/*
 * Numeric keypad extra. Popup width matches NiftyDatePicker
 * (Tony: 22.5rem is the phone size). Hosts: keypad demo and CCRM.
 */

.amount-pick {
  display: flex;
  gap: 0.4rem;
  align-items: stretch;
}

.amount-pick input {
  flex: 1;
  min-width: 0;
}

.amount-pick .btn {
  flex: 0 0 auto;
  align-self: stretch;
}

.key-dialog {
  width: min(22.5rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated, var(--bg));
  color: var(--text);
  box-shadow: 0 18px 50px color-mix(in srgb, #000 35%, transparent);
}

.key-dialog::backdrop {
  background: color-mix(in srgb, #000 45%, transparent);
}

.key-inner {
  padding: 0.85rem 0.9rem 1rem;
}

.key-head h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.key-display {
  margin: 0 0 0.65rem;
  padding: 0.45rem 0.6rem;
  text-align: right;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.key-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin: 0 0 0.75rem;
}

.key-btn {
  min-height: 2.4rem;
  font-size: 1.05rem;
}

.key-spacer {
  display: block;
  min-height: 2.4rem;
}

.key-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
}
