/**
 * Theme integration — hide duplicate theme chrome when plugin shell is active.
 * Compatible with MoboBD, Astra, GeneratePress, Kadence, Blocksy, Hello Elementor, TT themes.
 */

body.cx-hide-theme-header .mobobd-header,
body.cx-hide-theme-header #mobobd-header,
body.cx-hide-theme-header .site-header,
body.cx-hide-theme-header #masthead,
body.cx-hide-theme-header header.site-header,
body.cx-hide-theme-header .ast-primary-header-bar,
body.cx-hide-theme-header .site-header-wrap,
body.cx-hide-theme-header .kadence-header,
body.cx-hide-theme-header .ct-header,
body.cx-hide-theme-header #header,
body.cx-hide-theme-header .elementor-location-header,
body.cx-hide-theme-header .wp-block-template-part-header,
body.cx-hide-theme-header header.wp-block-template-part {
	display: none !important;
}

body.cx-hide-theme-footer .mobobd-footer,
body.cx-hide-theme-footer #mobobd-footer,
body.cx-hide-theme-footer .site-footer,
body.cx-hide-theme-footer #colophon,
body.cx-hide-theme-footer footer.site-footer,
body.cx-hide-theme-footer .ast-footer-wrap,
body.cx-hide-theme-footer .site-footer-wrap,
body.cx-hide-theme-footer .kadence-footer,
body.cx-hide-theme-footer .ct-footer,
body.cx-hide-theme-footer #footer,
body.cx-hide-theme-footer .elementor-location-footer,
body.cx-hide-theme-footer .wp-block-template-part-footer,
body.cx-hide-theme-footer footer.wp-block-template-part {
	display: none !important;
}

/* Layout modes */
.cx-main.cx-layout-boxed {
	max-width: var(--cx-container-xl, 1280px);
	margin-inline: auto;
	padding-inline: var(--cx-space-4, 16px);
}

.cx-main.cx-layout-full,
.cx-main.cx-layout-auto {
	width: 100%;
}

body.cx-comparix-active .cx-main {
	min-height: 50vh;
}

/* Full-width Comparix content inside any theme */
body.cx-comparix-active #cx-main,
body.cx-comparix-active .cx-main {
	max-width: none;
}

body.single-comparix_product #mobobd-main,
body.single-comparix_product .mobobd-main,
body.single-comparix_product .mobobd-content,
body.single-comparix_product .entry-content,
body.cx-comparix-active .site-content,
body.cx-comparix-active .content-area,
body.cx-comparix-active #primary,
body.cx-comparix-active #content,
body.cx-comparix-active .ast-container,
body.cx-comparix-active .content-container,
body.cx-comparix-active .entry-content {
	max-width: none !important;
	width: 100% !important;
	padding-inline: 0 !important;
	margin-inline: 0 !important;
}

body.single-comparix_product article.cx-product,
body.cx-comparix-active article.cx-product {
	margin-inline: 0 !important;
}

/* Block / FSE themes */
body.cx-comparix-active .wp-site-blocks > main,
body.cx-comparix-active .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: none;
}

/* Admin bar offset for sticky plugin nav */
body.admin-bar.cx-nav-sticky .cx-nav-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar.cx-nav-sticky .cx-nav-header {
		top: 46px;
	}
}
