@media (max-width: 767px) {

body.mobile footer .footer-rows .custom-footer > div {
    width: 100% !important;
}

body.mobile footer .footer-rows .custom-footer > div:nth-of-type(3), footer .footer-rows .custom-footer > div:nth-of-type(4) {
    width: 100% !important;
}

body.mobile footer .footer-rows .custom-footer > div:nth-of-type(5) {
    width: 100% !important;
}

    body.mobile .banner {
        min-height: fit-content !important;
    }

    body.mobile .footer-newsletter-wrapper {
    width: 100% !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 0 !important;
}
}


@media(max-width: 767px) {
    .row.custom-footer.elements-6 {
    flex-direction: column !important;
            justify-content: center;
        align-items: center;
        text-align: center;
}

.footer-newsletter-wrapper .compact-form {
    width: 380px !important;
    margin-top: 8.5px;
    margin-bottom: 20px !important;
}
}


@media(max-width: 499px) {
.footer-newsletter-wrapper .compact-form {
    width: 250px !important;
    margin-top: 8.5px;
    margin-bottom: 20px !important;
}
}



@media (min-width: 768px) and (max-width: 992px) {
    .row.custom-footer.elements-6 {
    flex-direction: row !important;
}

body.desktop footer .footer-rows .custom-footer > div {
    width: 50% !important;
}

body.desktop footer .footer-rows .custom-footer > div:nth-of-type(3), footer .footer-rows .custom-footer > div:nth-of-type(4) {
    width: 50% !important;
}

body.desktop footer .footer-rows .custom-footer > div:nth-of-type(5) {
    width: 50% !important;
}

.footer-newsletter-wrapper {
    width: 100%;
}

    .footer-newsletter-wrapper .compact-form {
        width: 450px !important;
    }
}