/**
 *
 * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). 
 * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc..  
 * 
 * This source code is licensed under the Apache license.
 * See LICENSE file in the project root for license information.
 *
 */
@import '../../../input/style/mixins.less';

@mention-prefix-cls: ~'@{ant-prefix}-mentions';
@input-prefix-cls: ~'@{ant-prefix}-input';

.@{mention-prefix-cls} {


  &-affix-wrapper {
    position: relative;

    .@{mention-prefix-cls}-feedback-icon {
      position: absolute;
      top: 0;
      right: @input-padding-horizontal-base;
      bottom: 0;
      z-index: 1;
      display: inline-flex;
      align-items: center;
      margin: auto;
    }

    &-status-error {
      .@{mention-prefix-cls}-feedback-icon {
        color: @error-color;
      }
    }

    &-has-warning {
      .@{mention-prefix-cls}-feedback-icon {
        color: @warning-color;
      }
    }
  }
  
  &&-status-error {
    background: #fff;
    border-color: @color-function-danger-main;
  }

  &&-status-warning {
    background: #fff;
    border-color: @color-function-warning-main;
  }
}
