/* Keep payment fields dark, including browser-saved/autofilled values. */
.money-input {
  color-scheme: dark;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.money-input:focus-within {
  border-color: var(--primary, #8855ff);
  box-shadow: 0 0 0 3px rgb(136 85 255 / 16%);
}

.money-input input {
  min-width: 0;
  caret-color: var(--text, #f4f0ff);
}

/* Chromium/Safari override the input background when autofilling. The inset
   shadow preserves the sheet surface without disabling useful autocomplete. */
.money-input input:-webkit-autofill,
.money-input input:-webkit-autofill:hover,
.money-input input:-webkit-autofill:focus,
.money-input input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text, #f4f0ff);
  -webkit-box-shadow: 0 0 0 1000px var(--bg-soft, #160f2c) inset;
  box-shadow: 0 0 0 1000px var(--bg-soft, #160f2c) inset;
  caret-color: var(--text, #f4f0ff);
}

.money-input input:autofill {
  background-color: var(--bg-soft, #160f2c);
  color: var(--text, #f4f0ff);
  box-shadow: 0 0 0 1000px var(--bg-soft, #160f2c) inset;
}
