/* D-103 — Home responsive sticky regression correction.
 * The pinned V65 stylesheet remains untouched. At the same breakpoint where
 * the Home switches to its single-column responsive composition, sticky
 * scenes return to natural document flow so they cannot reserve desktop-size
 * scroll runway on tablets/mobile devices.
 */
.lmd-home .commercial-mobile-carousel-toolbar {
    display: none;
}

/* The official Trustpilot TrustBox copy is provider-controlled and cannot be
 * changed safely from the application. Keep the same review destination but
 * render the owner-requested localized call-to-action as an LMD-owned link.
 */
.lmd-home .trustpilot-review-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid rgba(0, 182, 122, .22);
    border-radius: 999px;
    background: #fff;
    color: var(--deep-space);
    box-shadow: 0 8px 20px rgba(1, 2, 20, .05);
    text-decoration: none;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.lmd-home .trustpilot-review-cta:hover {
    border-color: #00b67a;
    box-shadow: 0 10px 24px rgba(0, 182, 122, .10);
    transform: translateY(-1px);
}

.lmd-home .trustpilot-review-cta-mark {
    color: #00b67a;
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 1180px) {
    .lmd-home .hero-bestsellers-stack > .hero-section,
    .lmd-home .hero-bestsellers-stack > .section {
        position: relative !important;
        top: auto !important;
        margin-top: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .lmd-home .hero-sticky-hold {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
    }

    .lmd-home .commercial-horizontal-story {
        height: auto !important;
        min-height: 0 !important;
    }

    .lmd-home .commercial-sticky-scene {
        position: relative !important;
        top: auto !important;
    }

    .lmd-home .commercial-sticky-stack {
        position: relative !important;
        width: min(640px, calc(100vw - 32px));
        height: auto !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 18px !important;
    }

    .lmd-home .commercial-sticky-stack > .benefit-card {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 260px !important;
        transform: none !important;
        pointer-events: auto !important;
    }
}

@media (max-width: 560px) {
    /* Phone Commercial Terms reuse the exact circular previous/next control
     * pattern used by Bestsellers and Categories. The rail remains a native
     * touch-scroll surface with one-card snap steps, but without any painted
     * rail panel behind the cards.
     */
    .lmd-home .commercial-horizontal-story,
    .lmd-home .commercial-sticky-scene,
    .lmd-home .commercial-sticky-stack {
        background: transparent !important;
        background-image: none !important;
    }

    .lmd-home .commercial-sticky-scene {
        overflow: visible;
        gap: 0 !important;
    }

    .lmd-home .commercial-section-header {
        width: 100%;
        margin-bottom: 10px !important;
    }

    .lmd-home .commercial-mobile-carousel-toolbar {
        display: flex !important;
        width: 100%;
        align-self: center;
        justify-content: center !important;
        margin: 2px 0 12px !important;
    }

    .lmd-home .commercial-sticky-stack {
        width: calc(100vw - 24px);
        max-width: none;
        box-sizing: border-box;
        display: grid !important;
        grid-auto-flow: column;
        grid-auto-columns: min(82vw, 320px);
        grid-template-columns: none !important;
        align-items: stretch;
        justify-content: start;
        gap: 14px !important;
        overflow-x: auto !important;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 2px;
        scrollbar-width: none;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
        padding: 2px 2px 6px;
        margin: 0;
        border: 0 !important;
        border-radius: 0 !important;
        outline: 0 !important;
        box-shadow: none !important;
    }

    .lmd-home .commercial-sticky-stack::-webkit-scrollbar {
        display: none;
    }

    .lmd-home .commercial-sticky-stack > .benefit-card {
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        min-height: 268px !important;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        padding: 30px 20px !important;
        border: 1px solid rgba(1, 2, 20, .07) !important;
        border-radius: 24px !important;
        box-shadow: none !important;
    }

    /* Keep the Trustpilot badge tightly fitted to its two content rows on
     * phones. The pinned V65 mobile rule scales the badge, while this later
     * override prevents the absolutely positioned link from painting a wider
     * block than the wordmark/stars require.
     */
    .lmd-home .hero-visual .hero-trustpilot-badge {
        display: inline-flex !important;
        flex-direction: column;
        align-items: flex-start;
        width: max-content !important;
        min-width: 0 !important;
        max-width: calc(100% - 8px);
        box-sizing: border-box;
        padding: 10px 11px;
        right: 4px !important;
        left: auto !important;
        transform-origin: top right;
    }

    /* Mobile Safari can over-paint a backdrop-filter on an absolutely
     * positioned element inside the perspective-based Hero composition. Use
     * an opaque compact badge surface instead so each badge paints only its
     * own box and cannot create a tall translucent panel over the video.
     */
    .lmd-home .hero-visual .float-badge {
        display: inline-block !important;
        z-index: 35;
        width: min(176px, 47vw);
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        box-sizing: border-box;
        padding: 8px 9px;
        border-radius: 13px;
        background: #fff !important;
        box-shadow: 0 10px 26px rgba(1, 2, 20, .09);
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        pointer-events: none;
    }

    .lmd-home .hero-visual .float-badge-inner {
        gap: 7px;
    }

    .lmd-home .hero-visual .badge-icon {
        width: 28px;
        height: 28px;
        border-radius: 9px;
    }

    .lmd-home .hero-visual .badge-icon svg {
        width: 14px;
        height: 14px;
    }

    .lmd-home .hero-visual .float-badge strong {
        font-size: 10px;
        line-height: 1.15;
    }

    .lmd-home .hero-visual .float-badge span {
        margin-top: 2px;
        font-size: 8px;
        line-height: 1.2;
    }

    .lmd-home .hero-visual .growth-badge {
        top: 58px !important;
        right: auto !important;
        bottom: auto !important;
        left: -4px !important;
    }

    .lmd-home .hero-visual .discount-badge {
        top: auto !important;
        right: -4px !important;
        bottom: 16px !important;
        left: auto !important;
        transform: none !important;
    }

    .lmd-home .hero-visual .price-badge {
        top: auto !important;
        right: auto !important;
        bottom: 14px !important;
        left: 4px !important;
        width: min(194px, 52vw);
    }

    .lmd-home .hero-visual .price-badge .float-badge-inner > div:last-child > span {
        gap: 3px;
        white-space: nowrap;
    }
}

@media (max-width: 380px) {
    .lmd-home .hero-visual .float-badge {
        width: min(166px, 48vw);
        padding: 7px 8px;
    }

    .lmd-home .hero-visual .discount-badge {
        bottom: 14px !important;
    }

    .lmd-home .hero-visual .price-badge {
        width: min(184px, 54vw);
        bottom: 12px !important;
    }

    .lmd-home .commercial-sticky-stack {
        grid-auto-columns: min(84vw, 308px);
    }
}
