/* Product-only refinements: existing copy, controls and product links remain. */
body.single-product .mydiy-cpo-order-summary .mydiy-cpo-price-cell,
body.single-product .mydiy-cpo-order-summary .mydiy-cpo-assurance-cell {
    align-items: flex-start !important;
    min-height: 180px !important;
}
body.single-product .mydiy-cpo-order-summary .uni-module-dynamic_notice {
    align-self: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.single-product .mydiy-cpo-order-summary [id*="zerorisk"][id$="-field"] > br:first-child,
body.single-product .mydiy-cpo-order-summary [id*="zerorisk"][id$="-field"] > br:last-child,
body.single-product .mydiy-cpo-order-summary [id*="zerorisk"][id$="-field"] > br:nth-last-child(2) {
    display: none;
}
/* The inspected Related Products widget is this Elementor Loop Grid.
   A minimum card width prevents compression; overflow stays within its row. */
body.single-product .elementor-element-37400726 .elementor-loop-container,
body.single-product .related.products ul.products {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-template-columns: none !important;
    grid-auto-columns: minmax(240px, calc((100% - 72px) / 4));
    gap: 24px !important;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 0 18px;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 4px;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: #a36769 #f5eef1;
}
body.single-product .elementor-element-37400726 .e-loop-item,
body.single-product .related.products ul.products > li.product {
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    scroll-snap-align: start;
}
body.single-product .related.products ul.products::before,
body.single-product .related.products ul.products::after { display: none; }
body.single-product .elementor-element-37400726 .e-loop-item > a.e-con {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0;
    height: 100%;
}
body.single-product .elementor-element-37400726 .e-loop-item .elementor-widget-theme-post-featured-image {
    order: 0;
    width: 100%;
}
body.single-product .elementor-element-37400726 .e-loop-item .elementor-widget-woocommerce-product-title {
    order: 1;
    width: 100%;
}
body.single-product .elementor-element-37400726 .e-loop-item img {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 375 / 435;
    object-fit: cover;
}
body.single-product .elementor-element-37400726 .e-loop-item .product_title {
    font-size: 20px !important;
    line-height: 1.35 !important;
    overflow-wrap: break-word;
}
@media(max-width:767px) {
    body.single-product .elementor-element-37400726 .elementor-loop-container,
    body.single-product .related.products ul.products {
        grid-auto-columns: min(78vw, 280px);
        gap: 16px !important;
    }
    body.single-product .mydiy-cpo-order-summary .mydiy-cpo-price-cell,
    body.single-product .mydiy-cpo-order-summary .mydiy-cpo-assurance-cell {
        min-height: 0 !important;
    }
}
