/* Scope dimensions to Magento's combined selector; Searchanise is independent. */
.toolbar-products .rc-direction-sorter{display:flex;align-items:center;justify-content:flex-end;gap:8px;max-width:100%;box-sizing:border-box}
.toolbar-products .rc-direction-sorter .sorter-label{flex:0 0 auto;margin:0}
.toolbar-products .rc-direction-sorter select.sorter-options{width:320px;max-width:100%;min-width:0;min-height:44px;margin:0;box-sizing:border-box;font-size:14px}
@media(max-width:767px){
 .toolbar-products .rc-direction-sorter{width:100%;float:none;clear:both}
 .toolbar-products .rc-direction-sorter select.sorter-options{flex:1 1 0;width:auto;font-size:16px}
}
/* Mobile layered-navigation trigger shares the first row with sorting.
   Reserve space only when Magento actually renders the filter trigger. */
@media (max-width:767px) {
 .page-products .columns:has(#layered-filter-block .filter-title) .toolbar-products .rc-direction-sorter {
  width:calc(100% - 122px);
  max-width:calc(100% - 122px);
 }
 .page-products #layered-filter-block:not(.active) .filter-title strong {
  width:112px;
  height:50px;
  padding:12px 8px;
  display:flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
 }
 .page-products .toolbar-products .rc-direction-sorter select.sorter-options {
  text-overflow:ellipsis;
 }
}
