.modal-window-overlay {
    @extend %overlay;
    display: flex;
    justify-content: center;
    align-items: flex-start;

    &.open {

        .modal-window-container {
            transform: translate3d(0, 100%, 0);
            transition: translate3d, .3s ease-in-out .4s;
        }
    }
}

.modal-window-container {
    width: auto;
    height: auto;
    min-width: 5rem;
    min-height: 5rem;
    max-height: 80rem;
    top: 0;
    background: #fff;
    box-shadow: 0 0 1rem -0.4rem #000;
    overflow: hidden;
    border: 0.1rem solid $colorNeutralBd;
    position: absolute;
    z-index: 2;
    border-radius: .6rem;
    transition: translate3d, .3s ease-in-out .2s;

    &.loading {
        [class^="btn-"] {
            cursor: default;

            &:after {
                font-family: 'icomoon', sans-serif;
                content: "\e90f";
                margin-left: 0.5rem;
                display: inline-block;
                font-size: 1.4rem;
                opacity: 1;
                animation: spinner-transition 1.0s infinite linear reverse;

            }
            &:hover {
                background-color: $colorMainRoyal;
            }

        }

        .icon-plus-circle {
            opacity: 0.3;
            cursor: default;
        }
        .link-cancel {
            opacity: 0.3;
            cursor: default;
            &:hover {
                color: #999999;
            }
        }

        .icon-arrow-square {
            display: none !important;

        }
        .icon-check {
            @extend .icon-arrow-square;
        }

        .icon-spinner-circle {
            display: inline-block !important;

        }

    }
    &.modal-red {
        .modal-window-header {
            background: $colorError;
        }
        .btn-blue-small {
            background: $colorError;
        }
    }
}

.modal-window-header {
    width: 100%;
    height: 4rem;
    padding: 0 2rem;
    background: $colorMainDarken;
    text-align: center;
    color: #fff;
    position: relative;

    .title {
        margin: 0;
        font-size: 1.4rem;
        line-height: 4rem;
        height: 100%;
        white-space: nowrap;
        text-transform: uppercase;
        display: inline-block;
        font-family: $fontTitlesB;
    }

    .icon-plus-circle {
        font-size: 1.4rem;
        float: right;
        line-height: 3.9rem;
        position: absolute;
        right: 1rem;
        cursor: pointer;
        display: inline-block;
        transform: rotate(45deg);
    }
}

.modal-window-content {
    width: auto;
    height: auto;
    @extend .form;

    .txt-default {
        font-family: $fontDefault;
        color: $colorFont;
        font-size: 1.4rem;
        line-height: 2rem;
        margin: 0 0 2rem;
        text-align: center;

        span {
            font-weight: bold;
        }
    ;
    }
}

.modal-window-footer {
    height: 5.2rem;
    width: 100%;
    display: block;
    padding: 1rem 2rem;
    background: $colorNeutralBg;

    .link-cancel {
        @extend %link-button;
        @extend %neutral;
        line-height: 3.4rem;
        height: 100%;
        display: inline-block;

        i {
            font-size: 0.7rem;
            margin-right: 0.5rem;
            position: relative;
            margin-top: -0.1rem;
        }
    }

    .btn-blue-small {
        float: right;
    }
}
