/**
 * Elementor footer compatibility with WeTheme layout.
 */

#page.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

#content.site-content {
    flex: 1 0 auto;
    width: 100%;
    max-width: 100%;
}

.wetheme-elementor-footer,
.elementor-location-footer {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    clear: both;
    margin-top: auto;
    box-sizing: border-box;
}

.wetheme-elementor-footer .elementor-section-wrap,
.elementor-location-footer .elementor-section-wrap {
    width: 100%;
}

.wetheme-elementor-footer .elementor-section.elementor-section-boxed > .elementor-container,
.elementor-location-footer .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1500px;
    margin-inline: auto;
}

/* Blog archive stays isolated inside #content; footer renders after #content closes. */
#content .wetheme-blog-archive {
    width: 100%;
    max-width: 100%;
    display: block;
}

/* Keep footer out of blog two-column grid flow */
#content + .wetheme-elementor-footer,
#content + .elementor-location-footer,
#content + .site-footer {
    grid-column: 1 / -1;
}

body.wetheme-footer-type-elementor .site-footer:not(.footer_1):not(.footer_2):not(.footer_3) {
    direction: inherit;
    text-align: inherit;
    padding: 0;
}
