/* =========================================================
   ROSAVALLE PREMIUM TEA
   WOOCOMMERCE CART PAGE – DESKTOP + MOBILE
   ========================================================= */


/* ---------- CART PAGE BACKGROUND ---------- */

body.woocommerce-cart {
    background-image:
        linear-gradient(
            rgba(255, 250, 240, 0.16),
            rgba(255, 250, 240, 0.16)
        ),
        url("http://rosavalle.com/wp-content/uploads/2026/08/ChatGPT-Image-Aug-22-2026-04_55_23-PM.png") !important;

    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}


/* ---------- REMOVE THEME WHITE BACKGROUNDS ---------- */

body.woocommerce-cart #page,
body.woocommerce-cart .site,
body.woocommerce-cart .site-content,
body.woocommerce-cart .content-area,
body.woocommerce-cart main,
body.woocommerce-cart .entry-content,
body.woocommerce-cart .site-main {
    background: transparent !important;
}


/* ---------- MAIN CART WIDTH ---------- */

body.woocommerce-cart .woocommerce {
    width: 94% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 45px 0 65px !important;
}


/* ---------- CART FORM ---------- */

body.woocommerce-cart .woocommerce-cart-form {
    background: rgba(255, 253, 247, 0.93) !important;

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    border: 1px solid rgba(181, 145, 70, 0.22) !important;
    border-radius: 16px !important;

    padding: 25px !important;

    box-shadow:
        0 12px 35px rgba(31, 55, 38, 0.10) !important;
}


/* ---------- CART TOTALS ---------- */

body.woocommerce-cart .cart_totals {
    background: rgba(255, 253, 247, 0.95) !important;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    border: 1px solid rgba(181, 145, 70, 0.22) !important;
    border-radius: 16px !important;

    padding: 24px !important;

    box-shadow:
        0 12px 35px rgba(31, 55, 38, 0.10) !important;
}


/* ---------- HEADINGS ---------- */

body.woocommerce-cart h1,
body.woocommerce-cart h2,
body.woocommerce-cart h3 {
    color: #173d2b !important;
}


/* ---------- CART TABLE ---------- */

body.woocommerce-cart table.shop_table {
    background: transparent !important;
    border: none !important;
}


/* ---------- BUTTONS ---------- */

body.woocommerce-cart .button,
body.woocommerce-cart button.button,
body.woocommerce-cart a.button,
body.woocommerce-cart .checkout-button {
    background: #173d2b !important;
    color: #ffffff !important;

    border: none !important;
    border-radius: 8px !important;

    transition: 0.3s ease !important;
}


/* BUTTON HOVER */

body.woocommerce-cart .button:hover,
body.woocommerce-cart button.button:hover,
body.woocommerce-cart a.button:hover,
body.woocommerce-cart .checkout-button:hover {
    background: #b49352 !important;
    color: #ffffff !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media only screen and (max-width: 1024px) {

    body.woocommerce-cart {
        background-position: center top !important;
        background-attachment: scroll !important;
    }

    body.woocommerce-cart .woocommerce {
        width: 92% !important;
        padding: 30px 0 50px !important;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media only screen and (max-width: 768px) {

    body.woocommerce-cart {

        background-image:
            linear-gradient(
                rgba(255, 250, 240, 0.38),
                rgba(255, 250, 240, 0.38)
            ),
            url("http://rosavalle.com/wp-content/uploads/2026/08/ChatGPT-Image-Aug-22-2026-04_55_23-PM.png") !important;

        background-size: auto 100vh !important;
        background-position: center top !important;
        background-repeat: repeat-y !important;
        background-attachment: scroll !important;
    }


    /* MAIN CONTENT */

    body.woocommerce-cart .woocommerce {
        width: calc(100% - 28px) !important;
        max-width: 100% !important;

        margin-left: auto !important;
        margin-right: auto !important;

        padding: 25px 0 40px !important;

        box-sizing: border-box !important;
    }


    /* CART BOXES */

    body.woocommerce-cart .woocommerce-cart-form,
    body.woocommerce-cart .cart_totals {

        width: 100% !important;

        background: rgba(255, 253, 247, 0.96) !important;

        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);

        border-radius: 14px !important;

        padding: 16px !important;

        box-sizing: border-box !important;

        box-shadow:
            0 8px 25px rgba(31, 55, 38, 0.10) !important;
    }


    /* PREVENT OVERFLOW */

    body.woocommerce-cart table,
    body.woocommerce-cart table.shop_table {
        width: 100% !important;
        max-width: 100% !important;
    }


    /* PRODUCT IMAGE */

    body.woocommerce-cart .product-thumbnail img {
        width: 65px !important;
        max-width: 65px !important;
        height: auto !important;
    }


    /* COUPON */

    body.woocommerce-cart .coupon {
        width: 100% !important;
    }

    body.woocommerce-cart .coupon input {
        width: 100% !important;
        margin-bottom: 10px !important;
        box-sizing: border-box !important;
    }


    /* MOBILE BUTTONS */

    body.woocommerce-cart .button,
    body.woocommerce-cart button.button,
    body.woocommerce-cart .checkout-button {

        width: 100% !important;

        min-height: 48px !important;

        margin-top: 8px !important;

        box-sizing: border-box !important;

        font-size: 15px !important;
    }


    /* CART TOTALS */

    body.woocommerce-cart .cart_totals {
        margin-top: 24px !important;
    }

}


/* =========================================================
   SMALL MOBILE – iPhone / 360px / 375px / 390px
   ========================================================= */

@media only screen and (max-width: 480px) {

    body.woocommerce-cart {
        background-size: auto 82vh !important;
        background-position: center top !important;
    }


    body.woocommerce-cart .woocommerce {
        width: calc(100% - 20px) !important;

        padding-top: 18px !important;
        padding-bottom: 30px !important;
    }


    body.woocommerce-cart .woocommerce-cart-form,
    body.woocommerce-cart .cart_totals {

        padding: 12px !important;

        border-radius: 12px !important;
    }


    body.woocommerce-cart .product-thumbnail img {
        width: 55px !important;
        max-width: 55px !important;
    }

}
/* =========================================
   ROSAVALLE - HIDE UPDATE CART BUTTON
   Cart updates automatically via JS
   ========================================= */

body.woocommerce-cart button[name="update_cart"],
body.woocommerce-cart input[name="update_cart"],
body.woocommerce-cart .woocommerce-cart-form button[name="update_cart"],
body.woocommerce-cart .woocommerce-cart-form input[name="update_cart"] {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;

    opacity: 0 !important;
    visibility: hidden !important;

    pointer-events: none !important;
}

