body.popup-open {
  overflow: hidden;
}
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2001;
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
}
.popup-content {
    box-sizing: border-box;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    max-width: var(--wp--style--global--content-size);
    text-align: center;
    max-height: min(90vh, calc(100vh - 40px));
    overflow-y: auto;
}
.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}