/**
 * Theme Name: Twentytwentyfive Child
 * Template:   twentytwentyfive
 */

/* Mobile Banner Fix */
@media (max-width: 991.98px) {

    /* Ensuring the section background is the base layer */
    .product-financing-banner {
        background-color: var(--bs-green-2);
        /* Or specific green if needed */
    }

    /* The green strip with content */
    .product-financing-banner .row>div {
        background-color: rgba(28, 105, 51, 0.85) !important;
        padding: 30px 20px !important;
        border-radius: 10px;
        position: relative;
        z-index: 2;
        /* Content on top */
        margin-top: -50px;
        /* Pull content up over the image */
    }

    /* The Image Layer */
    .product-financing-banner img {
        display: block;
        width: 60% !important;
        max-width: 300px !important;
        margin: 0 auto;
        position: relative;
        z-index: 1;
        /* Image behind content strip */
        /* Remove desktop absolute positioning reset */
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        margin-bottom: 20px;
        /* Space if no overlap desired, but we want overlap? 
                          User said "on the machine photo a green strip". 
                          Let's try overlap with margin-top on the content. */
    }
}

/* Fix desktop layout preservation due to HTML change */
@media (min-width: 992px) {
    .product-financing-banner {
        position: relative;
    }

    .product-financing-banner img {
        position: absolute;
        top: 50%;
        width: auto;
        height: 90%;
        max-width: 390px;
        right: 3%;
        z-index: 0;
        transform: translateY(-50%);
    }

    /* Ensure content stays on top */
    .product-financing-banner .row>div {
        position: relative;
        z-index: 1;
    }
}

/* Fix for mobile select font size to prevent zooming and improve readability */
@media (max-width: 768px) {
    #filter-woj {
        font-size: 16px !important;
    }
}