.newsletter-block {
    background-color: #004B87 !important;
    position: fixed;
    z-index: 10000;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: -2px 0 10px rgba(0,0,0,.4);
    display: none;
}

.newsletter-close {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.5;
    background-image: url("/wp-content/themes/freddo/images/close.svg");
    background-size: cover;
}

.af-form-wrapper {
    margin-bottom: 0;
}

.newsletter-title {
    color: white;
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.af-form {
    display: flex;
    max-width: 1140px;
    margin: 0 auto;
    padding: 15px 0;
}

.af-checkWrap .checkbox {
    display: inline-block;
    margin: 0;
}

.af-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bodyText {
    color: white;
    opacity: 0.9;
}

.bodyText p {
    margin: 0;
    color: white;
    line-height: 1.3;
}

.af-body {
    display: grid;
    grid-template-columns: 45% 23% 25%;
    width: 100%;
    max-width: 670px;
    align-items: center;
    grid-gap: 20px;
    margin: 0 auto;
}

.af-textWrap input {
    margin: 0;
}

.newsletter-input-box {
    position: relative;
}

.choice {
    color: white;
    margin: 0;
}

.news-input {
    width: 100%;
    color: #28A2B5;
    background-color: white !important;
    padding: 10px !important;
    box-sizing: border-box;
}

.news-input:focus {
    border-color: white !important;
}

.newsletter-alert {
    color: #ff2600;
    padding: 5px 0;
    display: none;
    width: fit-content;
    position: absolute;
    bottom: -30px;
    left: 15px;
    margin-bottom: 0;
}

.news-submit {
    background: #FFCD00 !important;
    color: #004B87 !important;
    width: 100%;
    font-weight: bold !important;
    padding: 15px 5px !important;
    border-radius: 5px;
    font-size: 16px !important;
    text-transform: uppercase;
}

@media screen and (min-width: 1200px) {
    .newsletter-close:hover {
        cursor: pointer;
        opacity: 1;
    }

    .news-submit:hover {
        box-shadow: 0 0 10px gold;
        cursor: pointer;
    }
}


@media screen and (max-width:992px) {
    .af-form {
        flex-direction: column;
        padding: 10px;
    }

    .af-body {
        grid-template-columns: auto;
        grid-gap: 0;
    }

    .af-element-checkbox {
        margin: 0 auto;
        order: 3;
    }

    .buttonContainer {
        order: 2;
    }

    .newsletter-input-box {
        margin-top: 5px;
        order: 1;
    }

    .newsletter-title {
        font-size: 18px;
    }

    .bodyText p {
        font-size: 12px;
    }

    .choice {
        font-size: 12px;
    }

    .newsletter-alert {
        position: initial;
        margin: 0;
        width: 100%;
        line-height: 1;
    }

    .news-submit {
        font-size: 13px !important;
        padding: 12px !important;
        margin-top: 5px !important;
    }
}