/* Styles for Cart Template */
/* Styles for Cart Template */
/* Styles for Cart Template */

/* Product Details Section */

/* Hide "Shipping to [address]" text on cart page */
.woocommerce-shipping-destination {
    display: none !important;
}

/* Desktop/Tablet table headers - ALL DEVICES */
.woocommerce-cart-form table.cart thead th {
    font-family: 'Tenez', sans-serif;
    font-weight: 600;
    font-size: 16px !important;
    color: #0C2340 !important;
}

/* Style, Size, Color headers - visible on desktop/tablet */
.woocommerce-cart-form .variation dt {
    font-family: 'Tenez', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #0C2340;
    display: inline !important; /* Make sure they show on desktop */
}

/* Product name - ALL DEVICES */
.woocommerce-cart-form .product-name a {
    font-family: 'Tenez', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #0C2340 !important;
}

/* Price, Quantity, Subtotal values - ALL DEVICES */
.woocommerce-cart-form .product-price .woocommerce-Price-amount,
.woocommerce-cart-form .product-quantity input,
.woocommerce-cart-form .product-subtotal .woocommerce-Price-amount {
    font-family: 'Tenez', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #0C2340 !important;
}

/* Style | Size | Color values - ALL DEVICES */
.woocommerce-cart-form .variation dd p {
    font-family: 'Tenez', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #0C2340;
}

/* Mobile - hide Style, Size, Color headers + mobile-specific labels */
@media (max-width: 768px) {
    .woocommerce-cart-form .variation dt {
        display: none !important; /* Hide Style:, Size:, Color: on mobile */
    }
    
    /* Style the mobile Price:, Quantity:, Subtotal: labels */
    .woocommerce-cart-form .product-price:before,
    .woocommerce-cart-form .product-quantity:before,
    .woocommerce-cart-form .product-subtotal:before {
        font-family: 'Tenez', sans-serif;
        font-weight: 600;
        font-size: 16px;
        color: #0C2340 !important;
    }
}

/* Cart Totals section */

/* Ultimate override - target by text content area */
.cart-collaterals,
.cart_totals,
.e-cart-totals {
    font-family: 'Tenez', sans-serif !important;
    font-size: 18px !important;
    color: #0C2340 !important;
}

.cart-collaterals *,
.cart_totals * {
    font-family: inherit !important;
    font-size: 18px !important;
    color: #0C2340 !important;
}

/* Force everything in the totals section */
.cart-collaterals th,
.cart-collaterals td,
.cart_totals th,
.cart_totals td,
.e-cart-totals th,
.e-cart-totals td {
    font-family: 'Tenez', sans-serif !important;
}

/* Update Cart and Proceed to Checkout buttons */
.woocommerce-cart-form .button[name="update_cart"],
.checkout-button,
.wc-proceed-to-checkout .checkout-button,
a.checkout-button,
.button.alt.wc-forward {
    font-family: 'Tenez', sans-serif !important;
    background-color: #0C2340 !important;
    color: white !important;
    border-radius: 17px !important;
    border: none !important;
    padding: 12px 24px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

.woocommerce-cart-form .button[name="update_cart"] {
    font-size: 22px !important;
}

/* Bottom margin for checkout button only */
.checkout-button,
.wc-proceed-to-checkout .checkout-button,
a.checkout-button,
.button.alt.wc-forward {
    margin-bottom: 1rem !important;
}

/* Mobile cart - complete restructure */
@media (max-width: 768px) {
    /* Hide the table headers */
    .woocommerce-cart-form table.cart thead {
        display: none !important;
    }
    
    /* Make each cart item a block instead of table row */
    .woocommerce-cart-form .cart_item {
        display: block !important;
        border: 1px solid #ddd;
        margin-bottom: 20px;
        padding: 15px;
        border-radius: 5px;
    }
    
    /* Make all cells block elements */
    .woocommerce-cart-form .cart_item td,
    .woocommerce-cart-form .cart_item th {
        display: block !important;
        width: 100% !important;
        padding: 5px 0 !important;
        border: none !important;
    }
    
    /* Row 1: Remove button and product name on same line */
    .woocommerce-cart-form .product-remove {
        float: right;
        width: auto !important;
        margin-bottom: 5px;
    }
    
    .woocommerce-cart-form .product-name {
        margin-right: 40px; /* Space for remove button */
    }
    
    .woocommerce-cart-form .product-name a {
        font-weight: bold;
        font-size: 16px;
        text-decoration: none;
    }
    
    /* Row 2: Product image */
    .woocommerce-cart-form .product-thumbnail {
        text-align: center;
        margin: 10px 0;
    }
    
    .woocommerce-cart-form .product-thumbnail img {
        width: 100px !important;
        height: auto !important;
        max-width: 100px;
    }
    
    /* Row 3: Style | Size | Color inline */
    .woocommerce-cart-form .variation {
        margin: 10px 0 !important;
        font-size: 14px;
        color: #666;
    }
    
    .woocommerce-cart-form .variation dl {
        margin: 0 !important;
    }
    
    /* Hide the labels */
    .woocommerce-cart-form .variation dt {
        display: none !important;
    }
    
    /* Show values inline */
    .woocommerce-cart-form .variation dd {
        display: inline !important;
        margin: 0 !important;
    }
    
    .woocommerce-cart-form .variation dd p {
        display: inline !important;
        margin: 0 !important;
    }
    
    /* Add separators between values */
    .woocommerce-cart-form .variation dd:not(:last-child):after {
        content: " | ";
        color: #999;
    }
    
    /* Rows 4-6: Price, Quantity, Subtotal with labels */
    .woocommerce-cart-form .product-price:before {
        content: "Price: ";
        font-weight: bold;
    }
    
    .woocommerce-cart-form .product-quantity:before {
        content: "Quantity: ";
        font-weight: bold;
    }
    
    .woocommerce-cart-form .product-subtotal:before {
        content: "Subtotal: ";
        font-weight: bold;
    }
    
    .woocommerce-cart-form .product-price,
    .woocommerce-cart-form .product-quantity,
    .woocommerce-cart-form .product-subtotal {
        margin: 8px 0;
        font-size: 14px;
    }
    
    /* Style the quantity input */
    .woocommerce-cart-form .quantity input {
        width: 60px;
        margin-left: 10px;
    }
    
    /* Clear floats */
    .woocommerce-cart-form .cart_item::after {
        content: "";
        display: table;
        clear: both;
    }
}

/* Remove the colon before product image */
@media (max-width: 768px) {
    /* Remove any pseudo-elements that might be adding the colon */
    .woocommerce-cart-form .product-thumbnail::before,
    .woocommerce-cart-form .product-thumbnail::after {
        display: none !important;
        content: none !important;
    }
    
    /* Also check for any data-title attributes creating content */
    .woocommerce-cart-form .product-thumbnail[data-title]::before {
        display: none !important;
    }
    
    /* Remove any generated content from responsive table styles */
    .woocommerce-cart-form .shop_table_responsive .product-thumbnail::before {
        display: none !important;
    }
}

/* Cart sidebar button styling */
/* Cart page button styling */
button.woocommerce-Button.button[name="save_account_details"],
.elementor-button--checkout,
.elementor-button--view-cart,
.woocommerce-message a.button.wc-forward,
a.button.wc-forward {
    font-family: 'Tenez', sans-serif !important;
    background-color: #0C2340 !important;
    color: white !important;
    border-radius: 17px !important;
    border: none !important;
    padding: 12px 24px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-block !important;
}