body.has-open-modal {
    overflow: hidden;
}

.modal {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.modal.is-active {
    display: flex;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 55%);
}

.modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 12px 10px 22px;
    border-radius: 12px 12px 0 0;
    background: #fff;
}

.modal__close {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 18px;
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: #00000033;
    cursor: pointer;
}
