.bclg-iframe-page {
    padding: 24px;
}

.bclg-iframe-launch {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 32px 0;
}

.bclg-iframe-launch h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
}

.bclg-iframe-launch p {
    margin: 0 0 18px;
    color: #646970;
}

.bclg-iframe-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.bclg-iframe-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    color: #161616;
}

.bclg-iframe-modal.is-open {
    display: flex;
}

.bclg-iframe-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.58);
    backdrop-filter: blur(8px);
}

.bclg-iframe-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(1120px, 100%);
    height: min(820px, calc(100vh - 56px));
    margin: auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.bclg-iframe-header {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 12px 16px 12px 20px;
    border-bottom: 1px solid #eeeeee;
    background: #fff;
}

.bclg-iframe-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
}

.bclg-iframe-header p {
    max-width: 620px;
    margin: 4px 0 0;
    color: #70757d;
    font-size: 13px;
    line-height: 1.4;
}

.bclg-iframe-header-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex: 0 0 auto;
}

.bclg-open-linkbill-tab.button,
.bclg-close-iframe-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
    color: #3c434a;
}

.bclg-open-linkbill-tab.button {
    padding: 0 10px;
    font-size: 13px;
    text-decoration: none;
}

.bclg-close-iframe-modal {
    width: 34px;
    min-width: 34px;
    padding: 0;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
}

.bclg-open-linkbill-tab.button:hover,
.bclg-open-linkbill-tab.button:focus,
.bclg-close-iframe-modal:hover,
.bclg-close-iframe-modal:focus {
    background: #f3f4f5;
    color: #111;
    outline: none;
}

.bclg-iframe {
    display: block;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    border: 0;
    background: #fff;
}

.bclg-iframe-status {
    padding: 8px 20px;
    border-bottom: 1px solid #eeeeee;
    background: #fbfbfb;
    color: #70757d;
    font-size: 12px;
    line-height: 1.3;
}

.bclg-iframe-modal-open {
    overflow: hidden;
}

.bclg-blocks-iframe-action {
    width: 100%;
}

.bclg-blocks-iframe-button {
    width: 100%;
}

.bclg-blocks-iframe-error {
    margin: 10px 0 0;
    color: #b32d2e;
}

@media (max-width: 782px) {
    .bclg-iframe-page {
        padding: 12px;
    }

    .bclg-iframe-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 14px;
    }

    .bclg-iframe-modal {
        padding: 0;
    }

    .bclg-iframe-dialog {
        width: 100%;
        height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .bclg-iframe-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .bclg-iframe-header p {
        font-size: 12px;
    }

    .bclg-iframe-status {
        padding: 8px 14px;
    }
}
