@import '../variables';

.select {
  position: relative;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.1s;
  &:focus {
    outline: none;
  }
}
.valueContainer {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 32px;
  justify-content: space-between;
}
.valueMulti {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  // padding-top: 5px;
}
.valueMultiItem {
  height: 22px;
  overflow: hidden;
  border-radius: 3px;
  display: flex;
  align-items: center;
  user-select: none;
  background: #f0f0f0;
  font-size: 14px;
  .valueMultiItemLabel {
    flex: auto;
    padding: 0 4px;
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid #ddd;
  }
  .valueMultiItemClose {
    border-left: none;
    overflow: hidden;
    padding: 0 2px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    &:hover {
      background: #ff4757;
      color: white;
    }
    .icon {
      width: 18px;
      height: 18px;
      fill: currentColor;
    }
  }
}
.addMore {
  font-size: 12.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #0052cc;
  &:hover,
  &:visited,
  &:active {
    color: #0052cc;
  }
  &:hover {
    text-decoration: underline;
  }
  .icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    margin-right: 2px;
  }
}

[data-theme="dark"] .select.normal {
  border-color: $dark-input-focus-border-color;
  background: $dark-input-focus-border-color;
}
.select.normal {
  width: 100%;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-width: 1px;
  border-color: #dfe1e6;
  background-color: #f4f5f7;
  position: relative;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  -webkit-transition: background .1s;
  transition: background .1s;
}
.select.normal:hover {
  @apply bg-backgroundLight;
}
.select.normal:focus {
  @apply border border-borderInputFocus bg-white text-borderInputFocus;
  box-shadow: 0 0 0 1px currentColor;
}
.select.empty {
  display: inline-block;
}
