/* APS parts page layout: fix content container alignment. Loaded on all parts pages. */

/* Core: expand content area to full width */
body.aps-parts-page #content,
body.aps-parts-page .content,
body.aps-parts-page .site-inner,
body.aps-parts-page #main,
body.aps-parts-page .site-main,
body.aps-parts-page #page,
body.aps-parts-page main,
body.aps-parts-page .wp-site-blocks > main {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Block themes (Twenty Twenty-Four etc): remove constrained layout padding */
body.aps-parts-page .wp-block-group.has-global-padding,
body.aps-parts-page .wp-block-group.is-layout-constrained,
body.aps-parts-page .entry-content,
body.aps-parts-page .wp-block-post-content,
body.aps-parts-page .entry-content [class*="is-layout-constrained"],
body.aps-parts-page [class*="is-layout-constrained"].wp-block-post-content,
body.aps-parts-page .entry-content.has-global-padding,
body.aps-parts-page .wp-block-post-content.has-global-padding,
body.aps-parts-page .entry-content .wp-block-group,
body.aps-parts-page .entry-content.alignwide {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* APS content wrapper: full-width, no centering offset */
body.aps-parts-page .bootstrapiis,
body.aps-parts-page .bootstrapiis #iiscont,
body.aps-parts-page .bootstrapiis .container.metro {
	max-width: 100% !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 15px !important;
	padding-right: 15px !important;
}

/* Proper containment + hide empty elements. No body class - applies wherever these exist. */
#iiscont {
	display: flow-root;
}
#parts-search-history:empty {
	display: none !important;
}

body.fpt-template-twentysixteen.page-template-template-page-builder-no-sidebar-php #page,
body.fpt-template-twentysixteen.page-template-template-page-builder-no-header-footer-php #page,
body.fpt-template-twentysixteen.page-template-template-page-builder-php #page {
	margin: 0;
}

body.page-template-template-page-builder-no-sidebar-php:not(.custom-background-image):before,
body.page-template-template-page-builder-no-header-footer-php:not(.custom-background-image):before,
body.page-template-template-page-builder-php:not(.custom-background-image):before,
body.page-template-template-page-builder-no-sidebar-php:not(.custom-background-image):after,
body.page-template-template-page-builder-no-header-footer-php:not(.custom-background-image):after,
body.page-template-template-page-builder-php:not(.custom-background-image):after {
	height: 0;
}

.fpt-template.fpt-template-Spacious #main {
	padding: 0;
}

.fpt-template.fpt-template-Spacious .header-post-title-container {
	display: none;
}

.fpt-template.fpt-template-Spacious #main .inner-wrap{
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

.fpt-template.fpt-template-Sparkling .container.main-content-area {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

.fpt-template.fpt-template-Sparkling .container.main-content-area .row {
	margin: 0;
}

.fpt-template.fpt-template-Sparkling .container.main-content-area .main-content-inner {
	float: none;
	width: 100%;
	padding: 0;
}

.page-template-template-page-builder-no-sidebar .side-pull-left .main-content-inner {
	width: 100%;
	float: none;
}

/* Storefront Theme */
.fpt-template.fpt-template-storefront.no-wc-breadcrumb .site-header {
	margin-bottom: 0;
}