/* MineJobs native multi-choice picker — canonical implementation */
.minejobs-choice-picker{
  position:relative;
  isolation:isolate;
  display:grid;
  gap:10px;
  width:100%;
  min-width:0;
}

.minejobs-choice-picker.is-open{z-index:140}

.minejobs-choice-picker__details{
  position:relative;
  width:100%;
  min-width:0;
}

.minejobs-choice-picker__summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  min-height:52px;
  padding:0 16px;
  border:1px solid #d8e4f5;
  border-radius:16px;
  background:#fff;
  color:#16355f;
  cursor:pointer;
  list-style:none;
  font-size:13px;
  font-weight:900;
  box-shadow:0 4px 14px rgba(17,52,93,.035);
}

.minejobs-choice-picker__summary::-webkit-details-marker{display:none}
.minejobs-choice-picker__summary::marker{display:none}

.minejobs-choice-picker__details[open] .minejobs-choice-picker__summary{
  border-color:#8fb7ff;
  box-shadow:0 0 0 4px rgba(23,108,255,.08);
}

.minejobs-choice-picker__summary-icon{
  flex:0 0 auto;
  color:#176cff;
  font-size:18px;
  transition:transform .18s ease;
}

.minejobs-choice-picker__details[open] .minejobs-choice-picker__summary-icon{transform:rotate(180deg)}

.minejobs-choice-picker__panel{
  position:absolute;
  inset-inline:0;
  top:calc(100% + 8px);
  z-index:150;
  display:grid;
  gap:10px;
  width:100%;
  min-width:280px;
  max-width:100%;
  padding:12px;
  border:1px solid #d8e4f5;
  border-radius:18px;
  background:#fff;
  box-shadow:0 18px 38px rgba(17,52,93,.14);
  box-sizing:border-box;
}

.minejobs-choice-picker__search{
  position:static!important;
  display:block!important;
  float:none!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
}

.minejobs-choice-picker__search input{
  width:100%;
  min-height:44px;
  padding:0 13px;
  border:1px solid #dde7f5;
  border-radius:14px;
  background:#f8fbff;
  color:#15345f;
  box-shadow:none;
  box-sizing:border-box;
}

.minejobs-choice-picker__search input:focus{
  border-color:#8fb7ff;
  background:#fff;
  box-shadow:0 0 0 4px rgba(23,108,255,.08);
  outline:0;
}

.minejobs-choice-picker__options{
  position:relative!important;
  display:grid!important;
  gap:6px;
  width:100%!important;
  min-width:0!important;
  max-height:320px!important;
  margin:0!important;
  padding:2px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  box-sizing:border-box!important;
}

.minejobs-choice-picker__option{
  position:relative!important;
  inset:auto!important;
  display:flex!important;
  align-items:center!important;
  gap:10px;
  float:none!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  min-height:42px!important;
  margin:0!important;
  padding:8px 10px!important;
  border-radius:12px;
  color:#2b4668;
  cursor:pointer;
  text-align:start!important;
  transform:none!important;
  transition:background .15s ease,color .15s ease;
  box-sizing:border-box!important;
}

.minejobs-choice-picker__option[data-choice-depth="1"]{padding-inline-start:24px!important}
.minejobs-choice-picker__option[data-choice-depth="2"]{padding-inline-start:38px!important}
.minejobs-choice-picker__option[data-choice-depth="3"]{padding-inline-start:52px!important}
.minejobs-choice-picker__option[data-choice-depth="4"]{padding-inline-start:66px!important}
.minejobs-choice-picker__option[data-choice-depth="5"]{padding-inline-start:80px!important}
.minejobs-choice-picker__option[data-choice-depth="6"]{padding-inline-start:94px!important}
.minejobs-choice-picker__option:hover{background:#f1f6ff;color:#176cff}
.minejobs-choice-picker__option[hidden]{display:none!important}

.minejobs-choice-picker__option input[data-choice-input]{
  position:absolute!important;
  inset:auto!important;
  width:1px!important;
  height:1px!important;
  margin:0!important;
  padding:0!important;
  opacity:0!important;
  pointer-events:none!important;
}

.minejobs-choice-picker__box{
  position:relative;
  width:22px;
  height:22px;
  flex:0 0 auto;
  border:1.5px solid #c5d4e8;
  border-radius:8px;
  background:#fff;
}

.minejobs-choice-picker__option input:checked + .minejobs-choice-picker__box{
  border-color:#176cff;
  background:#176cff;
}

.minejobs-choice-picker__option input:checked + .minejobs-choice-picker__box::after{
  content:'✓';
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:12px;
  font-weight:950;
}

.minejobs-choice-picker__option-label{
  position:static!important;
  display:block!important;
  float:none!important;
  width:auto!important;
  max-width:100%!important;
  min-width:0;
  margin:0!important;
  padding:0!important;
  color:inherit!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1.75!important;
  text-align:start!important;
  white-space:normal!important;
  overflow-wrap:anywhere;
  transform:none!important;
}

.minejobs-choice-picker__chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.minejobs-choice-picker__chips:empty,
.minejobs-choice-picker__chips[hidden]{display:none!important}

.minejobs-choice-picker__chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  max-width:100%;
  min-height:38px;
  padding:0 12px;
  border:1px solid #cfe1ff;
  border-radius:999px;
  background:#eef5ff;
  color:#176cff;
  cursor:pointer;
  font:inherit;
  font-size:12px;
  font-weight:900;
}

.minejobs-choice-picker__chip span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.minejobs-choice-picker__chip i{
  display:grid;
  place-items:center;
  width:20px;
  height:20px;
  flex:0 0 auto;
  border-radius:50%;
  background:#dceaff;
  font-style:normal;
  font-size:15px;
  line-height:1;
}

.minejobs-choice-picker__empty{
  margin:0;
  padding:16px;
  color:#71839a;
  text-align:center;
  line-height:1.9;
}

.minejobs-alert-field-card,
.mje-profile-category-card,
.mje-profile-category-picker,
.minejobs-company-field-card{
  overflow:visible!important;
}

@media (max-width:768px){
  .minejobs-choice-picker.is-open{z-index:auto}
  .minejobs-choice-picker__panel{
    position:static;
    inset:auto;
    width:100%;
    min-width:0;
    max-width:100%;
    margin-top:8px;
    box-shadow:0 12px 24px rgba(17,52,93,.10);
  }
  .minejobs-choice-picker__options{max-height:50vh!important}
}

/* r227: restore the original premium selected-chip treatment. */
.minejobs-choice-picker__chips{
  gap:10px;
  margin-top:14px;
}

.minejobs-choice-picker__chip{
  appearance:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  max-width:100%;
  min-height:40px;
  margin:0;
  padding:8px 13px;
  border:1px solid #bcd4ff;
  border-radius:14px;
  background:linear-gradient(135deg,#eef5ff 0%,#ffffff 100%);
  color:#2364c8;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(47,118,255,.08);
  font:inherit;
  font-size:13px;
  font-weight:850;
  line-height:1.35;
  transition:border-color .18s ease,color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease;
}

.minejobs-choice-picker__chip span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.minejobs-choice-picker__chip i{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  flex:0 0 auto;
  border-radius:50%;
  background:rgba(47,118,255,.11);
  color:#2f76ff;
  font-style:normal;
  font-size:15px;
  font-weight:700;
  line-height:1;
  opacity:.78;
  transition:background .18s ease,color .18s ease,opacity .18s ease,transform .18s ease;
}

.minejobs-choice-picker__chip:hover,
.minejobs-choice-picker__chip:focus-visible{
  border-color:#ffb8c7;
  background:linear-gradient(135deg,#fff7fa 0%,#ffffff 100%);
  color:#d92d55;
  box-shadow:0 12px 28px rgba(217,45,85,.10);
  transform:translateY(-1px);
  outline:0;
}

.minejobs-choice-picker__chip:hover i,
.minejobs-choice-picker__chip:focus-visible i{
  background:#ffeaf0;
  color:#d92d55;
  opacity:1;
  transform:rotate(90deg);
}

.mje-profile-category-card .minejobs-choice-picker__chips{
  padding-top:2px;
}

@media (max-width:680px){
  .minejobs-choice-picker__chips{
    gap:8px;
    margin-top:12px;
  }

  .minejobs-choice-picker__chip{
    min-height:38px;
    padding:7px 11px;
    font-size:12px;
  }
}

/* r229: desktop overlay is scoped to the field that owns the picker. */
.minejobs-alert-field-card,
.minejobs-company-field-card,
.mje-profile-category-card,
.form-group.has-choice-picker {
  position: relative;
  overflow: visible !important;
}

.minejobs-choice-picker.is-open,
.minejobs-choice-picker__details[open] {
  z-index: 320 !important;
}

.minejobs-choice-picker__panel {
  z-index: 330;
}

@media (min-width:769px) {
  .minejobs-choice-picker__panel {
    position: absolute;
  }
}

/* r229: closed pickers must never cover profile tabs or inactive panels. */
.minejobs-choice-picker__details:not([open]) > .minejobs-choice-picker__panel {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.minejobs-choice-picker__details[open] > .minejobs-choice-picker__panel {
  display: grid !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Limit stacking to the field that owns the open picker; never elevate whole forms/panels. */
.minejobs-alert-panel,
.minejobs-alert-grid,
.minejobs-alert-grid--filters,
.minejobs-alert-builder,
.minejobs-alert-editor__form,
.mj-company-fields-grid,
.company-profile-form {
  z-index: auto !important;
}

.minejobs-alert-field-card.is-choice-picker-open,
.minejobs-company-field-card.is-choice-picker-open,
.mje-profile-category-card.is-choice-picker-open,
.form-group.is-choice-picker-open {
  position: relative;
  z-index: 320 !important;
  overflow: visible !important;
}

/* Profile navigation is always interactive and above normal form content. */
.mje-profile-tabs,
.mjcp-profile-tabs {
  position: relative;
  z-index: 40;
  pointer-events: auto;
}

.mje-profile-tab,
.mjcp-profile-tabs > * {
  pointer-events: auto;
}
