/* Only the two document checklists: compact input that shrinks beside Other. */
:is(#wpforms-26231, #wpforms-26227) li.butea-document-other {
  display: grid;
  grid-template-columns: auto auto minmax(0, 320px);
  justify-content: start;
  align-items: center;
  gap: .5rem;
}
:is(#wpforms-26231, #wpforms-26227) .butea-document-other__input {
  min-width: 0;
  width: 100%;
  max-width: 320px;
  min-height: 44px;
  font-size: 16px;
}
:is(#wpforms-26231, #wpforms-26227) li.butea-document-other > input[type="checkbox"],
:is(#wpforms-26231, #wpforms-26227) li.butea-document-other > .wpforms-field-label-inline {
  margin: 0;
  width: auto;
  white-space: nowrap;
}
:is(#wpforms-26231, #wpforms-26227) .butea-document-other__input:enabled {
  background: var(--color-surface);
  color: var(--color-text);
  cursor: text;
}
:is(#wpforms-26231, #wpforms-26227) .butea-document-other__input:disabled {
  background: var(--color-state-disabled-bg);
  color: var(--color-state-disabled-text);
  border-color: var(--color-border-strong);
  cursor: not-allowed;
  opacity: 1;
}
:is(#wpforms-26231, #wpforms-26227) .butea-document-other__input:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
:is(#wpforms-26231, #wpforms-26227) .butea-document-other__error {
  grid-column: 1 / -1;
  color: var(--color-error);
  font-size: 1rem;
}
:is(#wpforms-26231, #wpforms-26227) .butea-document-other__error[hidden] { display: none; }
/* Native validation labels must not widen the checkbox's auto grid column. */
:is(#wpforms-26231, #wpforms-26227) li.butea-document-other > label.wpforms-error[for$="-field_5_other"] {
  grid-column: 1 / -1;
}
