@import '~scss/variables';
@import '~scss/mixins';

.wrapper {
  position: relative;
  width: 100%;
  height: 32px;
  padding: 5px 40px;
  border-radius: 18px;
  border: solid 1px transparent;
  background-color: $bg-color;
  box-sizing: border-box;
  @include TypographySymbolText;
  transition: all $trans-speed ease-in-out;
  outline: none;

  &:hover {
    border-color: $border-color;
  }

  &.hasValue,
  &.focus {
    background-color: $white;
    border-color: $dark-color01;
    box-shadow: none;
  }

  :global {
    .icon.is-left {
      @include vertical-center;
      z-index: 4;
      left: 12px;
    }
    .icon.is-right {
      @include vertical-center;
      z-index: 4;
      right: 12px;
    }
  }

  .content {
    display: flex;

    :global {
      .tag {
        margin-top: -2px;
        margin-right: 4px;
        height: 24px;
        border-radius: 12px;
        padding: 1px 6px 1px 12px;
        box-sizing: border-box;
        line-height: 20px;

        & > span {
          display: inline-block;
          vertical-align: middle;
        }

        & + .input {
          margin-left: 6px;
        }

        .icon {
          margin-left: 6px;
        }

        .icon-clickable:hover,
        .icon-clickable:active {
          background-color: $dark-color05;

          svg {
            color: $white;
          }
        }
      }

      .popper.dropdown {
        transition-property: none;
        .menu {
          padding: 0;
        }
      }
    }
  }

  input {
    flex: 1;
    width: auto;
    height: 20px;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    background-color: transparent;
    box-shadow: none !important;
    caret-color: $text-color;
  }
}
