.product-name-co {
    color: #000;
}

.showcoupon {
    text-decoration: none;
    color: #055ac0;
}

.woocommerce form.checkout_coupon {
    border-style: dashed;
    border-color: #055ac0;
    border-width: 2px;
}


.woocommerce form.checkout_coupon .form-row-last {
    width: 20%;
}

.woocommerce form.checkout_coupon .form-row-first {
    width: 80% !important;

}

#coupon_code {
    padding: 10px 10px;
    border-radius: 5px;
}

.woocommerce form.checkout_coupon .form-row-last button {
    background-color: #125aa5;
    border-color: rgba(0, 0, 0, .05);
    color: #fff;
    font-weight: bold;
    padding: 11px;
}

.thongtin a {
    text-decoration: none;
    color: #000;
}

.woocommerce-table__product-name.product-name a {
    text-decoration: none;
    color: #000;
}

.woocommerce-table__product-total.product-total,
.woocommerce-table__product-table.product-total {
    text-align: unset;
}


/* --- Layout chính: 2 cột --- */
.checkout-two-column-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: start;
    margin: 0 auto;
    padding: 30px 20px;
}

/* --- CỘT TRÁI --- */
.checkout-left-column {
    /* Ẩn heading "Đơn hàng của bạn" ở phần cũ nếu có */
}

.woocommerce-page form .form-row-first {
    width: 50% !important;
}

.woocommerce-billing-fields .form-row label {
    font-weight: bold !important;
}

.woocommerce-additional-fields {
    margin-top: 20px !important;
}

.woocommerce-billing-fields h3 {
    font-size: 1.1em;
    font-weight: bolder;
    overflow: hidden;
    padding-top: 10px;
    margin: 0 0 5px !important;
    text-transform: uppercase;
}

input[type=email]:focus,
input[type=number]:focus,
input[type=password]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=text]:focus,
select:focus,
textarea:focus {
    background-color: #fff;
    box-shadow: 0 0 5px #ccc;
    color: #333;
    opacity: 1 !important;
    outline: 0;
}

.woocommerce form .form-row textarea {
    height: 10rem !important;
}

/* --- CỘT PHẢI --- */
.checkout-right-column {
    position: sticky;
    top: 20px;
    border: 2px solid #1a5276;
    border-radius: 4px;
    padding: 24px;
    background: #fff;
}

.checkout-right-column #order_review_heading {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #111;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: none;
    padding-bottom: 0;
}

/* ==========================================================
   BẢNG ĐƠN HÀNG (order review table)
   ========================================================== */
/* Review Order - Đơn hàng của bạn */
.order-review-box {
    border: 2px solid #0a4d9e;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
}

.order-review-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #222;
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 12px 10px;
    /* border-bottom: 1px solid #eee; */
    vertical-align: middle;
}

.checkout-item {
    padding-bottom: 15px;
    padding-top: 15px;
    color: #666 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.checkout-item strong {
    white-space: nowrap;
}

.woocommerce-checkout #payment div.payment_box::before {
    border: 1em solid #eee !important;
    border-right-color: transparent !important;
    border-left-color: transparent !important;
    border-top-color: transparent !important;
}

.woocommerce-checkout #payment div.payment_box {
    background-color: #eee !important;

}

.woocommerce-checkout #payment ul.payment_methods,
.woocommerce-checkout #payment div.form-row {
    background-color: #FFF !important;
}




.woocommerce-checkout-review-order-table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    background: #f9f9f9;
}

.product-name {
    text-align: left;
    font-size: 15px;
}

.product-total {
    text-align: right;
    font-weight: 600;
    color: #d45a2e;
}

.product-quantity {
    font-weight: normal;
    color: #666;
}

/* Nút ĐẶT HÀNG */
.place-order-button-wrapper button {
    width: 100%;
    background: #d45a2e !important;
    color: #fff !important;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    margin: 15px 0 20px 0;
    cursor: pointer;
}

.place-order-button-wrapper button:hover {
    background: #c04a1f !important;
}

/* Thông báo và chính sách */
.checkout-notice p,
.privacy-notice p {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin: 15px 0;
}

.privacy-notice a {
    color: #0a4d9e;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .order-review-box {
        padding: 18px;
    }


}

/* ==========================================================
   NÚT ĐẶT HÀNG
   ========================================================== */
#place_order,
.woocommerce-checkout .checkout-right-column #place_order {
    display: block;
    width: 100%;
    background-color: #c0392b;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 16px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 20px;
}

#place_order:hover {
    background-color: #a93226;
}

/* ==========================================================
   FORM THÔNG TIN THANH TOÁN (cột trái)
   ========================================================== */

/* Tiêu đề section */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #111;
    margin-bottom: 20px;
    margin-top: 30px;
    padding-bottom: 0;
    border-bottom: none;
}

.woocommerce-billing-fields h3:first-child {
    margin-top: 0;
}

/* Wrapper các field */
.woocommerce-billing-fields .form-row,
.woocommerce-shipping-fields .form-row,
.woocommerce-additional-fields .form-row {
    margin-bottom: 16px;
}

/* Label */
.woocommerce-billing-fields .form-row label,
.woocommerce-shipping-fields .form-row label,
.woocommerce-additional-fields .form-row label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    display: block;
}

/* Input, select, textarea */
.woocommerce-billing-fields .form-row input.input-text,
.woocommerce-billing-fields .form-row select,
.woocommerce-billing-fields .form-row textarea,
.woocommerce-shipping-fields .form-row input.input-text,
.woocommerce-shipping-fields .form-row select,
.woocommerce-shipping-fields .form-row textarea,
.woocommerce-additional-fields .form-row input.input-text,
.woocommerce-additional-fields .form-row select,
.woocommerce-additional-fields .form-row textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: #333;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.woocommerce-billing-fields .form-row input.input-text:focus,
.woocommerce-billing-fields .form-row select:focus,
.woocommerce-shipping-fields .form-row input.input-text:focus,
.woocommerce-shipping-fields .form-row select:focus {
    border-color: #c0392b;
    outline: none;
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.12);
}

/* Select dropdown arrow */
.woocommerce-billing-fields .form-row .select2-container .select2-selection--single,
.woocommerce-shipping-fields .form-row .select2-container .select2-selection--single {
    height: 42px;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 10px 14px;
    font-size: 14px;
}

.woocommerce-billing-fields .form-row .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 20px;
    padding: 0;
    color: #333;
}

.woocommerce-billing-fields .form-row .select2-container .select2-selection--single .select2-selection__arrow {
    height: 40px;
    right: 10px;
}

.woocommerce-billing-fields .form-row-first,
.woocommerce-shipping-fields .form-row-first {
    margin-right: 3%;
}

/* Full width */
.woocommerce-billing-fields .form-row-wide,
.woocommerce-shipping-fields .form-row-wide {
    width: 100%;
    display: block;
}

/* ==========================================================
   THÔNG BÁO THANH TOÁN (woocommerce-info / no payment)
   ========================================================== */
.checkout-right-column .woocommerce-info,
.checkout-right-column .payment_box,
.checkout-right-column #payment .payment_methods {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 12px 0 0;
}

/* Ẩn border mặc định của #payment */
.checkout-right-column #payment {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.checkout-right-column #payment .place-order {
    padding: 0;
}

/* Privacy policy text */
.checkout-right-column .woocommerce-privacy-policy-text {
    font-size: 12px;
    color: #777;
    margin-top: 14px;
    line-height: 1.6;
}

.checkout-right-column .woocommerce-privacy-policy-text a {
    color: #c0392b;
    text-decoration: underline;
}

/* ==========================================================
   RESPONSIVE: tablet & mobile
   ========================================================== */
@media (max-width: 900px) {
    .checkout-two-column-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .checkout-right-column {
        position: static;
    }
}

@media (max-width: 600px) {

    .woocommerce-billing-fields .form-row-first,
    .woocommerce-billing-fields .form-row-last,
    .woocommerce-shipping-fields .form-row-first,
    .woocommerce-shipping-fields .form-row-last {
        width: 100%;
        display: block;
        margin-right: 0;
    }

    .checkout-two-column-layout {
        padding: 16px 12px;
    }
}



@media (max-width: 400px) {
    .checkout-right-column {
        padding: 15px;
    }

    .checkout-two-column-layout {
        padding: 0;
    }

    .woocommerce-thankyou-order-received {
        font-size: 20px;
    }

    .woocommerce-order-details__title {
        font-size: 20px;
    }
}