/*
 * FC Ingredient Sliders
 * Reuses FC Blog Sliders' stable stage/rail runtime, but intentionally exposes
 * only Filter + Search above the ingredient thumbnail rail. Category pills are
 * never part of this widget's frontend contract.
 */

.fcwling-bricks-element .fcwlblog-category-rail,
.fcwling-bricks-element .fcwlblog-filter-separator,
.fcwling-bricks-element .fcwlblog-category-expander {
  display: none !important;
}

.fcwling-bricks-element .fcwlblog-filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: var(--fcwlblog-filter-gap, 10px);
}

.fcwling-bricks-element .fcwlblog-filterbox {
  flex: 0 0 auto;
}

.fcwling-bricks-element .fcwlblog-searchbox {
  flex: 0 1 var(--fcwlblog-search-width, 360px);
  width: min(100%, var(--fcwlblog-search-width, 360px));
  margin-left: auto;
}

.fcwling-bricks-element .fcwlblog-filter-empty {
  margin-top: 0;
}

@media (max-width: 767px) {
  .fcwling-bricks-element .fcwlblog-filterbar {
    align-items: stretch;
  }

  .fcwling-bricks-element .fcwlblog-searchbox {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .fcwling-bricks-element .fcwlblog-filterbar {
    flex-wrap: wrap;
  }

  .fcwling-bricks-element .fcwlblog-filterbox,
  .fcwling-bricks-element .fcwlblog-filter-button,
  .fcwling-bricks-element .fcwlblog-searchbox {
    width: 100%;
  }

  .fcwling-bricks-element .fcwlblog-filter-button {
    justify-content: flex-start;
  }
}
