.nk-modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    display: none;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    pointer-events: none;
}

.nk-modal.fade {
    transition: opacity .15s linear;
}

.nk-modal:not(.show) {
    opacity: 0;
}

.modal-dialog {
    position: relative;
    pointer-events: none;
    max-width: 500px;
    margin: 1.75rem auto;
}

.modal-dialog-sm {
    max-width: 300px;
}


.modal-dialog-lg {
    max-width: 800px;
}

.modal-dialog-xl {
    max-width: 1140px;
}

@media (max-width: 1200px) {
    .modal-dialog-xl {
        max-width: 800px;
    }
}

@media (max-width: 992px) {
    .modal-dialog-lg, .modal-dialog-xl {
        max-width: 500px;
    }
}



.modal-dialog-width-full {
    max-width: unset;
    width: auto;
    margin: 0.5rem;
}

.modal.static .modal-dialog {
    transform: scale(1.02);
}

.modal-fullscreen {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
}

.modal-fullscreen .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
}

.nk-modal.fade .modal-dialog {
    transition: transform .3s ease-out;
    transform: translate(0,-50px);
}

.nk-modal.show .modal-dialog {
    transform: none;
}


.modal-dialog-center {
    display: flex;
    align-items: center;
    min-height: 100%;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 0.3rem;
    outline: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
}

.modal-header p {
    margin: 0;
}

.btn-close {
    cursor: pointer;
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em 0.25em;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.25rem;
    opacity: .5;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.modal-fullscreen .modal-body {
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: calc(0.3rem - 1px);
    border-bottom-left-radius: calc(0.3rem - 1px);
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100vw;
    height: 100vh;
    background-color: black;
    opacity: 0;
}

.modal-backdrop.fade {
    
    transition: opacity .15s linear;
}

.modal-backdrop.show {
    opacity: 0.5;
}