/* Keep editable text large enough to avoid iOS Safari's focus autozoom.
   Do not restrict the viewport: manual pinch zoom must remain available. */
/* Layered important declarations also beat the imported admin theme's
   unlayered important rules, without modifying its original assets. */
@layer payment-fields, form-controls;
@layer form-controls {
html body :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]), select, textarea, [contenteditable="true"]) {
  font-size: 16px !important;
  border: 1px solid #cfd9e7 !important;
  outline: none !important;
  box-shadow: none !important;
  background-color: #fff !important;
  color: #152743 !important;
  -webkit-text-fill-color: #152743 !important;
  caret-color: #152743;
}

html body :is(input, textarea)::placeholder {
  color: #64728a !important;
  -webkit-text-fill-color: #64728a !important;
  opacity: 1 !important;
}

/* Some forms put the focus decoration on the surrounding field instead. */
html body :is(.phone-field, .deposit-phone-wrap, .input-wrap, .field-inline),
html body :is(.phone-field, .deposit-phone-wrap, .input-wrap, .field-inline):focus-within {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Preserve a keyboard focus cue without drawing a contour around the field.
   Buttons, links, checkboxes and radio controls retain their focus indicators. */
html body :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]), select, textarea, [contenteditable="true"]):focus-visible {
  background-color: #f1f4f9 !important;
}

/* Safari/Chrome may impose a light autofill background. Pair it with dark
   text instead of retaining the dark theme's white text on that surface. */
html body :is(input, textarea):is(:autofill, :-webkit-autofill) {
  color: #152743 !important;
  -webkit-text-fill-color: #152743 !important;
  caret-color: #152743;
}

html body :is(input, select, textarea):disabled {
  -webkit-text-fill-color: #64728a !important;
}

html body.narke-recharge-page .recharge-amount input {
  border: 0 !important;
  box-shadow: none !important;
}
html body.narke-recharge-page .recharge-amount input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]) {
  border: 0 !important;
  box-shadow: none !important;
}

/* Focus remains unmistakable without a bright contour or halo. */
html body :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]), select, textarea, [contenteditable="true"]):focus-visible {
  box-shadow: inset 0 -2px #123d79 !important;
}

}

@layer payment-fields {
/* Payment cards deliberately use light surfaces. Keep native autofill,
   entered text and placeholders readable in both phone and OTP fields. */
html body.deposit-page .deposit-card input,
html body.deposit-page .deposit-card input:focus-visible,
html body.deposit-page .deposit-card input:is(:autofill, :-webkit-autofill) {
  background-color: #fff !important;
  color: #152743 !important;
  -webkit-text-fill-color: #152743 !important;
  caret-color: #152743;
  opacity: 1;
}

html body.deposit-page .deposit-card input:focus-visible {
  background-color: #f1f4f9 !important;
  outline: none !important;
  box-shadow: inset 0 -2px #123d79 !important;
}

html body.deposit-page .deposit-card input::placeholder {
  color: #526878 !important;
  -webkit-text-fill-color: #526878 !important;
  opacity: 1 !important;
}
}
