@import '../../../../es/style/themes/default';
@import '../../text-field/style/mixin';

@mentions-prefix: ~'@{c7n-pro-prefix}-mentions';

.@{mentions-prefix} {
  min-height: @input-height-base;
  .input;

  &-wrapper {
    max-width: 100%;

    label {
      .@{mentions-prefix} {
        padding-right: 0.13rem;
      }

      .@{mentions-prefix}-clear-button {
        top: 0.07rem;
        right: 0.03rem;
        bottom: unset;
        width: 0.2rem;
      }

      .@{mentions-prefix}-length-info {
        right: 0;
        bottom: -0.2rem;
      }
    }
  }

  &,
  &-placeholder {
    padding: @textarea-padding;
  }

  &-length-info {
    top: unset;
    right: 0.08rem;
    bottom: 0.04rem;
    margin: unset;
  }

  &-measure {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    padding: @mentions-measure-padding;
    overflow: auto;
    color: transparent;
    font-size: inherit;
    line-height: 1.5;
    white-space: pre-wrap;
    vertical-align: bottom;
    border: 0.01rem solid transparent;
    border-radius: 0.02rem;
    pointer-events: none;
  }
}
