/* Remove all borders and reset styles */
* {
    border: none !important;
    box-shadow: none !important;
}

/* Main article styling */
.post-989.page.type-page.status-publish.ast-article-single {
    background-color: #D1C3C3 !important;
    border-radius: 20px !important;
    padding: 30px !important;
    margin: 80px auto 20px auto !important;
    max-width: 1200px !important;
}

/* Hide page title */
.entry-header .entry-title {
    font-family: Vintage !important;
    font-size: 36px !important;
    text-align: center !important;
}

/* Cart table styling */
.shop_table.cart {
    width: 100% !important;
    border-collapse: collapse !important;
    background: transparent !important;
}
.shop_table.cart thead, .shop_table.cart th, .shop_table.cart td{
    background: transparent !important;
}

.shop_table.cart th,
.shop_table.cart td {
    padding: 15px 10px !important;
    vertical-align: middle !important;
    background: transparent !important;
}

/* Product label alignment */
.shop_table.cart .product-name {
    text-align: left !important;
}

/* Align product header to far left */
.shop_table.cart thead th.product-name {
    text-align: left !important;
    padding-left: 0 !important;
}

/* Remove product thumbnail padding */
.shop_table.cart .product-thumbnail {
    padding-left: 0 !important;
}

/* Style quantity controls and inputs */
.quantity.buttons_added,
.quantity.buttons_added input,
.quantity.buttons_added .minus,
.quantity.buttons_added .plus,
input[type="text"],
input[type="number"],
select {
    background-color: #F2F2F2 !important;
    border-radius: 8px !important;
    color: #333 !important;
}

.quantity.buttons_added {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 6px 10px !important;
    width: 100px !important;
    min-width: 100px !important;
}

.quantity.buttons_added .minus,
.quantity.buttons_added .plus {
    background: transparent !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    font-size: 16px !important;
    color: #333 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
}

.quantity.buttons_added input {
    width: 30px !important;
    text-align: center !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 2px !important;
    font-size: 14px !important;
    border: none !important;
    outline: none !important;
}

/* Coupon section styling */
.coupon {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
}

.coupon input[type="text"] {
    background-color: #F2F2F2 !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    min-width: 200px !important;
}

/* Use coupon button - text only style */
.coupon button[name="apply_coupon"] {
    background: transparent !important;
    color: #12263A !important;
    text-decoration: underline !important;
    padding: 10px 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.coupon button[name="apply_coupon"]:hover {
    text-decoration: none !important;
    opacity: 0.8 !important;
}

/* Update cart button */
button[name="update_cart"] {
    background-color: #F2F2F2 !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    color: #333 !important;
    cursor: pointer !important;
}

/* Hide cart summary header */
.cart_totals h2 {
    display: none !important;
}

/* Cart totals section */
.cart_totals {
    width: 100% !important;
    margin-top: 30px !important;
    padding: 0 !important;
}

.cart_totals .shop_table {
    width: 100% !important;
    background: transparent !important;
}

.cart_totals .shop_table th {
    text-align: left !important;
    padding-left: 0 !important;
    font-weight: 600 !important;
    color: #333 !important;
}

.cart_totals .shop_table td {
    text-align: right !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-weight: 600 !important;
    color: #333 !important;
}

/* Checkout button container */
.wc-proceed-to-checkout {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    margin-top: 20px !important;
    gap: 15px !important;
}

/* Checkout button styling */
.checkout-button.button.alt.wc-forward {
    background-color: #F2F2F2 !important;
    color: #333 !important;
    border-radius: 15px !important;
    padding: 15px 30px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    cursor: pointer !important;
    order: 1 !important;
    width: 100%;
    max-width: 400px;
}

.checkout-button.button.alt.wc-forward:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
}

/* Express checkout styling */
#wc-stripe-express-checkout-element {
    max-width: 400px !important;
    width: 100% !important;
    order: 2 !important;
    margin-top: 0 !important;
    clear: none !important;
}

/* Style individual Stripe elements */
#wc-stripe-express-checkout-element .StripeElement {
    margin-bottom: 10px !important;
}

#wc-stripe-express-checkout-element .StripeElement:last-child {
    margin-bottom: 0 !important;
}

/* Shipping calculator styling */
.woocommerce-shipping-calculator input,
.woocommerce-shipping-calculator select,
.woocommerce-shipping-calculator button {
    background-color: #F2F2F2 !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    color: #333 !important;
}

/* Remove table borders */
.shop_table,
.shop_table th,
.shop_table td,
.shop_table tr {
    border: none !important;
}

/* Product remove button styling */
.product-remove a.remove {
    background-color: #F2F2F2 !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #666 !important;
}

.product-remove a.remove:hover {
    background-color: #ff4444 !important;
    color: white !important;
}

/* DESKTOP AND MOBILE VIEW CONTROL */
.desktop-cart-table {
    display: table !important;
}

.mobile-cart-container {
    display: none !important;
}

/* MOBILE RESPONSIVE STYLES - Clean Flexbox Layout */
@media (max-width: 768px) {
    .post-989.page.type-page.status-publish.ast-article-single {
        padding: 20px !important;
        margin: 10px !important;
        border-radius: 15px !important;
    }
    
    /* Hide desktop table, show mobile flexbox */
    .desktop-cart-table {
        display: none !important;
    }
    
    .mobile-cart-container {
        display: block !important;
    }
    
    /* Mobile cart item - 50/50 flex layout */
    .mobile-cart-item {
        display: flex !important;
        gap: 15px !important;
        margin-bottom: 20px !important;
        padding-bottom: 20px !important;
        border-bottom: 1px solid rgba(0,0,0,0.1) !important;
        background: transparent !important;
    }
    
    /* Left side: Image (50%) */
    .mobile-cart-image {
        flex: 0 0 40% !important;
        max-width: 50% !important;
    }
    
    .mobile-cart-image img {
        width: 100% !important;
        height: auto !important;
        border-radius: 10px !important;
        max-width: 150px !important;
        max-height: 150px !important;
        object-fit: cover !important;
    }
    
    /* Right side: Product details (50%) */
    .mobile-cart-details {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        position: relative !important;
    }
    
    /* Remove button - top right of details area */
    .mobile-remove-button {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        z-index: 10 !important;
    }
    
    .mobile-remove-button .remove {
        background-color: #F2F2F2 !important;
        border-radius: 50% !important;
        width: 30px !important;
        height: 30px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #666 !important;
        text-decoration: none !important;
    }
    
    .mobile-remove-button .remove:hover {
        background-color: #ff4444 !important;
        color: white !important;
    }
    
    /* Product name */
    .mobile-product-name {
        font-weight: 600 !important;
        font-size: 16px !important;
        line-height: 1.3 !important;
        margin-bottom: 5px !important;
        padding-right: 35px !important; /* Space for remove button */
        word-break: break-word;
    }
    
    .mobile-product-name a {
        color: inherit !important;
        text-decoration: none !important;
    }
    
    /* Product price */
    .mobile-product-price {
        font-weight: 600 !important;
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }
    
    /* Quantity controls */
    .mobile-product-quantity {
        margin-bottom: 8px !important;
    }
    
    .mobile-product-quantity .quantity.buttons_added {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: #F2F2F2 !important;
        border-radius: 8px !important;
        padding: 6px 10px !important;
        width: 100px !important;
        min-width: 100px !important;
    }
    
    .mobile-product-quantity .quantity.buttons_added .minus,
    .mobile-product-quantity .quantity.buttons_added .plus {
        background: transparent !important;
        width: 24px !important;
        height: 24px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: bold !important;
        font-size: 16px !important;
        color: #333 !important;
        cursor: pointer !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .mobile-product-quantity .quantity.buttons_added input {
        width: 30px !important;
        text-align: center !important;
        background: transparent !important;
        margin: 0 !important;
        padding: 2px !important;
        font-size: 14px !important;
        border: none !important;
        outline: none !important;
    }
    
    /* Product subtotal */
    .mobile-product-subtotal {
        font-weight: 600 !important;
        font-size: 16px !important;
        margin-bottom: 0 !important;
    }
    
    /* Mobile actions */
    .mobile-cart-actions {
        background: transparent !important;
        padding: 20px 0 !important;
    }
    
    .mobile-cart-actions .coupon {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-bottom: 15px !important;
    }
    
    .mobile-cart-actions .coupon input {
        width: 100% !important;
        min-width: auto !important;
    }
    
    /* Cart totals adjustments */
    .cart_totals .shop_table th,
    .cart_totals .shop_table td {
        font-size: 14px !important;
    }
    
    .cart_totals .order-total th,
    .cart_totals .order-total td {
        font-size: 16px !important;
    }
    
    /* Mobile checkout button */
    .wc-proceed-to-checkout {
        align-items: stretch !important;
    }
    
    .checkout-button.button.alt.wc-forward {
        text-align: center !important;
        width: 100% !important;
        max-width: none !important;
    }
    
    #wc-stripe-express-checkout-element {
        max-width: none !important;
    }
}

/* Special styling for total row */
.cart_totals .order-total th {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #12263A !important;
}

.cart_totals .order-total td {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #12263A !important;
}