/* Stabilise WP JobSearch controls before and after Select2 replaces native selects. */
.s2w-marketplace-native--auth .s2w-auth__panel .pt-register .jobsearch-profile-select {
  min-height: 39px;
}

.s2w-marketplace-native--auth .s2w-auth__panel .pt-register .jobsearch-profile-select > select:not(.select2-hidden-accessible) {
  display: block;
  width: 100%;
  height: 39px;
}

.s2w-marketplace-native--auth .s2w-auth__panel .pt-register .jobsearch-profile-select .select2-container,
.s2w-marketplace-native--auth .s2w-auth__panel .pt-register .jobsearch-profile-select .select2-container .selection,
.s2w-marketplace-native--auth .s2w-auth__panel .pt-register .jobsearch-profile-select .select2-selection,
.s2w-marketplace-native--auth .s2w-auth__panel .pt-register .jobsearch-profile-select .select2-search,
.s2w-marketplace-native--auth .s2w-auth__panel .pt-register .jobsearch-profile-select .dropdown-wrapper {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.s2w-marketplace-native--auth .s2w-auth__panel .pt-register .jobsearch-profile-select .select2-container {
  display: block;
  width: 100% !important;
  height: auto !important;
}

.s2w-marketplace-native--auth .s2w-auth__panel .pt-register .jobsearch-profile-select .select2-selection--single {
  display: flex;
  align-items: center;
  height: 39px !important;
  min-height: 39px !important;
  padding: 0 14px !important;
}

.s2w-marketplace-native--auth .s2w-auth__panel .pt-register .jobsearch-profile-select .select2-selection--multiple {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 39px !important;
  padding: 5px 12px !important;
}

.s2w-marketplace-native--auth .s2w-auth__panel .pt-register .jobsearch-profile-select .select2-selection__rendered:empty {
  display: none;
}

.s2w-marketplace-native--auth .s2w-auth__panel .pt-register .jobsearch-profile-select .select2-selection__rendered:empty + .select2-search--inline {
  flex: 1 1 100%;
  min-width: 0;
}

.s2w-marketplace-native--auth .s2w-auth__panel .pt-register .jobsearch-profile-select .select2-selection__rendered:empty + .select2-search--inline .select2-search__field {
  width: 100% !important;
  margin-left: 0 !important;
}

/* reCAPTCHA arrives asynchronously; reserve its final footprint. */
.s2w-marketplace-native--auth .s2w-auth__panel .pt-register #recaptcha1_div {
  min-height: 78px;
}

/* Select2 also applies its generic span margin to the visible text and arrow. */
.s2w-marketplace-native--auth .s2w-auth__panel .pt-register .jobsearch-profile-select .select2-selection__rendered,
.s2w-marketplace-native--auth .s2w-auth__panel .pt-register .jobsearch-profile-select .select2-selection__placeholder,
.s2w-marketplace-native--auth .s2w-auth__panel .pt-register .jobsearch-profile-select .select2-selection__arrow {
  margin: 0 !important;
}

.s2w-marketplace-native--auth .s2w-auth__panel .pt-register .jobsearch-profile-select .select2-selection--single .select2-selection__rendered {
  flex: 1 1 auto;
  width: auto;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s2w-marketplace-native--auth .s2w-auth__panel .pt-register .jobsearch-profile-select .select2-selection--single .select2-selection__placeholder {
  line-height: inherit !important;
}

.s2w-marketplace-native--auth .s2w-auth__panel .pt-register .jobsearch-profile-select .select2-selection--single .select2-selection__arrow {
  display: none !important;
}

.s2w-marketplace-native--auth .s2w-auth__panel .pt-register .jobsearch-profile-select .select2-selection--single::after {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-right: 2px solid var(--s2w-text-secondary);
  border-bottom: 2px solid var(--s2w-text-secondary);
  transform: translateY(-2px) rotate(45deg);
}

.s2w-marketplace-native--auth .s2w-auth__panel .pt-register .jobsearch-profile-select .select2-search--inline {
  display: flex;
  align-items: center;
}

.s2w-marketplace-native--auth .s2w-auth__panel .pt-register .jobsearch-profile-select .select2-search__field {
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
  line-height: 24px !important;
}

.s2w-marketplace-native--auth .s2w-auth__panel .pt-register li > label[for^="countryId"],
.s2w-marketplace-native--auth .s2w-auth__panel .pt-register li > label[for^="stateId"] {
  display: block;
  margin: 0 0 6px !important;
}
