/**
 * Hide theme headers when Premium Sidebar shell is active.
 */

body.psm-shell-active #masthead,
body.psm-shell-active #header,
body.psm-shell-active #site-header,
body.psm-shell-active .site-header,
body.psm-shell-active header.site-header,
body.psm-shell-active header#header,
body.psm-shell-active .header-main,
body.psm-shell-active .main-header,
body.psm-shell-active .page-header:not(.psm-header),
body.psm-shell-active .elementor-location-header,
body.psm-shell-active .et-l--header,
body.psm-shell-active .et_pb_section.et_pb_section_0_tb_header,
body.psm-shell-active #main-header,
body.psm-shell-active #top-header,
body.psm-shell-active .ast-primary-header-bar,
body.psm-shell-active .ast-above-header-bar,
body.psm-shell-active .ast-below-header-bar,
body.psm-shell-active .oceanwp-header,
body.psm-shell-active .fl-page-header,
body.psm-shell-active .header-wrapper,
body.psm-shell-active .nv-navbar,
body.psm-shell-active .header-builder,
body.psm-shell-active .ct-header,
body.psm-shell-active .header-section,
body.psm-shell-active .l-header,
body.psm-shell-active .fusion-header,
body.psm-shell-active .mk-header,
body.psm-shell-active .jupiter-header,
body.psm-shell-active .woodmart-header,
body.psm-shell-active .site-branding-wrap,
body.psm-shell-active .wp-block-template-part[data-area="header"],
body.psm-shell-active header.wp-block-template-part {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	min-height: 0 !important;
	max-height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* Block / FSE themes: hide header template part wrapper spacing */
body.psm-shell-active .wp-site-blocks > header,
body.psm-shell-active .wp-block-group.is-layout-constrained > header {
	display: none !important;
}

/* Keep theme content above decorative background, below plugin chrome */
body.psm-shell-active #page,
body.psm-shell-active .site,
body.psm-shell-active #content,
body.psm-shell-active #primary,
body.psm-shell-active #main,
body.psm-shell-active .site-content,
body.psm-shell-active .content-area,
body.psm-shell-active main,
body.psm-shell-active main.site-main,
body.psm-shell-active .et-main-area,
body.psm-shell-active .elementor,
body.psm-shell-active .entry-content,
body.psm-shell-active .wp-site-blocks {
	position: relative;
	z-index: 1;
}

body.psm-shell-active #page,
body.psm-shell-active .site,
body.psm-shell-active #content,
body.psm-shell-active #primary,
body.psm-shell-active #main,
body.psm-shell-active .site-content,
body.psm-shell-active .content-area,
body.psm-shell-active main,
body.psm-shell-active main.site-main,
body.psm-shell-active .et-main-area,
body.psm-shell-active .elementor,
body.psm-shell-active .entry-content,
body.psm-shell-active .wp-site-blocks,
body.psm-shell-active .wp-block-post-content,
body.psm-shell-active article,
body.psm-shell-active .hentry {
	background-color: var(--psm-content-bg) !important;
}

@media (max-width: 1023px) {
	body.psm-shell-active,
	body.psm-shell-active #page,
	body.psm-shell-active .site {
		min-height: 100dvh;
		min-height: 100vh;
	}
}

/* Remove extra top gap from hidden theme headers only */
body.psm-shell-active #content,
body.psm-shell-active #primary,
body.psm-shell-active .site-content,
body.psm-shell-active .content-area,
body.psm-shell-active main.site-main {
	margin-top: 0 !important;
}

