/**
 * Elementor/theme chrome + club dashboard layout (scoped — does not restyle site header/footer).
 */

/* Member dashboard: pure Elementor canvas — hide theme / Theme Builder chrome */
body.oilmazing-sfc-dashboard-page .oilmazing-sfc-elementor-header,
body.oilmazing-sfc-dashboard-page .oilmazing-sfc-elementor-footer,
body.oilmazing-sfc-dashboard-page .elementor-location-header,
body.oilmazing-sfc-dashboard-page .elementor-location-footer,
body.oilmazing-sfc-dashboard-page #masthead,
body.oilmazing-sfc-dashboard-page header.site-header,
body.oilmazing-sfc-dashboard-page footer.site-footer,
body.oilmazing-sfc-dashboard-page #colophon,
body.oilmazing-sfc-dashboard-page .site-header,
body.oilmazing-sfc-dashboard-page .site-footer,
body.oilmazing-sfc-dashboard-page .ast-primary-header-bar,
body.oilmazing-sfc-dashboard-page .ast-header-wrap,
body.oilmazing-sfc-dashboard-page .ast-footer-overlay,
body.oilmazing-sfc-dashboard-page .ast-small-footer {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	min-height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

body.oilmazing-sfc-dashboard-page.elementor-template-canvas,
body.oilmazing-sfc-dashboard-page.elementor-template-canvas #page,
body.oilmazing-sfc-dashboard-page.elementor-template-canvas .elementor,
body.oilmazing-sfc-canvas-dashboard.elementor-template-canvas {
	margin: 0;
	padding: 0;
	max-width: none;
	width: 100%;
}

body.oilmazing-sfc-dashboard-page #page.site .site-content,
body.oilmazing-sfc-dashboard-page #page.site #primary,
body.oilmazing-sfc-dashboard-page #page.site .ast-container {
	margin: 0;
	padding: 0;
	max-width: none;
	width: 100%;
}

/* Site header stays above scrolling club content (auth + membership gate only) */
body.oilmazing-sfc-club-page:not(.oilmazing-sfc-dashboard-page) .oilmazing-sfc-elementor-header,
body.oilmazing-sfc-club-page:not(.oilmazing-sfc-dashboard-page) .elementor-location-header,
body.oilmazing-sfc-club-page:not(.oilmazing-sfc-dashboard-page) #masthead,
body.oilmazing-sfc-club-page:not(.oilmazing-sfc-dashboard-page) header.site-header,
body.oilmazing-sfc-club-page:not(.oilmazing-sfc-dashboard-page) .site-header,
body.oilmazing-sfc-club-page:not(.oilmazing-sfc-dashboard-page) .ast-primary-header-bar,
body.oilmazing-sfc-club-page:not(.oilmazing-sfc-dashboard-page) .ast-header-sticky-active,
body.oilmazing-sfc-club-page:not(.oilmazing-sfc-dashboard-page) .elementor-sticky.elementor-sticky--active {
	position: relative;
	z-index: 300;
}

body.oilmazing-sfc-club-page:not(.oilmazing-sfc-dashboard-page) .elementor-sticky.elementor-sticky--active {
	z-index: 300 !important;
}

body.oilmazing-sfc-club-page:not(.oilmazing-sfc-dashboard-page) .elementor-location-footer,
body.oilmazing-sfc-club-page:not(.oilmazing-sfc-dashboard-page) .oilmazing-sfc-elementor-footer,
body.oilmazing-sfc-club-page:not(.oilmazing-sfc-dashboard-page) footer.site-footer,
body.oilmazing-sfc-club-page:not(.oilmazing-sfc-dashboard-page) #colophon {
	position: relative;
	z-index: 1;
}

body.oilmazing-sfc-club-page:not(.oilmazing-sfc-dashboard-page) .oilmazing-sfc-elementor-header,
body.oilmazing-sfc-club-page:not(.oilmazing-sfc-dashboard-page) .oilmazing-sfc-elementor-footer,
body.oilmazing-sfc-club-page:not(.oilmazing-sfc-dashboard-page) .elementor-location-header,
body.oilmazing-sfc-club-page:not(.oilmazing-sfc-dashboard-page) .elementor-location-footer {
	width: 100%;
}

body.oilmazing-sfc-club-page:not(.oilmazing-sfc-dashboard-page) .oilmazing-sfc-elementor-header,
body.oilmazing-sfc-club-page:not(.oilmazing-sfc-dashboard-page) .oilmazing-sfc-elementor-footer {
	display: block;
}

/* Club shortcode sits below the site header in the stacking order */
body.oilmazing-sfc-club-page #oilmazing-sfc-root.oilmazing-sfc-dashboard,
body.oilmazing-sfc-dashboard-page #oilmazing-sfc-root.oilmazing-sfc-dashboard {
	position: relative;
	z-index: 0;
	isolation: isolate;
	width: 100%;
	max-width: none;
	min-height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	box-shadow: none;
	opacity: 1;
	visibility: visible;
}

/* Keep in-dashboard sticky UI below the site header layer */
body.oilmazing-sfc-club-page #oilmazing-sfc-root.oilmazing-sfc-dashboard .oilmazing-sfc-app > header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: #ffffff;
	border-bottom: 1px solid #f4f4f5;
}

body.oilmazing-sfc-club-page #oilmazing-sfc-root.oilmazing-sfc-dashboard .oilmazing-sfc-user-menu__dropdown {
	z-index: 50;
}

body.oilmazing-sfc-dashboard-page .elementor-widget-shortcode .elementor-widget-container:has(#oilmazing-sfc-root),
body.oilmazing-sfc-dashboard-page .entry-content:has(#oilmazing-sfc-root) {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
}

/* No full-page loader overlay */
#oilmazing-sfc-root.oilmazing-sfc-dashboard .oilmazing-sfc-loader,
#oilmazing-sfc-root.oilmazing-sfc-dashboard #oilmazing-sfc-loader.oilmazing-sfc-loader {
	display: none !important;
}

body.oilmazing-sfc-dashboard-page #oilmazing-sfc-root.oilmazing-sfc-dashboard .oilmazing-sfc-app {
	min-height: 100vh;
	min-height: 100dvh;
	opacity: 1 !important;
	visibility: visible !important;
	transition: none !important;
}

body.oilmazing-sfc-dashboard-page #oilmazing-sfc-root.oilmazing-sfc-dashboard.oilmazing-sfc-is-loading .oilmazing-sfc-app {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto;
}

/* Stable inner shell before Tailwind CDN paints */
body.oilmazing-sfc-dashboard-page #oilmazing-sfc-root.oilmazing-sfc-dashboard .oilmazing-sfc-app > .flex > aside {
	background: #ffffff;
	border-right: 1px solid #f4f4f5;
}

/* Auth & membership shortcode wrappers */
body.oilmazing-sfc-auth-page .elementor-widget-shortcode .elementor-widget-container:has(.oilmazing-sfc-auth),
body.oilmazing-sfc-membership-page .elementor-widget-shortcode .elementor-widget-container:has(.oilmazing-sfc-membership),
body.oilmazing-sfc-auth-page .entry-content:has(.oilmazing-sfc-auth),
body.oilmazing-sfc-membership-page .entry-content:has(.oilmazing-sfc-membership) {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
}

body.oilmazing-sfc-auth-page #page.site .entry-content:has(.oilmazing-sfc-auth),
body.oilmazing-sfc-membership-page #page.site .entry-content:has(.oilmazing-sfc-membership) {
	max-width: none;
	width: 100%;
}

body.oilmazing-sfc-auth-page.ast-separate-container #page.site .site-content:has(.oilmazing-sfc-auth),
body.oilmazing-sfc-membership-page.ast-separate-container #page.site .site-content:has(.oilmazing-sfc-membership) {
	padding-top: 0;
	padding-bottom: 0;
	background: transparent;
}
