.select-wrapper {
  width: 100%;
  max-width: 720px;
  position: relative;
}

.select-title {
  display: flex;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  height: 36px;
  border-radius: 4px;
  background-color: transparent;
  border: 1px solid var(--neutral-outline-variant-color, #c4c6d0);
  box-sizing: border-box;
  padding: 6px 47px 7px 11px;
  line-height: 21px;
  color: var(--neutral-outline-color, #74777f);
  font-size: var(--font-body-2);
  font-weight: var(--font-weight-regular);
  background: unset;
}

.select-title:hover {
  background: var(--neutral-on-main-neutral-4-color);
}

.select-title:focus,
.select-title:active {
  border-color: var(--themePrimButtonsBg-color);
}

.theme-violet .select-title.opened {
  border-color: var(--themePrimButtonsBg-color);
}

.select-title.disabled {
  cursor: not-allowed;
  color: var(--overlay-light-30pct);
}

.select-title.disabled span.material-icons {
  color: var(--overlay-light-30pct);
}

.select-title span.material-icons {
  color: var(--neutral-outline-color, #74777f);
  font-size: 20px;
  position: absolute;
  top: 7px;
  right: 12px;
  height: 20px;
  width: 20px;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}

.select-title span b {
  vertical-align: middle;
  border-top: 4px dashed #999;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  height: 0;
  left: 50%;
  margin-left: -4px;
  margin-top: -2px;
  position: absolute;
  top: 50%;
  width: 0;
  font-weight: 700;
}

.select-title.opened {
  border-radius: 3px 3px 0 0;
  color: var(--neutral-on-main-neutral-color);
}

.select-title.opened span.material-icons {
  transform: rotate(180deg);
}

.select-title.opened span.material-icons b {
  margin-left: -5px;
}

.selected-list {
  color: var(--neutral-on-main-neutral-color);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-content: baseline;
  height: 21px;
  font-size: var(--font-body-2);
  font-weight: var(--font-weight-regular);
  overflow: hidden;
}

.selected-list label {
  display: inline-flex;
}

.selected-list span.fi {
  margin-right: 8px;
}

.valuesBox {
  position: absolute;
  width: inherit;
  max-height: 310px;
  overflow: hidden;
  border-top: 0;
  z-index: 999;
}

.valuesBox::after {
  content: '';
  display: block;
  height: 32px;
}

.select-values {
  overflow: auto;
  max-height: 270px;
  background: var(--neutral-main-neutral-color, #ffffff);
  border: 1px solid var(--themePrimButtonsBg-color);
  border-top: none;
  border-radius: 0 0 4px 4px;
}

.select-value:hover {
  background: var(--themePrimButtonsBg-8-color, #38ce9f);
}

.select-value.selected {
  background: var(--themePrimButtonsBg-16-color, #38ce9f);
}

.select-value.selected .option-name {
  display: flex;
  font-weight: var(--font-weit-semibold, 600);
}

.valuesBox input {
  background: var(--neutral-main-neutral-color, #ffffff);
  color: var(--neutral-on-main-neutral-color, #1a1c1e);
  border-bottom: 1px solid var(--neutral-outline-variant-color, #c4c6d0);
  width: 100%;
  padding: 6px 47px 6px 11px;
  font-size: var(--font-body-2);
  height: 35px;
  border-left: 1px solid var(--themePrimButtonsBg-color);
  border-top: 0;
  border-right: 1px solid var(--themePrimButtonsBg-color);
  outline: 0;
}

.valuesBox input::placeholder {
  color: var(--neutral-outline-color, #74777f);
}

.select-empty-state {
  background: var(--neutral-main-neutral-color, #ffffff);
  border: 1px solid var(--themePrimButtonsBg-color);
  border-top: none;
  border-radius: 0 0 4px 4px;
}

.select-value {
  display: flex;
  padding: 6px 12px 7px 12px;
  font-size: var(--font-body-2);
  color: var(--neutral-on-main-neutral-color, #1a1c1e);
  line-height: 21px;
}

.select-value:last-child {
  border-bottom: none;
}

.option-name {
  display: flex;
  line-height: 21px;
  vertical-align: top;
  margin-bottom: 0;
}

.pointer {
  cursor: pointer;
}

.select-hidden {
  display: none;
}

.smallSpinner {
  display: none;
}

.smallSpinner.show {
  display: block;
}

.smallSpinner.hide {
  display: none;
}

.search-wrap.material-icons {
  position: absolute;
  top: 6px;
  right: 12px;
  font-size: var(--font-headline-2);
  color: var(--neutral-outline-color, #74777f);
}

span.close-wrap.material-icons {
  position: absolute;
  top: 1px;
  right: 6px;
  font-size: var(--font-headline-2);
  color: var(--neutral-outline-color, #74777f);
}

span.close-wrap.material-icons:hover {
  color: var(--themePrimButtonsBg-color);
}

span.search-wrap.material-icons.button-icon-large {
  top: 1px;
  right: 6px;
}

.select-value mat-checkbox {
  margin-right: 8px;
  height: 16px;
}

.select-value span.fi {
  margin: 4.5px 8px 3px 0;
}

.empty-state {
  padding: 32px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex: 1 0 0;
  align-self: stretch;
}

.empty-state-title {
  color: var(--neutral-on-main-neutral-color, #1a1c1e);
  text-align: center;
  font-size: var(--font-headline-4);
  font-weight: var(--font-weight-bold);
  line-height: 21px;
  margin-bottom: 8px;
}

.empty-state-description {
  color: var(--neutral-outline-color, #74777f);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-caption);
  line-height: 18px;
  text-align: center;
}

.empty-state-description label {
  font-weight: var(--font-weight-bold);
  margin: 0;
}

.select-value.pointer.disabled {
  cursor: default;
  color: var(--overlay-light-30pct);
}

.select-value .mat-checkbox-disabled:not(.mat-checkbox-checked) .mat-checkbox-frame {
  color: var(--overlay-light-30pct);
}

.select-value .mat-checkbox-layout {
  margin-bottom: 3px;
}

.select-value > span.badge-item {
  margin-bottom: 1px;
  margin-left: 4px;
}

.select-title .title {
  color: var(--neutral-outline-color, #74777f);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

.select-title .title-with-subtitle {
  color: var(--neutral-on-main-neutral-color);
}

.select-title .subtitle {
  margin-right: 8px;
  margin-bottom: 0;
  color: var(--neutral-outline-color, #74777f);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}
