/*
Notification Messages

These messages display success or error messages based on a users action.

Markup:
<div style="position:relative;">
    <div role="alert" class="notification-message notification-message--is-active" style="position: inherit; display: inline;" >
        <div class="notification-message__container notification-message__container--exception">
            <span class="notification-message__content icon-notification-message icon-notification-message--exception">
                Error Message
            </span>
        </div>
    </div>
    <div role="status" class="notification-message notification-message--is-active" style="position: inherit; display: inline;">
        <div class="notification-message__container">
            <span class="notification-message__content icon-notification-message">
                Success Message
            </span>
        </div>
    </div>
</div>

Name: notificationMessage

Styleguide 2.17
*/

//Notification message variables
@notification-background: @theme-green1;
@notification-error-background: @theme-red2;
@notification-divider: @theme-green5;
@notification-icon-background: @theme-green4;
@notification-error-divider: @theme-red7;
@notification-error-icon-background: @theme-red6;

.notification-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: @z-index-notification-message;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.3s ease-out;
}

.notification-message--is-active {
    opacity: 1;
    transform: translateY(0);
}

.notification-message__container {
    z-index: @z-index-notification-container;
    position: relative;
    display: inline-block;
    color: #ffffff;
    background-color: @notification-background;
    border-top: none;
    border-radius: 0 0 5px 5px;
    font-size: @font-size-base;
    padding: 13px 15px;
    pointer-events: auto;
}

.notification-message__container:before {
    z-index: @z-index-notification-container;
    position: absolute;
    top: 0;
    left: 0;
    width: 45px;
    height: 100%;
    content: "";
    background-color: @notification-icon-background;
    border-bottom-left-radius: 5px;
    border-right: 1px solid @notification-divider;
}

.notification-message__container--exception {
    background-color: @notification-error-background;
}

.notification-message__container--exception:before {
    background-color: @notification-error-icon-background;
    border-right: 1px solid @notification-error-divider;
}

.notification-message__content {
    line-height: 18px;
    padding: 6px 0 6px 45px;
    -webkit-font-smoothing: antialiased;
}

// The content can be dynamic so we don't have the ability to style <a> in a BEM manner
.notification-message__content a {
    color: #ffffff;
    text-decoration: underline;
}