/* Accessible single-select combobox */
.app-select {
  position: relative;
  min-width: 13rem;
  max-width: 100%;
}

.app-select__trigger {
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  color: #111111;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 1.25rem 0.5rem 1.25rem;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  min-width: 100%;
  font: normal normal bold 14px/18px Montserrat;
  box-sizing: border-box;
  border: 1px solid #D9D9D9;
  font-size: 0.875rem;
}

.app-select__trigger:hover {
  border-color: #333333;
}

.app-select__trigger:focus-visible {
  outline: 3px solid #005eb8;
  outline-offset: 3px;
}

.app-select__label {
  align-items: baseline;
  display: inline-flex;
  gap: 0.35rem;
  min-width: 0;
}

.app-select__prefix {
  white-space: nowrap;
}

.app-select__chevron {
  flex: 0 0 1.5rem;
  height: 1.5rem;
  transition: transform 160ms ease;
  width: 1.5rem;
}

.app-select--open .app-select__chevron {
  transform: rotate(180deg);
}

.app-select__overlay {
  background: #ffffff;
  border: 1px solid #767676;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1.25rem rgb(0 0 0 / 20%);
  left: 0;
  margin-top: 0.5rem;
  min-width: 100%;
  overflow: hidden;
  position: absolute;
  top: 100%;
  z-index: 20;
}

.app-select__list {
  list-style: none;
  margin: 0;
  max-height: 14rem;
  overflow-y: auto;
  padding: 0.375rem;
}

.app-select__option {
  border-radius: 0.375rem;
  color: #111111;
  cursor: pointer;
  font: 500 1rem/1.4 Montserrat, Arial, sans-serif;
  min-height: 2.75rem;
  padding: 0.625rem 0.875rem;
}

.app-select__option.is-active,
.app-select__option:hover {
  background: #e8f1fb;
}

.app-select__option.is-selected {
  background: #f0ede9;
  font-weight: 700;
}

.app-select__option.is-selected.is-active {
  background: #dceaf8;
}

.app-select__option.is-disabled {
  color: #6b6b6b;
  cursor: not-allowed;
}

.app-select--disabled .app-select__trigger {
  background: #f3f3f3;
  border-color: #767676;
  color: #6b6b6b;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .app-select {
    min-width: min(19.25rem, 100%);
    width: 100%;
  }

  .app-select__trigger {
    font-size: 1rem;
    padding-left: 1.25rem;
  }
}

@media (forced-colors: active) {
  .app-select__trigger,
  .app-select__overlay {
    border-color: CanvasText;
  }

  .app-select__trigger:focus-visible {
    outline-color: Highlight;
  }

  .app-select__option.is-active,
  .app-select__option.is-selected {
    background: Highlight;
    color: HighlightText;
  }
}
