/* Product-detail galleries only. Catalog cards and hero carousels are untouched. */
.woocommerce-product-gallery.bnp-product-gallery {
    min-width: 0;
}
.woocommerce-product-gallery.bnp-product-gallery .woocommerce-product-gallery__image img:not(.zoomImg) {
    object-fit: contain;
    object-position: center;
}
.woocommerce-product-gallery.bnp-product-gallery .flex-direction-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    clear: both;
}
.woocommerce-product-gallery.bnp-product-gallery .flex-direction-nav li {
    margin: 0;
    padding: 0;
    list-style: none;
}
.woocommerce-product-gallery.bnp-product-gallery .flex-direction-nav a {
    box-sizing: border-box;
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: 44px;
    min-height: 44px;
    height: auto;
    margin: 0;
    padding: 10px 14px;
    overflow: visible;
    border: 1px solid currentColor;
    border-radius: 4px;
    background: #fff;
    color: #161616;
    font: inherit;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    text-indent: 0;
    text-decoration: none;
    text-shadow: none;
    opacity: 1;
    visibility: visible;
    cursor: pointer;
}
.woocommerce-product-gallery.bnp-product-gallery .flex-direction-nav a::before {
    display: none;
}
.woocommerce-product-gallery.bnp-product-gallery .flex-direction-nav a:hover {
    background: #f4f2ef;
}
.woocommerce-product-gallery.bnp-product-gallery .flex-direction-nav a.flex-disabled {
    opacity: .45;
    pointer-events: none;
    cursor: default;
}
.woocommerce-product-gallery.bnp-product-gallery .flex-direction-nav a:focus-visible,
.woocommerce-product-gallery.bnp-product-gallery .flex-control-thumbs img:focus-visible {
    outline: 3px solid #161616;
    outline-offset: 3px;
}
.woocommerce-product-gallery.bnp-product-gallery .bnp-product-gallery-status {
    margin: 8px 0 0;
    color: #555;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}
/* The newer gallery block keeps all its native controls and state. */
.bnp-product-gallery-block {
    min-width: 0;
}
.bnp-product-gallery-block .wc-block-product-gallery-large-image img {
    object-fit: contain;
}
@media (max-width: 480px) {
    .woocommerce-product-gallery.bnp-product-gallery .flex-direction-nav { gap: 8px; }
    .woocommerce-product-gallery.bnp-product-gallery .flex-direction-nav a { padding: 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .woocommerce-product-gallery.bnp-product-gallery .woocommerce-product-gallery__wrapper,
    .woocommerce-product-gallery.bnp-product-gallery .flex-viewport { transition-duration: 0s !important; }
}
