/* Deliberately minimal: imported designs own their visual style. */
.wpst-aihtml-root{position:relative;width:100%;min-width:0;isolation:isolate}
.wpst-aihtml-root,.wpst-aihtml-root *,.wpst-aihtml-root *::before,.wpst-aihtml-root *::after{box-sizing:border-box}
.wpst-aihtml-root.wpst-aihtml-full{width:100vw;max-width:100vw;position:relative;left:50%;margin-left:-50vw}
.wpst-aihtml-missing{padding:18px;border:1px dashed #94a3b8;border-radius:8px;background:#f8fafc;color:#475569;font:14px/1.5 system-ui,sans-serif}

/* v3.3.115 — Header, Footer and Mega Menu compatibility.
   Context marking is per-widget (no global theme/header override). */
.wpst-aihtml-root[data-wpst-context-resolved="header"].wpst-aihtml-full,
.wpst-aihtml-root[data-wpst-context-resolved="footer"].wpst-aihtml-full,
.wpst-aihtml-root[data-wpst-context-resolved="mega"].wpst-aihtml-full{
  width:100%!important;max-width:100%!important;left:auto!important;
  margin-left:0!important;margin-right:0!important;
}
/* Elementor shells on the ancestor chain of an explicitly cleaned AI design.
   The imported design root and all its descendants keep their own CSS. */
.wpst-aihtml-context-shell{
  background:transparent!important;background-image:none!important;
  border:0!important;box-shadow:none!important;border-radius:0!important;
  padding:0!important;margin-block:0!important;
}
/* Reset only AI HTML panel shells. Never affect ordinary Elementor mega menus. */
.wpst-elementor-mega-panel.wpst-aihtml-context-panel{
  background:transparent!important;background-image:none!important;
  border:0!important;box-shadow:none!important;border-radius:0!important;
  padding:0!important;
}
