.product-box:has(.product-info > .es-discontinued-status) .product-image,
.cms-element-image-gallery:has(> .es-discontinued-gallery) :is(.gallery-slider-image, .gallery-slider-thumbnails-image) {
    filter: grayscale(1) opacity(0.55);
}

/* Keep the availability metadata and any free-shipping notice from the buy widget. */
.es-discontinued-delivery .delivery-information:not(.delivery-shipping-free),
.product-info:has(> .es-discontinued-status) > :is(.product-box-card-status-text, .product-wishlist-info-delivery-time) {
    display: none;
}

.es-discontinued-status {
    margin: 0 0 0.5rem;
    font-weight: 600;
}
