/* ============================================================
   AUTOMART V45.3.2
   MOBILE NEW / USED FINAL MARKET-STATE AUTHORITY

   Existing V45.3.1 desktop artwork + brand-logo cards remain.
   ============================================================ */

@media screen and (max-width:767px) {

    /* ========================================================
       REMOVE DUPLICATE NATIVE MARKET TITLE
       ======================================================== */

    .am-v452-mobile-market-panel
    .am-v4532-native-market-title {

        display:none !important;
    }


    /* ========================================================
       REMOVE ANY NON-PREMIUM SECONDARY LARGE CTA
       ======================================================== */

    .am-v452-mobile-market-panel
    .am-v4532-duplicate-market-cta {

        display:none !important;
    }


    /* ========================================================
       POPULAR BRANDS — LEFT ALIGNMENT
       ======================================================== */

    .am-v452-mobile-market-panel
    .am-v4532-brands-heading {

        width:auto !important;

        margin-left:0 !important;
        margin-right:auto !important;

        justify-content:flex-start !important;

        text-align:left !important;
    }


    /*
     * If the heading itself is inside a flex row,
     * keep it on the left.
     */

    .am-v452-mobile-market-panel
    .am-v4532-brands-heading-parent {

        justify-content:flex-start !important;

        text-align:left !important;
    }


    /* ========================================================
       SEGMENTED MARKET SWITCH
       ======================================================== */

    .am-v452-mobile-market-panel
    .am-v452-market-switch {

        position:relative;

        margin-bottom:14px !important;
    }


    .am-v452-mobile-market-panel
    .am-v452-market-switch a {

        background:transparent !important;

        color:#536175 !important;

        box-shadow:none !important;
    }


    .am-v452-mobile-market-panel
    .am-v452-market-switch
    a.is-active {

        background:#ffffff !important;

        color:#087b49 !important;

        box-shadow:
            0 5px 14px
            rgba(17,41,29,.09)
            !important;
    }


    /* ========================================================
       QUICK ACTION ICON / TEXT
       ======================================================== */

    .am-v452-mobile-market-panel
    .am-v4532-action-icon {

        width:22px;
        height:22px;

        flex:0 0 22px;

        display:grid;

        place-items:center;

        border-radius:7px;

        background:#eff8f3;

        color:#087c4b;
    }


    .am-v452-mobile-market-panel
    .am-v4532-action-icon svg {

        width:14px;
        height:14px;

        display:block;
    }


    .am-v452-mobile-market-panel
    .am-v4532-action-copy {

        min-width:0;

        display:block;

        overflow:hidden;

        text-overflow:ellipsis;

        white-space:nowrap;
    }


    /* ========================================================
       ONE STICKY CTA ONLY
       ======================================================== */

    .am-v452-mobile-market-panel
    [data-am-v452-footer] {

        position:sticky !important;

        bottom:0 !important;

        z-index:70 !important;

        margin-top:10px !important;

        background:
            rgba(255,255,255,.97)
            !important;

        box-shadow:
            0 -8px 22px
            rgba(16,38,27,.06)
            !important;
    }


    .am-v452-mobile-market-panel
    [data-am-v452-footer]
    a {

        min-height:49px !important;
    }

}
