//
//  Common
//  _____________________________________________

& when (@media-common = true) {
    .footer.content {
        .form-subscribe-header {
            &:extend(.abs-add-box-sizing all);
            .form-subscribe-heading {
                color: #fff;
                margin-top: 0;
            }
            p {
                color: #d6d6d6;
            }
            .action.hs-subscribe {
                background: @djo-blue;
                border: 1px solid @djo-blue;
                color: #fff;
                cursor: pointer;
                display: inline-block;
                font-family: 'Lato', sans-serif;
                font-weight: 700;
                margin-top: 0.8rem;
                padding: 14px 18px;
                font-size: 1.2rem;
                box-sizing: border-box;
                vertical-align: middle;
                border-radius: 30px;
                letter-spacing: .07em;
                text-transform: uppercase;
            }
        }
        // the newsletter subscription form
        .block.newsletter {
            &:extend(.abs-add-box-sizing all);
            .form.subscribe {
                margin-left: auto;
                margin-right: auto;
                max-width: 380px;
                // the error message
                .mage-error {
                    color: #fff;
                }
            }
            .field {
                .control {
                    clear: none;
                    position: static;
                    &::before {
                        content: none;
                    }
                }
            }
            input {
                border-color: #dbdfe1;
                border-radius: 30px;
                height: 35px;
                padding-left: 20px;
                padding-right: 40px;
                &:focus {
                    box-shadow: none;
                    outline: none;
                }
            }
            // the subscribe button
            .action.subscribe {
                // border-radius overrides for luma
                border-bottom-left-radius: @button__border-radius;
                border-top-left-radius: @button__border-radius;
                height: 35px;
                margin-left: -35px;
                margin-top: 0; // set margin-top here to override the overly broad onestepcheckout page styles
                min-width: 100px;
                padding: 2px 0 0 2px;
            }
        }
    }
}


//
//  Mobile
//  _____________________________________________

.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__s) {
    .footer.content {
        .form-subscribe-header {
            margin-bottom: 18px;
            .form-subscribe-heading {
                .lib-font-size(21);
                margin-bottom: 2px;
            }
            p {
                .lib-font-size(13);
                margin: 0;
            }
        }
        .block.newsletter {
            margin-bottom: 20px;
            input {
                .lib-font-size(13);
            }
        }
    }
}


//
//  Desktop
//  _____________________________________________

.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__s) {
    .footer.content {
        .form-subscribe-header {
            margin-bottom: 18px;
            .form-subscribe-heading {
                .lib-font-size(28);
                margin: 0 0 6px;
            }
            p {
                .lib-font-size(16);
                margin: 0;
            }
        }
        .block.newsletter input {
            .lib-font-size(16);
        }
    }
}

.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
    .footer.content {
        .block.newsletter {
            float: none;
            width: auto;
        }
    }
}

.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__l) {
    .footer.content {
        .form-subscribe-header {
            float: left;
            padding: 0 1%;
            width: 65%;
            .form-subscribe-heading {
                .lib-font-size(24);
                font-weight: 700;
            }
            p {
                .lib-font-size(18);
                margin-bottom: 0;
            }
        }
        // the newsletter subscription form
        .block.newsletter {
            float: left;
            margin-bottom: 0;
            padding: 18px 1%;
            width: 35%;
            input {
                .lib-font-size(14);
            }
            .action.subscribe {
                .lib-font-size(14);
                width: 120px;
            }
        }
    }
}
