/* Shared form field behavior */
:where(
  input:not(
    [type="hidden"],
    [type="submit"],
    [type="button"],
    [type="reset"],
    [type="image"],
    [type="checkbox"],
    [type="radio"],
    [type="file"],
    [type="color"],
    [type="range"]
  ),
  select,
.woocommerce form .form-row .input-text, .woocommerce form .form-row select
) {
  height: 3.25rem;
  min-height: 3.25rem;
  box-sizing: border-box;
}
:where(input, select, textarea).cf-has-value,
.woocommerce form .form-row .input-text, .woocommerce form .form-row select {
  background-color: var(--cf-white, #fff) !important;
}
.woocommerce form .form-row .input-text:-webkit-autofill,
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--cf-white, #fff) inset !important;
  -webkit-text-fill-color: var(--cf-color-text);
}
.woocommerce form .form-row .input-text:disabled,
:where(input, select, textarea):disabled {
  border-color: var(--cf-color-border) !important;
  background-color: var(--cf-color-surface-alt) !important;
  color: var(--cf-color-text-muted) !important;
  box-shadow: none !important;
  opacity: 0.72;
  cursor: not-allowed !important;
}
:where(button, input[type="button"], input[type="submit"], input[type="reset"]):disabled,
:where(button, input[type="button"], input[type="submit"], input[type="reset"])[aria-disabled="true"] {
  box-shadow: none !important;
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  pointer-events: none;
  transform: none !important;
}
.woocommerce form .form-row .input-text[readonly], .woocommerce form .form-row select[readonly],
:where(input, select, textarea)[readonly] {
  background-color: var(--cf-color-surface-alt) !important;
  color: var(--cf-color-text-muted);
  cursor: default;
}

.woocommerce form .form-row .input-text, .woocommerce form .form-row select {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.35rem var(--cf-space-md);
  border: var(--cf-border-width-thin) solid var(--cf-color-border);
  border-radius: var(--cf-radius-md);
  background: var(--cf-color-background);
  color: var(--cf-color-text);
  font: inherit;
  line-height: 1.4;
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--cf-transition-fast), box-shadow var(--cf-transition-fast),
    background-color var(--cf-transition-fast);
}