/* LR De Gasquet Black Week 2026 — strictly namespaced, no global layout rules. */
#lr-dgbw26-banner {
    display: none;
    width: 100%;
    max-width: none;
    position: relative;
    z-index: 1040; /* Above custom theme navbar, which is shifted below when active. */
    box-sizing: border-box;
    background: #f72585;
    color: #09151c;
    font-family: "Lato", Arial, sans-serif;
    line-height: 1.35;
    text-align: center;
}

html.lr-dgbw26-active #lr-dgbw26-banner {
    display: block;
}

#lr-dgbw26-banner *,
#lr-dgbw26-banner *::before,
#lr-dgbw26-banner *::after {
    box-sizing: border-box;
}

#lr-dgbw26-banner .lr-dgbw26-banner__link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px 9px;
    min-height: 46px;
    width: 100%;
    padding: 8px 20px;
    margin: 0;
    border: 0;
    background: transparent;
    color: #09151c;
    text-decoration: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    cursor: pointer;
}

#lr-dgbw26-banner .lr-dgbw26-banner__link:hover,
#lr-dgbw26-banner .lr-dgbw26-banner__link:active,
#lr-dgbw26-banner .lr-dgbw26-banner__link:visited {
    color: #09151c;
    text-decoration: none;
}

#lr-dgbw26-banner .lr-dgbw26-banner__link:focus-visible {
    outline: 3px solid #09151c;
    outline-offset: -4px;
}

#lr-dgbw26-banner .lr-dgbw26-banner__lead {
    font-weight: 800;
}

#lr-dgbw26-banner .lr-dgbw26-banner__discount {
    display: inline-block;
    border-radius: 4px;
    padding: 2px 9px;
    background: #0b8daf;
    color: #09151c;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.45;
}

#lr-dgbw26-banner .lr-dgbw26-banner__detail {
    font-weight: 600;
}

#lr-dgbw26-banner .lr-dgbw26-banner__arrow {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

@media (max-width: 600px) {
    #lr-dgbw26-banner .lr-dgbw26-banner__link {
        min-height: 58px;
        gap: 4px 7px;
        padding: 9px 12px;
        font-size: 14px;
        line-height: 1.3;
    }
    #lr-dgbw26-banner .lr-dgbw26-banner__discount {
        font-size: 16px;
        padding: 2px 7px;
    }
    #lr-dgbw26-banner .lr-dgbw26-banner__arrow {
        width: 15px;
        height: 15px;
    }
}

/*
 * Degasquet Italia custom theme compatibility.
 * The original nav#nav-1 uses Bootstrap fixed-top (top: 0; z-index: 1030).
 * While this campaign is visible, position the navbar below the visible
 * portion of the promotional strip. JS updates the variable while scrolling,
 * so the original sticky navigation returns to top: 0 as the strip scrolls off.
 * This rule is scoped by BOTH the campaign state and the theme navbar ID.
 * JS additionally applies the measured absolute viewport coordinate
 * (banner.bottom; including the WP admin bar when logged in) INLINE !important;
 * this CSS acts as initial-paint fallback, not as the sole mechanism.
 */
html.lr-dgbw26-active nav#nav-1.navbar.fixed-top {
    top: var(--lr-dgbw26-nav-top, 46px) !important;
}

/* Initial-paint fallback only: JS replaces this with the exact measured
 * viewport coordinate and handles scrolling. WordPress uses a 32px admin
 * bar on desktop and normally 46px up to 782px wide. */
html.lr-dgbw26-active body.admin-bar nav#nav-1.navbar.fixed-top {
    top: var(--lr-dgbw26-nav-top, 78px) !important;
}

@media (max-width: 782px) {
    html.lr-dgbw26-active body.admin-bar nav#nav-1.navbar.fixed-top {
        top: var(--lr-dgbw26-nav-top, 92px) !important;
    }
}

@media (max-width: 600px) {
    html.lr-dgbw26-active nav#nav-1.navbar.fixed-top {
        top: var(--lr-dgbw26-nav-top, 58px) !important;
    }
    html.lr-dgbw26-active body.admin-bar nav#nav-1.navbar.fixed-top {
        top: var(--lr-dgbw26-nav-top, 104px) !important;
    }
}
