.z-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    z-index: 1050
}

.z-modal_open {
    display: flex
}

.z-modal__dialog {
    background: #fff;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 4px;
    width: 90%;
    max-width: 1200px
}

.z-modal__header, .z-modal__footer {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6
}

.z-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.z-modal__footer {
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: .5rem
}

.z-modal__body {
    padding: 1rem
}

.z-modal-close {
    background: none;
    border: 0;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer
}