/* Mobile promo slider on the home page (default.aspx, .home-mslider).
   It shows the desktop promo slides (default_slide_offer* resources) as they are in
   zResources and lays them out here: brand background, logo, headline, dates and the
   button; the product picture and the description are left out. The slide markup is

       <div class="ls-layer">
           <img class="ls-bg">             background
           <p class="ls-s-1"><img></p>     product picture
           <p class="ls-s-1">              logo <img>, headline <span>, dates <span>,
               ...                         description <span>, button <a>
           </p>
       </div>

   and is styled inline for the 1170px desktop slider, hence the !important overrides. */

.home-mslider {
    position: relative;
    overflow: hidden;
}

.home-mslider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .home-mslider-track::-webkit-scrollbar {
        display: none;
    }

.home-mslider .ls-layer {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    min-height: 243px;
    scroll-snap-align: start;
    cursor: pointer;
}

    .home-mslider .ls-layer > * {
        position: relative;
        left: auto;
        top: auto;
    }

    .home-mslider .ls-layer > .ls-bg {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: left center;
    }

/* The backgrounds are plain on the left, where the text goes, and busy on the right. */
[dir="rtl"] .home-mslider .ls-layer > .ls-bg {
    transform: scaleX(-1);
}

.home-mslider .ls-layer > p.ls-s-1 {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100%;
    max-width: none !important;
    margin: 0;
    padding: 18px 20px 34px;
}

    /* product picture */
    .home-mslider .ls-layer > p.ls-s-1:first-of-type {
        display: none;
    }

    /* logo */
    .home-mslider .ls-layer > p.ls-s-1 > img {
        width: auto;
        max-width: 120px;
        max-height: 34px;
    }

    /* headline */
    .home-mslider .ls-layer > p.ls-s-1 > span:nth-of-type(1) {
        max-width: none !important;
        margin-top: 6px !important;
        font-size: 28px !important;
    }

    /* dates */
    .home-mslider .ls-layer > p.ls-s-1 > span:nth-of-type(2) {
        margin-top: 8px !important;
        font-size: 14px !important;
    }

    /* description */
    .home-mslider .ls-layer > p.ls-s-1 > span:nth-of-type(3) {
        display: none !important;
    }

    /* button */
    .home-mslider .ls-layer > p.ls-s-1 > a {
        max-width: 100%;
        margin-top: 12px !important;
        padding: 11px 18px !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
        white-space: normal;
    }

/* A slide that is one picture with the text drawn on it: shown whole, not cropped. */
.home-mslider .ls-layer.home-mslide-image {
    min-height: 0;
}

    .home-mslider .ls-layer.home-mslide-image > .ls-bg {
        position: relative;
        height: auto;
        object-fit: contain;
        transform: none;
    }

.home-mslider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
}

    .home-mslider-dots span {
        width: 6px;
        height: 6px;
        border-radius: 3px;
        background-color: rgba(127, 127, 127, .45);
        transition: width .2s, background-color .2s;
    }

        .home-mslider-dots span.active {
            width: 18px;
            background-color: #2f78b0;
        }
