/* Desktop footer stability for wide screens and browser zoom. */
@media (min-width: 768px) {
    #footer {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        background: transparent !important;
        background-color: transparent !important;
    }

    /* Keep the footer background widescale; only the inner layout is fixed. */
    #footer .footer-bottom.elementor-top-section.elementor-section-stretched {
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important;
        box-sizing: border-box;
        background-size: cover !important;
        background-position: center center !important;
        background-color: transparent !important;
        padding-bottom: 105px !important;
        overflow: hidden !important;
    }

    #footer .footer-bottom.elementor-top-section > .elementor-container {
        width: 1320px !important;
        max-width: calc(100% - 80px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    #footer .footer-bottom.elementor-top-section > .elementor-container > .elementor-row {
        --ag-footer-desktop-gap: 156px;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: var(--ag-footer-desktop-gap);
    }

    #footer .footer-bottom.elementor-top-section > .elementor-container > .elementor-row > .elementor-column {
        flex: 0 0 336px !important;
        width: 336px !important;
        max-width: 336px;
        min-width: 0;
    }

    #footer .bottom-footer.elementor-top-section:not(.footer-bottom) {
        left: 50% !important;
        right: auto !important;
        width: 1320px !important;
        max-width: calc(100% - 80px) !important;
        transform: translateX(-50%) !important;
        box-sizing: border-box;
    }
    #footer .bottom-footer.elementor-top-section:not(.footer-bottom) > .elementor-container,
    #footer .bottom-footer.elementor-top-section:not(.footer-bottom) > .elementor-container > .elementor-row,
    #footer .bottom-footer.elementor-top-section:not(.footer-bottom) .foot-bot,
    #footer .bottom-footer.elementor-top-section:not(.footer-bottom) .foot-bot > .elementor-container,
    #footer .bottom-footer.elementor-top-section:not(.footer-bottom) .foot-bot > .elementor-container > .elementor-row {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #footer .bottom-footer.elementor-top-section:not(.footer-bottom) > .elementor-container > .elementor-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #footer .bottom-footer.elementor-top-section:not(.footer-bottom) > .elementor-container > .elementor-row > .elementor-column:first-child {
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
    }

    #footer .bottom-footer.elementor-top-section:not(.footer-bottom) > .elementor-container > .elementor-row > .elementor-column:last-child {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        margin-left: auto !important;
    }

    #footer .bottom-footer.elementor-top-section:not(.footer-bottom) .foot-bot .elementor-column,
    #footer .bottom-footer.elementor-top-section:not(.footer-bottom) .foot-bot .elementor-column-wrap,
    #footer .bottom-footer.elementor-top-section:not(.footer-bottom) .foot-bot .elementor-widget-wrap {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #footer .bottom-footer.elementor-top-section:not(.footer-bottom) .elementor-widget-text-editor {
        text-align: left !important;
    }

    #footer .bottom-footer.elementor-top-section:not(.footer-bottom) .icon-footer > .elementor-column-wrap > .elementor-widget-wrap {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        gap: 22px;
    }

    #footer .bottom-footer.elementor-top-section:not(.footer-bottom) .icon-footer .elementor-widget-image {
        width: auto !important;
        margin: 0 !important;
    }

    /* Pixel-align footer content with the visible white rule endpoints. */
    #footer .footer-bottom.elementor-top-section > .elementor-container > .elementor-row > .elementor-column:first-child > .elementor-column-wrap {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #footer .bottom-footer.elementor-top-section:not(.footer-bottom) > .elementor-container > .elementor-row > .elementor-column:first-child > .elementor-column-wrap,
    #footer .bottom-footer.elementor-top-section:not(.footer-bottom) .foot-bot .elementor-column-wrap,
    #footer .bottom-footer.elementor-top-section:not(.footer-bottom) .foot-bot .elementor-widget-wrap {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #footer .bottom-footer.elementor-top-section:not(.footer-bottom) .icon-footer > .elementor-column-wrap {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }}

@media (min-width: 768px) and (max-width: 1199px) {
    #footer .footer-bottom.elementor-top-section > .elementor-container > .elementor-row {
        --ag-footer-desktop-gap: 70px;
    }

    #footer .footer-bottom.elementor-top-section > .elementor-container > .elementor-row > .elementor-column {
        flex: 1 1 0 !important;
        width: calc((100% - (var(--ag-footer-desktop-gap) * 2)) / 3) !important;
        max-width: 336px;
    }
}