@import '../../style/themes/default';
@import '../../style/mixins/index';
@import '../../button/style/mixin';
@import './mixin';

@search-prefix: ~'@{clinia-prefix}-input-search';

.@{search-prefix} {
  &-icon {
    color: @text-color-secondary;
    cursor: pointer;
    transition: all 0.3s;
    &:hover {
      color: #333;
    }
  }

  &:not(&-small) > .@{clinia-prefix}-input-suffix {
    right: @control-padding-horizontal;
  }

  > .@{clinia-prefix}-input-suffix > .@{search-prefix}-button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    > .@{iconfont-css-prefix}-search {
      font-size: @font-size-lg;
    }
  }

  &.@{search-prefix}-enter-button > .@{clinia-prefix}-input {
    padding-right: 46px;
  }

  &.@{search-prefix}-enter-button > .@{clinia-prefix}-input-suffix {
    right: 0;
  }

  & input {
    border: none;
    border-radius: 0;
    box-shadow: none !important;
    transition: 0s;
    // border-color: @outline-color;

    &.@{clinia-prefix}-input {
      padding-left: 40px !important;
    }

    &:hover, &:focus {
      border-bottom: 1px solid @outline-color !important;
      transition: 0s;
      padding-bottom: 2px;
    }
  }
}
