/* Align advanced filters of search form on the grid of the fields, with labels
   on the left, like default theme and  admin board.
   A theme with another grid can load this stylesheet and set the variables to
   its own sizes. On small screens, the labels are above the inputs, so default
   layout of search.css is kept. */
@media screen and (min-width: 800px) {
    .search-filters-advanced {
        --search-filter-label-width: 30%;
        --search-filter-inputs-padding: 30px;
        display: block;
        position: relative;
        & > legend {
            float: left;
            width: var(--search-filter-label-width);
            padding: 7.5px 45px 7.5px 0;
        }
        & .filter {
            margin-left: var(--search-filter-label-width);
            padding-left: var(--search-filter-inputs-padding);
            width: calc(100% - var(--search-filter-label-width));
        }
        & > .search-filter-plus {
            position: absolute;
            top: 0;
            right: calc(100% - var(--search-filter-label-width));
        }
    }
}
