// Alerts
// --------------------------------------------------
.qor-alert {
    padding: 24px 48px 0 24px;
    line-height: 24px;
    color: unquote('rgb(#{$palette-grey-700})');
    background-color: unquote('rgb(#{$palette-grey-100})');
    position: fixed;
    z-index: 99999;
    margin: 0;
    left: 50%;
    top: 0;
    transform: translate(-50%, -110%);

    justify-content: space-between;
    display: flex;
    flex-direction: column;
    will-change: transform;
    transition: transform 0.25s cubic-bezier(0.4, 0, 1, 1);

    @include shadow-2dp();
    @include clearfix();

    &.qor-alert__active {
        transform: translate(-50%, 0);
    }

    > button {
        position: absolute;
        right: 5px;
        top: 9px;
        z-index: 1;
    }

    .qor-alert-message {
        padding-bottom: 24px;
    }
}

.qor-alert--success {
    color: unquote('rgb(#{$palette-blue-700})');
    background-color: unquote('rgb(#{$palette-blue-100})');
}

.qor-alert--error {
    color: unquote('rgb(#{$palette-pink-700})');
    background-color: unquote('rgb(#{$palette-pink-100})');
}

.mdl-dialog-bg {
    position: fixed;
    background: unquote('rgba(#{$color-black}, 0.54)');
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9998;
}

// Errors
// --------------------------------------------------

.qor-error {
    background-color: #fff;
    list-style: none;

    > li {
        + li {
            margin-top: -1px;
        }

        position: relative;
        display: block;
        margin-bottom: 0;
        padding-left: 32px;
        line-height: 1.3;
        font-weight: normal;
        margin-bottom: 24px;
        color: unquote('rgb(#{$color-accent})');

        > i {
            position: absolute;
            top: -3px;
            left: -5px;
            vertical-align: top;
        }

        > span {
            padding-right: 24px;
        }
    }
}

.qor-modal {
    .qor-error {
        margin: 24px 0;
    }
}

#dialog {
    display: none;
    .mdl-dialog {
        position: absolute;
        left: 0;
        right: 0;
        width: -moz-fit-content;
        width: -webkit-fit-content;
        width: fit-content;
        height: -moz-fit-content;
        height: -webkit-fit-content;
        height: fit-content;
        margin: auto;
        padding: 1em;
        background: white;
        color: black;
        display: block;
        z-index: 9999;
        top: 200px;
        max-width: 50%;
        min-width: 30%;
        border: 2px solid rgba(0, 0, 0, 0.05);
        .mdl-dialog__content {
            > p {
                display: inline-block;
                vertical-align: top;
                margin: 0;
                width: 40px;
                &.mdl-dialog__message {
                    padding: 2px 0 0 16px;
                    width: calc(100% - 100px);
                }
                i {
                    font-size: 32px;
                    color: #ff0600;
                }
            }
        }
        button[data-type='cancel'] {
            color: unquote('rgba(#{$color-black}, 0.54)');
        }
        .mdl-dialog__content {
            color: unquote('rgba(#{$color-black}, 0.75)');
        }
    }
}
