﻿.iframe-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
    padding: 16px;
    box-sizing: border-box;
    z-index: 1100000;
}

.iframe-box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: zoomIn 0.35s ease;
    width: 100%;
    max-width: 550px;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#closeIframeBtn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffffff;
    color: #6b7280;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    #closeIframeBtn:hover {
        background: #f8fafc;
        color: #dc2626;
        transform: rotate(90deg) scale(1.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    #closeIframeBtn:active {
        transform: rotate(90deg) scale(0.95);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

#iframeinsert {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

    #iframeinsert iframe {
        border: none;
        width: 100%;
        height: 100%;
        min-height: 500px;
        border-radius: 12px;
    }

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .iframe-box {
        max-height: 90vh;
    }

    #iframeinsert iframe {
        min-height: 600px;
    }
}

@media (max-width: 480px) {
    .iframe-modal {
        padding: 8px;
    }

    .iframe-box {
        max-height: 90vh;
    }

    #iframeinsert iframe {
        min-height: 600px;
    }
}
