/*
 * Peasy Theme Builder bridge.
 * Keeps the global Peasy design visible inside Elementor's preview iframe and
 * removes wrappers from Astra only in the dedicated Peasy runtime/preview.
 */
body.peasy-v2 .elementor-location-header,
body.peasy-v2 .elementor-location-footer,
body.peasy-v2 .elementor-location-single,
body.peasy-v2 .elementor-location-archive,
body.peasy-v2 .elementor-widget-html,
body.peasy-v2 .elementor-widget-shortcode,
body.peasy-v2 .elementor-widget-html > .elementor-widget-container,
body.peasy-v2 .elementor-widget-shortcode > .elementor-widget-container{
  width:100%!important;
  max-width:none!important;
}

body.peasy-v2 .elementor-location-header > .elementor-element,
body.peasy-v2 .elementor-location-footer > .elementor-element,
body.peasy-v2 .elementor-location-single > .elementor-element,
body.peasy-v2 .elementor-location-archive > .elementor-element{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}

body.peasy-v2 .elementor-location-header .e-con,
body.peasy-v2 .elementor-location-footer .e-con,
body.peasy-v2 .elementor-location-single .e-con,
body.peasy-v2 .elementor-location-archive .e-con{
  --container-max-width:100%!important;
}

body.peasy-v2 .peasy-v2-global-header,
body.peasy-v2 .peasy-v2-global-footer,
body.peasy-v2 .peasy-wp-article,
body.peasy-v2 .peasy-category-page{
  width:100%;
  max-width:none;
}

/* Elementor template preview can otherwise show Astra's native chrome around
 * the template, which makes the editor look duplicated. This affects preview
 * only, never the public non-Peasy site. */
body.peasy-elementor-template-preview #masthead,
body.peasy-elementor-template-preview .site-header,
body.peasy-elementor-template-preview #colophon,
body.peasy-elementor-template-preview .site-footer,
body.peasy-elementor-template-preview .ast-primary-header-bar,
body.peasy-elementor-template-preview .site-primary-footer-wrap,
body.peasy-elementor-template-preview .site-below-footer-wrap{
  display:none!important;
}

body.peasy-elementor-template-preview .site-content,
body.peasy-elementor-template-preview #content,
body.peasy-elementor-template-preview .ast-container,
body.peasy-elementor-template-preview .content-area,
body.peasy-elementor-template-preview .site-main{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}

body.peasy-v2 .elementor-widget-shortcode .peasy-wp-article__content,
body.peasy-v2 .elementor-widget-shortcode .peasy-category-grid{
  width:100%;
}

body.peasy-v2 .peasy-v2-global-header .nav-logo img{
  display:block!important;
}

body.peasy-v2 .peasy-v2-global-footer .foot-g > div{
  min-width:0;
}

@media (max-width:900px){
  body.peasy-v2 .elementor-widget-html,
  body.peasy-v2 .elementor-widget-shortcode{
    min-width:0!important;
  }
}
