/* Fullscreen Iframe Container */
.fsif-container,
.fsif-template-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    z-index: 9999;
}

/* Fullscreen Iframe */
.fsif-iframe,
.fsif-template-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    margin: 0;
    padding: 0;
    display: block;
}

/* Adjust for admin bar when visible */
body.admin-bar .fsif-container,
body.admin-bar .fsif-template-container {
    height: calc(100vh - 32px);
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .fsif-container,
    body.admin-bar .fsif-template-container {
        height: calc(100vh - 46px);
        top: 46px;
    }
}

/* Remove body overflow for iframe pages */
body.fsif-shortcode-page,
body.fsif-template-page {
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Loading indicator */
.fsif-container.loading::before,
.fsif-template-container.loading::before {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #666;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fsif-container,
    .fsif-template-container {
        width: 100vw;
        height: 100vh;
    }
}