.select {
  position: relative;
  width: 300px;
  max-width: 100%;
  display: inline-block;
}
.select--disabled .select__trigger {
  background-color: #f4f7fc;
  pointer-events: none;
  cursor: not-allowed;
}
.select--loading .select__trigger {
  pointer-events: none;
}
.select--open .select__trigger {
  border-color: #f35625;
}
.select--open .select__trigger-arrow-icon {
  transform: rotate(180deg);
}
.select--full-width {
  display: block;
  width: 100%;
}
.select--has-value .select__trigger-text {
  color: #3f4254;
}
.select--xxs {
  --select-size: 20px;
  --select-font-size: 0.7rem;
}
.select--xs {
  --select-size: 24px;
  --select-font-size: 0.8rem;
}
.select--sm {
  --select-size: 32px;
  --select-font-size: 0.9rem;
}
.select--md {
  --select-size: 40px;
  --select-font-size: 1rem;
}
.select--lg {
  --select-size: 48px;
  --select-font-size: 1.1rem;
}
.select--xl {
  --select-size: 56px;
  --select-font-size: 1.2rem;
}
.select--xxl {
  --select-size: 60px;
  --select-font-size: 1.3rem;
}
.select--rounded-none {
  --border-radius: 0;
}
.select--rounded-xs {
  --border-radius: 0.28rem;
}
.select--rounded-sm {
  --border-radius: 0.42rem;
}
.select--rounded-md {
  --border-radius: 0.62rem;
}
.select--rounded-lg {
  --border-radius: 0.85rem;
}
.select--rounded-xl {
  --border-radius: 1.25rem;
}
.select--rounded-circle {
  --border-radius: calc(var(--select-size) / 2);
}
.select__trigger {
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65em 1em;
  font-size: var(--select-font-size, 1rem);
  min-height: var(--select-size, 40px);
  transition: all 0.15s ease-in-out;
  color: #3f4254;
  line-height: 1.1em;
  vertical-align: middle;
  border-radius: var(--border-radius, 0.62rem);
  column-gap: 0.5em;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #ebedf3;
}
.select__trigger:hover, .select__trigger:focus-visible, .select__trigger:active {
  border-color: #f35625;
}
.select__trigger :where(.cdp-icon) {
  display: inline-flex;
  font-size: 1.5em;
  line-height: 0.7em;
}
.select__trigger-content {
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.select__trigger-text {
  font-weight: 400;
  line-height: 1.1em;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
.select__clear-button {
  --btn-size: calc(
    var(--select-size, $select-size-default) - 2 *
      (0.65em + 1px)
  );
  --btn-font-size: var(--select-font-size, $select-font-size-default);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--btn-size);
  height: var(--btn-size);
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0.42rem;
  background: transparent;
  color: #7e8299;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
}
.select__clear-button:where(:hover, :focus-visible, :active) {
  background: #eaedf2;
  color: #7e8299;
}
.select__trigger-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b5b4c3;
}
.select .select__trigger-arrow-icon {
  transition: transform 0.15s ease-in-out;
}
.select__menu {
  height: 100%;
  width: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.select__options {
  overflow-y: auto;
  max-height: 100%;
  padding: 2px 4px;
}
.select--empty .select__options-container {
  display: none;
}
.select__options-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.select__options-empty {
  padding: 0.65em 1em;
  text-align: center;
  color: #3f4254;
}

.select-item {
  background: none;
  cursor: default;
}
.select-item__button {
  height: 32px;
  display: flex;
  align-items: center;
  column-gap: 0.5em;
  width: 100%;
  padding: 6px 10px;
  border-radius: var(--select-item-radius, 0.42rem);
  clear: both;
  font-weight: 400;
  color: #5e6278;
  text-align: inherit;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.select-item__button--selected {
  background-color: rgba(243, 86, 37, 0.05);
  color: #181c32;
}
.select-item__button:hover:not(.select-item__button--disabled), .select-item__button:focus-visible:not(.select-item__button--disabled), .select-item__button--active {
  outline: none;
  background-color: #eaedf2;
  color: #181c32;
}
.select-item__button--disabled, .select-item__button:disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: default;
}
.select-item--rounded-none {
  --select-item-radius: 0;
}
.select-item--rounded-xs {
  --select-item-radius: 0.28rem;
}
.select-item--rounded-sm {
  --select-item-radius: 0.42rem;
}
.select-item--rounded-md {
  --select-item-radius: 0.62rem;
}
.select-item--rounded-lg {
  --select-item-radius: 0.85rem;
}
.select-item--rounded-xl {
  --select-item-radius: 1.25rem;
}
.select-item--rounded-circle {
  --select-item-radius: calc(var(--select-size) / 2);
}
.select-item__content {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.select-item__icon {
  font-size: 1.5em;
  color: #f35625;
}
