.custom-footer__newsletter.col-sm-6.col-lg-3 {
    width: calc(100% - 40px) !important;
    margin-inline: auto;
    top: -110px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    padding: 40px 40px;
}

.custom-footer__newsletter.col-sm-6.col-lg-3 {
    display: flex;
}

.custom-footer__newsletter .newsletter-header,
.custom-footer__newsletter form#formNewsletterWidget {
    width: 50%;
}

.custom-footer__newsletter .form-control-wrapper,
.custom-footer__newsletter .form-control-wrapper input#newsletterWidget {
    width: 100% !important;
    max-width: 100%;
}

.custom-footer__newsletter fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 0px;
}

.custom-footer__newsletter .form-group.smart-label-wrapper {
    order: 1;
    width: calc(100% - 135px);
    margin-bottom: 0px;
}

.custom-footer__newsletter button.btn.btn-primary {
    order: 2;
    width: 135px;
    background-color: var(--color-secondary);
    color: white;
    border: none;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}

.custom-footer__newsletter .consents.consents-first {
    order: 3;
    width: 100%;
    margin-bottom: 0px;
}

footer#footer .newsletter-header h3.pageElement__heading.topic {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 5px;
}

.custom-footer__newsletter .newsletter-header p {
    font-size: 14px;
    margin-bottom: 0px !important;
}

.custom-footer__newsletter form#formNewsletterWidget {
    margin-bottom: 0px;
}

.custom-footer__newsletter form#formNewsletterWidget input#newsletterWidget {
    background-color: var(--light-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small) !important;
    border-top-right-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}

.custom-footer__newsletter .consents label:before,
.custom-footer__newsletter .consents label:after {
    border-radius: 3px;
}

@media(hover: hover) {
    .custom-footer__newsletter button.btn.btn-primary:hover {
        background-color: var(--color-secondary-hover);
    }
}

@media(max-width: 767px) {
    .custom-footer__newsletter.col-sm-6.col-lg-3 {
        width: calc(100% - 20px) !important;
        flex-wrap: wrap;
        gap: 20px;
    }

    .custom-footer__newsletter .newsletter-header,
    .custom-footer__newsletter form#formNewsletterWidget {
        width: 100%;
    }

    .custom-footer__newsletter.col-sm-6.col-lg-3 {
        top: -60px;
    }

    footer#footer .newsletter-header h3.pageElement__heading.topic {
        margin-bottom: 10px;
    }
}

@media(max-width: 580px) {

    .custom-footer__newsletter.col-sm-6.col-lg-3 {
        padding: 30px 30px;
    }

    footer#footer .newsletter-header h3.pageElement__heading.topic {
        font-size: 28px;
    }
}

@media(max-width: 479px) {
    .custom-footer__newsletter {
        text-align: center;
    }

    .custom-footer__newsletter .form-group.smart-label-wrapper,
    .custom-footer__newsletter button.btn.btn-primary {
        width: 100%;
    }

    .custom-footer__newsletter button.btn.btn-primary {
        border-top-left-radius: var(--border-radius-small);
        border-bottom-left-radius: var(--border-radius-small);
    }

    .custom-footer__newsletter form#formNewsletterWidget input#newsletterWidget {
        border-top-right-radius: var(--border-radius-small) !important;
        border-bottom-right-radius: var(--border-radius-small) !important;
    }

    .custom-footer__newsletter .consents.consents-first {
        text-align: left;
    }
}