.kmodal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    margin: 0 auto;
}

.kmodal.hidden,
.kmodal .hidden {
    display: none;
}

.kmodal .bg {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: black;
    opacity: .8;
}

.kmodal .wrap {
    max-width: 720px;
    padding: 30px 26px 20px 26px;
    background: white;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .5);
    color: #333;
    margin: 12px;
    min-width: 300px;
    overflow: auto;
    max-height: 98vh;
}

.kmodal .wrap img {
    max-width: 100%;
}

.kmodal .header {
    color: #455660; font-weight: 700; line-height: 140%; font-size: 16px; margin: 0 0 12px;
}

.kmodal .dialog:not(.clean) {
    max-width:500px;
    
}

.kmodal .dialog.clean .icon {
    display: none;
}

.kmodal .dialog .icon { font-size: 28px; margin:0 0 8px; }

.kmodal .dialog .text p:not(:last-child) {margin-bottom:8px; }

.kmodal .dialog .icon-alert { color: orange; }

.kmodal .dialog .icon-confirm {
    color: gray;
}

.kmodal .dialog .icon-info {
    color: #2185d0;
}

.kmodal .dialog .icon-error {
    color: #d01919;
}

.kmodal .dialog .icon-loading {
    color: #ccc;
}

.kmodal .dialog .dialog .text {
    align-self: center;
}
.kmodal .buttons{justify-content:center; text-align:center;margin:20px 0 0;display:flex;flex-flow:row wrap}
.kmodal .buttons .button {
    padding: 8px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
        margin-right: 20px;
        margin-bottom:12px;
    padding: 8px 56px;
    text-decoration: none;
}
.kmodal .buttons .button:last-child {margin-right:0}
.kmodal .buttons .buttonTwo {
    border: none;
    color: #455660;
    background: #BCC4C9;
}
.kmodal .buttons .buttonOne{background:#3D84EA;color:#fff}

.kmodal[data-type="loading"] .buttons,
.kmodal[data-type="clean"] .buttons {
    display: none;
}

.kmodal[data-type="info"][data-btnstyle="web"] .buttons .buttonTwo,
.kmodal[data-type="alert"][data-btnstyle="web"] .buttons .buttonTwo,
.kmodal[data-type="error"][data-btnstyle="web"] .buttons .buttonTwo {
    display: none;
}

.kmodal[data-type="info"][data-btnstyle="windows"] .buttons .buttonOne,
.kmodal[data-type="alert"][data-btnstyle="windows"] .buttons .buttonOne,
.kmodal[data-type="error"][data-btnstyle="windows"] .buttons .buttonOne {
    display: none;
}

@media screen and (max-width: 500px) {

    .kmodal .buttons{}
    .kmodal .buttons .button {
        width: 100%;
        margin: 0 0 12px 0;
        padding: 8px 56px;
    }

}