/* WooCommerce Cart & Checkout Styling */

.woocommerce-cart-form {
    margin-bottom: 2rem;
}

.shop_table {
    width: 100%;
    margin-bottom: 1.5rem;
}

.shop_table thead {
    background: #f9f9f9;
}

.shop_table th,
.shop_table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.product-remove a {
    color: #dc3545;
    text-decoration: none;
    font-size: 1.5rem;
}

.product-remove a:hover {
    color: #c82333;
}

.cart-collaterals {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.cart_totals {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 4px;
}

.cart_totals h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.total-row label {
    font-weight: 600;
}

.total-total {
    border-top: 2px solid #333;
    border-bottom: 0;
    padding-top: 1rem;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.total-total label {
    font-weight: bold;
}

/* Checkout Styling */
.col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .col2-set {
        grid-template-columns: 1fr;
    }
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    margin-bottom: 1.5rem;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
}

.woocommerce-checkout-review-order-table thead {
    background: #f0f0f0;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.product-quantity {
    display: inline-block;
    margin-left: 0.5rem;
    font-weight: normal;
}

/* Thank You Page */
.woocommerce-notice {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.woocommerce-notice--success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.woocommerce-notice--error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.woocommerce-order-overview {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.order_details {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 4px;
}

.woocommerce-order-overview li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.order_details li strong {
    display: inline;
}

/* Cart Empty State */
.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.cart-empty-message {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.cart-empty .button {
    display: inline-block;
}

/* Checkout Payment */
.checkout-payment {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 4px;
    text-align: center;
}

.checkout-payment button {
    background: #333;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

.checkout-payment button:hover {
    background: #555;
}

/* Responsive Tables */
@media (max-width: 768px) {
    .shop_table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e0e0e0;
        padding: 0;
    }

    .shop_table th {
        display: none;
    }

    .shop_table td {
        display: block;
        text-align: right;
        padding-left: 50%;
        position: relative;
        border: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .shop_table td:before {
        content: attr(data-title);
        position: absolute;
        left: 1rem;
        font-weight: bold;
    }

    .shop_table .product-remove {
        text-align: left;
        padding-bottom: 0;
    }

    .shop_table .product-remove:before {
        display: none;
    }
}
