.popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999998;
}

.popup-frame {
    position: fixed;
    z-index: 9999999;
    overflow: hidden;
}

.popup-frame > iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

.popup-close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 6px 10px;
    border: 0;
    outline: 0;
    background: transparent;
}

.popup-frame.ptype-popup {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    border-radius: 12px;
    box-sizing: border-box;
}

.popup-frame.ptype-notify-bar {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.popup-frame.ptype-notify-window {
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .popup-frame.ptype-popup {
        max-width: calc(100vw - 1rem);
        max-height: calc(100vh - 1rem);
    }

    .popup-frame.ptype-notify-bar {
        max-height: 50vh;
    }

    .popup-frame.ptype-notify-window {
        max-width: calc(100vw - 1rem);
        max-height: calc(100vh - 1rem);
    }
}