/* AV tag input: layout fixes for the Tagify field (lib/tagify) */
/* Bootstrap and tagify.css load outside the cascade layers, so these rules need !important to win. */
@layer components {
  /* Tagify copies the input's .form-control class onto its <tags> box, and Bootstrap fixes
     .form-control to one line's height. When tags wrap, the box has to grow with them
     instead of letting the second row spill over the help text below. */
  .tagify.form-control {
    height: auto !important;
    min-height: calc(1.5em + 0.75rem + 2px);
  }

  /* Suggestion list kept in the page flow right under the field (TagInput's inlineDropdown option),
     so it pushes a dialog's buttons down instead of covering them. Tagify still writes left/top/width
     inline styles as if the list were floating; these rules override them. */
  .tagify__dropdown.av-tag-dropdown--inline {
    position: static !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    transform: none !important;
    margin-top: 2px;
  }
}
