/* Shared filter/sort row; the empty AJAX anchor must not leave a toolbar box. */
.tremml-category-layout #js-product-list-top.tremml-listing-controls-source {
  display: flex; flex-wrap: wrap; justify-content: flex-end;
  padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
}
.tremml-category-layout #js-product-list-top:not(:has(*)),
.tremml-category-layout #js-product-list-top.tremml-listing-controls-source:not(:has(*)) { display: none; }
.tremml-category-layout #search_filters.tremml-filter-pills { align-items: center; }
.tremml-category-layout .tremml-sort-control {
  display: inline-flex; align-items: center; justify-content: flex-end;
  gap: 12px; margin-left: auto; width: auto; max-width: 100%; flex: 0 0 auto;
}
.tremml-category-layout .tremml-sort-label {
  color: rgba(255,255,255,.58); font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.tremml-category-layout .tremml-sort-control .select-title {
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: 12px; min-width: 210px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08); color: #f7f7f2;
  font-size: .9rem; font-weight: 700; text-decoration: none;
}
.tremml-category-layout .tremml-sort-trigger__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tremml-category-layout .tremml-sort-control .select-title:hover,
.tremml-category-layout .tremml-sort-control .select-title[aria-expanded="true"] {
  background: rgba(244,226,37,.08); border-color: rgba(244,226,37,.18); color: #f4e225;
}
.tremml-category-layout .tremml-sort-control .material-icons { font-size: 18px; line-height: 1; color: inherit; }
.tremml-category-layout .tremml-sort-control .dropdown-menu {
  left: auto; right: 0; min-width: 220px; max-width: calc(100vw - 40px);
  margin-top: 10px; padding: 8px; border-radius: 16px; background: #24261f;
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
.tremml-category-layout .tremml-sort-control .select-list {
  display: flex; align-items: center; min-height: 38px; padding: 0 12px;
  border-radius: 10px; color: rgba(255,255,255,.82); font-size: .88rem;
  font-weight: 600; text-decoration: none;
}
.tremml-category-layout .tremml-sort-control .select-list:hover,
.tremml-category-layout .tremml-sort-control .select-list.current { background: rgba(244,226,37,.08); color: #f4e225; }
.tremml-category-layout .tremml-listing-active-filters { flex: 0 0 100%; min-width: 0; }
.tremml-category-layout .tremml-listing-active-filters #js-active-search-filters { margin: 0; }
@media (max-width: 575px) {
  .tremml-category-layout #search_filters > .tremml-sort-control { flex-basis: 100%; }
  .tremml-category-layout .tremml-sort-label { font-size: .65rem; letter-spacing: .03em; }
  .tremml-category-layout .tremml-sort-control .select-title { flex: 1 1 auto; min-width: 0; width: 210px; max-width: 100%; }
}
