@import '../../styles/typography';
@import '../../styles/color';

.one-ui-form-validation-error {
    $root: &;
    @include font('s-13');

    position: absolute;
    top: -6px;
    transform: translateY(-100%);

    display: flex;
    align-items: center;
    width: calc(100% - #{ 17px * 2 });
    padding: 14px 17px;

    background: color(white);
    box-shadow: 8px 8px 40px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    pointer-events: none;

    &:before {
        content: "!";
        width: 19px;
        height: 19px;
        border-radius: 50%;
        background: color(red);
        color: color(white);
        font-size: 13px;
        text-align: center;
        font-weight: 900;
        margin-right: 17px;
        display: inline-block;
        line-height: 21px;
        flex-shrink: 0;
    }

    &:after {
        content: '';
        position: absolute;
        width: 0;
        height: 0;
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-top: 7px solid color(white);
        bottom: -7px;
        left: 14px;
    }
}
