.unistellar-custom-select {
  position: relative;
  width: 100%;
  color-scheme: dark;
}

.unistellar-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.unistellar-custom-select__trigger {
  width: 100%;
  height: 66px;
  border: 1px solid #545a6c;
  padding: 0 44px 0 15px;
  background: #000;
  border-radius: 0.5rem;
  color: #fff;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  text-align: left;
  font: inherit;
  transition: all 0.2s ease-in-out;
}

.unistellar-custom-select__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unistellar-custom-select.is-open .unistellar-custom-select__trigger,
.unistellar-custom-select__trigger:focus {
  outline: none;
  box-shadow: 0 0 2px 2px #2287ed;
  border-color: #2287ed;
}

.unistellar-custom-select__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 100;
  margin: 0;
  padding: 0;
  list-style: none;
  list-style-type: none;
  background: #000;
  border: 1px solid #545a6c;
  border-radius: 0.5rem;
  max-height: 280px;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

/* Override Divi .entry-content ul (disc + left padding) */
.entry-content .unistellar-custom-select .unistellar-custom-select__menu {
  list-style: none;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.unistellar-custom-select__menu::-webkit-scrollbar {
  width: 6px;
}

.unistellar-custom-select__menu::-webkit-scrollbar-track {
  background: #000;
}

.unistellar-custom-select__menu::-webkit-scrollbar-thumb {
  background: #545a6c;
  border-radius: 3px;
}

.unistellar-custom-select__option {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 15px;
  list-style: none;
  list-style-type: none;
  color: #fff;
  cursor: pointer;
}

.entry-content .unistellar-custom-select .unistellar-custom-select__option {
  list-style: none;
  list-style-type: none;
  padding-left: 15px;
  margin-left: 0;
}

.unistellar-custom-select__menu::marker,
.unistellar-custom-select__option::marker {
  content: none;
}

.unistellar-custom-select__option:hover,
.unistellar-custom-select__option.is-selected {
  background: #2287ed;
  color: #fff;
}

.unistellar-custom-select__option.is-placeholder {
  color: #b1b5ba;
}

/* Missions pages — centered region picker */
#continent_filter .unistellar-custom-select {
  display: inline-block;
  max-width: 280px;
  margin: 30px auto;
}

#continent_filter .unistellar-custom-select__trigger {
  height: 50px;
  font-weight: 700;
  text-align: center;
  justify-content: center;
  padding-left: 44px;
}

#continent_filter .unistellar-custom-select__label {
  text-align: center;
  width: 100%;
}

#continent_filter .unistellar-custom-select__menu,
#continent_filter .unistellar-custom-select__option {
  text-align: center;
}

/* Profile registration forms (update / add user details) */
#registration-form .unistellar-custom-select__trigger {
  background-color: transparent;
  border: 1px solid var(--x-secondary-color, #545a6c);
  border-radius: 0.5rem;
  color: var(--x-secondary-color, #545a6c);
  min-height: 48px;
  height: auto;
  padding: 0.75rem 2.75rem 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 400;
}

#registration-form .unistellar-custom-select.is-open .unistellar-custom-select__trigger,
#registration-form .unistellar-custom-select__trigger:focus {
  color: var(--x-default-light, #fff);
}

#registration-form .unistellar-custom-select__menu {
  z-index: 200;
  max-height: 240px;
}

#registration-form #country.unistellar-native-select {
  display: none;
}

@media screen and (max-width: 576px) {
  .unistellar-custom-select__trigger {
    height: 58px;
  }

  #continent_filter .unistellar-custom-select__trigger {
    height: 50px;
  }
}
