.modal {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    
    z-index: 1025;
    overflow-x: hidden;
    overflow-y: hidden;
}

.modal .modal-backdrop {
    position: relative;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    height: 100vh;
    width: 100%;
    
    padding: 6.25rem 10rem;
}

.modal .modal-backdrop:not(.clear) {
    background-color: rgba(0, 0, 0, 0.6);
}

.modal .modal-frame {
    border: solid 1px #979797;
    background: white;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal .modal-frame > * {
    flex-shrink: 0;
    flex-grow: 0;
}

.modal .modal-frame > *.modal-body {
    flex-shrink: 1;
    flex-grow: 1;
}

.modal .modal-header {
    padding: 1rem 1.125rem 0.75rem 2rem;
    border-bottom: 1px solid #ededed;
    
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: space-between;
    justify-content: space-between;
    align-items: flex-start;
}

.modal .modal-header .modal-header-title {
    display: block;
    margin-bottom: 0.5rem;
    
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.3;
    color: #353535;
}

.modal .modal-header .modal-close {
    flex-shrink: 0;
    flex-grow: 0;
}

.modal .modal-header button {
    background: transparent;
    height: auto !important;
    padding: 0;
}

.modal .modal-header .wk-icon-close {
    color: #232323;
    font-size: 1.25rem;
}

.modal .modal-body {
    padding: 1.75rem 2rem;
    overflow-y: scroll;
    position: relative;
}

.modal .modal-footer {
    background: #f6f6f6;
    padding: 1rem 2rem;
    
    display: flex;
    flex-direction: row-reverse;
    align-items: baseline
}

.modal .modal-footer > * {
    margin-left: 1rem;
}
