/**
 * @file
 * Hides the master form off-screen; keeps it in DOM for AJAX.
 * The <form> must NOT be display:none or visibility:hidden as that breaks
 * Drupal AJAX and jQuery UI selectmenu interaction.
 */

/* .weblite-filter-master {
  position: static;
} */

/* Hide all form items off-screen except the search field.
   Uses form-item-search class confirmed from actual DOM.
   Off-screen technique keeps elements in DOM for JS cloning. */
.weblite-filter-master .form-item:not(.form-item-search),
.weblite-filter-master .form-actions {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

/* Slot placeholder — gets content injected by JS */
.weblite-filter-slot {
  display: block;
}

/* Hide the inner fieldset legend inside a slot. The filter label is already
   shown in the outer m-filter <summary>, so the legend is redundant. */
.weblite-filter-slot legend {
  display: none;
}

.weblite-filter-master {
  .search-block__form {
    max-width: 37rem;
  }
  .search__title {
    display: grid;
    gap: 0.25rem;
    color: var(--color-text-stroke-primary);
  }
  @media (min-width: 1025px) {
    .search__title {
      margin-bottom: 3rem;
    }
  }
  .search__title {
    margin-bottom: 2rem;
  }
}
.m-filters-group {
  @media (min-width: 1025px) {
    display: flex;
    gap: 1rem;
  }

  .m-filters-group__label {
    color: #00458a;
    letter-spacing: var(--letter-spacing-0-02);
    font-family: var(--font-family-roboto);
    font-size: 14px;
    font-weight: 600;
    line-height: var(--line-height-1-66);
    margin-top: 5px;
    text-transform: uppercase;
  }

  .m-filter__content {
    .form-composite {
      padding: 0;
    }
    .fieldset-wrapper {
      padding-top: 0;
    }
  }

  .m-form-element {
    margin-bottom: 5px;
  }

  .m-filter__content-inner {

  }

  .m-form-element__label {
    line-height: 1.2rem;
  }
}
