.legacy-search .ae-native-select,
.inventory-filters .ae-native-select{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
.legacy-search label:has(.ae-select),
.inventory-filters label:has(.ae-select){
  position:relative;
  min-width:0;
}
.ae-select{
  position:relative;
  width:100%;
  min-width:0;
  z-index:5;
}
.ae-select.is-open{
  z-index:120;
}
.ae-select__button{
  position:relative;
  width:100%;
  min-height:46px;
  padding:0 44px 0 15px;
  border:1px solid #d8d8d4;
  border-radius:3px;
  background:#fff;
  color:#171717;
  display:flex;
  align-items:center;
  text-align:left;
  cursor:pointer;
  outline:none;
  box-shadow:0 1px 0 rgba(0,0,0,.025);
  transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease;
}
.ae-select__button::after{
  content:"";
  position:absolute;
  right:16px;
  top:50%;
  width:7px;
  height:7px;
  margin-top:-5px;
  border-right:1.5px solid #1b1b1b;
  border-bottom:1.5px solid #1b1b1b;
  transform:rotate(45deg);
  transform-origin:center;
  transition:transform .2s ease,margin .2s ease;
}
.ae-select__button:hover{
  border-color:#aaa;
}
.ae-select__button:focus-visible,
.ae-select.is-open .ae-select__button{
  border-color:#151515;
  box-shadow:0 0 0 3px rgba(0,0,0,.07);
}
.ae-select.is-open .ae-select__button::after{
  margin-top:-1px;
  transform:rotate(225deg);
}
.ae-select__value{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#4f4f4f;
  font-size:13px;
  font-weight:300;
}
.ae-select__menu{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 7px);
  max-height:270px;
  padding:7px;
  overflow:auto;
  border:1px solid #d7d7d3;
  border-radius:4px;
  background:#fff;
  box-shadow:0 18px 45px rgba(0,0,0,.16);
  opacity:0;
  visibility:hidden;
  transform:translateY(-5px);
  transform-origin:top;
  pointer-events:none;
  transition:opacity .16s ease,transform .16s ease,visibility .16s ease;
}
.ae-select.is-open .ae-select__menu{
  opacity:1;
  visibility:visible;
  transform:none;
  pointer-events:auto;
}
.ae-select__option{
  position:relative;
  width:100%;
  min-height:40px;
  padding:9px 38px 9px 12px;
  border:0;
  border-radius:2px;
  background:transparent;
  color:#262626;
  display:flex;
  align-items:center;
  text-align:left;
  cursor:pointer;
  font-size:12px;
  font-weight:300;
  letter-spacing:.01em;
  outline:none;
  transition:background-color .14s ease,color .14s ease,padding-left .14s ease;
}
.ae-select__option:hover,
.ae-select__option:focus-visible{
  background:#f2f2ef;
  color:#050505;
  padding-left:16px;
}
.ae-select__option.is-selected{
  background:#111;
  color:#fff;
  font-weight:600;
}
.ae-select__option.is-selected::after{
  content:"✓";
  position:absolute;
  right:13px;
  top:50%;
  transform:translateY(-50%);
  font-size:11px;
}
.ae-select__menu::-webkit-scrollbar{
  width:8px;
}
.ae-select__menu::-webkit-scrollbar-track{
  background:#f3f3f1;
}
.ae-select__menu::-webkit-scrollbar-thumb{
  background:#c4c4c0;
  border:2px solid #f3f3f1;
  border-radius:10px;
}
.legacy-search input{
  border-radius:3px!important;
  border-color:#d8d8d4!important;
  font-size:13px;
  font-weight:300;
  transition:border-color .2s ease,box-shadow .2s ease!important;
}
.legacy-search input:hover{
  border-color:#aaa!important;
}
.legacy-search input:focus{
  border-color:#151515!important;
  box-shadow:0 0 0 3px rgba(0,0,0,.07)!important;
}
.inventory-filters .ae-select__button{
  min-height:40px;
}
@media(max-width:900px){
  .ae-select__menu{
    max-height:230px;
  }
}
@media(max-width:600px){
  .ae-select__button{
    min-height:48px;
  }
  .ae-select__menu{
    position:fixed;
    left:18px;
    right:18px;
    top:auto;
    bottom:18px;
    max-height:min(58vh,390px);
    padding:9px;
    border-radius:8px;
    box-shadow:0 24px 80px rgba(0,0,0,.28);
  }
  .ae-select__option{
    min-height:46px;
    font-size:13px;
  }
}
