﻿.modern-alert-overlay {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: #000000cc;
    z-index: 999999;
    text-align: center;
    opacity: 0;
    transition: opacity .3s;
    overflow: auto;
    pointer-events: none;
}

    .modern-alert-overlay.show-modal {
        opacity: 1;
        pointer-events: auto !important;
    }

    .modern-alert-overlay:before {
        content: " ";
        display: inline-block;
        vertical-align: middle;
        height: 100%;
    }

.modern-alert-box {
    width: 50%;
    min-height: 200px;
    background: #fff;
    border-radius: 30px;
    position: static;
    margin: 0 auto;
    display: inline-block;
    vertical-align: middle;
    animation: showModernAlert .4s;
    transform: scale(1);
}

    .modern-alert-box.bg-warning {
        width: 95%;
        background: #ffc107;
    }

    .modern-alert-box.bg-success {
        width: 95%;
        background: #28a745;
    }

    .modern-alert-box.bg-error {
        width: 95%;
        background: #d83d3d;
    }

@media(min-width:500px) {
    .modern-alert-box.bg-warning {
        width: 500px;
        background: #ffc107;
    }

    .modern-alert-box.bg-success {
        width: 500px;
        background: #28a745;
    }

    .modern-alert-box.bg-error {
        width: 500px;
        background: #d83d3d;
    }
}

.modern-alert-head {
    width: 100%;
    float: left;
}

.modern-alert-head-top {
    width: 100%;
    float: left;
    padding-top: 10px;
    padding-bottom: 10px;
}

.modern-alert-head-bottom {
    width: 100%;
    float: left;
}

.modern-alert-head-left {
    width: 80%;
    float: left;
    text-align: left;
    font-size: 20px;
    padding-top: 5px;
    padding-left: 40px;
}

.modern-alert-head-right {
    width: 20%;
    float: right;
}

.modern-alert-head-bottom {
    width: 100%;
    float: left;
    text-align: center;
    padding-top: 25px;
    padding-bottom: 25px;
}

    .modern-alert-head-bottom img {
        width: 180px;
        filter: drop-shadow(0px 0px 20px #0000002b);
    }

.modern-alert-head-close {
    width: 40px;
    float: right;
    position: absolute;
    box-shadow: 0px 7px 17px 0 #00000024;
    height: 40px;
    right: 10px;
    border-radius: 50px;
    background: #fff;
    cursor: pointer;
    background: url(/assets/img/modern-alert-close.svg) center center,#fff;
    background-size: cover;
    transition: 0.4s;
}

    .modern-alert-head-close:hover {
        background-color: #d1cfcf;
    }

.modern-alert-head-middle {
    width: 100%;
    float: left;
    font-size: 25px;
    color: #fff;
    text-align: center;
    font-weight: bold;
}

.modern-alert-content {
    width: 100%;
    float: left;
    padding: 20px;
    text-shadow: 0px 0px 10px #0000001f;
    /* font-size: 22px; */
}

.modern-alert-box.bg-error .modern-alert-content, .modern-alert-box.bg-warning .modern-alert-content, .modern-alert-box.bg-success .modern-alert-content {
    color: #fff;
    text-align: center;
    font-size: 22px;
}

.modern-alert-box.bg-error .swal-button, .modern-alert-box.bg-warning .swal-button, .modern-alert-box.bg-success .swal-button,
.modern-alert-box.bg-error .btn-modern-alert, .modern-alert-box.bg-warning .btn-modern-alert, .modern-alert-box.bg-success .btn-modern-alert {
    color: #fff;
    text-align: center;
    border: 3.5px solid #fff;
    background-color: transparent;
    margin-bottom: 10px;
}

.swal-button,
.btn-modern-alert {
    width: 80%;
    margin: 0 auto;
    display: block;
    cursor: pointer;
    line-height: 2.6;
    height: 50px;
    border-radius: 50px;
    border: 3.5px solid #f44336;
    transition: 0.4s;
    /* pointer-events: none!important; */
    color: #fff;
    background-color: #f44336;
    box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%) !important;
}

.modern-alert-foter {
    width: 100%;
    float: left;
    padding-top: 15px;
    padding-bottom: 15px;
}

.swal-button:hover,
.btn-modern-alert:hover {
    background-color: #fff !important;
    color: #000 !important;
}

.padtop_bot10 {
    padding-top: 10px;
    padding-bottom: 10px;
}

@keyframes showModernAlert {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1)
    }

    1% {
        -webkit-transform: scale(.5);
        transform: scale(.5)
    }

    45% {
        -webkit-transform: scale(1.05);
        transform: scale(1.05)
    }

    80% {
        -webkit-transform: scale(.95);
        transform: scale(.95)
    }

    to {
        -webkit-transform: scale(1);
        transform: scale(1)
    }
}
