/* Les étiquettes WoodMart peuvent être produites indépendamment de WooCommerce. */
.product:is(.post-32403,.post-32404,.post-32405,.post-32406,.post-32407,.post-32408):not(.single-product-page) :is(.price,.out-of-stock,.stock.out-of-stock),
.single-product-page:is(.post-32403,.post-32404,.post-32405,.post-32406,.post-32407,.post-32408) :is(.summary .price,.summary .stock.out-of-stock,.product-labels .out-of-stock):not(.wd-product *),
body:is(.postid-32403,.postid-32404,.postid-32405,.postid-32406,.postid-32407,.postid-32408) .wd-sticky-btn :is(.price,.out-of-stock) {
    display: none !important;
}

dialog.bbl-photo-dialog[open] {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: 100%;
    max-width: none;
    height: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: 0;
    padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background: #131719;
    color: white;
    font: inherit;
}
.bbl-photo-dialog::backdrop { background: #131719; }
html:has(.bbl-photo-dialog[open]) { overflow: hidden; }
.bbl-photo-bar { display: flex; align-items: center; justify-content: flex-end; gap: 18px; min-height: 54px; }
.bbl-photo-bar a, .bbl-photo-bar button { font: inherit; color: white; }
.bbl-photo-bar a { text-decoration: underline; }
.bbl-photo-bar [hidden] { display: none !important; }
.bbl-photo-bar button { min-height: 44px; padding: 7px 17px; background: #303638; border: 1px solid #758080; border-radius: 4px; cursor: pointer; }
.bbl-photo-bar :focus-visible, .bbl-photo-trigger:focus-visible { outline: 3px solid #ffcf19; outline-offset: 2px; }
.bbl-photo-stage { min-height: 0; min-width: 0; display: flex; justify-content: center; align-items: center; }
dialog .bbl-photo-stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; margin: 0; }
.bbl-photo-trigger, .product-image-link, .woocommerce-product-gallery__image a, .category-image-wrapp a { cursor: zoom-in; }

/* Le client garde accès au panier, sans que le bouton recouvre le centre de la photo. */
.wd-product.wd-hover-button .product-element-top > .wd-add-btn.wd-add-btn-replace {
    top: auto !important;
    bottom: 8px !important;
    transform: translateX(-50%) !important;
}

.summary a.bbl-xilin-devis { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-block: 8px 16px; }
.wd-product .wd-add-btn .bbl-xilin-devis { white-space: nowrap; }
.wd-product .wd-add-btn .bbl-xilin-devis::before { content: none !important; }
