.mwd-upb-output,
.mwd-upb-output *,
.mwd-upb-managed-section,
.mwd-upb-managed-section * {
    box-sizing: border-box;
}

.mwd-upb-output,
.mwd-upb-managed-section {
    position: relative;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
}

body.mwd-upb-full-width .mwd-upb-output,
body.mwd-upb-full-width .mwd-upb-managed-section,
body.mwd-upb-full-width .mwd-upb-stretch-parent {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

body.mwd-upb-full-width .mwd-upb-stretch-parent {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.mwd-upb-hide-title .entry-title,
body.mwd-upb-hide-title .page-title,
body.mwd-upb-hide-title .post-title,
body.mwd-upb-hide-title header.entry-header,
body.mwd-upb-hide-title .woocommerce-products-header__title,
body.mwd-upb-hide-title .product_title {
    display: none !important;
}

body.mwd-upb-hide-header header#masthead,
body.mwd-upb-hide-header #site-header,
body.mwd-upb-hide-header .site-header:not(.mwd-upb-managed-section *),
body.mwd-upb-hide-header .elementor-location-header,
body.mwd-upb-hide-header header.wp-block-template-part {
    display: none !important;
}

body.mwd-upb-hide-footer footer#colophon,
body.mwd-upb-hide-footer #site-footer,
body.mwd-upb-hide-footer .site-footer:not(.mwd-upb-managed-section *),
body.mwd-upb-hide-footer .elementor-location-footer,
body.mwd-upb-hide-footer footer.wp-block-template-part {
    display: none !important;
}

body.mwd-upb-canvas {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

.mwd-upb-canvas-main {
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: clip;
}

/* =========================================================
   PERFORMANCE MODE / WHITE-FLASH FIX
   Keeps every section painted while scrolling and removes
   expensive glass effects that can trigger blank repaints.
========================================================= */

body.mwd-upb-performance,
body.mwd-upb-performance .mwd-upb-canvas-main,
body.mwd-upb-performance .mwd-upb-output {
    min-height: 100%;
    background-color: #ffffff;
}

body.mwd-upb-performance .mwd-upb-output,
body.mwd-upb-performance .mwd-upb-managed-section,
body.mwd-upb-performance .mwd-upb-managed-section > section,
body.mwd-upb-performance .mwd-upb-managed-section > footer,
body.mwd-upb-performance .mwd-upb-managed-section > header {
    content-visibility: visible !important;
    contain: none !important;
    contain-intrinsic-size: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    will-change: auto !important;
}

body.mwd-upb-performance .mwd-upb-output *,
body.mwd-upb-performance .mwd-upb-output *::before,
body.mwd-upb-performance .mwd-upb-output *::after {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    will-change: auto !important;
    transform-style: flat !important;
}

body.mwd-upb-performance .mwd-upb-output [class*="pattern"],
body.mwd-upb-performance .mwd-upb-output [class*="grid-pattern"],
body.mwd-upb-performance .mwd-upb-output [class*="hero-grid"],
body.mwd-upb-performance .mwd-upb-output [class*="services-grid"],
body.mwd-upb-performance .mwd-upb-output [class*="why-grid"] {
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

body.mwd-upb-performance .mwd-upb-output img {
    content-visibility: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    image-rendering: auto;
}

body.mwd-upb-performance .mwd-upb-output [style*="content-visibility"] {
    content-visibility: visible !important;
}

@media (max-width: 1200px) {
    body.mwd-upb-performance .mwd-upb-output *,
    body.mwd-upb-performance .mwd-upb-output *::before,
    body.mwd-upb-performance .mwd-upb-output *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
    }
}
