/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */

.block_newsletter .alert:before {
    left: 10px;
    top: 8px;
}

/* NovaBrix registration: a clear role-first form without duplicated fields. */
#customer-form .nb-registration-type {
    margin: 0 0 24px;
    padding: 20px;
    border: 1px solid #cfe4ff;
    border-radius: 14px;
    background: #f4f9ff;
    box-shadow: 0 8px 24px rgba(18, 71, 128, .08);
}

#customer-form .nb-registration-type label {
    font-weight: 700;
    color: #15395b;
}

#customer-form .nb-professional-field[hidden],
#customer-form .nb-registration-duplicate {
    display: none !important;
}

/* Header account: keep the account control, remove the green outer circle. */
#leo_block_top.leo_block_top {
    background: transparent;
}

/* NovaBrix BTP: neutralise les contenus de démonstration Pocofood. */
#header .sdt,
#header .ApMegamenu,
.leo-megamenu,
.footer-top,
.footer-center,
.footer-bottom {
    display: none !important;
}

#header .header_logo img {
    display: block !important;
    width: auto;
    height: auto;
    max-width: 240px;
    max-height: 80px;
}

#header .header_logo {
    padding: 0;
}

#header .header_logo a {
    display: inline-flex;
    align-items: center;
    min-height: 80px;
}

#header .header_logo a:before {
    display: none;
}

#header .header_logo a:after {
    display: none;
}

/* En-tête NovaBrix : plus compact, lisible et orienté conversion. */
#header .header-banner .container,
#header .header-nav .container,
#header .header-top > .container {
    max-width: 1320px;
}

#header .header-banner .banner_top_site {
    min-height: 104px;
    background-position: center;
    background-size: cover;
    border-radius: 0 0 16px 16px;
}

#header .header-nav {
    min-height: 38px;
    background: #102a43;
    border: 0;
}

#header .header-nav .topnav {
    min-height: 38px;
}

#header .header-nav #contact-link {
    padding: 9px 0;
}

#header .header-nav #contact-link a {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

#header .header-nav #contact-link a:hover {
    color: #f5a623;
}

#header .header-nav .bottomnav {
    display: none !important;
}

/* En-tête de secours commun aux boutiques sans profil Apollo actif. */
#header .header-nav.nb-regional-header-nav {
    display: none !important;
}

#header .nb-regional-header__container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 28px;
}

#header .nb-regional-header__main {
    min-height: 96px;
    display: grid;
    grid-template-columns: minmax(190px, 260px) minmax(280px, 1fr) auto;
    align-items: center;
    gap: 28px;
}

#header .nb-regional-header__logo a {
    min-height: 72px;
}

#header .nb-regional-header__logo img {
    max-width: 220px;
    max-height: 72px;
}

#header .nb-regional-header__search {
    min-width: 0;
}

#header .nb-regional-header__search .search-widgets,
#header .nb-regional-header__search #search_widget,
#header .nb-regional-header__search form {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
}

#header .nb-regional-header__search input[type="text"] {
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 52px 0 18px;
    border: 1px solid #cfd9e2;
    border-radius: 8px;
    color: #102a43;
    background: #f8fafc;
    box-shadow: none;
}

#header .nb-regional-header__search .material-icons.search {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 15px;
    left: auto;
    margin: 0;
    color: #173a5e;
    transform: translateY(-50%);
}

#header .nb-regional-header__search .material-icons.clear {
    display: none;
}

#header .nb-regional-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    white-space: nowrap;
}

#header .nb-regional-header__actions .user-info,
#header .nb-regional-header__actions .userinfo-selector,
#header .nb-regional-header__actions #blockcart-wrapper {
    margin: 0;
}

/*
 * Leo Poco dessine normalement le conteneur du panier comme un disque vert.
 * Dans l'en-tête régional, le bouton blanc est déjà porté par .blockcart .header :
 * le fond du conteneur doit donc rester neutre pour ne pas dépasser sous le bouton.
 */
#header .nb-regional-header__actions #_desktop_cart {
    width: auto;
    height: auto;
    float: none;
    padding: 0;
    border-radius: 0;
    color: #102a43;
    background: transparent;
    line-height: normal;
    text-align: initial;
}

#header .nb-regional-header__actions #_desktop_cart .leo-blockcart {
    width: auto;
    height: auto;
    margin: 0;
    background: transparent;
}

#header .nb-regional-header__actions .popup-title,
#header .nb-regional-header__actions .blockcart .header,
#header .nb-regional-header__actions .user-info a,
#header .nb-regional-header__actions .blockcart .header a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid #d7e0e8;
    border-radius: 8px;
    color: #102a43;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

#header .nb-regional-header__actions .blockcart .header {
    min-width: 48px;
    box-sizing: border-box;
}

#header .nb-regional-header__actions .popup-title:hover,
#header .nb-regional-header__actions .blockcart .header:hover,
#header .nb-regional-header__actions .user-info a:hover,
#header .nb-regional-header__actions .blockcart .header a:hover {
    border-color: #f5a623;
    background: #fff8ea;
    transform: translateY(-1px);
}

#header .nb-regional-header__actions .popup-title .fa,
#header .nb-regional-header__actions .blockcart .header .fa-shopping-basket {
    margin-right: 7px;
}

#header .nb-regional-header__actions .blockcart .header .price {
    margin-left: 5px;
}

#header .nb-regional-header__actions .blockcart .body {
    display: none;
}

#header .header-top {
    padding: 0;
    background: #fff;
    box-shadow: 0 8px 26px rgba(16, 42, 67, .08);
}

#header .header-top .box-top {
    min-height: 96px;
    margin: 0;
    align-items: center;
    background: transparent !important;
}

#header .header-top .box-top > .left {
    display: flex;
    align-items: center;
    flex: 0 0 40%;
    max-width: 40%;
}

#header .header-top .box-top > .center {
    display: none !important;
}

#header .header-top .box-top > .right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 60%;
    max-width: 60%;
    margin-left: auto;
}

#header .header-top .right .popup-title,
#header .header-top .right .blockcart .header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 50%;
    color: #fff;
    background: #173a5e;
    transition: background .2s ease, transform .2s ease;
}

#header .header-top .right .popup-title:hover,
#header .header-top .right .blockcart .header:hover {
    color: #17212b;
    background: #f5a623;
    transform: translateY(-2px);
}

#header .header-top .right .expand-more,
#header .header-top .right .search-text,
#header .header-top .right .price {
    display: none !important;
}

.nb-btp-mainnav {
    max-width: none;
    margin: 0 auto;
    padding: 0 max(28px, calc((100vw - 1320px) / 2));
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    border-top: 1px solid #e6ebef;
    border-bottom: 1px solid #dce5ec;
    font-family: Arial, "Helvetica Neue", sans-serif;
}

.nb-btp-menu-toggle {
    display: none;
}

.nb-btp-mainnav a {
    color: #102a43;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .035em;
    padding: 19px 20px 17px;
    border-bottom: 3px solid transparent;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.nb-btp-mainnav a:hover {
    color: #102a43;
    border-color: #f5a623;
    background: #f5f8fb;
    text-decoration: none;
}

.nb-btp-mainnav a.is-active {
    margin-left: 8px;
    color: #17212b;
    background: #f5a623;
    border-color: #f5a623;
    border-radius: 7px;
    padding: 12px 18px;
}

.nb-btp-mainnav a.is-active:hover {
    background: #ffb52e;
    border-color: #ffb52e;
}

.page-index #wrapper {
    padding-top: 22px;
}

.page-index #header .header-banner {
    display: none !important;
}

.page-index .breadcrumb {
    display: none !important;
}

.page-index .nb-btp-hero {
    border-radius: 24px;
}

.page-index .nb-btp-hero h1,
.page-index .nb-btp-card h2 {
    font-family: Arial, "Helvetica Neue", sans-serif !important;
}

.nb-btp-footer {
    background: #0b2033;
    color: #dbe8f4;
    font-family: Arial, "Helvetica Neue", sans-serif;
}

.nb-btp-footer__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 54px 28px 40px;
    display: grid;
    grid-template-columns: minmax(260px, 1.25fr) minmax(520px, 2fr);
    align-items: flex-start;
    gap: 72px;
}

.nb-btp-footer__brand strong {
    color: #fff;
    font-size: 25px;
}

.nb-btp-footer__brand p {
    max-width: 520px;
    margin: 12px 0 0;
    line-height: 1.6;
}

.nb-btp-footer__badge {
    display: inline-flex;
    margin-top: 20px;
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    color: #f7bd57;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nb-btp-footer__nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
}

.nb-btp-footer__column {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.nb-btp-footer__column h2 {
    margin: 0 0 6px;
    color: #fff;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 15px;
    font-weight: 800;
}

.nb-btp-footer__column a {
    color: #bfd0df;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.nb-btp-footer__column a:hover {
    color: #f59e0b;
    text-decoration: none;
}

.nb-btp-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    max-width: 1320px;
    margin: 0 auto;
    padding: 18px 28px 24px;
    color: #9fb2c4;
    font-size: 13px;
}

@media (max-width: 1050px) {
    .nb-btp-footer__inner {
        grid-template-columns: 1fr;
        gap: 34px;
    }
}

@media (max-width: 900px) {
    #header .nb-regional-header__container {
        padding: 0 16px;
    }

    #header .nb-regional-header__main {
        grid-template-columns: minmax(150px, 1fr) auto;
        gap: 12px 16px;
        padding: 10px 0 14px;
    }

    #header .nb-regional-header__logo img {
        max-width: 180px;
        max-height: 60px;
    }

    #header .nb-regional-header__search {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    #header .nb-regional-header__actions .popup-title,
    #header .nb-regional-header__actions .blockcart .header,
    #header .nb-regional-header__actions .user-info a,
    #header .nb-regional-header__actions .blockcart .header a {
        min-height: 40px;
        padding: 0 10px;
        font-size: 12px;
    }

    .nb-btp-menu-toggle {
        width: calc(100% - 24px);
        min-height: 46px;
        margin: 8px 12px;
        padding: 10px 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        border: 1px solid #d6e0e8;
        border-radius: 7px;
        color: #fff;
        background: #173a5e;
        font-size: 15px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .nb-btp-menu-toggle__icon {
        font-size: 20px;
        line-height: 1;
    }

    #header .nb-btp-mainnav {
        display: none !important;
        width: 100%;
        min-height: 0;
        padding: 4px 12px 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        overflow: visible;
        white-space: normal;
        border-top: 0;
    }

    #header .nb-btp-mainnav.is-open {
        display: flex !important;
    }

    .nb-btp-mainnav a,
    .nb-btp-mainnav a.is-active {
        width: 100%;
        margin: 0;
        padding: 12px 14px;
        border-bottom: 1px solid #e6ebef;
        border-radius: 4px;
        font-size: 13px;
        text-align: left;
    }
}

@media (max-width: 760px) {
    #header .nb-regional-header__main {
        grid-template-columns: 1fr;
    }

    #header .nb-regional-header__logo,
    #header .nb-regional-header__actions {
        justify-self: center;
    }

    #header .nb-regional-header__search {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
    }

    #header .header-banner .banner_top_site {
        min-height: 72px;
        border-radius: 0;
    }

    #header .header-top .box-top {
        min-height: 74px;
    }

    #header .header_logo img {
        max-width: 175px;
        max-height: 58px;
    }

    #header .header_logo a {
        min-height: 60px;
    }

    #header .header-top .box-top > .left {
        flex-basis: 55%;
        max-width: 55%;
    }

    #header .header-top .box-top > .right {
        flex-basis: 45%;
        max-width: 45%;
        gap: 6px;
    }

    #header .header-top .right .popup-title,
    #header .header-top .right .blockcart .header {
        width: 38px;
        height: 38px;
    }

    .nb-btp-footer__inner {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 36px;
    }

    .nb-btp-footer__nav {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

/*
 * NovaBrix displayTop 3.8.5
 * Une seule composition visuelle pour les 18 boutiques, calée sur la maquette
 * validée : bandeau marine, logo + raccourcis, navigation blanche.
 */
#header .header-nav.nb-displaytop-strip {
    display: block !important;
    min-height: 34px;
    height: 34px;
    background: #153550;
    border: 0;
}

#header .nb-displaytop.header-top {
    padding: 0 0 14px;
    color: #fff;
    background: #0c263a;
    box-shadow: none;
}

#header .nb-displaytop__container {
    width: calc(100% - 48px) !important;
    max-width: 1410px !important;
    margin: 0 auto;
    padding: 0;
}

#header .nb-displaytop__main {
    min-height: 114px;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: center;
    gap: 32px;
}

#header .nb-displaytop__logo,
#header .nb-displaytop__shortcuts {
    min-width: 0;
}

#header .nb-displaytop__logo a {
    min-height: 74px;
    display: inline-flex;
    align-items: center;
}

#header .nb-displaytop__logo img {
    width: 280px !important;
    height: auto;
    max-width: 280px;
    max-height: 94px;
}

#header .nb-displaytop__shortcuts,
#header .nb-displaytop__account-cart,
#header .nb-displaytop__account-cart > .inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    white-space: nowrap;
}

#header .nb-displaytop__account-cart,
#header .nb-displaytop__account-cart > .inner {
    gap: 17px;
}

#header .nb-displaytop__shortcut {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

#header .nb-displaytop__shortcut:hover,
#header .nb-displaytop__shortcut:focus {
    color: #ffc400;
    text-decoration: none;
}

#header .nb-displaytop__shortcut-icon {
    color: #fff;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 27px;
    font-weight: 400;
    line-height: 1;
}

#header .nb-displaytop__compare-icon {
    font-size: 25px;
}

#header .nb-displaytop__alerts {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#header .nb-displaytop__alert {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #123b5e;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    text-decoration: none;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

#header .nb-displaytop__alert:hover,
#header .nb-displaytop__alert:focus {
    color: #102a43;
    background: #ffc400;
    border-color: #ffc400;
    outline: 2px solid rgba(255, 196, 0, .3);
    outline-offset: 2px;
    transform: translateY(-1px);
}

#header .nb-displaytop__alert svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

#header .nb-displaytop__alert-badge {
    position: absolute;
    top: -5px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #102a43;
    background: #ffc400;
    border: 2px solid #0c263a;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    line-height: 15px;
}

#header .nb-displaytop__account-cart .userinfo-selector,
#header .nb-displaytop__account-cart #_desktop_cart,
#header .nb-displaytop__account-cart .leo-blockcart {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    float: none;
    color: #fff;
    background: transparent;
    border-radius: 0;
    line-height: normal;
}

#header .nb-displaytop__account-cart .userinfo-selector > .popup-title {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    color: #fff !important;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

/* Keep the complete My account control white, including Leo's nested label
   and chevron rules on every shop and language. */
#header .nb-displaytop__account-cart .userinfo-selector > .popup-title,
#header .nb-displaytop__account-cart .userinfo-selector > .popup-title > span,
#header .nb-displaytop__account-cart .userinfo-selector > .popup-title > i {
    color: #fff !important;
}

#header .nb-displaytop__account-cart .userinfo-selector > .popup-title:hover,
#header .nb-displaytop__account-cart .userinfo-selector > .popup-title:focus,
#header .nb-displaytop__account-cart .userinfo-selector > .popup-title:hover > span,
#header .nb-displaytop__account-cart .userinfo-selector > .popup-title:focus > span,
#header .nb-displaytop__account-cart .userinfo-selector > .popup-title:hover > i,
#header .nb-displaytop__account-cart .userinfo-selector > .popup-title:focus > i {
    color: #fff !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}

#header .nb-displaytop__account-cart .userinfo-selector > .popup-title .fa-user {
    display: none !important;
}

#header .nb-displaytop__account-cart .userinfo-selector > .popup-content {
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    z-index: 1000;
    min-width: 210px;
    padding: 8px 0;
    color: #102a43;
    background: #fff;
    border: 1px solid #dce5ec;
    border-radius: 6px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .16);
}

#header .nb-displaytop__account-cart .userinfo-selector > .popup-content a {
    color: #102a43;
}

#header .nb-displaytop__account-cart .blockcart .header {
    position: relative;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    background: #123b5e;
    border: 0;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
}

#header .nb-displaytop__account-cart .blockcart .header:hover {
    color: #0b2a45;
    background: #ffc400;
}

#header .nb-displaytop__account-cart .blockcart .cart-products-count {
    position: absolute;
    top: 3px;
    right: -2px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #102a43;
    background: #ffc400;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    line-height: 17px;
}

#header .nb-displaytop__account-cart .blockcart .price,
#header .nb-displaytop__account-cart .blockcart .body {
    display: none !important;
}

#header .nb-displaytop .nb-btp-mainnav {
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 0 22px;
    border: 0;
    background: #fff;
}

#header .nb-displaytop .nb-btp-mainnav a {
    padding-top: 19px;
    padding-bottom: 17px;
    font-size: 13px;
}

#header .nb-displaytop .nb-btp-mainnav a.is-active {
    margin-left: 12px;
    padding: 12px 19px;
    color: #102a43;
    background: #f5a623;
    border-color: #f5a623;
    border-radius: 8px;
}

@media (max-width: 1240px) {
    #header .nb-displaytop__main {
        grid-template-columns: minmax(220px, 1fr) auto;
        gap: 20px;
    }

    #header .nb-displaytop__logo img {
        max-width: 220px;
    }

    #header .nb-displaytop__shortcuts {
        gap: 11px;
    }

    #header .nb-displaytop__shortcut {
        font-size: 0;
        gap: 0;
    }

    #header .nb-displaytop__shortcut-icon {
        font-size: 25px;
    }

    #header .nb-displaytop .nb-btp-mainnav a {
        padding-right: 13px;
        padding-left: 13px;
        font-size: 12px;
    }
}

@media (max-width: 900px) {
    #header .header-nav.nb-displaytop-strip {
        min-height: 12px;
        height: 12px;
    }

    #header .nb-displaytop.header-top {
        padding-bottom: 10px;
    }

    #header .nb-displaytop__container {
        width: calc(100% - 28px) !important;
    }

    #header .nb-displaytop__main {
        min-height: 0;
        grid-template-columns: minmax(160px, 1fr) auto;
        gap: 10px 16px;
        padding: 12px 0;
    }

    #header .nb-displaytop__logo a {
        min-height: 54px;
    }

    #header .nb-displaytop__logo img {
        max-width: 190px;
        max-height: 54px;
    }

    #header .nb-displaytop__shortcuts {
        gap: 12px;
    }

    #header .nb-displaytop .nb-btp-menu-toggle {
        width: 100%;
        margin: 0;
        border-color: rgba(255, 255, 255, .34);
        background: #123b5e;
    }

    #header .nb-displaytop .nb-btp-mainnav {
        width: 100%;
        margin: 8px 0 0;
    }
}

@media (max-width: 600px) {
    #header .nb-displaytop__container {
        width: calc(100% - 20px) !important;
    }

    #header .nb-displaytop__main {
        grid-template-columns: 1fr;
    }

    #header .nb-displaytop__logo,
    #header .nb-displaytop__shortcuts {
        justify-self: center;
    }

    #header .nb-displaytop__shortcuts {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    #header .nb-displaytop__shortcut {
        display: none;
    }

    #header .nb-displaytop__account-cart .userinfo-selector > .popup-title {
        min-height: 42px;
    }

    #header .nb-displaytop__account-cart .userinfo-selector > .popup-title .fa-user {
        display: inline-block !important;
        margin-right: 0;
        font-size: 16px;
    }

    #header .nb-displaytop__account-cart .blockcart .header {
        width: 42px;
        height: 42px;
    }
}

/* NovaBrix form labels: Leo Poco's generic `label, .label` rule aligns every
 * label to the right. Keep the correction scoped to NovaBrix business forms
 * so product, checkout and third-party module layouts remain unchanged. */
.btp-page form label,
#Job_Application_Form form#employment label,
.nb-application form label,
.nb-recruitment form label,
#module-btplocation-detail .btp-rental-form label,
#module-btplocation-detail .btp-rental-grid label {
    text-align: left !important;
}

/* Centre de messages client : BTP + canaux ETS Marketplace. */
.btp-message-center {
    max-width: 980px;
    margin: 0 auto 48px;
}

.btp-message-center__header {
    margin-bottom: 24px;
    padding: 26px 30px;
    color: #fff;
    background: linear-gradient(135deg, #102f4b 0%, #245f91 100%);
    border-radius: 16px;
}

.btp-message-center__header h1,
.btp-message-center__header p {
    margin: 0;
    color: inherit;
}

.btp-message-center__header h1 {
    margin: 4px 0 6px;
    font-size: 30px;
}

.btp-message-center__eyebrow {
    color: #ffc34d !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.btp-message-center__channels {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.btp-message-channel,
.btp-message-thread {
    color: #102a43;
    background: #fff;
    border: 1px solid #dbe5ed;
    box-shadow: 0 8px 24px rgba(16, 42, 67, .07);
    text-decoration: none !important;
}

.btp-message-channel {
    min-height: 92px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 12px;
}

.btp-message-channel:hover,
.btp-message-thread:hover {
    color: #102a43;
    border-color: #f5a623;
    box-shadow: 0 10px 28px rgba(16, 42, 67, .12);
}

.btp-message-channel__icon,
.btp-message-thread__avatar {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #123b5e;
    border-radius: 50%;
}

.btp-message-channel__icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
}

.btp-message-channel > span:nth-child(2),
.btp-message-thread__content {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btp-message-channel small,
.btp-message-thread small,
.btp-message-center__section-title p {
    color: #647789;
}

.btp-message-channel b,
.btp-message-thread > b {
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #102a43;
    background: #ffc400;
    border-radius: 999px;
    font-size: 11px;
}

.btp-message-center__section-title {
    margin-bottom: 14px;
}

.btp-message-center__section-title h2,
.btp-message-center__section-title p {
    margin: 0 0 4px;
}

.btp-message-thread-list {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dbe5ed;
    border-radius: 12px;
}

.btp-message-thread {
    min-height: 82px;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 0;
    border-bottom: 1px solid #e8eef3;
    box-shadow: none;
}

.btp-message-thread:last-child {
    border-bottom: 0;
}

.btp-message-thread.is-unread {
    background: #f2f8fd;
}

.btp-message-thread__avatar {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
}

.btp-message-thread__arrow {
    color: #8999a7;
    font-size: 27px;
}

@media (max-width: 700px) {
    .btp-message-center__channels {
        grid-template-columns: 1fr;
    }

    .btp-message-center__header {
        padding: 22px;
    }

    .btp-message-thread {
        padding-right: 12px;
        padding-left: 12px;
    }
}

/* Catalogue Vente : feuille directe et versionnée, indépendante du cache CSS combiné. */
.nb-sale-actions.functional-buttons {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    margin: 0 0 14px;
    padding: 10px 5px;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.nb-sale-actions > div {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.nb-sale-actions .quickview .btn-product,
.nb-sale-actions .compare .btn-product,
.nb-sale-actions .wishlist .btn-product {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 1px solid #12395b !important;
    border-radius: 50% !important;
    color: #fff !important;
    background: #12395b !important;
    font-size: 0 !important;
    line-height: 0 !important;
    box-shadow: none !important;
}

.nb-sale-actions .quickview .btn-product:hover,
.nb-sale-actions .quickview .btn-product:focus,
.nb-sale-actions .compare .btn-product:hover,
.nb-sale-actions .compare .btn-product:focus,
.nb-sale-actions .wishlist .btn-product:hover,
.nb-sale-actions .wishlist .btn-product:focus {
    color: #12395b !important;
    background: #ffcc00 !important;
    border-color: #ffcc00 !important;
    text-decoration: none !important;
}

.nb-sale-actions .quickview .name-btn-product,
.nb-sale-actions .compare .btn-title,
.nb-sale-actions .wishlist .btn-title {
    display: none !important;
}

.nb-sale-actions .button-container.cart form {
    width: auto !important;
    margin: 0 !important;
}

.nb-sale-actions .add-to-cart {
    width: 105px !important;
    min-width: 105px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #12395b !important;
    background: #ffcc00 !important;
    border: 1px solid #ffcc00 !important;
    border-radius: 7px !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 15px !important;
    white-space: nowrap;
    box-shadow: none !important;
}

.nb-sale-actions .add-to-cart:hover,
.nb-sale-actions .add-to-cart:focus {
    color: #fff !important;
    background: #12395b !important;
    border-color: #12395b !important;
}

.nb-sale-actions i {
    font-size: 16px !important;
    line-height: 1 !important;
}

.nb-sale-product-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #123b5e;
    font-weight: 700;
    text-decoration: none;
}

.nb-sale-product-link:hover {
    color: #d9890e;
    text-decoration: none;
}

@media (max-width: 600px) {
    .nb-sale-actions.functional-buttons {
        overflow-x: auto;
        padding-right: 0;
        padding-left: 0;
    }
}

/* PayPal responsive layout: keep shortcut and instalment widgets inside the
   product and cart columns. The PayPal module otherwise injects right floats
   and a 150px BNPL box, which clips the French button label. */
#product .leo-compare-wishlist-button [data-container-express-checkout],
#product .leo-compare-wishlist-button [data-container-bnpl] {
    display: block !important;
    float: none !important;
    width: 300px !important;
    max-width: 100% !important;
    margin: 12px 0 0 !important;
}

#product .leo-compare-wishlist-button [paypal-button-container],
#product .leo-compare-wishlist-button [paypal-bnpl-button-container] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

#cart [data-container-express-checkout],
#cart [data-container-bnpl] {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
}

#cart [paypal-button-container],
#cart [paypal-bnpl-button-container] {
    width: 250px !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

@media (max-width: 575px) {
    #product .leo-compare-wishlist-button [data-container-express-checkout],
    #product .leo-compare-wishlist-button [data-container-bnpl],
    #cart [paypal-button-container],
    #cart [paypal-bnpl-button-container] {
        width: 100% !important;
    }
}

/* Product, cart and order-confirmation recommendation cards: reuse the compact
   action bar from the NovaBrix sale catalogue without altering Leo's hooks. */
#product .product-miniature .functional-buttons,
#cart .product-miniature .functional-buttons,
#order-confirmation .product-miniature .functional-buttons {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    margin: 0 0 14px !important;
    padding: 10px 5px !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

#product .product-miniature .functional-buttons > div,
#cart .product-miniature .functional-buttons > div,
#order-confirmation .product-miniature .functional-buttons > div {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

#product .product-miniature .functional-buttons .quickview .btn-product,
#product .product-miniature .functional-buttons .compare .btn-product,
#product .product-miniature .functional-buttons .wishlist .btn-product,
#cart .product-miniature .functional-buttons .quickview .btn-product,
#cart .product-miniature .functional-buttons .compare .btn-product,
#cart .product-miniature .functional-buttons .wishlist .btn-product,
#order-confirmation .product-miniature .functional-buttons .quickview .btn-product,
#order-confirmation .product-miniature .functional-buttons .compare .btn-product,
#order-confirmation .product-miniature .functional-buttons .wishlist .btn-product {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    color: #fff !important;
    background: #12395b !important;
    border: 1px solid #12395b !important;
    border-radius: 50% !important;
    font-size: 0 !important;
    line-height: 0 !important;
    box-shadow: none !important;
}

#product .product-miniature .functional-buttons .quickview .btn-product:hover,
#product .product-miniature .functional-buttons .quickview .btn-product:focus,
#product .product-miniature .functional-buttons .compare .btn-product:hover,
#product .product-miniature .functional-buttons .compare .btn-product:focus,
#product .product-miniature .functional-buttons .wishlist .btn-product:hover,
#product .product-miniature .functional-buttons .wishlist .btn-product:focus,
#cart .product-miniature .functional-buttons .quickview .btn-product:hover,
#cart .product-miniature .functional-buttons .quickview .btn-product:focus,
#cart .product-miniature .functional-buttons .compare .btn-product:hover,
#cart .product-miniature .functional-buttons .compare .btn-product:focus,
#cart .product-miniature .functional-buttons .wishlist .btn-product:hover,
#cart .product-miniature .functional-buttons .wishlist .btn-product:focus,
#order-confirmation .product-miniature .functional-buttons .quickview .btn-product:hover,
#order-confirmation .product-miniature .functional-buttons .quickview .btn-product:focus,
#order-confirmation .product-miniature .functional-buttons .compare .btn-product:hover,
#order-confirmation .product-miniature .functional-buttons .compare .btn-product:focus,
#order-confirmation .product-miniature .functional-buttons .wishlist .btn-product:hover,
#order-confirmation .product-miniature .functional-buttons .wishlist .btn-product:focus {
    color: #12395b !important;
    background: #ffcc00 !important;
    border-color: #ffcc00 !important;
    text-decoration: none !important;
}

#product .product-miniature .functional-buttons .quickview .name-btn-product,
#product .product-miniature .functional-buttons .compare .btn-title,
#product .product-miniature .functional-buttons .wishlist .btn-title,
#cart .product-miniature .functional-buttons .quickview .name-btn-product,
#cart .product-miniature .functional-buttons .compare .btn-title,
#cart .product-miniature .functional-buttons .wishlist .btn-title,
#order-confirmation .product-miniature .functional-buttons .quickview .name-btn-product,
#order-confirmation .product-miniature .functional-buttons .compare .btn-title,
#order-confirmation .product-miniature .functional-buttons .wishlist .btn-title {
    display: none !important;
}

#product .product-miniature .functional-buttons .button-container.cart form,
#cart .product-miniature .functional-buttons .button-container.cart form,
#order-confirmation .product-miniature .functional-buttons .button-container.cart form {
    width: auto !important;
    margin: 0 !important;
}

#product .product-miniature .functional-buttons .add-to-cart,
#cart .product-miniature .functional-buttons .add-to-cart,
#order-confirmation .product-miniature .functional-buttons .add-to-cart {
    width: 105px !important;
    min-width: 105px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #12395b !important;
    background: #ffcc00 !important;
    border: 1px solid #ffcc00 !important;
    border-radius: 7px !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 15px !important;
    white-space: nowrap;
    box-shadow: none !important;
}

#product .product-miniature .functional-buttons .add-to-cart:hover,
#product .product-miniature .functional-buttons .add-to-cart:focus,
#cart .product-miniature .functional-buttons .add-to-cart:hover,
#cart .product-miniature .functional-buttons .add-to-cart:focus,
#order-confirmation .product-miniature .functional-buttons .add-to-cart:hover,
#order-confirmation .product-miniature .functional-buttons .add-to-cart:focus {
    color: #fff !important;
    background: #12395b !important;
    border-color: #12395b !important;
}

#product .product-miniature .functional-buttons i,
#cart .product-miniature .functional-buttons i,
#order-confirmation .product-miniature .functional-buttons i {
    font-size: 16px !important;
    line-height: 1 !important;
}

@media (max-width: 600px) {
    #product .product-miniature .functional-buttons,
    #cart .product-miniature .functional-buttons,
    #order-confirmation .product-miniature .functional-buttons {
        overflow-x: auto;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
}
