/* Only used by wp-admin/customize.php. No public page overhead. */
#bouzin-inline-editor-host {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: var(--bouzin-classic-offset, 310px) !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;
    /* WP .wp-full-overlay has z-index: 500000. This host MUST be its
       child, otherwise the entire Gutenberg iframe stays behind the preview. */
    z-index: 20 !important;
    background: #f0f0f1;
    overflow: hidden;
    transition: none;
}
#bouzin-inline-editor-host[hidden] { display: none !important; }
.bouzin-inline-editor-frame {
    position: absolute;
    inset: 0;
    display: none;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    background: #fff;
}
.bouzin-inline-editor-frame.is-active { display: block; }
.bouzin-inline-status { font-size: 12px; line-height: 1.5; color: #50575e; }
/* Classic controls stay fully intact until the user folds them. */
body.bouzin-classic-panel-hidden #customize-controls,
body.bouzin-classic-panel-hidden .wp-full-overlay-sidebar { display: none !important; }
body.bouzin-classic-panel-hidden #bouzin-inline-editor-host {
    left: 0 !important;
    width: 100vw !important;
}

/* The Customizer footer contains BOTH its collapse button and its
   desktop/tablet/mobile preview controls. All of these target the classic
   preview, not the embedded Site Editor. Hide the whole footer only while
   Gutenberg is embedded; restore it for the ordinary Customizer preview.
   Gutenberg's own toolbar and responsive controls stay untouched. */
body.bouzin-inline-editor-open #customize-footer-actions {
    display: none !important;
}
