/* NeviLex: the search filters (FacetWP) laid out evenly and right to left. See facets.php. */

/* Every box the same width, centred. */
.facetwp-facet input.facetwp-autocomplete,
.facetwp-facet input.facetwp-search,
.facetwp-facet select.facetwp-dropdown,
.facetwp-facet-legdaterange input.fdate-alt-input,
.facetwp-type-date_range input.fdate-alt-input { width: 100% !important; max-width: 100%; box-sizing: border-box; }

/* The words-and-numbers search: the box takes the width, the ? sits beside it, and the magnifier no longer covers the text. */
.facetwp-facet-search { display: flex !important; align-items: center; gap: 8px; }
.facetwp-facet-search > .facetwp-input-wrap { position: relative; display: block !important; flex: 1 1 auto; min-width: 0; width: auto !important; }
.facetwp-facet-search input.facetwp-search { padding-left: 40px !important; padding-right: 16px !important; text-overflow: ellipsis; }
.facetwp-facet-search .facetwp-icon { position: absolute !important; top: 0; bottom: 0; left: 6px !important; right: auto !important; width: 30px; height: 100% !important; }
.facetwp-facet-search > .nvxs-wrap { position: relative; flex: none; margin: 0 !important; }
.facetwp-facet-search > .nvxs-wrap .nvxs-btn { position: static !important; transform: none !important; }

/* Dates: one under the other, full width. */
.facetwp-type-date_range input.fdate-alt-input { display: block !important; margin: 0 0 8px !important; }

/* Tick boxes: the box on the right, beside its word (FacetWP puts it on the left). */
.facetwp-type-checkboxes .facetwp-checkbox { padding: 0 26px 0 0 !important; background-position: right center !important; text-align: right !important; margin-bottom: 6px; }
.facetwp-type-checkboxes .facetwp-counter { margin-inline-start: 4px; }
.facetwp-type-checkboxes .facetwp-expand { margin-inline-end: 8px; }
