/* Giacu class - regular price with strikethrough on the right */
#home_product_row .sanpham span.giacu,
#home_product_row #sanpham span.giacu,
.sanpham span.giacu {
    text-decoration: line-through !important;
    color: #999 !important;
    font-weight: normal !important;
    font-size: 95% !important;
    opacity: 0.7;
    margin-left: 8px;
}

/* Gia container - flex layout to position giakm left, giacu right */
#home_product_row .sanpham span.gia,
#home_product_row #sanpham span.gia,
.sanpham span.gia {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
}

/* Ensure giakm stays green and bold */
#home_product_row .sanpham span.giakm,
#home_product_row #sanpham span.giakm,
.sanpham span.giakm {
    color: green !important;
    font-weight: bold !important;
    font-size: 120% !important;
}

/* Fix cart price order: Sale price (left) - Regular price (right */
/* Fix cart price order: Sale price (left) - Regular price (right */
.woocommerce-cart .product-price {
    display: flex;
    flex-direction: row;
    /* Standard direction */
    justify-content: flex-start;
    /* Align left */
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

/* Ensure proper spacing and alignment for cart items */
.woocommerce-cart .product-price del {
    opacity: 0.7;
    font-size: 0.9em;
    order: 2;
    /* Force Regular price to the right */
}

.woocommerce-cart .product-price ins {
    text-decoration: none;
    font-weight: bold;
    color: #429338;
    order: 1;
    /* Force Sale price to the left (or -1) */
}

.woocommerce-cart .product-price ins {
    text-decoration: none;
    font-weight: bold;
    color: #429338;
    /* Match theme green */
}

/* Hide shipping row in cart if free shipping is active (requires body class from functions.php) */
body.woocommerce-cart.shipping-is-free .cart_totals tr.shipping {
    display: none !important;
}


/* Hide 'OR' separator line and PayPal containers completely in CART ONLY (not checkout) */
.woocommerce-cart .wc-block-components-express-payment-continue-rule,
.woocommerce-cart .wc-block-components-express-payment-continue-rule p,
.woocommerce-cart #wc-paypal-payments-cart-container,
.woocommerce-cart .ppc-button-wrapper,
.woocommerce-cart .paypal-buttons,
.woocommerce-cart .wcpp-smart-buttons {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Adjust Checkout Button Spacing */
.cart_totals .wc-proceed-to-checkout {
    margin-top: 10px !important;
    padding-top: 0 !important;
}

/* Coupon Info Block Styling */
.flora-custom-coupons {
    margin-bottom: 20px;
}

.thong_tin_item {
    background: #FFEB3B;
    border: 2px dashed #000;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.thong_tin_item img {
    max-height: 40px;
    width: auto;
    margin: 0;
}

.thong_tin_item strong {
    color: red;
    font-weight: bold;
}

/* Adjust Estimated Total and Price Font Size */
.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value,
.cart_totals h2,
.cart_totals tr.order-total th,
.cart_totals tr.order-total td span {
    font-size: 18px !important;
}

/* Ensure 'Estimated Total' specifically is targeted if class names differ in blocks */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 22px !important;
}

/* Style Discount Row to be visible above Total */
.cart-discount,
.wc-block-components-totals-discount {
    color: red !important;
    font-weight: bold;
    font-size: 16px;
}

.cart-discount .amount,
.wc-block-components-totals-discount .wc-block-components-totals-item__value {
    color: red !important;
}

.wc-block-components-product-name {
    font-weight: 700;
}

.wc-block-cart-item__remove-link {
    color: #ff0000;
}

.wc-block-cart .wc-block-cart__totals-title {
    font-size: 16px;
    font-weight: 700;
    color: #509d46;
}