.dialog-modal {
    /* display: none; */
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    background-color: rgba(0,0,0,.7);
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    opacity: 0;
    transition: opacity .3s ease;
}

.dialog-modal--toggled {
    visibility: visible;
    opacity: 1;
}

/* .dialog-modal:before {
    content: ' ';
    background: #000;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    opacity: 0.7;
    z-index: 9999;
} */

/* .dialog-modal__overlay {
    position: fixed;
    width: 100%;
    height: 100vh;
    display: flex;
    top: 0;
    left: 0;
    z-index: 10999;
} */

.dialog-modal__content {
    display: flex;
    flex-direction: column;
    position: relative;
    background: #eaedf1;
    border-radius: 4px;
    /* opacity: 0; */
    max-width: 540px;
    margin: auto;
    transform: scale(0);
    transition: transform .3s ease, opacity .2s ease;
    overflow-y: auto;
    max-height: 100%;
}

.dialog-modal__content--toggled {
    transform: scale(1);
    /* opacity: 1; */
    /* overflow-y: scroll; */
}

.dialog-modal__header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.dialog-modal__body {}

.dialog-modal__footer {
    padding: 10px;
}

.dialog-modal__btn-close {
    --size: 45px;
    margin-top: 5px;
    margin-right: 5px;
    width: var(--size);
    height: var(--size);
    padding: 12px;
    cursor: pointer;
    border-radius: 50%;
    fill: #555;
    background: #eee;
}

.dialog-modal__btn-close:hover {
    background-color: rgba(202, 202, 202, .5);
}

.dialog-modal__btn-close * {
    pointer-events: none;
}