.banner-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 300px;
    margin-top: 30px;
}

.banner-on-mobile {
    display: none;
}

.banner-title-3 {
    position: absolute;
    bottom: 22px;
    right: 26px;
}

@media (max-width: 768px) {
    .banner-on-mobile {
        display: block;
    }

    .banner-on-desktop {
        display: none;
    }
}

.dag-banner.slick-dotted.slick-slider {
    margin-bottom: 60px;
}

    .dag-banner.slick-dotted.slick-slider.no-dots {
        margin-bottom: 30px;
    }

.banner-wrapper {
    position: relative;
}

    .banner-wrapper .banner-images {
        position: relative;
    }

        .banner-wrapper .banner-images .banner-background {
            width: 100%;
            max-height: 400px;
            height: 400px;
            background-position: center center;
            background-size: cover;
            background-repeat: no-repeat;
        }

        .banner-wrapper .banner-images .banner-background-full-height {
            width: 100%;
            max-height: 700px;
            height: 700px;
            background-position: center center;
            background-size: cover;
            background-repeat: no-repeat;
        }

            .banner-wrapper .banner-images .banner-background-full-height.m-mobile-header-image {
            }

        .banner-wrapper .banner-images .banner-car {
            position: absolute;
            z-index: 1;
            left: 50%;
            transform: translate(-50%, -50%);
            max-width: 50%;
            top: 65%;
        }

    .banner-wrapper .banner-grid .grid-wrap {
        width: 80%;
        margin: 0 10%;
        bottom: 20px;
    }

    .banner-wrapper .banner-header {
        position: absolute;
        top: 2%;
        left: 5%;
    }

.next-gen-banner .banner-images .banner-background {
    /*width: 100%;*/
    max-height: 469px;
    height: 469px;
    /*background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	background-image: url('../../content/images/banners/series/x5/winter.jpg');*/
}

.next-gen-banner .banner-header .banner-title h1 {
    font-size: 60px;
    margin-bottom: 0;
}

.next-gen-banner .banner-header .banner-title h2 {
    font-size: 36px;
    margin-top: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
}


@media only screen and (min-width: 1635px) {
    .contain-background .banner-wrapper .banner-images .banner-background {
        background-size: contain;
        background-position-x: right;
    }
}

.banner-header .banner-title {
    color: white;
    padding-top: 20px;
}

    .banner-header .banner-title h1 {
        font-size: 60px;
        margin-bottom: 0;
    }

    .banner-header .banner-title h2 {
        font-size: 36px;
        margin-top: 0;
        margin-bottom: 10px;
    }

    .banner-header .banner-title .banner-title-1 {
        margin-bottom: 0;
    }

.ix3-banner .banner-wrapper .banner-header .banner-title .banner-title-1 {
    margin-bottom: 0;
    font-size: 50px;
    font-weight: 500;
}

.banner-header .banner-title .banner-title-2 {
    margin-top: 0.5em;
}

.ix3-banner .banner-wrapper .banner-header .banner-title .banner-title-2 {
    margin-top: 0.5em;
    font-size: 20px;
}

.banner-header .banner-title .banner-title-2 .M50LogoContainer {
}

    .banner-header .banner-title .banner-title-2 .M50LogoContainer .M50Logo {
        width: 300px;
        margin: 25px 0 0 0;
    }

.banner-header .banner-title .banner-title-3 {
    margin-top: 0.5em;
}

.banner-header .lock-up-img {
    max-width: 400px;
    width: auto;
    height: auto;
    max-height: 150px;
}

    .banner-header .lock-up-img.max-height-175 {
        max-height: 175px;
    }

@media(max-width: 768px) {
    .banner-header .lock-up-img {
        margin: 0 auto;
        filter: invert(1);
    }
}

@media(max-width: 450px) {
    .banner-header .lock-up-img {
        max-width: 75%;
    }
}

.banner-grid .grid-wrap {
    font-weight: 300;
    font-size: 18px;
    color: #222;
    opacity: 1 !important;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

    .banner-grid .grid-wrap .grid-block {
        float: left;
        width: 30%;
        display: flex;
        justify-content: space-around;
        position: relative;
        padding: 1em;
    }

.banner-grid .grid-block.has-or-box {
    border-left: 1px solid #222;
}

.banner-grid .grid-wrap .grid-block.soft-break {
    border-right: 1px solid black;
}

.banner-grid .grid-wrap .grid-block .inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /*padding: 0 10px;*/
}

.banner-grid .grid-wrap .grid-block .rate-box-nov2021 {
    border-left: 3px solid white;
    border-bottom: 3px solid white;
    /*padding: 0 20% 0 17%;
        margin: 0 -23% 0 0%;*/
}

.banner-grid .grid-wrap .grid-block .or-box, .banner-grid .grid-wrap .grid-block .plus-box {
    display: block;
    position: absolute;
    left: 0;
    top: -2px;
    height: 105%;
    vertical-align: middle;
    border-right: none;
    border-top: none;
    border-bottom: none;
    transform: translateX(-50%);
}

    .banner-grid .grid-wrap .grid-block .or-box span, .banner-grid .grid-wrap .grid-block .plus-box span {
        display: block;
        position: relative;
        top: 50%;
        padding: 0px 0px 2px;
        font-weight: bold;
        font-size: 16px;
        text-transform: uppercase;
        min-height: 40px;
        transform: translateY(-50%);
        background: white;
        line-height: 40px;
    }

    .banner-grid .grid-wrap .grid-block .or-box span {
        font-size: 18px;
        font-weight: bold;
    }

    .banner-grid .grid-wrap .grid-block .plus-box span {
        font-size: 32px;
    }

    .banner-grid .grid-wrap .grid-block .or-box.no-white-borders, .banner-grid .grid-wrap .grid-block .plus-box.no-white-borders {
        top: 0px;
        height: 100%;
        border-top: 0;
        border-bottom: 0;
    }

    .banner-grid .grid-wrap .grid-block .or-box.grid-top, .banner-grid .grid-wrap .grid-block .plus-box.grid-top {
        border-right: none;
        height: auto;
        width: 100%;
        text-align: center;
        top: -10px;
    }

        .banner-grid .grid-wrap .grid-block .or-box.grid-top span, .banner-grid .grid-wrap .grid-block .plus-box.grid-top span {
            top: auto;
            padding: 0px 0px 12px 0px;
        }

.banner-grid .grid-wrap .grid-block .grid-top {
    display: block;
    position: relative;
    text-align: center;
    font-size: 18px;
}

    .banner-grid .grid-wrap .grid-block .grid-top span {
        display: inline-block;
    }

.banner-grid .grid-wrap .grid-block .grid-bottom {
    display: block;
    position: relative;
    text-align: center;
    font-size: 16px;
}

    .banner-grid .grid-wrap .grid-block .grid-bottom span {
        display: inline-block;
    }

.banner-grid .grid-wrap .grid-block .grid-center {
    display: block;
    position: relative;
    text-align: center;
    font-weight: 300;
    font-size: 52px !important;
}

    .banner-grid .grid-wrap .grid-block .grid-center .main-text {
        display: inline-block;
        position: relative;
        width: auto;
        /*margin: 0 20px;*/
        font-size: 48px !important;
        display: flex;
        justify-content: center;
        align-items: center;
        /*font-weight:bold;*/
    }

        .banner-grid .grid-wrap .grid-block .grid-center .main-text .dollar-left {
            display: inline-block;
        }

        .banner-grid .grid-wrap .grid-block .grid-center .main-text .dollar-right {
            display: inline-block;
        }

        .banner-grid .grid-wrap .grid-block .grid-center .main-text .dollar-left {
            display: inline-block;
            position: static;
            font-size: 100%;
        }

        .banner-grid .grid-wrap .grid-block .grid-center .main-text .dollar-right {
            display: inline-block;
            position: static;
            font-size: 100%;
        }

        .banner-grid .grid-wrap .grid-block .grid-center .main-text .percent-apr {
            display: block;
            position: static;
        }

            .banner-grid .grid-wrap .grid-block .grid-center .main-text .percent-apr .percent {
                display: block;
                position: relative;
                font-size: 54%;
            }

            .banner-grid .grid-wrap .grid-block .grid-center .main-text .percent-apr .apr {
                display: block;
                position: relative;
                font-size: 24%;
                top: -6px;
            }

.montreal .banner-grid .grid-wrap .grid-block .grid-center .main-text .percent-apr .percent {
    font-size: 95%;
    line-height: 1.5;
}

.banner-grid .grid-wrap .grid-block .grid-center .dollar-left {
    order: -1;
}

.banner-grid .grid-wrap.fr .grid-block .grid-center .dollar {
    left: auto;
    right: -25px;
    order: 0;
}

.banner-grid .grid-wrap .grid-block.plain-text-block .inner {
    justify-content: center;
}

.banner-grid .grid-wrap .grid-block.plain-text-block .grid-top {
    font-size: 1.4em;
    text-align: center;
    font-weight: normal;
    line-height: 1.2em;
}

.banner-grid .grid-wrap .grid-block.plain-text-block .grid-center {
    display: none;
}

.banner-grid .grid-wrap .grid-block.plain-text-block .grid-bottom {
    font-size: 16px;
    display: block;
    position: relative;
    text-align: center;
    font-weight: 300;
    margin-top: 5px;
}

.hero-banner-container {
    position: relative;
}

    .hero-banner-container .legal {
        left: 4%;
        position: relative;
        bottom: 30px;
        text-decoration: underline;
    }

    .hero-banner-container .Button_LegalOpenButton {
        display: block;
        position: relative;
        left: 94%;
        bottom: 30px;
        background: none;
        border: none;
        text-decoration: underline;
        font-size: 14px;
        color: #222;
        font-weight: normal;
        outline: none;
        text-decoration: none;
    }


    .hero-banner-container .fine-text-container {
        position: relative;
        width: 100%;
        max-width: 90vw;
        margin: 10px auto 10px;
        word-break: break-word;
        font-size: 0.65em;
        line-height: 1em;
    }

@media only screen and (max-width: 768px) {
    .hero-banner-container .fine-text-container {
        max-width: 95vw;
    }
}

.legal-modal p {
    font-size: 10px;
    margin-bottom: 1em;
}

/*hide slick dots if only one item in carousel*/
.slick-dots.dots-1 {
    display: none;
}

@media only screen and (min-width: 2200px) {

    .banner-wrapper .banner-images .banner-car {
        top: 50%;
    }
}

@media only screen and (min-width: 1880px) and (max-width: 2199px) {

    .banner-wrapper .banner-images .banner-car {
        top: 55%;
    }
}

@media only screen and (min-width: 1700px) and (max-width: 1999px) {

    .banner-wrapper .banner-images .banner-car {
        top: 60%;
    }
}

@media only screen and (max-width: 1280px) {
    .banner-wrapper {
        position: relative;
    }

        .banner-wrapper .banner-grid .grid-wrap {
            width: 100%;
            margin: 0;
            font-size: 14px;
        }

            .banner-wrapper .banner-grid .grid-wrap .grid-block .grid-top {
                font-size: 18px;
            }

            .banner-wrapper .banner-grid .grid-wrap .grid-block .grid-center {
                font-size: 48px !important;
            }

                .banner-wrapper .banner-grid .grid-wrap .grid-block .grid-center .main-text {
                    font-size: 48px !important;
                }

            .banner-wrapper .banner-grid .grid-wrap .grid-block .grid-bottom {
                font-size: 14px;
            }

            .banner-wrapper .banner-grid .grid-wrap .grid-block .or-box span {
                font-size: 14px;
            }

        .banner-wrapper .banner-header {
            position: absolute;
            top: 2%;
            left: 8%;
        }

    .hero-banner-container .legal-modal {
        background-color: #FFF;
        font-size: 10px;
        color: #000;
        padding: 40px 20px;
        visibility: hidden;
        opacity: 0;
        transition: all 0.45s;
        position: absolute;
        bottom: 15px;
        z-index: 100;
        width: 100vw;
    }

    .banner-grid .grid-wrap .grid-block.plain-text-block .grid-top {
        font-size: 1.6em;
    }

    .banner-grid .grid-wrap .grid-block.plain-text-block .grid-bottom {
        font-size: 16px;
    }
}

@media only screen and (max-width: 1340px) {
    .banner-wrapper {
        position: relative;
    }

    .banner-header .banner-title h1 {
        font-size: 50px;
        margin-bottom: 0;
    }

    .banner-header .banner-title h2 {
        font-size: 30px;
        margin-top: 0;
        margin-bottom: 10px;
    }

    .banner-header .banner-title .banner-title2 .M50LogoContainer {
    }

        .banner-header .banner-title .banner-title2 .M50LogoContainer .M50Logo {
            width: 300px;
            margin: 25px 0 0 0;
        }

    .banner-grid .grid-wrap {
        justify-content: center;
    }

        .banner-grid .grid-wrap .grid-block.plain-text-block .grid-top {
            font-size: 1.4em;
            line-height: 1.4em;
        }

        .banner-grid .grid-wrap .grid-block.plain-text-block .grid-center {
            display: none;
        }

        .banner-grid .grid-wrap .grid-block.plain-text-block .grid-bottom {
            font-size: 14px;
        }
}

@media only screen and (min-width: 1340px) and (max-width: 1600px) {

    .next-gen-banner .banner-header .banner-title h1 {
        font-size: 50px;
    }

    .next-gen-banner .banner-header .banner-title h2 {
        font-size: 30px;
    }
}

@media only screen and (min-width: 1281px) and (max-width: 1340px) {

    .next-gen-banner .banner-header .banner-title h1 {
        font-size: 50px;
    }

    .next-gen-banner .banner-header .banner-title h2 {
        font-size: 30px;
    }
}

@media only screen and (min-width: 1025px) and (max-width: 1280px) {
    .next-gen-banner .banner-header .banner-title h1 {
        font-size: 50px;
    }

    .next-gen-banner .banner-header .banner-title h2 {
        font-size: 30px;
    }
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .next-gen-banner .banner-images .banner-background {
        max-height: 300px;
        height: 300px;
    }

    .next-gen-banner .banner-header .banner-title h1 {
        font-size: 42px;
    }

    .next-gen-banner .banner-header .banner-title h2 {
        font-size: 24px;
    }
}

@media only screen and (max-width: 768px) {

    .dag-banner.slick-dotted.slick-slider.no-dots {
        margin-bottom: 0px;
    }

    .banner-wrapper {
        height: auto !important;
        position: relative;
    }

        .banner-wrapper .banner-images .banner-background {
            height: 185px;
        }

        .banner-wrapper .banner-images .banner-background-full-height {
            height: 185px;
        }

            .banner-wrapper .banner-images .banner-background-full-height.m-mobile-header-image {
                background-position: top center !important;
                background-size: contain;
                background-image: url("/Content/images/models/Series/M/BMW50YearsOfM/header-m.png") !important;
            }

        .banner-wrapper .banner-images .banner-car {
            top: 65%;
        }

        .banner-wrapper .banner-grid .grid-wrap {
            width: 100%;
            margin: 0;
            position: static;
        }

        .banner-wrapper .banner-grid .grid-wrap {
            font-size: 11px;
        }

    .banner-grid .grid-wrap .grid-block .rate-box-nov2021 {
        padding: 0;
        margin: 0;
    }

    .banner-wrapper .banner-grid .grid-wrap .grid-block .grid-top {
        font-size: 15px;
    }

    .banner-wrapper .banner-grid .grid-wrap .grid-block .grid-center .main-text {
        font-size: 36px !important;
    }

    .banner-wrapper .banner-grid .grid-wrap .grid-block .or-box span {
        font-size: 11px;
    }

    .banner-wrapper .banner-grid .grid-wrap .grid-block .grid-center .main-text .dollar {
        left: -15px;
    }

    .banner-wrapper .banner-grid .grid-wrap .grid-block .grid-center .main-text .percent-sign-container {
        right: -25px;
    }

    .banner-wrapper .banner-grid .grid-wrap .grid-block .grid-bottom {
        font-size: 12px;
    }

    .banner-grid .grid-wrap .grid-block.plain-text-block .grid-top {
        font-size: 1.6em;
        line-height: 1.6em;
    }

    .banner-grid .grid-wrap .grid-block.plain-text-block .grid-center {
        display: none;
    }

    .banner-grid .grid-wrap .grid-block.plain-text-block .grid-bottom {
        font-size: 12px !important;
        line-height: 12px;
    }

    .banner-wrapper .banner-header {
        position: static;
        width: 100%;
    }

        .banner-wrapper .banner-header .banner-title {
            color: white;
            position: static;
            top: 0;
            left: 4%;
            width: 100%;
            text-shadow: none;
            text-align: center;
            margin: 25px 0;
        }

            .banner-wrapper .banner-header .banner-title h1 {
                font-size: 42px;
                margin-bottom: 0;
                color: #222;
                text-shadow: none;
            }

            .banner-wrapper .banner-header .banner-title h2 {
                font-size: 24px;
                margin-top: 0;
                margin-bottom: 10px;
                color: #222;
                text-shadow: none;
            }

    .dark-theme-banner .banner-wrapper .banner-header .banner-title h1 {
        font-size: 34px;
        line-height: 1.5;
        margin-bottom: 0;
        color: white;
        text-shadow: none;
    }

    .dark-theme-banner .banner-wrapper .banner-header .banner-title h2 {
        font-size: 18px;
        line-height: 2;
        margin-top: 0;
        margin-bottom: 10px;
        color: white;
        text-shadow: none;
    }

    .banner-wrapper .banner-header .banner-title .banner-title-2 .M50LogoContainer {
        text-align: center;
        background-color: black;
        padding-top: 10px;
        padding-bottom: 10px;
        margin-top: 10px;
        width: 100%;
    }

        .banner-wrapper .banner-header .banner-title .banner-title-2 .M50LogoContainer .M50Logo {
            width: 70%;
            margin: 0 auto 0;
        }

        .banner-wrapper .banner-header .banner-title .banner-title-2 .M50LogoContainer.m-model-page {
            display: none;
        }

    .banner-wrapper .banner-title-container {
        position: absolute;
        top: 2%;
        left: 10%;
    }

    .banner-wrapper .banner-buttons {
        width: 70%;
        margin: 17px auto auto;
    }

    .hero-banner-container .Button_LegalOpenButton {
        bottom: 0;
        left: calc(100% - 70px);
    }

    .next-gen-banner .banner-header .banner-buttons {
        width: 80%;
    }

    .new-gen-mobile .banner-images .banner-background {
        min-height: 400px;
        height: 100%;
    }
}

@media only screen and (max-width: 600px) {
    .banner-title-3 {
        bottom: 7px;
        right: 10px;
        font-size: 8px;
    }

    .banner-wrapper .banner-header .banner-title {
        top: 0;
        left: 4%;
    }

        .banner-wrapper .banner-header .banner-title h1 {
            font-size: 30px;
            margin-bottom: 0;
        }

        .banner-wrapper .banner-header .banner-title h2 {
            font-size: 20px;
            margin-top: 0;
            margin-bottom: 10px;
        }

        .banner-wrapper .banner-header .banner-title .banner-title-2 .M50LogoContainer {
            text-align: center;
            background-color: black;
            padding-top: 10px;
            padding-bottom: 10px;
            margin-top: 10px;
            width: 100%;
        }

            .banner-wrapper .banner-header .banner-title .banner-title-2 .M50LogoContainer .M50Logo {
                width: 70%;
                margin: 0 auto 0;
            }

            .banner-wrapper .banner-header .banner-title .banner-title-2 .M50LogoContainer.m-model-page {
                display: none;
            }

    .banner-wrapper .banner-images .banner-background {
        height: 185px;
    }

    .banner-wrapper .banner-images .banner-background-full-height {
        height: 185px;
    }

    .banner-wrapper .banner-images .banner-car {
        max-width: 80%;
        width: 80%;
    }

    .banner-wrapper .banner-grid {
        margin-bottom: 10px;
    }

        .banner-wrapper .banner-grid .grid-wrap {
            width: 100%;
            margin: 0;
            position: static;
            flex-direction: column;
        }

            .banner-wrapper .banner-grid .grid-wrap .grid-block {
                width: calc(100% - 100px);
                padding: 10px 0;
                margin: 0 50px;
            }

                .banner-wrapper .banner-grid .grid-wrap .grid-block.soft-break {
                    border-bottom: 1px solid #222;
                    border-right: none;
                }

        .banner-wrapper .banner-grid .grid-block.has-or-box {
            border-top: 1px solid #222;
            border-left: none;
        }

        .banner-wrapper .banner-grid .grid-wrap .grid-block .or-box {
            top: -10px;
            left: unset;
            height: auto;
        }

            .banner-wrapper .banner-grid .grid-wrap .grid-block .or-box span {
                top: 0;
                transform: translateY(0);
                line-height: normal;
            }

    .banner-wrapper .banner-header {
        position: static;
    }

        .banner-wrapper .banner-header label.banner-title {
            font-size: 24px !important;
        }

            .banner-wrapper .banner-header label.banner-title span {
                font-size: 16px !important;
            }

        .banner-wrapper .banner-header .banner-buttons {
            width: calc(100% - 30px);
            margin: 0 15px;
            transform: translateY(-10px);
        }

    .banner-grid .grid-wrap .grid-block.plain-text-block .grid-top {
        font-size: 2em;
        line-height: 1.4em;
    }

    .banner-grid .grid-wrap .grid-block.plain-text-block .grid-center {
    }

    .banner-grid .grid-wrap .grid-block.plain-text-block .grid-bottom {
    }

    .next-gen-banner .banner-header .banner-title {
        /*top: 0;
        left: 4%;*/
        text-shadow: none;
        text-align: center;
    }

    .next-gen-banner .banner-header label.banner-title {
        font-size: 24px !important;
    }

        .next-gen-banner .banner-header label.banner-title span {
            font-size: 16px !important;
        }

    .next-gen-banner .banner-header .banner-buttons {
        width: 90%;
        margin: 17px auto auto;
    }

    .new-gen-mobile .banner-images .banner-background {
        min-height: 400px;
        height: 100%;
    }

    .new-gen-mobile.long-mobile .banner-wrapper .banner-header {
        left: 0%;
        top: 50%;
        height: 100%;
        text-align: center;
        position: absolute;
    }

    .new-gen-mobile.long-mobile .banner-header .banner-title {
        text-shadow: none;
        position: absolute;
        bottom: 0;
        color: white;
        left: 0;
        padding: 0 5%;
    }

    .new-gen-mobile.long-mobile .banner-header .banner-title {
        text-align: left;
    }

        .new-gen-mobile.long-mobile .banner-header .banner-title .banner-title-1,
        .new-gen-mobile.long-mobile .banner-header .banner-title .banner-title-2 {
            color: white;
        }
}

@media only screen and (max-width: 400px) {
    .banner-wrapper .banner-images .banner-background {
        height: 145px;
    }

    .banner-wrapper .banner-images .banner-background-full-height {
        background-size: cover !important;
        height: 145px;
    }

    .new-gen-mobile.only7er .banner-images .banner-background {
        background-position: top center;
        background-size: contain;
        background-repeat: no-repeat;
        background-color: #12151b;
        min-height: 400px;
    }
}

.background-video {
    width: 100%;
    max-height: 600px;
    position: absolute;
    object-fit: cover;
    z-index: 0;
}

.banner-video {
    margin-bottom: 160px;
    max-height: 400px !important;
}

@media only screen and (max-width: 768px) {
    .dag-banner.slick-slider {
        margin-bottom: 30px;
    }
}

@media (min-width:1960px) {
    .banner-video {
        margin-bottom: 200px;
    }
}


@media (min-width: 1531px) and (max-width:1800px) {
    .banner-video {
        margin-bottom: 90px;
    }
}

@media (min-width: 1410px) and (max-width:1530px) {
    .banner-video {
        margin-bottom: 50px;
    }
}

@media (min-width: 1025px) and (max-width:1409px) {
    .banner-video {
        margin-bottom: 0px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .background-video {
        height: 350px;
    }

    .banner-video {
        margin-bottom: 0px;
    }
}

@media (max-width:767px) {
    .banner-video {
        margin-bottom: 0px;
    }

    .background-video {
        height: 85%;
    }
}
