/* Existing controls are moved, never cloned. Desktop styles are untouched. */
@media (max-width:980px) {
  #mi-catalog-results .mcf-mobile-toolbar {
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    align-items:center;
    gap:10px;
    width:100%;
    margin:0 0 12px;
  }
  #mi-catalog-results .mcf-mobile-toolbar > .mcf-toggle {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    float:none;
    margin:0;
    padding:10px 12px;
    min-height:46px;
    border:1px solid #dfe5ee;
    border-radius:10px;
    background:#fff;
    color:#172033;
    font-size:14px;
    line-height:1.3;
    white-space:nowrap;
  }
  #mi-catalog-results .mcf-mobile-toolbar > .woocommerce-ordering {
    float:none;
    clear:none;
    width:100%;
    min-width:0;
    max-width:100%;
    margin:0;
    padding:0;
  }
  #mi-catalog-results .mcf-mobile-toolbar .woocommerce-ordering select {
    display:block;
    box-sizing:border-box;
    width:100%;
    min-width:0;
    max-width:100%;
    height:46px;
    margin:0;
    padding:8px 26px 8px 10px;
    border:1px solid #dfe5ee;
    border-radius:10px;
    background-color:#fff;
    color:#172033;
    font-family:inherit;
    font-size:16px;
    line-height:1.4;
    text-overflow:ellipsis;
  }
  #mi-catalog-results .mcf-mobile-toolbar:has(> .mcf-toggle:only-child) {grid-template-columns:max-content}
}
