.custom-ms__control{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  border:1px solid rgba(0,0,0,.18);
  border-radius:12px;
  background:#fff;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
  font-size:16px;
}

.custom-ms__value{ opacity:.9; }
.custom-ms__chevron{ opacity:.5; font-size:20px; line-height:1; }

.custom-ms__overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  z-index:9999;
}

.custom-ms__sheet{
  width:min(720px, 100%);
  max-height:85vh;
  background:#fff;
  border-top-left-radius:18px;
  border-top-right-radius:18px;
  box-shadow:0 -10px 30px rgba(0,0,0,.2);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

@media (min-width: 768px){
  .custom-ms__overlay{ align-items:center; }
  .custom-ms__sheet{
    border-radius:18px;
    max-height:min(80vh, 740px);
  }
}

.custom-ms__header{
  padding:12px 14px;
  border-bottom:1px solid rgba(0,0,0,.08);
  display:flex;
  align-items:center;
  gap:12px;
}

.custom-ms__title{
  flex:1;
  font-weight:600;
  line-height:1.25;
}

.custom-ms__done{
  border:0;
  background:#f3f3f3;
  border-radius:10px;
  width:40px;
  height:40px;
  font-size:20px;
}

.custom-ms__search{
  padding:10px 14px;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.custom-ms__search-input{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.14);
  font-size:16px;
}

.custom-ms__list{
  padding:6px 14px 14px;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  flex:1;
}

.custom-ms__item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 8px;
  border-radius:12px;
}
.custom-ms__item:hover{ background:rgba(0,0,0,.04); }

.custom-ms__checkbox{
  width:18px;
  height:18px;
}

.custom-ms__footer{
  padding:12px 14px;
  border-top:1px solid rgba(0,0,0,.08);
}
.custom-ms__cancel{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.14);
  background:#fff;
  font-size:16px;
}

.custom-ms__no-scroll{
  overflow:hidden;
}

.custom-ms__select--hidden {
  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;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}
