/* iro. smartphone search/filter UX v1.5 — Preview only. Existing search/filter logic is unchanged. */
.iro-m15-controls{display:none}
@media (max-width:650px){
  /* Compact overview appears only after a search starts. */
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) .iro-m15-controls:not([hidden]){display:block;max-width:560px;margin:13px auto 8px;padding:14px 12px 12px;
    text-align:left;border:1px solid #efdae4;border-radius:17px;background:#fff;box-shadow:0 5px 17px #a65f7e12}
  .iro-m15-topline{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:11px}
  .iro-m15-title{font-weight:750;color:#543d4a;font-size:14px;line-height:1.4}
  .iro-m15-subtitle{font-size:11px;color:#8b7580;line-height:1.55;margin-top:3px;overflow-wrap:anywhere}
  .iro-m15-edit{border:0;background:none;color:#a15476;text-decoration:underline;text-underline-offset:3px;cursor:pointer;font:inherit;font-size:12px;white-space:nowrap;min-height:36px;padding:5px 4px}
  .iro-m15-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:stretch}
  .iro-m15-toggle{display:flex;justify-content:center;align-items:center;gap:7px;min-width:0;min-height:46px;padding:9px 8px;
    border:1px solid #d8abc0;background:#fff5f9;color:#975171;font:inherit;font-size:13px;font-weight:750;border-radius:12px;cursor:pointer}
  .iro-m15-toggle[aria-expanded='true']{background:#ba688b;border-color:#ba688b;color:#fff}
  .iro-m15-toggle svg{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .iro-m15-counter{display:inline-grid;place-items:center;background:#b9688a;color:#fff;border-radius:999px;min-width:18px;height:18px;padding:0 4px;font-size:10px;line-height:1}
  .iro-m15-toggle[aria-expanded='true'] .iro-m15-counter{background:#fff;color:#a25374}
  .iro-m15-sortbox{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:3px;
    border:1px solid #e9cbd8;border-radius:12px;background:#fff;position:relative;padding:5px 8px}
  .iro-m15-sortbox>span{font-size:10px;color:#957b86;line-height:1.1;padding-left:2px}
  .iro-m15-sortbox select{appearance:auto;width:100%;min-width:0;max-width:100%;border:0!important;outline-offset:2px;background:#fff;color:#70475c;
    font:inherit;font-weight:700;font-size:12px;padding:2px 0 1px;min-height:25px;text-overflow:ellipsis}
  .iro-m15-sortbox[hidden]{display:none!important}
  .iro-m15-actions:has(.iro-m15-sortbox[hidden]){grid-template-columns:1fr}
  .iro-m15-counter[hidden]{display:none!important}
  .iro-m15-chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:11px 0 0;min-height:23px}
  .iro-m15-chips-label{font-size:11px;color:#927d87;white-space:nowrap;margin-right:2px}
  .iro-m15-chip{display:inline-flex;align-items:center;gap:4px;max-width:100%;min-height:29px;padding:5px 9px;
    color:#965b76;background:#fff5f9;border:1px solid #eed8e2;border-radius:999px;font:inherit;font-size:11px;line-height:1.35;cursor:pointer}
  .iro-m15-chip--active{color:#914668;background:#fce9f1;border-color:#eec1d5;font-weight:750}
  .iro-m15-tip{font-size:10px;color:#987d8a;margin:8px 0 0;line-height:1.5}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #resultControls.iro-m15-hidden{display:none!important}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #resultControls.iro-m15-expanded:not([hidden]){
    display:block!important;max-width:560px;margin:7px auto 12px;padding:14px 12px 12px;
    text-align:left;scroll-margin-top:70px;border-radius:16px;border:1px solid #e8c8d7;background:#fffdfa;box-shadow:0 7px 20px #ba779020}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #resultControls.iro-m15-expanded>.result-controls{margin:0;padding:0;background:transparent;border:0;box-shadow:none;max-width:100%}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #resultControls .filter-heading{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #resultControls .filter-heading strong{font-size:14px}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #resultControls .filter-heading span{text-align:left;line-height:1.6}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #resultControls .marketplace-selector-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #resultControls .marketplace-selector-grid button{border-radius:11px;min-height:43px;padding:8px 5px;font-size:12px;overflow-wrap:anywhere}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #resultControls .iro-type-options{justify-content:flex-start;gap:7px}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #resultControls .iro-type-option{min-height:38px;padding:9px 11px}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #resultControls .filter-fields{flex-direction:column;align-items:stretch;gap:10px;width:100%;margin:4px 0}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #resultControls .filter-fields label{flex-direction:column;gap:5px;align-items:stretch;font-weight:650;color:#725466;text-align:left}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #resultControls .filter-fields select{width:100%;min-height:44px;padding:10px 12px;background:#fff}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #resultControls .filter-fields button{min-height:42px}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #resultControls .iro-beauty-note,
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #resultControls .iro-type-help,
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #resultControls .iro-ingredient-guide,
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #resultControls .iro-ingredient-warning{text-align:left}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #resultControls .rating-summary{text-align:left}
  .iro-m15-close{width:100%;min-height:44px;margin:15px 0 0;border:1px solid #bb7191;border-radius:12px;
    background:#b56588;color:#fff;cursor:pointer;font:inherit;font-size:13px;font-weight:750}
  .iro-m15-toggle:focus-visible,.iro-m15-edit:focus-visible,.iro-m15-close:focus-visible,.iro-m15-chip:focus-visible,
  .iro-m15-sortbox select:focus-visible{outline:3px solid #a94e75;outline-offset:2px}
  /* Keep the grid/list switch from duplicating the filter button. */
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) .iro-mobile-results-toolbar [data-filters]{display:none!important}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) .iro-mobile-results-toolbar:not([hidden]){padding:9px 10px;margin-top:11px}
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) .iro-mobile-results-actions button{min-height:37px}
  /* Avoid oversized separation between result status and filter controls. */
  body:is(.iro-mobile-home-v1,.iro-mobile-brand-results) #result{margin-top:16px;line-height:1.6}
}
@media(max-width:360px){
  .iro-m15-controls:not([hidden]){padding:11px 9px}
  .iro-m15-toggle{font-size:12px}
  .iro-m15-sortbox select{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
  .iro-m15-controls,.iro-m15-controls *{scroll-behavior:auto!important;transition:none!important}
}
