/* WPCode 71073 — Classic Transfers – Cart Styling */
/* =========================================================
   CLASSIC TRANSFERS - CART
   ========================================================= */

/* =========================================================
   CART PAGE RESPONSIVE GUTTERS
   ========================================================= */

/* DESKTOP */
@media (min-width: 1201px) {

    body.woocommerce-cart main,
    body.woocommerce-cart .wp-site-blocks > main {
        padding-left: 220px !important;
        padding-right: 220px !important;
        box-sizing: border-box !important;
    }
}

/* TABLET */
@media (min-width: 900px) and (max-width: 1200px) {

    body.woocommerce-cart main,
    body.woocommerce-cart .wp-site-blocks > main {
        padding-left: 60px !important;
        padding-right: 60px !important;
        box-sizing: border-box !important;
    }
}

/* MOBILE */
@media (max-width: 899px) {

    body.woocommerce-cart main,
    body.woocommerce-cart .wp-site-blocks > main {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }
}

/* =========================================================
   CART PAGE WIDTH
   Width/gutters are controlled by the WordPress template.
   WooCommerce simply fills the available content area.
   ========================================================= */

.woocommerce-cart .woocommerce {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}


/* Cart heading */
.woocommerce-cart h2.wp-block-heading {
    margin-bottom: 35px;
}


/* =========================================================
   DESKTOP TWO-COLUMN LAYOUT
   ========================================================= */

@media (min-width: 900px) {

    /* Product table - left */
    .woocommerce-cart form.woocommerce-cart-form {
        width: 62%;
        float: left;
        margin: 0;
    }

    /* Basket totals - right */
    .woocommerce-cart .cart-collaterals {
        width: 34%;
        float: right;
        margin: 0;
    }

    /* Basket totals fills its column */
    .woocommerce-cart .cart_totals {
        width: 100% !important;
        float: none !important;
    }

    /* Clear floats */
    .woocommerce-cart .woocommerce::after {
        content: "";
        display: block;
        clear: both;
    }
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.woocommerce-cart table.shop_table {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 15px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #fff;
}


/* Table heading */
.woocommerce-cart table.shop_table thead th {
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 14px;
    font-size: 13px;
    font-weight: 600;
}


/* Product row */
.woocommerce-cart table.shop_table td {
    padding: 20px 14px;
    border-top: 0;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: middle;
}


/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.woocommerce-cart td.product-thumbnail {
    width: 120px;
}

.woocommerce-cart td.product-thumbnail img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   PRODUCT NAME / DETAILS
   ========================================================= */

.woocommerce-cart td.product-name a {
    font-weight: 600;
    text-decoration: none;
}

.woocommerce-cart td.product-name a:hover {
    text-decoration: underline;
}


/* =========================================================
   QUANTITY
   ========================================================= */

.woocommerce-cart .quantity .qty {
    width: 65px;
    min-height: 42px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    text-align: center;
}


/* =========================================================
   REMOVE BUTTON
   ========================================================= */

.woocommerce-cart a.remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    line-height: 1;
}


/* =========================================================
   COUPON / UPDATE BASKET
   ========================================================= */

.woocommerce-cart table.cart td.actions {
    padding: 16px;
    background: #fafafa;
}

.woocommerce-cart .coupon {
    display: flex;
    gap: 8px;
    align-items: center;
}

.woocommerce-cart .coupon #coupon_code {
    width: 180px;
    min-height: 44px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 12px;
    box-sizing: border-box;
}

.woocommerce-cart table.cart td.actions .button {
    min-height: 44px;
    border-radius: 6px;
}


/* =========================================================
   BASKET TOTALS CARD
   ========================================================= */

.woocommerce-cart .cart_totals {
    background: #eeeeee;
    border-radius: 15px;
    padding: 25px;
    box-sizing: border-box;
}

.woocommerce-cart .cart_totals h2 {
    margin: 0 0 20px;
    font-size: 22px;
}


/* Remove old table box */
.woocommerce-cart .cart_totals table.shop_table {
    border: 0;
    border-radius: 0;
    background: transparent;
    margin: 0;
}

.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
    background: transparent;
    padding: 14px 0;
    border-bottom: 1px solid #dedede;
}

.woocommerce-cart .cart_totals table.shop_table th {
    width: 32%;
    font-weight: 600;
}


/* =========================================================
   SHIPPING
   ========================================================= */

.woocommerce-cart ul#shipping_method {
    margin: 0;
    padding: 0;
}

.woocommerce-cart ul#shipping_method li {
    margin: 0 0 10px;
    line-height: 1.45;
}

.woocommerce-cart .woocommerce-shipping-destination {
    margin-top: 14px;
}

.woocommerce-cart .woocommerce-shipping-calculator {
    margin-top: 8px;
}


/* =========================================================
   TOTAL
   ========================================================= */

.woocommerce-cart .order-total th,
.woocommerce-cart .order-total td {
    font-size: 18px;
    font-weight: 700 !important;
}


/* =========================================================
   CHECKOUT BUTTON
   ========================================================= */

.woocommerce-cart .wc-proceed-to-checkout {
    padding: 18px 0 0;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: block;
    width: 100%;
    margin: 0;
    box-sizing: border-box;

    background: #008657;
    border-radius: 7px;

    padding: 16px 20px;

    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: #006f49;
}


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

@media (min-width: 900px) and (max-width: 1200px) {

    .woocommerce-cart form.woocommerce-cart-form {
        width: 60%;
    }

    .woocommerce-cart .cart-collaterals {
        width: 37%;
    }
}


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

@media (max-width: 899px) {

    .woocommerce-cart form.woocommerce-cart-form,
    .woocommerce-cart .cart-collaterals {
        width: 100%;
        float: none;
    }

    .woocommerce-cart .cart-collaterals {
        margin-top: 60px;
    }

    .woocommerce-cart .cart_totals {
        width: 100% !important;
        float: none !important;
        padding: 20px;
    }

    .woocommerce-cart .coupon {
        flex-wrap: wrap;
    }

    .woocommerce-cart .coupon #coupon_code {
        width: 100%;
    }
}
/* =========================================================
   FIX CART SHORTCODE WIDTH
   ========================================================= */

/* Force the shortcode and WooCommerce wrappers to use
   the full width available from the page template */
.woocommerce-cart .wp-block-shortcode > .woocommerce,
.woocommerce-cart .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
}

/* Desktop cart layout */
@media (min-width: 900px) {

    .woocommerce-cart form.woocommerce-cart-form {
        width: 62% !important;
        float: left;
    }

    .woocommerce-cart .cart-collaterals {
        width: 34% !important;
        float: right;
    }
}

/* =========================================================
   CART - MOBILE OPTIMISATION
   ========================================================= */

@media (max-width: 899px) {
.woocommerce-cart .wp-block-shortcode > .woocommerce,
.woocommerce-cart .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}


    /* -----------------------------------------
       CART HEADING
       ----------------------------------------- */

    .woocommerce-cart h2.wp-block-heading {
        margin-bottom: 25px;
		margin-top: 25px;
    }


    /* -----------------------------------------
       STACK CART + TOTALS
       ----------------------------------------- */

    .woocommerce-cart form.woocommerce-cart-form,
    .woocommerce-cart .cart-collaterals {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .woocommerce-cart .cart-collaterals {
        margin-top: 80px !important;
		margin-bottom: 40px !important;
    }


    /* -----------------------------------------
       PRODUCT TABLE
       ----------------------------------------- */

    .woocommerce-cart table.shop_table {
        width: 100%;
        border-radius: 10px;
    }

    /*
     WooCommerce's responsive cart converts the table
     into mobile rows, so let it handle the structure.
    */

    .woocommerce-cart table.shop_table_responsive tr td {
        padding: 12px 15px;
    }
/* Product name green - mobile only */
.woocommerce-cart td.product-name a {
    color: #008657 !important;
}

    /* -----------------------------------------
       PRODUCT IMAGE
       ----------------------------------------- */

    .woocommerce-cart td.product-thumbnail {
        width: auto;
    }

    .woocommerce-cart td.product-thumbnail img {
        width: 80px;
        height: 80px;
        object-fit: contain;
        background: transparent;
        border-radius: 0;
        padding: 0;
    }


    /* -----------------------------------------
       QUANTITY
       ----------------------------------------- */

    .woocommerce-cart .quantity .qty {
        width: 60px;
        min-height: 40px;
    }


    /* -----------------------------------------
       COUPON / UPDATE BASKET
       ----------------------------------------- */

    .woocommerce-cart table.cart td.actions {
        padding: 15px;
    }

    .woocommerce-cart .coupon {
        display: flex;
        width: 100%;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .woocommerce-cart .coupon #coupon_code {
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
        min-height: 44px;
    }

    .woocommerce-cart .coupon .button {
        flex: 0 0 auto;
        min-height: 44px;
        white-space: nowrap;
    }

    .woocommerce-cart table.cart td.actions > .button {
        width: 100%;
        margin-top: 10px;
    }


    /* -----------------------------------------
       BASKET TOTALS
       ----------------------------------------- */

    .woocommerce-cart .cart_totals {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        padding: 20px;
        border-radius: 10px;
        box-sizing: border-box;
    }

    .woocommerce-cart .cart_totals h2 {
        font-size: 21px;
        margin-bottom: 15px;
    }

    .woocommerce-cart .cart_totals table.shop_table th {
        width: 35%;
    }

    .woocommerce-cart .cart_totals table.shop_table th,
    .woocommerce-cart .cart_totals table.shop_table td {
        padding: 12px 0;
    }
/* Keep Basket Totals one consistent grey on mobile */
.woocommerce-cart .cart_totals table.shop_table,
.woocommerce-cart .cart_totals table.shop_table tbody,
.woocommerce-cart .cart_totals table.shop_table tr,
.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
    background: transparent !important;
}

    /* -----------------------------------------
       SHIPPING
       ----------------------------------------- */

    .woocommerce-cart ul#shipping_method li {
        margin-bottom: 10px;
        line-height: 1.4;
    }


    /* -----------------------------------------
       CHECKOUT
       ----------------------------------------- */

    .woocommerce-cart .wc-proceed-to-checkout {
        padding-top: 15px;
    }

    .woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
}
/* =========================================================
   SHIPPING CALCULATOR STYLING
   ========================================================= */

/* Update shipping button */
.woocommerce-cart .shipping-calculator-form button.button {
    border-radius: 7px !important;
    padding: 11px 20px !important;
}


/* Country dropdown - highlighted option */
.woocommerce-cart .select2-container--default
.select2-results__option--highlighted[aria-selected] {
    background-color: #008657 !important;
    color: #fff !important;
}


/* Selected option in open dropdown */
.woocommerce-cart .select2-container--default
.select2-results__option[aria-selected="true"] {
    background-color: #008657 !important;
    color: #fff !important;
}


/* Keep highlighted selected option green too */
.woocommerce-cart .select2-container--default
.select2-results__option--highlighted[aria-selected="true"] {
    background-color: #008657 !important;
    color: #fff !important;
}
/* =========================================================
   WOOCOMMERCE CART NOTICE
   ========================================================= */

.woocommerce-cart .wc-block-components-notice-banner.is-info {
    background-color: #f2f7f4 !important;
    border: 1px solid #dedede !important;
    border-left: 4px solid #008657 !important;
    color: #222 !important;
    border-radius: 7px !important;
}

/* Info icon */
.woocommerce-cart .wc-block-components-notice-banner.is-info > svg {
    background-color: #008657 !important;
    fill: #fff !important;
}
/* =========================================================
   CART COLLATERALS
   Basket totals first, cross-sells second
   ALL SCREEN SIZES
   ========================================================= */

.woocommerce-cart .cart-collaterals {
    display: flex !important;
    flex-direction: column !important;
}

.woocommerce-cart .cart-collaterals .cart_totals {
    width: 100% !important;
    float: none !important;
    order: 1 !important;
}

.woocommerce-cart .cart-collaterals .cross-sells {
    width: 100% !important;
    float: none !important;
    clear: both !important;
    order: 2 !important;
    margin-top: 35px !important;
}


/* Desktop positioning */
@media (min-width: 900px) {

    .woocommerce-cart .cart-collaterals {
        width: 34% !important;
        float: right !important;
    }
}
/* =========================================================
   CART CROSS-SELL
   Compact catalogue-style card
   ========================================================= */

.woocommerce-cart .cross-sells > h2 {
    font-size: 16px !important;
    font-weight: 500 !important;
    margin: 0 0 14px !important;
}


/* Remove WooCommerce product-grid spacing */
.woocommerce-cart .cross-sells ul.products {
    margin: 0 !important;
    padding: 0 !important;
}


/* Compact product card */
.woocommerce-cart .cross-sells ul.products li.product {
    width: 210px !important;
    max-width: 210px !important;
    margin: 0 !important;

    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: none !important;

    position: relative !important;
    padding: 0 0 55px !important;
    box-sizing: border-box !important;
}


/* Image area */
.woocommerce-cart .cross-sells ul.products li.product img {
    width: 100% !important;
    height: 210px !important;

    object-fit: contain !important;
    object-position: center !important;

    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* Product title */
.woocommerce-cart .cross-sells ul.products li.product
.woocommerce-loop-product__title {
    color: #008457 !important;

    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;

    border-top: 1px solid #e5e5e5 !important;

    margin: 0 !important;
    padding: 10px 10px 0 !important;
}


/* Price */
.woocommerce-cart .cross-sells ul.products li.product .price {
    position: absolute !important;
    left: 10px !important;
    bottom: 20px !important;

    margin: 0 !important;

    font-size: 13px !important;
    line-height: 1 !important;
}


/* Add to basket */
.woocommerce-cart .cross-sells ul.products li.product .button {
    position: absolute !important;
    right: 10px !important;
    bottom: 12px !important;

    margin: 0 !important;
    padding: 7px 9px !important;

    width: auto !important;
    min-width: 0 !important;

    background: #008457 !important;
    color: #fff !important;

    border-radius: 5px !important;

    font-size: 12px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
}

.woocommerce-cart .cross-sells ul.products li.product .button:hover {
    background: #006f49 !important;
}


/* =========================================================
   MOBILE CROSS-SELL
   ========================================================= */

@media (max-width: 899px) {

    /* Totals stays above recommendations */
    .woocommerce-cart .cart-collaterals .cart_totals {
        order: 1 !important;
    }

    .woocommerce-cart .cart-collaterals .cross-sells {
        order: 2 !important;
        margin-top: 30px !important;
    }

    /* Don't let card get huge */
    .woocommerce-cart .cross-sells ul.products li.product {
        width: 210px !important;
        max-width: 100% !important;
    }

    .woocommerce-cart .cross-sells ul.products li.product img {
        height: 210px !important;
    }
}
