/* =================================
   IFRAME SECTION
================================= */
/* ==========================================
   MOBILE FRIENDLY IFRAME SECTION
========================================== */

.iframe-section {
    width: 100%;
    padding: 16px;
}

.iframe-card {
    position: relative;
    width: 100%;

    /* Desktop */
    height: min(650px, calc(100vh - 120px));

    min-height: 420px;

    overflow: hidden;

    background: rgba(5, 10, 16, .72);

    border: 1px solid rgba(255,255,255,.10);

    border-radius: 18px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.35);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}


/* ==========================================
   HEADER
========================================== */

.iframe-header {

    min-height: 60px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding: 10px 15px;

    background: rgba(0,0,0,.30);

    border-bottom:
        1px solid rgba(255,255,255,.08);
}


.iframe-title {

    min-width: 0;

    display: flex;

    align-items: center;

    gap: 10px;

    color: white;
}


.iframe-icon {

    flex: 0 0 auto;

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        rgba(13,110,253,.18);

    color: #4da3ff;

    font-size: 17px;
}


.iframe-title h5 {

    margin: 0;

    font-size: 14px;

    font-weight: 600;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.iframe-title span {

    display: block;

    margin-top: 3px;

    font-size: 9px;

    color:
        rgba(255,255,255,.45);
}


/* ==========================================
   BUTTON
========================================== */

.iframe-actions {

    flex: 0 0 auto;

    display: flex;

    gap: 6px;
}


.iframe-btn {

    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 8px;

    background:
        rgba(255,255,255,.07);

    color:
        rgba(255,255,255,.75);

    cursor: pointer;

    transition: .2s;
}


.iframe-btn:hover {

    background:
        rgba(13,110,253,.65);

    color: white;
}


/* ==========================================
   IFRAME
========================================== */

.iframe-wrapper {

    position: relative;

    width: 100%;

    height:
        calc(100% - 100px);

    overflow: hidden;

    background: #101820;
}


.iframe-wrapper iframe {

    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}


/* ==========================================
   LOADING
========================================== */

.iframe-loading {

    position: absolute;

    inset: 0;

    z-index: 5;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 10px;

    color:
        rgba(255,255,255,.65);

    background:
        rgba(5,10,16,.92);

    font-size: 10px;

    transition: opacity .3s;
}


.iframe-loading.hidden {

    opacity: 0;

    pointer-events: none;
}


/* ==========================================
   FOOTER
========================================== */

.iframe-footer {

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    padding: 0 12px;

    color:
        rgba(255,255,255,.45);

    font-size: 9px;

    background:
        rgba(0,0,0,.30);

    border-top:
        1px solid rgba(255,255,255,.06);
}


.iframe-footer div {

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 768px) {

    .iframe-section {

        padding: 10px;
    }

    .iframe-card {

        height:
            calc(100dvh - 100px);

        min-height: 400px;

        border-radius: 14px;
    }

    .iframe-header {

        min-height: 54px;

        padding:
            8px 10px;
    }

    .iframe-icon {

        width: 34px;
        height: 34px;

        font-size: 15px;
    }

    .iframe-title h5 {

        font-size: 12px;
    }

    .iframe-title span {

        font-size: 8px;
    }

    .iframe-btn {

        width: 32px;
        height: 32px;
    }

}


/* ==========================================
   MOBILE PHONE
========================================== */

@media (max-width: 576px) {

    .iframe-section {

        padding: 6px;
    }

    .iframe-card {

        height:
            calc(100dvh - 80px);

        min-height: 360px;

        border-radius: 12px;
    }

    .iframe-header {

        min-height: 50px;

        padding:
            7px 9px;
    }

    .iframe-icon {

        width: 30px;
        height: 30px;

        border-radius: 8px;

        font-size: 14px;
    }

    .iframe-title {

        gap: 8px;
    }

    .iframe-title h5 {

        max-width: 150px;

        font-size: 11px;
    }

    .iframe-title span {

        font-size: 7px;
    }

    .iframe-actions {

        gap: 4px;
    }

    .iframe-btn {

        width: 30px;
        height: 30px;

        border-radius: 7px;

        font-size: 12px;
    }

    .iframe-wrapper {

        height:
            calc(100% - 90px);
    }

    .iframe-footer {

        height: 40px;

        padding:
            0 9px;

        font-size: 7px;
    }

}


/* ==========================================
   VERY SMALL PHONE
========================================== */

@media (max-width: 380px) {

    .iframe-title h5 {

        max-width: 100px;
    }

    .iframe-title span {

        display: none;
    }

    .iframe-footer div:last-child {

        display: none;
    }

}

.iframe-responsive {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.iframe-responsive iframe {
    display: block;
    width: 100%;
    height: 55vh;
    min-height: 360px;
    border: 0;
}

/* Tablet */
@media (max-width: 768px) {
    .iframe-responsive iframe {
        height: 65vh;
        min-height: 450px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .iframe-responsive iframe {
        height: 70vh;
        min-height: 500px;
    }
}