/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
/* Overlay background */
.custom-iframe-popup {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Adjust for WP admin bar when logged in */
body.admin-bar .custom-iframe-popup {
    top: 32px; /* Default WP admin bar height */
    height: calc(100% - 32px);
}
@media (max-width: 782px) {
    body.admin-bar .custom-iframe-popup {
        top: 46px; /* WP admin bar height on mobile */
        height: calc(100% - 46px);
    }
}

/* Inner container (90% of screen) */
.custom-iframe-popup-inner {
    position: absolute;
    right: 0;
    width: 96%;
    height: 100%;
    background: #fff;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

/* Iframe takes full space */
.custom-iframe-popup-inner iframe {
    width: 100%;
    height: 100%;
    border: 0;
    padding: 10px;
    box-sizing: border-box;
}

/* Close button */
.custom-iframe-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.4rem;
    /* font-size: 16px; */
    font-weight: 600;
    line-height: 1.6rem;
    /*     
    background: none;
    border: none;
    cursor: pointer;
    */
    z-index: 10000;
    cursor: pointer;
    background-color: #ffffff;
    border-radius: 50%;
    height: 30px;
    width: 30px;
    border: 1px solid #dddddd;
}