/* Preserve theme layout while leaving Elementor container and advanced controls functional. */
.elementor-editor-active .ifr-visual-container{--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;--gap:0px;max-width:none;width:100%}
.elementor-editor-active .elementor-widget-ifr-content-section{width:100%;margin:0}
.elementor-editor-active .ifr-anim{opacity:1!important;transform:none!important}
.editor-styles-wrapper .wp-block-ifocus-visual-section{max-width:none;width:100%;margin:0}
.editor-styles-wrapper .ifr-visual-preview{pointer-events:none}
.editor-styles-wrapper .ifr-anim{opacity:1!important;transform:none!important}
.ifr-native-editor-label{padding:8px 12px;background:#eef0f9;border:1px solid #cbd0e5;color:#1b2340;font:600 13px/1.5 sans-serif}
body.ifr-native-visual-editor .block-editor-block-list__layout,
.editor-styles-wrapper .block-editor-block-list__layout:has(.wp-block-ifocus-visual-section){display:block!important}
body.ifr-native-visual-editor #elementor-switch-mode{display:none!important}
/* Elementor resets all anchor shadows; retain the theme's button treatment. */
.elementor a.ifr-btn--primary{box-shadow:0 6px 18px -6px color-mix(in srgb,var(--if-brand) 70%,transparent)}
.elementor a.ifr-card,.elementor a.ifr-spec,.elementor a.ifr-next__card,.elementor a.ifr-rev__card{box-shadow:0 1px 2px rgba(27,35,64,.06),0 6px 16px -6px rgba(27,35,64,.12)}
.elementor a.ifr-card:hover,.elementor a.ifr-spec:hover,.elementor a.ifr-next__card:hover{box-shadow:0 2px 4px rgba(27,35,64,.08),0 18px 36px -12px color-mix(in srgb,var(--if-brand) 40%,transparent)}
.editor-styles-wrapper .block-editor-block-list__layout>.wp-block-ifocus-visual-section{max-width:none!important;width:100%!important}
/* Match WordPress flow gaps without overriding explicit theme section margins. */
:where(div.ifr-visual-flow-following){margin-block-start:var(--wp--style--block-gap,24px)}
