﻿.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: #ffffff !important;
    }

    .modern-alert-box.bg-success {
        width: 95%;
        background: #28a745 !important;
    }

    .modern-alert-box.bg-error {
        width: 95%;
        background: #d83d3d !important;
    }

@media(min-width:500px) {
    .modern-alert-box.bg-warning {
        width: 500px;
        background: #ffc107;
    }

    .modern-alert-box.bg-success {
        width: 500px;
        background: #28a745 !important;
    }

    .modern-alert-box.bg-error {
        width: 500px;
        background: #d83d3d !important;
    }
}

.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: 130px;
        filter: drop-shadow(0px 0px 20px #0000002b);
    }

.modern-alert-box.bg-warning .modern-alert-head-bottom img {
    width: 130px;
    filter: drop-shadow(0px 0px 20px #0000002b) hue-rotate(-50deg)
}



.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;
    position: relative;
    padding: 20px;
    text-shadow: 0px 0px 10px #0000001f;
    /* font-size: 22px; */
}

.modern-alert-box.bg-white.swal-modal .modern-alert-content {
    padding: 0;
}

.modern-alert-box.bg-error .modern-alert-content, .modern-alert-box.bg-success .modern-alert-content {
    color: #fff;
    text-align: center;
    font-size: 22px;
}

.modern-alert-box.bg-warning .modern-alert-head-middle,
.modern-alert-box.bg-warning .modern-alert-content {
    color: #4a4a4a;
    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 #ffd333; */
    background-color: transparent;
    margin-bottom: 10px;
}

    .modern-alert-box.bg-warning .btn-modern-alert:hover {
        background-color: #000000a3 !important;
        color: #fff !important;
    }

.swal-button--cancel {
    background: #ff6e4d !important;
}

#swal-button--confirm {
    background: #54BA4A;
}

.modern-alert-box .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 #ffffff;
    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)
    }
}

#preloader1, #preloader {
    position: absolute;
    top: 0;
    left: 0;
    margin-left: 0;
    padding-top: 150px;
    right: 0;
    text-align: center;
    z-index: 9999999;
    bottom: 0;
    background-color: #08000059;
}

.fa-spinner {
    font-size: 65px;
    top: calc(50% - 65px);
    position: absolute;
    animation: 0.8s linear 0s infinite loader;
    left: calc(50% - 32.5px);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

@keyframes loader {
    0% {
        transform: rotate(0deg);
        color: #fff;
    }

    50% {
        color: #fff;
    }

    100% {
        transform: rotate(360deg);
        color: #fff;
    }
}

iframe {
    border: none !important
}

#preloader span {
    position: absolute;
    width: 230px;
    top: calc(50% + 15px);
    color: #f44336;
    background: #fff;
    left: calc(50% - 115px);
    padding: 10px;
    border-radius: 30px;
    text-align: center;
}

@media(max-width:768px) {

    .modern-alert-box {
        width: 98%;
    }
}
