/**
 * Dawn Select2 theme — dropdown panel, options, placeholders, and multi-select chips.
 * Loaded globally after style.css; page CSS should only add layout/scoping overrides.
 */

/* Single-select placeholder (all Select2 instances) */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #75779a;
  padding-left: 0rem;
  line-height: 1.4;
  font-size: 1.1rem;
  font-family: 'freight-display-pro';
  text-transform: capitalize;
}

/* Dropdown panel */
.select2-dropdown {
  background-color: white;
  border: 1px solid #cccccc;
  border-radius: 4px;
  box-sizing: border-box;
  display: block;
  position: absolute;
  left: -100000px;
  width: 100%;
  z-index: 1051;
}

.select2-container--open .select2-dropdown--below {
  border-top: none !important;
  border-bottom-left-radius: 1.5rem !important;
  border-bottom-right-radius: 1.5rem !important;
  margin-top: -2px !important;
  margin-left: -1px !important;
  padding-bottom: 1rem !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  background-color: white;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 1.25rem;
  font-family: 'freight-display-pro';
  color: #75779a;
  padding: 0.4rem 0.6rem;
}

.select2-container--default .select2-results > .select2-results__options {
  max-height: 27rem;
  overflow-y: auto;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.select2-results__option {
  font-size: 1.25rem;
  font-family: 'freight-display-pro';
  color: #75779a;
  padding: 0.4rem 1rem;
  user-select: none;
  -webkit-user-select: none;
}

.select2-results__option--selectable {
  cursor: pointer;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #eaeef0;
  color: #75779a;
}

.select2-container--default .select2-results__option--selected {
  background-color: #f5f4f8;
  color: #75779a;
}

.select2-results__option[aria-disabled="true"],
.select2-results__option.select2-results__option--disabled,
.select2-results__option--selectable[aria-disabled="true"] {
  display: none !important;
}

/* Multi-select chips */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: transparent;
  border: 1px solid rgb(117 119 154) !important;
  color: #75779a !important;
  font-size: 0.95rem !important;
  display: inline-flex !important;
  align-items: center !important;
  position: relative !important;
  float: none !important;
  margin: 0 !important;
  padding: 0.1rem 0.4rem 0.1rem 0 !important;
  max-width: calc(100% - 0.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle !important;
  white-space: nowrap;
  line-height: 1.25 !important;
  box-sizing: border-box !important;
  border-radius: 1rem !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  position: static !important;
  left: auto !important;
  top: auto !important;
  float: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 1rem;
  min-width: 1rem;
  height: 1rem;
  margin: 0 0.28rem 0 0 !important;
  padding: 0 0 0 0.6rem !important;
  line-height: 1 !important;
  border: none !important;
  border-right: none;
  border-radius: 0;
  color: #75779a !important;
  background: transparent !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
  padding: 0 0.1rem 0 0 !important;
  line-height: 1.25 !important;
}
