.alert{
    &:last-child{
        margin-bottom: 0;
    }
    &-link {
        box-shadow: 0 1px 0 currentColor;
        &:hover {
            box-shadow: none;
        }
    }
    h5, h6, .title {
        font-size: ($h6-font-size * 1.05);
    }
    &.alert-icon{
        padding-left: $alert-padding-x + $alert-icon-width;
        > .icon{
            position: absolute;
            font-size: 1.25rem;
            line-height: 1;
            width: $alert-icon-width;
            top: $alert-padding-y;
            left: $alert-padding-x;
            margin-left:-1px;
        }
    }
    &-dismissible{
        .close{
            top: 50%;
            transform: translateY(-50%);
            transition: .3s ease;
            margin-top: -1px;
            &:focus{
                outline: none;
            }
            &:hover{
                color: currentColor;
            }
            &:after{
                font-family: $nk-dashlite-font;
                content: $ni-cross;
                font-size: 1.1rem;
            }
        }
    }
    &-light, &-lighter, &-gray {
        border-color: $border-light;
        color: $base-text;
        .alert-link {
            color: $base-text;
        }
    }
    //@i-v140-s-
    &-alt{
        position: relative;
        padding: .875rem;
        border-radius: $border-radius-xxl;
        &.alert-icon{
            padding-left: 4rem;
            > .icon{
                position: absolute;
                font-size: 2rem;
                line-height: 1;
                width: 4rem;
                top: 50%;
                left: 0;
                transform: translateY(-50%);
                text-align: center;
                opacity: 0.5;
            }
        }
    }
    //@i-v140-e-
}
a.alert:hover{
    color: currentColor;
}

$alert-fill: map-merge(
    $theme-colors,
    (
        "light": $light-200,
        "lighter": $light-100,
    )
);
@each $state, $bg in $alert-fill {
    .alert-fill.alert-#{$state}{
        color: color-yiq($bg);
        background: $bg;
        
    }
}
.alert-fill {
    border-width: 0;
    .alert-link, .icon, h4, h5, h6 {
        color: currentColor;
    }
    &.alert-light{
        color: $secondary;
    }
    &.alert-lighter{
        color: $secondary-light;
    }
}

$alert-pro: map-merge(
    $theme-colors,
    (
        "light":       $light-400,
        "lighter":     $light-400
    )
);

.alert-pro{
    box-shadow: 0 4px 15px 0 rgba($dark,.1);
    border: none;
    border-left: 4px solid transparent;
    color: $base-text;
    line-height: 1.5;
    background: $white;
    &.no-shadow {
        box-shadow: none;
    }
    &.no-border {
        border-left: 0;
    }
    &.alert-icon {
        padding-left: $alert-padding-x + $alert-pro-icon-width;
        > .icon {
            font-size: 1.75rem;
            top: 50%;
            transform: translateY(-50%);
        }
    }
}
@each $state, $color in $alert-pro {
    .alert-pro.alert-#{$state}{
        border-color: $color;
        > .icon {
            color: $color;
        }
    }
}
