.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;
    font-size: 16px;
}

.kmodal .wrap img {
    max-width: 100%;
}

.kmodal .header {
    color: #272C38;
    line-height: 140%;
    font-size: 18px;
    margin: 0 0 12px;
}

.kmodal .dialog:not(.clean) {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    margin: 16px 0;
    max-width: 500px;
}

.kmodal .dialog.clean .icon {
    display: none;
}

.kmodal .dialog .icon {
    font-size: 28px;
    margin-right: 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;
    font-size: 10px;
}

.kmodal .dialog .text {
    align-self: center;
    width: 100%;
}

.kmodal .buttons {
    justify-content: center;
    text-align: center;
    margin: 24px 0 0;
    display: flex;
    flex-flow: row wrap;
}

.kmodal .buttons .button {
    border-radius: 8px;
    font-size: 18px;
    margin-right: 20px;
    padding: 8px 56px;
    text-decoration: none;
}

.kmodal .buttons .button:last-child {
    margin-right: 0
}

.kmodal .buttons .buttonTwo {
    border: none;
    color: #344148;
    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 {
        margin: 20px 0;
        padding-top: 20px;
    }

    .kmodal .buttons .button {
        width: 100%;
        margin: 0 0 12px 0;
        padding: 8px 56px;
    }

}