.select-demo-select2-wrapper {
  position: relative;
}

.select2-container.select-demo-select2-container .select2-selection--single {
  min-height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px 0 #0000000d;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.select2-container.select-demo-select2-container.select2-container--focus .select2-selection--single,
.select2-container.select-demo-select2-container.select2-container--open .select2-selection--single {
  border-color: #a50034;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px #a50034;
  box-shadow: 0 0 0 1px var(--color-primary);
}

.select2-container.select-demo-select2-container .select2-selection__rendered {
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  line-height: 42px;
  padding-left: 16px;
  padding-right: 40px;
}

.select2-container.select-demo-select2-container .select2-selection__placeholder {
  color: #6b7280;
}

.select2-container.select-demo-select2-container .select2-selection__arrow {
  height: 44px;
  right: 12px;
}

.select2-container.select-demo-select2-container .select2-selection__arrow b {
  border-color: #6b7280 transparent transparent transparent;
  border-width: 5px 4px 0 4px;
  margin-left: -4px;
  margin-top: -2px;
}

.select2-container--open.select-demo-select2-container .select2-selection__arrow b {
  border-color: transparent transparent #6b7280 transparent;
  border-width: 0 4px 5px 4px;
}

.select2-container.invite-select2-container {
  width: 100% !important;
}

.select2-container.invite-select2-container .select2-selection--single {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid #d1e7f0;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select2-container.invite-select2-container.select2-container--focus .select2-selection--single,
.select2-container.invite-select2-container.select2-container--open .select2-selection--single {
  background: #fff;
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.select2-container.invite-select2-container.select2-container--open.select2-container--below .select2-selection--single {
  border-radius: 4px;
}

.select2-container.invite-select2-container.select2-container--open.select2-container--above .select2-selection--single {
  border-radius: 4px;
}

.select2-container.invite-select2-container .select2-selection__rendered {
  display: block;
  width: 100%;
  overflow: hidden;
  color: #1e293b;
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 46px;
  padding-left: 14px;
  padding-right: 42px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select2-container.invite-select2-container .select2-selection__placeholder {
  color: #6b7280;
}

.select2-container.invite-select2-container .select2-selection__arrow {
  height: 48px;
  right: 12px;
}

.select2-container.invite-select2-container .select2-selection__arrow b {
  border-color: #6b7280 transparent transparent transparent;
  border-width: 5px 4px 0 4px;
  margin-left: -4px;
  margin-top: -2px;
}

.select2-container--open.invite-select2-container .select2-selection__arrow b {
  border-color: transparent transparent #6b7280 transparent;
  border-width: 0 4px 5px 4px;
}

.invite-select--enhanced .select2-dropdown.invite-select2-dropdown,
.invite-select .select2-dropdown.invite-select2-dropdown,
.select2-dropdown.invite-select2-dropdown {
  border: 1px solid var(--color-primary) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14) !important;
  overflow: hidden !important;
}

.invite-select--enhanced .select2-dropdown.invite-select2-dropdown.select2-dropdown--below,
.invite-select .select2-dropdown.invite-select2-dropdown.select2-dropdown--below,
.select2-dropdown.invite-select2-dropdown.select2-dropdown--below {
  margin-top: 6px !important;
  border-radius: 8px !important;
}

.invite-select--enhanced .select2-dropdown.invite-select2-dropdown.select2-dropdown--above,
.invite-select .select2-dropdown.invite-select2-dropdown.select2-dropdown--above,
.select2-dropdown.invite-select2-dropdown.select2-dropdown--above {
  border-bottom: 1px solid var(--color-primary) !important;
  margin-top: 0 !important;
  margin-bottom: 6px !important;
  border-radius: 8px !important;
  transform: translateY(-6px) !important;
}

.invite-select--enhanced .select2-dropdown.invite-select2-dropdown .select2-search--dropdown,
.invite-select .select2-dropdown.invite-select2-dropdown .select2-search--dropdown,
.select2-dropdown.invite-select2-dropdown .select2-search--dropdown {
  padding: 8px 8px 4px !important;
  background: #fff !important;
}

.invite-select--enhanced .select2-dropdown.invite-select2-dropdown .select2-search--dropdown .select2-search__field,
.invite-select .select2-dropdown.invite-select2-dropdown .select2-search--dropdown .select2-search__field,
.select2-dropdown.invite-select2-dropdown .select2-search--dropdown .select2-search__field {
  box-sizing: border-box !important;
  height: 40px !important;
  border: 1px solid #d1e7f0 !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #1e293b !important;
  font-size: 0.9375rem !important;
  font-weight: 300 !important;
  line-height: 38px !important;
  outline: none !important;
  padding: 0 12px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.invite-select--enhanced .select2-dropdown.invite-select2-dropdown .select2-search--dropdown .select2-search__field:focus,
.invite-select .select2-dropdown.invite-select2-dropdown .select2-search--dropdown .select2-search__field:focus,
.select2-dropdown.invite-select2-dropdown .select2-search--dropdown .select2-search__field:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12) !important;
}

.invite-select--enhanced .select2-dropdown.invite-select2-dropdown .select2-results > .select2-results__options,
.invite-select .select2-dropdown.invite-select2-dropdown .select2-results > .select2-results__options,
.select2-dropdown.invite-select2-dropdown .select2-results > .select2-results__options {
  max-height: 224px !important;
  padding: 4px 6px 6px !important;
}

.invite-select--enhanced .select2-dropdown.invite-select2-dropdown .select2-results__option,
.invite-select .select2-dropdown.invite-select2-dropdown .select2-results__option,
.select2-dropdown.invite-select2-dropdown .select2-results__option {
  border-radius: 7px !important;
  color: #374151 !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  padding: 9px 12px !important;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.invite-select--enhanced .select2-dropdown.invite-select2-dropdown .select2-results__option--highlighted[aria-selected],
.invite-select .select2-dropdown.invite-select2-dropdown .select2-results__option--highlighted[aria-selected],
.select2-dropdown.invite-select2-dropdown .select2-results__option--highlighted[aria-selected] {
  background: #eef5ff !important;
  color: var(--color-primary) !important;
}

.invite-select--enhanced .select2-dropdown.invite-select2-dropdown .select2-results__option[aria-selected=true],
.invite-select .select2-dropdown.invite-select2-dropdown .select2-results__option[aria-selected=true],
.select2-dropdown.invite-select2-dropdown .select2-results__option[aria-selected=true] {
  background: var(--color-primary) !important;
  color: #fff !important;
}

.invite-select--enhanced .select2-dropdown.invite-select2-dropdown .select2-results__option[aria-selected=true].select2-results__option--highlighted,
.invite-select .select2-dropdown.invite-select2-dropdown .select2-results__option[aria-selected=true].select2-results__option--highlighted,
.select2-dropdown.invite-select2-dropdown .select2-results__option[aria-selected=true].select2-results__option--highlighted {
  background: var(--color-primary) !important;
  color: #fff !important;
}

@media all and (max-width: 640px) {
  .select2-container.invite-select2-container .select2-selection__rendered,
  .select2-dropdown.invite-select2-dropdown .select2-results__option {
    font-size: 0.8125rem;
  }
}
