.#{$ns}ResultBox {
  @include input-input();
  @include input-border();
  flex-wrap: wrap;
  padding: 0 px2rem(5px);
  min-height: var(--Form-input-height);
  align-items: center;
  border-radius: 3px;
  position: relative;

  &.is-quick-edit:not(.is-active) {
    border-color: transparent;
    .#{$ns}ResultBox-clear,.#{$ns}TransferDropDown-icon {
      opacity: 0;
    }
    &:hover{
      background-color: var(--Form-input-onHover-bg);
      border-color: var(--Form-input-onHover-borderColor);
  
      .#{$ns}ResultBox-clear,.#{$ns}TransferDropDown-icon{
        opacity: 1;
      }
    }
    // &.is-opened,&.is-focused{
    //   border-color: transparent;
    // }
  
  }
  .#{$ns}ResultBox.is-quick-static {
    border-color: transparent;
    background: none;
    box-shadow: none;
    .#{$ns}ResultBox-clear{
      display: none;
    }
    &:hover{
      background: none;
      border-color: transparent;
      .#{$ns}ResultBox-clear{
        display: inherit;
      }
    }
    &.is-opened,&.is-focused{
      border-color: transparent;
    }
  }

  &.is-clearable {
    padding-right: px2rem(55px);
  }

  &.is-error {
    border-color: var(--Form-input-onError-borderColor);
    background: var(--Form-input-onError-bg);
  }

  &.is-focused,
  &.is-active,
  &:focus {
    outline: none;
    border-color: var(--Form-input-onFocused-borderColor);
    box-shadow: var(--Form-input-boxShadow);
    background: var(--Form-input-onFocused-bg);
  }

  &.is-clickable:not(.is-disabled) {
    cursor: pointer;

    &:hover {
      border-color: var(--Form-input-onFocused-borderColor);
      box-shadow: var(--Form-input-boxShadow);
      background: var(--Form-input-onFocused-bg);
    }
  }

  &.is-error.is-focused {
    border-color: var(--Form-input-onError-borderColor);
  }

  &.is-disabled {
    color: var(--text--muted-color);
    background: var(--Form-input-onDisabled-bg);
    border-color: var(--Form-input-onDisabled-borderColor);
    pointer-events: none;
    background: var(--TabsTransfer-title-bg);

    div.#{$ns}ResultBox-value {
      background: var(--TabsTransfer-border-color);

      .#{$ns}ResultBox-valueLabel {
        color: var(--Pagination-light-color);
      }
    }
  }

  &.#{$ns}NestedSelect {
    padding-left: var(--gap-base);
  }

  &-singleValue {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  &-pc-arrow {
    height: 100%;
    margin: auto 0;
    position: absolute;
    right: 10px;
    display: flex;
    align-items: center;
    transition: transform var(--animation-duration) ease;
    transform: rotate(90deg);
    > svg {
      width: px2rem(10px);
      height: px2rem(10px);
      top: 0.125em;
      color: var(--default-icon-color);
    }
  }

  &.is-opened &-pc-arrow {
    transform: rotate(270deg);
  }

  &-clear {
    @include input-clear();
    height: 100%;
    margin: auto 0;
    position: absolute;
    top: 0;
    right: 26px;
    background-color: unset;

    &-wrap {
      width: px2rem(10px);
      height: px2rem(10px);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    &-with-arrow {
      right: 33px;
    }
  }

  > svg {
    display: inline-block;
    width: px2rem(14px);
    color: var(--icon-color);
  }

  > a {
    cursor: pointer;
  }

  &-value {
    background: var(--ResultBox-value-bg);
    color: var(--ResultBox-value-color);
    font-size: var(--Form-input-fontSize);
    padding: 0 var(--gap-xs);
    min-height: px2rem(24px);
    flex-wrap: nowrap;
    display: inline-flex;
    align-items: center;
    margin-right: var(--gap-xs);
    margin-bottom: px2rem(2px);
    user-select: none;

    > a {
      cursor: pointer;
      margin-left: px2rem(10px);
      color: var(--ResultBox-icon-color);
      &:hover {
        color: var(--ResultBox-icon--onHover-color);
      }

      > svg {
        width: px2rem(10px);
        height: px2rem(10px);
        &.icon {
          top: 0;
        }
      }
    }

    &:hover {
      background: var(--ResultBox-value--onHover-bg);
    }

    &.is-disabled {
      pointer-events: none;
      color: var(--ResultBox-value--onDisabled-color);

      > a {
        color: var(--ResultBox-icon--onDisabled-color);
      }
    }
  }

  &-placeholder {
    color: var(--Form-input-placeholderColor);
    user-select: none;
  }

  > input {
    padding-left: 8px;
    min-height: 24px;
  }

  &.#{$ns}TransferDropDown {
    padding: 0 var(--gap-base);

    &.is-group {
      padding: var(--gap-xs);
      padding-right: 20px;

      > .#{$ns}TransferDropDown-icon {
        // margin-right: var(--gap-sm);
      }

      > .#{$ns}ResultBox-placeholder {
        padding-left: var(--gap-sm);
      }
    }

    > .#{$ns}ResultBox-value {
      background: var(--Form-select-value-bgColor);

      &:hover {
        background: var(--Form-selectValue-onHover-bgColor);
      }
    }
  }

  &.is-mobile {
    min-height: calc(var(--Form-input-lineHeight) * var(--fontSizeLg));
    border: none;
    padding: 0;
    font-size: var(--fontSizeLg);
    border: none;
    justify-content: flex-end;

    .#{$ns}ResultBox-clear {
      @include input-clear();
      width: px2rem(26px);
      height: px2rem(26px);
      margin: 0 px2rem(-2px);
      margin-left: auto;
      padding: px2rem(4px);
      position: unset;
      right: 0;
      display: flex;
      align-items: center;
      background-color: unset;
    }

    .#{$ns}ResultBox-arrow {
      margin-right: var(--gap-xs);
      // margin-left: var(--gap-xs);
      width: var(--gap-md);
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
      margin-left: 4px;

      > svg {
        transition: transform var(--animation-duration);
        display: inline-block;
        color: var(--Form-select-caret-iconColor);
        width: 10px;
        height: 10px;
        top: 0;
        transform: rotate(-90deg);
      }
    }
  }
}
