.yk-select-view {
  position: relative;
  width: 100%;
  font-size: @size-s;
  color: @font-color-l;
}

.yk-select-view__trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0 @space-m;
  min-height: 32px;
  border: 1px solid @line-color-m;
  border-radius: @radius-m;
  background-color: @bg-color-l;
  gap: @space-s;
  cursor: pointer;
  transition: border-color @animatb;

  &:hover {
    border-color: @pcolor;
  }

  &:focus-visible {
    outline: 2px solid @pcolor-3;
    outline-offset: 1px;
  }
}

.yk-select-view__trigger--focused {
  border-color: @pcolor;
}

.yk-select-view__trigger--no-border {
  border-color: transparent;
}

.yk-select-view__trigger--disabled {
  color: @font-color-ss;
  background-color: @bg-color-s;
  cursor: not-allowed;
  opacity: 0.6;

  &:hover {
    border-color: @line-color-m;
  }
}

.yk-select-view__value {
  overflow: hidden;
  flex: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yk-select-view__placeholder {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: @font-color-ss;
  flex: 1;
}

.yk-select-view__tags {
  display: flex;
  align-items: center;
  overflow: hidden;
  flex: 1;
  flex-wrap: wrap;
  gap: @space-ss;
}

.yk-select-view__tag {
  display: inline-flex;
  align-items: center;
  gap: @space-ss;
  padding: 0 @space-s;
  max-width: 100%;
  height: 24px;
  border-radius: @radius-s;
  color: @font-color-m;
  background-color: @bg-color-s;
  line-height: 24px;
}

.yk-select-view__tag-close {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  color: @font-color-ss;
  transition:
    color @animatf,
    background-color @animatf;
  cursor: pointer;

  &:hover {
    color: @font-color-l;
    background-color: @gray-2;
  }
}

.yk-select-view__suffix {
  display: flex;
  justify-content: center;
  align-items: center;
  color: @font-color-ss;
  flex-shrink: 0;
}

.yk-select-view__clear {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: @font-color-ss;
  cursor: pointer;

  &:hover {
    color: @font-color-l;
    background-color: @gray-2;
  }
}

.yk-select-view__arrow {
  transition: transform @animatb;
}

.yk-select-view__arrow--open {
  transform: rotate(180deg);
}
