/* Elementor Old Style Support – keeps the Elementor 3.18 look on Elementor 4.x (moved from the wellco-child theme). */

/* ==========================================================================
   Elementor 4.x -> match the Elementor 3.18 look used on production
   (spacing differences only; safe on 3.18 because these equal its behaviour)
   ========================================================================== */

/* Image Box: 3.18 left the <img> inline (extra line-box space below the image) */
.elementor-widget-image-box .elementor-image-box-wrapper .elementor-image-box-img img {
    display: inline;
    line-height: inherit;
}

/* Button: 3.18 rendered the icon as a block with an inline SVG (taller button) */
.elementor-widget-button .elementor-button .elementor-button-icon {
    display: block;
}

/* Cart page: space between "Apply coupon" and "Update cart" buttons (local improvement, prod has no gap) */
@media (min-width: 769px) {
    .woocommerce-cart table.cart td.actions button[name="update_cart"] {
        margin-left: 10px;
    }
}

/* Home slider (Slider Revolution #4, slide 12): keep the woman + green-circle images visible, like production.
   In the slider settings the woman layer (layer-6) is hidden on all devices and both image layers fade out
   after ~8s. Production shows them only because its Slider Revolution CSS never loads. These rules keep the
   working slider (correct hero height) and force both image layers to stay visible. */
#rev_slider_4_1 rs-layer-wrap:has(#slider-4-slide-12-layer-5),
#rev_slider_4_1 rs-layer-wrap:has(#slider-4-slide-12-layer-6) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
#rev_slider_4_1 rs-layer-wrap:has(#slider-4-slide-12-layer-5) :is(rs-loop-wrap, rs-mask-wrap),
#rev_slider_4_1 rs-layer-wrap:has(#slider-4-slide-12-layer-6) :is(rs-loop-wrap, rs-mask-wrap),
#rev_slider_4_1 #slider-4-slide-12-layer-5,
#rev_slider_4_1 #slider-4-slide-12-layer-6 {
    visibility: visible !important;
    opacity: 1 !important;
}
/* Image sizes on the home slider are matched to production by a small script in this plugin (elementor-old-style-support.php). */
/* Match production: the Download / Contact button links are inline there (no rs6.css), so their 13px
   padding doesn't add height and the slider places them 24px lower than locally. */
#rev_slider_4_1 a.rs-layer {
    display: inline !important;
}
/* Match production: rotating headline (template 7080) text colour and font. */
#rev_slider_4_1 .elementor-7080 .elementor-headline-dynamic-text {
    color: rgb(200, 200, 200) !important;
    font-family: "Futura Medium BT", sans-serif !important;
    font-weight: 400 !important;
}
