/* Trakkify Website Converter - theme compatibility layer (loaded on imported pages only) */

/* Standalone canvas: imported design owns the page */
body.usc-canvas { margin: 0; padding: 0; }
body.usc-imported img { max-width: 100%; height: auto; }

/* Keep theme header/footer, but make the imported content full width and unboxed */
body.usc-mode-theme,
body.usc-mode-elementor-theme { overflow-x: hidden; }

body.usc-mode-theme .usc-page {
  position: relative;
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin: 0 0 0 calc(50% - 50vw);
  padding: 0;
}

/* Hide the page title/hero the theme prints above the content */
body.usc-mode-theme.page .entry-header,
body.usc-mode-theme.page .page-header,
body.usc-mode-theme.page .ast-archive-description,
body.usc-mode-theme.page .ast-single-post-order > .entry-header,
body.usc-mode-theme.page .wp-block-post-title,
body.usc-mode-theme.page .entry-title { display: none; }

/* Remove boxed containers, paddings and sidebars (Astra, GeneratePress, Kadence, OceanWP, Hello, Blocksy, block themes) */
body.usc-mode-theme .site-content > .ast-container,
body.usc-mode-theme #content > .ast-container,
body.usc-mode-theme .site-content .ast-container {
  display: block;
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
body.usc-mode-theme #primary,
body.usc-mode-theme #main,
body.usc-mode-theme .site-main,
body.usc-mode-theme .content-area,
body.usc-mode-theme main.wp-block-group,
body.usc-mode-theme .entry-content,
body.usc-mode-theme .entry-content.is-layout-constrained,
body.usc-mode-theme .wp-site-blocks > main {
  float: none;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}
body.usc-mode-theme .entry-content > .usc-page { max-width: 100vw; }
body.usc-mode-theme #secondary,
body.usc-mode-theme .widget-area,
body.usc-mode-theme .sidebar,
body.usc-mode-theme .ast-sidebar-wrap { display: none; }
body.usc-mode-theme .ast-separate-container .ast-article-single,
body.usc-mode-theme .ast-separate-container .ast-article-post,
body.usc-mode-theme .ast-separate-container #primary,
body.usc-mode-theme .inside-article,
body.usc-mode-theme .site-main > article,
body.usc-mode-theme article.page {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.usc-mode-theme .ast-separate-container { background: transparent; }
body.usc-mode-theme .site-content { padding: 0; margin: 0; }
body.usc-mode-theme .grid-container,
body.usc-mode-theme .container.site-container { max-width: 100%; padding: 0; }
body.usc-mode-theme .is-layout-constrained > .usc-page { max-width: 100vw; }

/* Elementor: sections made from the import must not get extra gaps */
.elementor .usc-page,
.elementor .usc-page > .e-con-inner { gap: 0; --gap: 0px; --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; }
.elementor .usc-page .elementor-widget-html,
.elementor .usc-page .elementor-widget-html > .elementor-widget-container { margin: 0; padding: 0; width: 100%; }
