@charset "UTF-8";
/* =============================================================================
   Trang thanh toán tập trung (1 cột) — chép từ azpos.vn checkout-landing.css ngày 03/11/2026, màu xanh theo --chinh của site
   File: assets/css/thanh-toan.css
   Scope: body.tt-body

   Layout flow (top → bottom):
     1) tt-section--summary    : Đơn hàng của bạn + tạm tính + tổng
     2) tt-section--details    : Thông tin thanh toán (form)
     3) tt-section--payment    : Phương thức thanh toán + nút Đặt hàng

   DOM được JS (assets/js/checkout-landing.js) reorganize sau khi load:
     - Move #order_review_heading + .shop_table → .tt-section--summary
     - Move #customer_details → .tt-section--details
     - Move #payment → .tt-section--payment
     - Hide .large-5 (right column wrapper không dùng nữa)
   ============================================================================= */

:root {
    --tt-blue: var(--chinh-dam, #124fb5);
    --tt-blue-dark: var(--chinh-toi, #0c3d8e);
    --tt-blue-soft: var(--chinh-nhat, #F2F6FC);
    --nut: #006fff; /* cùng giá trị với style.css, trang này không nạp tệp đó */
    --nut-dam: #005fdb;
    --tt-orange: #ff711b;
    --tt-orange-dark: #c2530c;
    --tt-orange-soft: #FFF4EC;
    --tt-text: #1f2937;
    --tt-muted: #6b7280;
    --tt-line: #e5e7eb;
    --tt-bg: #f8fafc;
    --tt-success: #15803d;
    --tt-danger: #b91c1c;
    --tt-radius: 12px;
    --tt-radius-lg: 16px;
    --tt-shadow: 0 2px 12px rgba(0, 60, 90, 0.06);
    --tt-max: 720px; /* hẹp lại vì 1 cột — focused */
}

body.tt-body {
    margin: 0; padding: 0;
    background: var(--tt-bg);
    color: var(--tt-text);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.tt-body * { box-sizing: border-box; }
body.tt-body a { color: var(--tt-blue); text-decoration: none; transition: color .15s ease; }
body.tt-body a:hover { color: var(--tt-blue-dark); }
.tt-wrap { min-height: 100vh; display: flex; flex-direction: column; }

/* ============================================================
   TOP BAR
   ============================================================ */
.tt-topbar {
    background: linear-gradient(135deg, var(--tt-blue) 0%, var(--tt-blue-dark) 100%);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}
.tt-topbar__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.tt-topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}
.tt-topbar__item .fa { font-size: 12px; color: var(--tt-orange); }
.tt-topbar__item--phone a { color: #fff; font-weight: 700; }
.tt-topbar__item--phone a:hover { color: var(--tt-orange); }

/* ============================================================
   HEADER — logo + 3 step + hotline
   ============================================================ */
.tt-header {
    background: #fff;
    border-bottom: 1px solid var(--tt-line);
    padding: 16px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 50;
}
.tt-header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
}
.tt-header__logo img { display: block; max-height: 44px; height: auto; width: auto; }

.tt-steps {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; justify-content: center;
}
.tt-steps__item {
    display: flex; align-items: center; gap: 8px;
    color: var(--tt-muted);
    font-weight: 500; font-size: 13.5px;
    white-space: nowrap;
}
.tt-steps__num {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--tt-muted);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px;
    flex-shrink: 0;
}
.tt-steps__item.is-done .tt-steps__num { background: rgba(21, 128, 61, 0.10); color: var(--tt-success); }
.tt-steps__item.is-done { color: var(--tt-success); }
.tt-steps__item.is-active .tt-steps__num {
    background: var(--tt-orange);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 113, 27, 0.15);
}
.tt-steps__item.is-active { color: var(--tt-orange-dark); font-weight: 700; }
.tt-steps__sep {
    width: 36px; height: 2px;
    background: linear-gradient(90deg, #cbd5e1, #e2e8f0);
    margin: 0 12px;
    border-radius: 1px;
}

.tt-header__hotline {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tt-orange) 0%, var(--tt-orange-dark) 100%);
    color: #fff !important;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 4px 12px rgba(255, 113, 27, 0.25);
}
.tt-header__hotline:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 113, 27, 0.35);
    color: #fff !important;
}
.tt-header__hotline-icon {
    width: 30px; height: 30px;
    background: rgba(255, 255, 255, 0.20);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
}
.tt-header__hotline-icon .fa { font-size: 14px; color: #fff; }
.tt-header__hotline-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.tt-header__hotline-label {
    font-size: 11px; font-weight: 500; opacity: 0.9;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.tt-header__hotline-num { font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ============================================================
   MAIN — center column max 720px (focused)
   ============================================================ */
.tt-main {
    padding: 28px 0 40px;
    flex: 1;
}
.tt-main__container {
    max-width: var(--tt-max);
    margin: 0 auto;
    padding: 0 16px;
}
.tt-main__heading { text-align: center; margin-bottom: 24px; }
.tt-main__title {
    font-size: 26px; font-weight: 700;
    color: var(--tt-text);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.tt-main__sub {
    font-size: 14.5px;
    color: var(--tt-muted);
    margin: 0 auto;
    line-height: 1.55;
}
.tt-main__sub strong { color: var(--tt-orange-dark); font-weight: 700; }

/* ============================================================
   WOOCOMMERCE WRAPPERS — reset
   ============================================================ */
.tt-main__form { width: 100%; }
.tt-main__form .woocommerce { margin: 0; }
.tt-main__form .woocommerce-notices-wrapper { margin: 0 0 16px; }
.tt-main__form .message-wrapper {
    border-radius: var(--tt-radius);
    padding: 0 !important;
    border: 1px solid;
    background: #fff;
    box-shadow: var(--tt-shadow);
    margin-bottom: 12px;
    overflow: hidden;
}
.tt-main__form .message-wrapper .message-container {
    padding: 12px 16px !important;
    margin: 0 !important;
    max-width: 100% !important;
    text-align: left !important;
    font-size: 13.5px;
    line-height: 1.55;
}
.tt-main__form .message-wrapper.success-color {
    border-color: rgba(21, 128, 61, 0.25);
    border-left: 4px solid var(--tt-success);
}
.tt-main__form .message-wrapper.success-color .message-container {
    color: var(--tt-success);
    background: #f0fdf4;
}
.tt-main__form .message-wrapper .icon-checkmark { margin-right: 6px; color: var(--tt-success); }
.tt-main__form .woocommerce-info {
    background: var(--tt-blue-soft) !important;
    border-color: rgba(0, 60, 90, 0.20) !important;
    border-left: 4px solid var(--tt-blue) !important;
    color: var(--tt-blue-dark) !important;
}
.tt-main__form .woocommerce-info a,
.tt-main__form .woocommerce-message a,
.tt-main__form .woocommerce-error a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}
.tt-main__form .woocommerce-error {
    border-left: 4px solid var(--tt-danger) !important;
    background: #fef2f2 !important;
    color: var(--tt-danger) !important;
}

/* Coupon form */
.tt-main__form .checkout_coupon {
    background: #fff;
    border: 1px dashed var(--tt-blue);
    border-radius: var(--tt-radius);
    padding: 14px;
    margin: 0 0 16px;
}
.tt-main__form .checkout_coupon input.input-text {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1.5px solid var(--tt-line) !important;
    border-radius: 10px !important;
}
.tt-main__form .checkout_coupon button.button {
    background: var(--tt-blue) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    text-transform: none !important;
}

/* ============================================================
   1-COLUMN LAYOUT — JS reorganize DOM, .large-5 hidden
   ============================================================ */
.tt-main__form form.checkout {
    margin: 0;
    padding: 0;
    display: block;
}
.tt-main__form form.checkout > .row,
.tt-main__form form.checkout .row.pt-0 {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}
.tt-main__form form.checkout .large-7 {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
/* Hide right column wrapper — JS đã move content ra ngoài */
.tt-main__form form.checkout .large-5 {
    display: none !important;
}

/* ============================================================
   3 SECTIONS — summary / details / payment
   ============================================================ */
.tt-main__form .tt-section {
    background: #fff;
    border: 1px solid var(--tt-line);
    border-radius: var(--tt-radius-lg);
    box-shadow: var(--tt-shadow);
    margin-bottom: 16px;
    overflow: hidden;
}

/* Section heading inside tt-section */
.tt-main__form .tt-section h3,
.tt-main__form .tt-section #order_review_heading {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--tt-text) !important;
    margin: 0 !important;
    padding: 16px 20px !important;
    background: linear-gradient(135deg, var(--tt-blue-soft) 0%, #fff 100%);
    border-bottom: 1px solid var(--tt-line);
    text-transform: none !important;
    letter-spacing: -0.005em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tt-main__form .tt-section h3::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--tt-orange);
    border-radius: 2px;
}
/* Override cho ship-to-different-address (label inside h3) */
.tt-main__form #ship-to-different-address {
    background: transparent !important;
    border-bottom: 0 !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}
.tt-main__form #ship-to-different-address::before { display: none !important; }
.tt-main__form #ship-to-different-address label {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--tt-text);
}
.tt-main__form #ship-to-different-address input[type="checkbox"] {
    accent-color: var(--tt-orange);
    width: 16px; height: 16px;
}

/* ============================================================
   SECTION 1: ORDER SUMMARY — TGDD-style 2 cột (info | price+actions)
   ============================================================ */
.tt-main__form #order_review {
    padding: 0 !important;
    margin: 0 !important;
}

/* Reset table → flex layout (mỗi <tr> là flex row 2 cột) */
.tt-main__form .tt-section--summary .shop_table,
.tt-main__form .tt-section--summary .shop_table tbody {
    display: block;
    width: 100%;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-spacing: 0;
    border-collapse: collapse;
}
.tt-main__form .tt-section--summary .shop_table thead { display: none; }

/* === Cart item row — flex 2 cột === */
.tt-main__form .shop_table tbody tr.cart_item {
    display: flex !important;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--tt-line);
    background: transparent;
}
.tt-main__form .shop_table tbody tr.cart_item:last-child {
    border-bottom: 0;
}
.tt-main__form .shop_table tbody tr.cart_item td {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 13.5px;
    line-height: 1.4;
    vertical-align: top;
}

/* Product name cell — bên trái: image + title + variation */
.tt-main__form .shop_table tbody tr.cart_item td.product-name {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--tt-text);
    font-weight: 400;
}
.tt-main__form .shop_table tbody tr.cart_item td.product-name::before { content: none; }

/* Image — TGDD style 64x64 */
.tt-main__form .ts-product-image {
    flex-shrink: 0;
    width: 64px !important;
    height: 64px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff;
    border: 1px solid var(--tt-line);
    border-radius: 8px;
    overflow: hidden;
    display: block !important;
    vertical-align: top !important;
}
.tt-main__form .ts-product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    border-radius: 0 !important;
}

/* Hide native "× N" quantity CHỈ trong checkout review table (vì đã replace bằng qty controls).
   KHÔNG áp cho thank-you page (.woocommerce-table--order-details) — bên đó cần "× N" hiển thị. */
.tt-main__form .woocommerce-checkout-review-order-table strong.product-quantity {
    display: none !important;
}

/* Variation (Gói giá) — pill style giống TGDD "Màu Đen" */
.tt-main__form .shop_table dl.variation {
    margin: 6px 0 0 !important;
    padding: 0 !important;
    font-size: 12px;
    line-height: 1.3;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    color: var(--tt-muted);
}
.tt-main__form .shop_table dl.variation dt {
    display: none !important; /* ẩn label "Gói giá:" */
}
.tt-main__form .shop_table dl.variation dd {
    margin: 0 !important;
    padding: 3px 10px !important;
    display: inline-block;
    background: var(--tt-blue-soft);
    color: var(--tt-blue-dark);
    border-radius: 999px;
    font-weight: 500;
    font-size: 11.5px;
    line-height: 1.4;
}
.tt-main__form .shop_table dl.variation dd p {
    margin: 0 !important;
    display: inline;
}

/* Product total cell — bên phải: price + actions (Xoá + qty) */
.tt-main__form .shop_table tbody tr.cart_item td.product-total {
    flex-shrink: 0;
    min-width: 140px;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    font-weight: 600;
    color: var(--tt-danger);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.tt-main__form .azpos-cart-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--tt-danger);
    display: block;
    line-height: 1.3;
}
.tt-main__form .azpos-cart-price .woocommerce-Price-amount {
    font-weight: 700;
    color: var(--tt-danger);
}

/* Actions row dưới price: Xoá + qty control */
.tt-main__form .azpos-cart-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tt-main__form .azpos-cart-actions.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* "Xoá" text link (TGDD style) */
.tt-main__form .azpos-remove-link {
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--tt-muted);
    font-size: 12.5px;
    font-weight: 400;
    cursor: pointer;
    line-height: 1;
    transition: color .15s ease;
    text-decoration: none;
}
.tt-main__form .azpos-remove-link:hover {
    color: var(--tt-danger);
    text-decoration: underline;
}

/* Qty control — pill border thin */
.tt-main__form .azpos-qty-control {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--tt-line);
    border-radius: 6px;
    overflow: hidden;
    height: 28px;
    transition: opacity .15s ease, border-color .15s ease;
}
.tt-main__form .azpos-qty-control:hover {
    border-color: var(--tt-blue);
}
.tt-main__form .azpos-qty-control.is-loading {
    opacity: 0.5;
    pointer-events: none;
}
.tt-main__form .azpos-qty-btn {
    width: 26px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--tt-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: background-color .12s ease, color .12s ease;
}
.tt-main__form .azpos-qty-btn:hover {
    background: var(--tt-blue-soft);
    color: var(--tt-blue);
}
.tt-main__form .azpos-qty-btn:active {
    background: var(--tt-blue);
    color: #fff;
}
.tt-main__form .azpos-qty-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}
.tt-main__form .azpos-qty-input {
    width: 32px;
    height: 100%;
    border: 0 !important;
    background: transparent;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--tt-text);
    padding: 0 !important;
    line-height: 28px;
    -moz-appearance: textfield;
    border-radius: 0 !important;
    min-height: auto !important;
}
.tt-main__form .azpos-qty-input::-webkit-outer-spin-button,
.tt-main__form .azpos-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.tt-main__form .azpos-qty-input:focus {
    outline: none !important;
    box-shadow: none !important;
    background: var(--tt-blue-soft);
}

/* === Footer table (subtotal/shipping/total) — flex layout === */
.tt-main__form .tt-section--summary .shop_table tfoot {
    display: block;
    border-top: 1px solid var(--tt-line);
    background: #fafbfc;
}
.tt-main__form .tt-section--summary .shop_table tfoot tr {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    background: transparent !important;
}
.tt-main__form .tt-section--summary .shop_table tfoot tr.shipping td.shipping__inner {
    width: 100% !important;
    padding: 0 !important;
}
.tt-main__form .tt-section--summary .shop_table tfoot tr.shipping table.shipping__table tr {
    padding: 0 !important;
}
.tt-main__form .tt-section--summary .shop_table tfoot tr.shipping table.shipping__table tbody {
    display: contents;
}
/* Legacy override remove */
.tt-main__form .shop_table tfoot {
    border-top: 0;
    background: transparent;
}
.tt-main__form .shop_table tfoot tr {
    border-top: 0 !important;
}
.tt-main__form .shop_table tfoot tr th,
.tt-main__form .shop_table tfoot tr td {
    padding: 10px 20px !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 13.5px;
    color: var(--tt-text);
    vertical-align: middle;
}
.tt-main__form .shop_table tfoot tr th {
    font-weight: 600;
    color: var(--tt-muted);
    text-align: left;
    text-transform: none !important;
    width: 50%;
}
.tt-main__form .shop_table tfoot tr td {
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Shipping row */
.tt-main__form .shop_table tfoot tr.shipping {
    border-top: 1px dashed var(--tt-line);
}
.tt-main__form .shop_table tfoot tr.shipping td.shipping__inner {
    padding: 6px 20px !important;
    width: 100%;
}
.tt-main__form .shop_table tfoot tr.shipping table.shipping__table {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
}
.tt-main__form .shop_table tfoot tr.shipping table.shipping__table th,
.tt-main__form .shop_table tfoot tr.shipping table.shipping__table td {
    padding: 4px 0 !important;
    background: transparent !important;
    font-size: 12.5px;
}
.tt-main__form .shop_table tfoot tr.shipping ul#shipping_method {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}
.tt-main__form .shop_table tfoot tr.shipping .shipping__list_item {
    padding: 0;
    text-align: right;
}
.tt-main__form .shop_table tfoot tr.shipping .shipping__list_label {
    color: var(--tt-success);
    font-weight: 600;
    font-size: 12.5px;
    line-height: 1.4;
    display: inline-block;
}
.tt-main__form .shop_table tfoot tr.shipping .shipping__list_label::before { content: "✓ "; }

/* Order total — emphasized */
.tt-main__form .shop_table tfoot tr.order-total {
    border-top: 2px solid var(--tt-text) !important;
    background: #fff;
}
.tt-main__form .shop_table tfoot tr.order-total th {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    font-size: 15px !important;
    color: var(--tt-text);
    font-weight: 700;
}
.tt-main__form .shop_table tfoot tr.order-total td {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    color: var(--tt-orange-dark) !important;
    font-weight: 800 !important;
    font-size: 20px !important;
}
.tt-main__form .shop_table .woocommerce-Price-amount {
    font-weight: 700;
    color: inherit;
}

/* ============================================================
   SECTION 2: CUSTOMER DETAILS
   ============================================================ */
.tt-main__form .tt-section--details #customer_details {
    padding: 0 !important;
}
.tt-main__form .tt-section--details .clear {
    padding: 16px 20px !important;
    border-bottom: 1px dashed var(--tt-line);
    clear: both;
}
.tt-main__form .tt-section--details .clear:last-child { border-bottom: 0; }

.tt-main__form .woocommerce-billing-fields h3,
.tt-main__form .woocommerce-shipping-fields h3:not(#ship-to-different-address),
.tt-main__form .woocommerce-additional-fields h3 {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--tt-blue-dark) !important;
    margin: 0 0 14px !important;
    padding: 0 0 8px !important;
    background: transparent !important;
    border-bottom: 1px solid var(--tt-line) !important;
    text-transform: none !important;
    display: block;
    letter-spacing: 0;
}
.tt-main__form .woocommerce-billing-fields h3::before,
.tt-main__form .woocommerce-shipping-fields h3:not(#ship-to-different-address)::before,
.tt-main__form .woocommerce-additional-fields h3::before { display: none !important; }

/* Form fields */
.tt-main__form .form-row {
    display: flex !important;
    flex-direction: column;
    margin: 0 0 12px !important;
    padding: 0 !important;
}
.tt-main__form .form-row-first,
.tt-main__form .form-row-last {
    width: calc(50% - 6px) !important;
    display: inline-flex !important;
    float: none !important;
}
.tt-main__form .woocommerce-billing-fields__field-wrapper,
.tt-main__form .woocommerce-shipping-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0 12px;
}
.tt-main__form .form-row.form-row-wide,
.tt-main__form .form-row.notes,
.tt-main__form .form-row.address-field {
    width: 100% !important;
    flex-basis: 100% !important;
}

/* === FORCE 2-COL LAYOUT theo ID — work bất kể class WC render ===
 * (PHP filter có thể bị WP-Rocket cache, CSS fallback đảm bảo layout đúng) */
.tt-main__form #billing_last_name_field,
.tt-main__form #billing_state_field,
.tt-main__form #shipping_last_name_field,
.tt-main__form #shipping_state_field {
    width: calc(50% - 6px) !important;
    flex: 0 0 calc(50% - 6px) !important;
    flex-basis: calc(50% - 6px) !important;
    clear: left !important;
    float: none !important;
    display: inline-flex !important;
    flex-direction: column;
}
.tt-main__form #billing_phone_field,
.tt-main__form #billing_city_field,
.tt-main__form #shipping_phone_field,
.tt-main__form #shipping_city_field {
    width: calc(50% - 6px) !important;
    flex: 0 0 calc(50% - 6px) !important;
    flex-basis: calc(50% - 6px) !important;
    clear: none !important;
    float: none !important;
    display: inline-flex !important;
    flex-direction: column;
}
.tt-main__form #billing_address_1_field,
.tt-main__form #shipping_address_1_field {
    width: 100% !important;
    flex: 0 0 100% !important;
    flex-basis: 100% !important;
    clear: both !important;
    float: none !important;
    display: flex !important;
    flex-direction: column;
}
.tt-main__form .form-row > label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--tt-text);
    margin-bottom: 4px;
    display: block;
}
.tt-main__form .form-row .required,
.tt-main__form .form-row abbr.required {
    color: var(--tt-danger);
    text-decoration: none;
    margin-left: 2px;
    font-weight: 700;
    border: 0;
}
.tt-main__form .form-row .optional {
    color: var(--tt-muted);
    font-weight: 400;
    font-size: 11.5px;
    margin-left: 4px;
}
.tt-main__form .form-row .woocommerce-input-wrapper {
    width: 100%;
    display: block;
}
.tt-main__form .form-row input.input-text,
.tt-main__form .form-row textarea,
.tt-main__form .form-row select {
    width: 100% !important;
    height: auto !important;
    min-height: 42px !important;
    padding: 9px 13px !important;
    border: 1.5px solid var(--tt-line) !important;
    border-radius: 9px !important;
    background: #fff !important;
    font-size: 14.5px !important;
    font-family: inherit !important;
    color: var(--tt-text) !important;
    line-height: 1.4 !important;
    transition: border-color .15s ease, box-shadow .15s ease !important;
    box-shadow: none !important;
    margin: 0 !important;
}
.tt-main__form .form-row textarea {
    min-height: 60px !important;
    resize: vertical;
}
.tt-main__form .form-row input:focus,
.tt-main__form .form-row textarea:focus,
.tt-main__form .form-row select:focus {
    border-color: var(--tt-orange) !important;
    box-shadow: 0 0 0 3px var(--tt-orange-soft) !important;
    outline: none !important;
}
.tt-main__form .form-row.woocommerce-invalid input,
.tt-main__form .form-row.woocommerce-invalid select,
.tt-main__form .form-row.woocommerce-invalid textarea {
    border-color: var(--tt-danger) !important;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.08) !important;
}

/* Select2 dropdown */
.tt-main__form .select2-container { width: 100% !important; }
.tt-main__form .select2-selection {
    height: 42px !important;
    border: 1.5px solid var(--tt-line) !important;
    border-radius: 9px !important;
    background: #fff !important;
}
.tt-main__form .select2-selection__rendered {
    line-height: 40px !important;
    padding-left: 13px !important;
    color: var(--tt-text) !important;
    font-size: 14.5px !important;
}
.tt-main__form .select2-selection__placeholder { color: var(--tt-muted) !important; }
.tt-main__form .select2-selection__arrow {
    height: 42px !important;
    top: 0 !important;
    right: 8px !important;
}
.tt-main__form .select2-container--focus .select2-selection,
.tt-main__form .select2-container--open .select2-selection {
    border-color: var(--tt-orange) !important;
    box-shadow: 0 0 0 3px var(--tt-orange-soft) !important;
}

/* Shipping address (giao đến địa chỉ khác) */
.tt-main__form .shipping_address {
    margin-top: 0;
    padding-top: 12px;
    border-top: 1px dashed var(--tt-line);
}

/* ============================================================
   VAT INVOICE SECTION
   ============================================================ */
.tt-main__form .azpos-vat-section {
    margin: 12px 0 0;
    padding: 14px 0 0;
    border-top: 1px dashed var(--tt-line);
}

/* Toggle row — clickable card */
.tt-main__form .azpos-vat-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--tt-orange-soft) 0%, #fff 100%);
    border: 1.5px solid rgba(255, 113, 27, 0.20);
    border-radius: var(--tt-radius);
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
    margin: 0;
}
.tt-main__form .azpos-vat-toggle:hover {
    border-color: var(--tt-orange);
    background: linear-gradient(135deg, var(--tt-orange-soft) 0%, #fff8f3 100%);
}
.tt-main__form .azpos-vat-toggle input[type="checkbox"] {
    accent-color: var(--tt-orange);
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}
.tt-main__form .azpos-vat-toggle__icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--tt-orange) 0%, var(--tt-orange-dark) 100%);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(255, 113, 27, 0.25);
}
.tt-main__form .azpos-vat-toggle__icon .fa { color: #fff; }
.tt-main__form .azpos-vat-toggle__text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    flex: 1;
}
.tt-main__form .azpos-vat-toggle__text strong {
    font-size: 14.5px;
    color: var(--tt-text);
    font-weight: 700;
}
.tt-main__form .azpos-vat-toggle__text em {
    font-size: 12.5px;
    color: var(--tt-muted);
    font-style: normal;
    margin-top: 2px;
}

/* VAT fields wrapper — chỉ hiện khi toggle on */
.tt-main__form .azpos-vat-fields {
    margin-top: 14px;
    padding: 16px;
    background: #fafbfc;
    border: 1px solid var(--tt-line);
    border-radius: var(--tt-radius);
}
.tt-main__form .azpos-vat-fields .form-row {
    margin: 0 0 12px !important;
}
.tt-main__form .azpos-vat-fields .form-row:last-child {
    margin-bottom: 0 !important;
}

/* MST input + nút Tra cứu — flex inline */
.tt-main__form .azpos-vat-mst-wrap {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.tt-main__form .azpos-vat-mst-wrap input.input-text {
    flex: 1;
    margin: 0 !important;
}
.tt-main__form .azpos-vat-lookup-btn {
    flex-shrink: 0;
    padding: 0 16px !important;
    background: linear-gradient(135deg, var(--tt-blue) 0%, var(--tt-blue-dark) 100%) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 9px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 2px 8px rgba(0, 60, 90, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    height: auto !important;
    min-height: 42px !important;
    line-height: 1 !important;
}
.tt-main__form .azpos-vat-lookup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 60, 90, 0.35);
}
.tt-main__form .azpos-vat-lookup-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Hint nhỏ trong label MST */
.tt-main__form .azpos-vat-hint {
    font-size: 11px;
    font-weight: 400;
    color: var(--tt-muted);
    margin-left: 4px;
    display: inline;
}

/* Status feedback (success/error) sau khi tra cứu */
.tt-main__form .azpos-vat-status {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.4;
    min-height: 18px;
}
.tt-main__form .azpos-vat-status.is-loading { color: var(--tt-blue); }
.tt-main__form .azpos-vat-status.is-success { color: var(--tt-success); }
.tt-main__form .azpos-vat-status.is-success .fa { margin-right: 4px; }
.tt-main__form .azpos-vat-status.is-error   { color: var(--tt-danger); }
.tt-main__form .azpos-vat-status.is-error   .fa { margin-right: 4px; }

/* Mobile — VAT section */
@media (max-width: 640px) {
    .tt-main__form .azpos-vat-toggle {
        padding: 10px 12px;
        gap: 10px;
    }
    .tt-main__form .azpos-vat-toggle__icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .tt-main__form .azpos-vat-toggle__text strong { font-size: 13.5px; }
    .tt-main__form .azpos-vat-toggle__text em     { font-size: 11.5px; }
    .tt-main__form .azpos-vat-fields { padding: 12px; }
    .tt-main__form .azpos-vat-mst-wrap { flex-direction: column; gap: 8px; }
    .tt-main__form .azpos-vat-lookup-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   SECTION 3: PAYMENT + PLACE ORDER
   ============================================================ */
.tt-main__form .tt-section--payment {
    background: #fff;
}
.tt-main__form .tt-section--payment::before {
    /* Header tự generate cho section này (vì #payment không có heading) */
    content: "Phương thức thanh toán";
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--tt-text);
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--tt-blue-soft) 0%, #fff 100%);
    border-bottom: 1px solid var(--tt-line);
    border-left: 4px solid var(--tt-orange);
    border-top-left-radius: var(--tt-radius-lg);
    border-top-right-radius: var(--tt-radius-lg);
}
.tt-main__form #payment {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 16px 20px !important;
    margin: 0 !important;
}
.tt-main__form #payment ul.payment_methods,
.tt-main__form #payment ul.wc_payment_methods {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 0 16px !important;
    background: transparent !important;
    list-style: none !important;
}
.tt-main__form #payment ul li {
    background: #f8fafc !important;
    border: 1.5px solid var(--tt-line) !important;
    border-radius: var(--tt-radius) !important;
    padding: 14px 16px !important;
    margin: 0 0 10px !important;
    list-style: none !important;
    transition: border-color .15s ease, background-color .15s ease;
}
.tt-main__form #payment ul li:hover {
    border-color: var(--tt-blue);
    background: var(--tt-blue-soft) !important;
}
.tt-main__form #payment ul li:has(input:checked) {
    border-color: var(--tt-orange) !important;
    background: var(--tt-orange-soft) !important;
}
.tt-main__form #payment ul li input[type="radio"] {
    margin-right: 10px !important;
    accent-color: var(--tt-orange);
    width: 16px;
    height: 16px;
    vertical-align: middle;
}
.tt-main__form #payment ul li label {
    font-weight: 600 !important;
    color: var(--tt-text);
    cursor: pointer;
    font-size: 14.5px;
    margin: 0 !important;
    display: inline !important;
}
.tt-main__form #payment ul li img { max-height: 24px; margin-left: 8px; vertical-align: middle; }
.tt-main__form #payment .payment_box {
    background: #fff !important;
    border: 1px solid var(--tt-line) !important;
    border-radius: var(--tt-radius) !important;
    padding: 12px 14px !important;
    margin: 10px 0 0 !important;
    font-size: 13px;
    line-height: 1.55;
    color: var(--tt-muted);
}
.tt-main__form #payment .payment_box::before { border-bottom-color: var(--tt-line) !important; }
.tt-main__form #payment .payment_box p { margin: 0; }

.tt-main__form .place-order { margin: 0 !important; padding: 0 !important; }
.tt-main__form #place_order {
    display: block !important;
    width: 100% !important;
    padding: 16px 24px !important;
    background: var(--nut) !important;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0.3px;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 22px rgba(255, 113, 27, 0.35) !important;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease !important;
    line-height: 1.2 !important;
    text-shadow: none !important;
    height: auto !important;
}
.tt-main__form #place_order:hover {
    transform: translateY(-2px);
    background: var(--nut-dam) !important; box-shadow: none !important;
}
.tt-main__form #place_order::before {
    content: "🔒  ";
    font-size: 14px;
}

.tt-main__form .woocommerce-privacy-policy-text {
    margin: 12px 20px 16px;
    padding: 10px 12px;
    background: var(--tt-blue-soft);
    border-radius: 8px;
    font-size: 11.5px;
    color: var(--tt-muted);
    line-height: 1.55;
}
.tt-main__form .woocommerce-privacy-policy-text p { margin: 0; }
.tt-main__form .woocommerce-privacy-policy-text a { color: var(--tt-blue); }

.tt-main__form .blockUI.blockOverlay {
    background: rgba(255, 255, 255, 0.85) !important;
    border-radius: var(--tt-radius-lg);
}

/* ============================================================
   TRUST BAR + FOOTER
   ============================================================ */
.tt-trust {
    background: linear-gradient(180deg, #fff 0%, var(--tt-blue-soft) 100%);
    padding: 28px 0;
    border-top: 1px solid var(--tt-line);
}
.tt-trust__container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.tt-trust__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border-radius: var(--tt-radius);
    border: 1px solid rgba(0, 60, 90, 0.10);
    box-shadow: var(--tt-shadow);
}
.tt-trust__icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--tt-blue) 0%, var(--tt-blue-dark) 100%);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 60, 90, 0.25);
}
.tt-trust__icon .fa { font-size: 16px; color: #fff; }
.tt-trust__text { display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.tt-trust__text strong { font-size: 13.5px; font-weight: 700; color: var(--tt-text); }
.tt-trust__text span { font-size: 12px; color: var(--tt-muted); }

.tt-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px 0 20px;
}
.tt-footer__container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: center;
}
.tt-footer__brand { display: flex; flex-direction: column; gap: 4px; }
.tt-footer__brand strong { color: #fff; font-size: 14.5px; font-weight: 700; }
.tt-footer__brand span { font-size: 12.5px; color: #94a3b8; }
.tt-footer__contact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}
.tt-footer__contact a {
    color: #cbd5e1 !important;
    font-size: 13.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .15s ease;
}
.tt-footer__contact a:hover { color: var(--tt-orange) !important; }
.tt-footer__contact a .fa { color: var(--tt-orange); font-size: 12.5px; }
.tt-footer__copy {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 11.5px;
    color: #64748b;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 6px;
}

/* =============================================================================
   THANK YOU / ORDER RECEIVED PAGE
   Cùng template-thanh-toan.php nhưng URL có ?order-received=ID
   Body class: .woocommerce-order-received
   Markup: .row > .large-7 (details) + .large-5 (overview)
   ============================================================================= */

/* Hide step indicator (đã xong) → success state */
body.woocommerce-order-received .tt-steps__item.is-active {
    color: var(--tt-success) !important;
}
body.woocommerce-order-received .tt-steps__item.is-active .tt-steps__num {
    background: var(--tt-success);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.15);
}
/* Step "Hoàn tất" trở thành active */
body.woocommerce-order-received .tt-steps .tt-steps__item:last-of-type {
    color: var(--tt-success) !important;
    font-weight: 700;
}
body.woocommerce-order-received .tt-steps .tt-steps__item:last-of-type .tt-steps__num {
    background: var(--tt-success);
    color: #fff;
}
body.woocommerce-order-received .tt-main__title {
    color: var(--tt-success);
}
body.woocommerce-order-received .tt-main__title::before {
    content: "✅ ";
    margin-right: 4px;
}

/* === LAYOUT — flip large-7 và large-5 (overview lên trên) === */
body.woocommerce-order-received .tt-main__form .row {
    display: flex !important;
    flex-direction: column;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}
body.woocommerce-order-received .tt-main__form .large-7,
body.woocommerce-order-received .tt-main__form .large-5 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.woocommerce-order-received .tt-main__form .large-5 {
    order: 1; /* Order overview lên TRÊN */
}
body.woocommerce-order-received .tt-main__form .large-7 {
    order: 2;
}

/* ============================================================
   ORDER OVERVIEW — Hero success card
   ============================================================ */
.tt-main__form .is-well.col-inner.entry-content {
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 60%);
    border: 1px solid rgba(21, 128, 61, 0.18);
    border-radius: var(--tt-radius-lg);
    padding: 24px;
    box-shadow: 0 2px 12px rgba(21, 128, 61, 0.08);
    margin-bottom: 16px;
}
.woocommerce-thankyou-order-received {
    font-size: 17px !important;
    color: var(--tt-success) !important;
    text-align: center;
    margin: 0 0 20px !important;
    padding: 0 0 16px !important;
    border-bottom: 1px dashed rgba(21, 128, 61, 0.20);
    background: transparent !important;
    line-height: 1.5;
    font-weight: 500;
}
.woocommerce-thankyou-order-received strong {
    display: block;
    font-size: 22px;
    color: var(--tt-success);
    margin-bottom: 4px;
}
.woocommerce-thankyou-order-received::before {
    content: "🎉";
    display: block;
    font-size: 36px;
    margin-bottom: 8px;
    line-height: 1;
}

/* Order overview list — grid card style */
.woocommerce-order-overview {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    border: 0 !important;
    background: transparent !important;
}
.woocommerce-order-overview li {
    background: #fff;
    padding: 12px 14px !important;
    border-radius: 10px;
    border: 1px solid var(--tt-line);
    margin: 0 !important;
    border-left-width: 1px !important;
    font-size: 12px !important;
    color: var(--tt-muted);
    text-transform: none !important;
    line-height: 1.35;
    text-align: left !important;
    list-style: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.woocommerce-order-overview li strong {
    display: block;
    color: var(--tt-text);
    font-size: 14.5px;
    font-weight: 700;
    margin: 2px 0 0;
    word-break: break-word;
}
.woocommerce-order-overview li.order strong {
    color: var(--tt-blue-dark);
    font-family: inherit;
    letter-spacing: 0.5px;
}
.woocommerce-order-overview li.total strong {
    color: var(--tt-orange-dark);
    font-size: 17px;
}
.woocommerce-order-overview li.method strong {
    color: var(--tt-blue-dark);
}

/* ============================================================
   ORDER DETAILS — Product list (same TGDD style như checkout)
   ============================================================ */
.woocommerce-order-details {
    background: #fff;
    border: 1px solid var(--tt-line);
    border-radius: var(--tt-radius-lg);
    box-shadow: var(--tt-shadow);
    padding: 0 !important;
    margin: 0 0 16px !important;
    overflow: hidden;
}
.woocommerce-order-details__title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--tt-text) !important;
    margin: 0 !important;
    padding: 16px 20px !important;
    background: linear-gradient(135deg, var(--tt-blue-soft) 0%, #fff 100%);
    border-bottom: 1px solid var(--tt-line);
    border-left: 4px solid var(--tt-blue);
    text-transform: none !important;
    letter-spacing: -0.005em;
}
.woocommerce-order-details__title::before {
    content: "📦  ";
    margin-right: 4px;
}

/* Order details table — flex layout giống checkout */
.woocommerce-order-details .shop_table,
.woocommerce-order-details .shop_table tbody {
    display: block;
    width: 100% !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
}
.woocommerce-order-details .shop_table thead {
    display: none;
}

/* === Order item rows — grid 3 cột: Title | SL | Price ===
   Dùng display: contents trên product-name td → các con flatten vào TR grid */
.woocommerce-order-details .order_item {
    display: grid !important;
    grid-template-columns: 1fr auto auto;
    column-gap: 16px;
    row-gap: 4px;
    align-items: baseline;
    padding: 12px 20px;
    border-bottom: 1px solid var(--tt-line);
    background: transparent !important;
}
.woocommerce-order-details .order_item:last-of-type {
    border-bottom: 0;
}

/* product-name TD biến thành "vô hình" — children flatten vào grid */
.woocommerce-order-details .order_item > td.product-name {
    display: contents;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Title (link) — col 1, row 1, font mảnh 400 */
.woocommerce-order-details .order_item > td.product-name > a {
    grid-column: 1;
    grid-row: 1;
    color: var(--tt-text);
    font-weight: 400;
    font-size: 13.5px;
    line-height: 1.45;
    text-decoration: none;
    align-self: start;
}
.woocommerce-order-details .order_item > td.product-name > a:hover {
    color: var(--tt-blue-dark);
    text-decoration: underline;
}

/* "× N" quantity — col 2, row 1, mảnh xám */
.woocommerce-order-details .order_item > td.product-name > strong.product-quantity {
    grid-column: 2;
    grid-row: 1;
    color: var(--tt-muted);
    background: transparent !important;
    padding: 0 !important;
    font-size: 13px;
    font-weight: 400 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    white-space: nowrap;
    align-self: start;
    min-width: 32px;
    text-align: center;
}

/* Item meta (Gói giá, Đơn giá) — col 1 row 2, plain light gray text */
.woocommerce-order-details .order_item > td.product-name > .wc-item-meta {
    grid-column: 1 / 3;
    grid-row: 2;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: flex;
    flex-wrap: wrap;
    gap: 0 12px;
    font-size: 12px;
    line-height: 1.45;
}
.woocommerce-order-details .wc-item-meta li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    border: 0 !important;
    font-weight: 400 !important;
    color: var(--tt-muted);
    line-height: 1.45;
    display: inline;
}
.woocommerce-order-details .wc-item-meta-label {
    font-weight: 400 !important;
    color: var(--tt-muted) !important;
    font-size: 12px;
}
.woocommerce-order-details .wc-item-meta li p {
    margin: 0 !important;
    display: inline;
    font-weight: 400;
    color: #475569;
}
.woocommerce-order-details .wc-item-meta .woocommerce-Price-amount {
    color: #475569 !important;
    font-weight: 500;
}
/* Separator giữa các meta items */
.woocommerce-order-details .wc-item-meta li + li::before {
    content: "·";
    margin-right: 8px;
    color: #cbd5e1;
}

/* Product total cell — col 3, row 1+2 (span vertical) */
.woocommerce-order-details .order_item > td.product-total {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: start;
    text-align: right;
    font-weight: 600;
    color: var(--tt-text);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-size: 13.5px;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    min-width: 100px;
}

/* Order details tfoot */
.woocommerce-order-details .shop_table tfoot {
    display: block !important;
    border-top: 1px solid var(--tt-line);
    background: #fafbfc;
}
.woocommerce-order-details .shop_table tfoot tr {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    background: transparent !important;
    border-top: 0 !important;
}
.woocommerce-order-details .shop_table tfoot tr th,
.woocommerce-order-details .shop_table tfoot tr td {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 13.5px;
    color: var(--tt-text);
}
.woocommerce-order-details .shop_table tfoot tr th {
    font-weight: 600;
    color: var(--tt-muted);
    text-align: left;
    text-transform: none !important;
}
.woocommerce-order-details .shop_table tfoot tr td {
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.woocommerce-order-details .shop_table tfoot tr:last-child {
    border-top: 2px solid var(--tt-text) !important;
    background: #fff;
    padding-top: 12px;
    padding-bottom: 12px;
}
.woocommerce-order-details .shop_table tfoot tr:last-child th {
    font-size: 15px !important;
    color: var(--tt-text) !important;
    font-weight: 700 !important;
}
.woocommerce-order-details .shop_table tfoot tr:last-child td {
    color: var(--tt-orange-dark) !important;
    font-size: 19px !important;
    font-weight: 800 !important;
}

/* ============================================================
   BANK TRANSFER (BACS) — Important callout cam
   ============================================================ */
.woocommerce-bacs-bank-details {
    background: linear-gradient(135deg, var(--tt-orange-soft) 0%, #fff 100%);
    border: 1.5px solid var(--tt-orange);
    border-radius: var(--tt-radius-lg);
    padding: 20px 24px !important;
    margin: 0 0 16px !important;
    box-shadow: 0 4px 14px rgba(255, 113, 27, 0.12);
}
.wc-bacs-bank-details-heading {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--tt-orange-dark) !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-transform: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wc-bacs-bank-details-heading::before {
    content: "🏦";
    font-size: 22px;
}
.wc-bacs-bank-details-account-name {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--tt-text) !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    background: transparent !important;
    text-transform: none !important;
    border: 0 !important;
    line-height: 1.4 !important;
}
.wc-bacs-bank-details {
    list-style: none !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    background: #fff;
    border-radius: 10px;
    border: 1px dashed rgba(255, 113, 27, 0.35);
    display: block;
}
.wc-bacs-bank-details li {
    padding: 5px 0 !important;
    font-size: 13.5px !important;
    color: var(--tt-text) !important;
    list-style: none !important;
    margin: 0 !important;
    border: 0 !important;
    line-height: 1.5 !important;
    background: transparent !important;
}
.wc-bacs-bank-details li strong {
    color: var(--tt-blue-dark);
    font-weight: 700;
}
.wc-bacs-bank-details li.account_number strong {
    font-size: 18px;
    font-family: inherit;
    color: var(--tt-orange-dark);
    letter-spacing: 1px;
    background: var(--tt-orange-soft);
    padding: 2px 10px;
    border-radius: 6px;
    display: inline-block;
}

/* ============================================================
   CUSTOMER DETAILS — Addresses 2 col
   ============================================================ */
.woocommerce-customer-details {
    background: #fff;
    border: 1px solid var(--tt-line);
    border-radius: var(--tt-radius-lg);
    box-shadow: var(--tt-shadow);
    padding: 0 !important;
    margin: 0 0 16px !important;
    overflow: hidden;
}
.woocommerce-customer-details::before {
    content: "🚚 Địa chỉ giao hàng";
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--tt-text);
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--tt-blue-soft) 0%, #fff 100%);
    border-bottom: 1px solid var(--tt-line);
    border-left: 4px solid var(--tt-blue);
    letter-spacing: -0.005em;
}
.woocommerce-customer-details .col2-set,
.woocommerce-customer-details .addresses {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}
.woocommerce-customer-details .col2-set::before,
.woocommerce-customer-details .col2-set::after {
    display: none;
}
.woocommerce-customer-details .col-1,
.woocommerce-customer-details .col-2 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 18px 20px !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
}
.woocommerce-customer-details .col-1 {
    border-right: 1px dashed var(--tt-line);
}
.woocommerce-column__title {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--tt-blue-dark) !important;
    margin: 0 0 10px !important;
    padding: 0 0 6px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--tt-line) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    background: transparent !important;
}
.woocommerce-customer-details address {
    font-size: 13.5px !important;
    line-height: 1.65;
    color: var(--tt-text);
    font-style: normal;
    margin: 0;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.woocommerce-customer-details--phone,
.woocommerce-customer-details--email {
    margin: 6px 0 0 !important;
    padding: 6px 0 0 !important;
    font-size: 13px !important;
    color: var(--tt-muted);
    border-top: 1px dashed var(--tt-line);
    line-height: 1.5;
}
.woocommerce-customer-details--phone::before {
    content: "📞 ";
}
.woocommerce-customer-details--email::before {
    content: "✉️ ";
}

/* Số điện thoại người nhận (text node bên dưới) */
.woocommerce-customer-details > br + *,
.woocommerce-customer-details::after {
    display: none;
}

/* ============================================================
   RESPONSIVE — Mobile cho Thank you page
   ============================================================ */
@media (max-width: 640px) {
    body.woocommerce-order-received .woocommerce-order-overview {
        grid-template-columns: 1fr 1fr;
    }
    body.woocommerce-order-received .woocommerce-order-overview li.total,
    body.woocommerce-order-received .woocommerce-order-overview li.method {
        grid-column: span 2;
    }
    body.woocommerce-order-received .woocommerce-customer-details .col2-set,
    body.woocommerce-order-received .woocommerce-customer-details .addresses {
        grid-template-columns: 1fr;
    }
    body.woocommerce-order-received .woocommerce-customer-details .col-1 {
        border-right: 0;
        border-bottom: 1px dashed var(--tt-line);
    }
    body.woocommerce-order-received .tt-main__form .is-well.col-inner.entry-content {
        padding: 18px;
    }
    body.woocommerce-order-received .woocommerce-thankyou-order-received {
        font-size: 15px !important;
    }
    body.woocommerce-order-received .woocommerce-thankyou-order-received strong {
        font-size: 18px;
    }
    body.woocommerce-order-received .woocommerce-bacs-bank-details {
        padding: 16px 18px !important;
    }
    body.woocommerce-order-received .wc-bacs-bank-details li.account_number strong {
        font-size: 16px;
    }
}

/* ============================================================
   RESPONSIVE — Mobile (≤640px)
   ============================================================ */
@media (max-width: 640px) {
    .tt-topbar { font-size: 12px; padding: 6px 0; }
    .tt-topbar__container { gap: 12px; }
    .tt-topbar__item:nth-child(1),
    .tt-topbar__item:nth-child(2) { display: none; }

    .tt-header { padding: 10px 0; }
    .tt-header__container { grid-template-columns: auto auto; gap: 12px; }
    .tt-header__logo img { max-height: 34px; }
    .tt-steps {
        order: 3;
        grid-column: 1 / -1;
        margin-top: 8px;
        padding-top: 10px;
        border-top: 1px solid var(--tt-line);
    }
    .tt-steps__item { font-size: 12px; gap: 6px; }
    .tt-steps__num { width: 24px; height: 24px; font-size: 11px; }
    .tt-steps__sep { width: 14px; margin: 0 4px; }
    .tt-header__hotline { padding: 5px 9px; }
    .tt-header__hotline-icon { width: 24px; height: 24px; }
    .tt-header__hotline-icon .fa { font-size: 11px; }
    .tt-header__hotline-label { font-size: 9.5px; }
    .tt-header__hotline-num { font-size: 12.5px; }

    .tt-main { padding: 16px 0 28px; }
    .tt-main__container { padding: 0 12px; }
    .tt-main__title { font-size: 20px; }
    .tt-main__sub { font-size: 13.5px; }

    .tt-main__form .tt-section h3,
    .tt-main__form .tt-section #order_review_heading,
    .tt-main__form .tt-section--payment::before {
        padding: 12px 16px !important;
        font-size: 15px !important;
    }
    .tt-main__form .shop_table tbody tr.cart_item td {
        padding: 10px 16px !important;
    }
    .tt-main__form .shop_table tfoot tr th,
    .tt-main__form .shop_table tfoot tr td {
        padding: 8px 16px !important;
        font-size: 12.5px;
    }
    .tt-main__form .shop_table tfoot tr.order-total td {
        font-size: 18px !important;
    }
    .tt-main__form .shop_table tbody tr.cart_item {
        padding: 12px 16px;
        gap: 10px;
    }
    .tt-main__form .ts-product-image { width: 56px !important; height: 56px !important; }
    .tt-main__form .shop_table tbody tr.cart_item td.product-total {
        min-width: 110px;
        gap: 8px;
    }
    .tt-main__form .azpos-cart-price { font-size: 13px; }
    .tt-main__form .azpos-cart-actions { gap: 8px; }
    .tt-main__form .azpos-qty-control { height: 26px; }
    .tt-main__form .azpos-qty-btn { width: 24px; font-size: 13px; }
    .tt-main__form .azpos-qty-input { width: 28px; font-size: 12.5px; }
    .tt-main__form .azpos-remove-link { font-size: 12px; }
    .tt-main__form .tt-section--summary .shop_table tfoot tr { padding: 7px 16px; }
    .tt-main__form #payment { padding: 14px 16px !important; }
    .tt-main__form .tt-section--details .clear { padding: 14px 16px !important; }
    .tt-main__form .form-row-first,
    .tt-main__form .form-row-last { width: 100% !important; }
    .tt-main__form #place_order { padding: 14px 20px !important; font-size: 16px !important; }

    .tt-trust__container { grid-template-columns: 1fr; gap: 10px; }
    .tt-footer__container { grid-template-columns: 1fr; text-align: center; }
    .tt-footer__contact { justify-content: center; }
}

/* ---------- riêng theme One (không có Flatsome + CSS WooCommerce) ---------- */
.tt-main__form .form-row.tt-an { display: none !important; }
.tt-header__logo { flex: none; display: block; padding: 6px 12px; border-radius: 10px; background: var(--chinh-dam, #124fb5); color: #fff; }
.tt-header__logo img { display: block; width: auto; height: 36px; }
.tt-main__form .tt-section--details .col-1,
.tt-main__form .tt-section--details .col-2 { padding: 16px 20px !important; border-bottom: 1px dashed var(--tt-line); }
.tt-main__form .tt-section--details .col-2:last-child { border-bottom: 0; }
.tt-main__form .tt-section--details .col-2:empty { display: none; }
.tt-main__form #billing_first_name_field,
.tt-main__form #billing_phone_field { width: calc(50% - 6px) !important; flex: 0 0 calc(50% - 6px) !important; }
.tt-main__form .shop_table tbody tr.cart_item td.product-name { display: flex !important; align-items: flex-start; gap: 12px; }
.tt-sp-anh { flex: none; display: block; width: 64px; height: 64px; overflow: hidden; border: 1px solid var(--tt-line); border-radius: 8px; background: #fff; }
.tt-sp-anh img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tt-sp-ten { min-width: 0; }
.tt-main__form .woocommerce-message,
.tt-main__form .woocommerce-error { margin: 0 0 12px !important; padding: 10px 14px !important; list-style: none; border: 1px solid var(--tt-line); border-radius: 10px; background: #fff; font-size: 14px; line-height: 1.5; }
.tt-main__form .woocommerce-error { border-color: #fecaca; background: #fef2f2; color: var(--tt-danger); }
.tt-main__form .woocommerce-error li { list-style: none; margin: 2px 0; }
.tt-main__form .woocommerce-terms-and-conditions-wrapper:not(:has(.woocommerce-privacy-policy-text p:not(:empty))) { display: none; }
@media (max-width: 640px) {
    .tt-main__form #billing_first_name_field,
    .tt-main__form #billing_phone_field { width: 100% !important; flex: 0 0 100% !important; }
    .tt-header__logo img { height: 28px; }
}
.tt-topbar__item--phone a { color: #fff !important; }
@media (max-width: 640px) {
    .tt-topbar { display: none; } /* điện thoại: hotline đã có ở đầu trang, cam kết có ở cuối trang */
    .tt-main__form .shop_table tbody tr.cart_item { display: block; }
    .tt-main__form .shop_table tbody tr.cart_item td { display: block; width: 100% !important; box-sizing: border-box; }
    .tt-main__form .shop_table tbody tr.cart_item td.product-name { display: flex !important; padding-bottom: 8px !important; }
    .tt-main__form .shop_table tbody tr.cart_item td.product-total { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; padding-top: 0 !important; text-align: left; }
    .tt-sp-anh { width: 56px; height: 56px; }
    .tt-main__form .woocommerce-billing-fields h3,
    .tt-main__form .woocommerce-additional-fields h3 { padding-left: 0 !important; }
    .tt-main__form input.input-text,
    .tt-main__form textarea { font-size: 16px !important; } /* dưới 16px thì iPhone tự phóng to trang khi bấm vào ô */
}
@media (max-width: 640px) {
    /* hàng sản phẩm xếp dọc: ảnh + tên rộng hết, giá + số lượng hàng dưới, tên không bị ép thành cột hẹp */
    .tt-main__form .shop_table tbody tr.cart_item { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 10px !important; }
    .tt-main__form .shop_table tbody tr.cart_item td.product-name,
    .tt-main__form .shop_table tbody tr.cart_item td.product-total { flex: none !important; width: 100% !important; min-width: 0 !important; padding: 0 !important; }
    .tt-main__form .shop_table tbody tr.cart_item td.product-total { flex-direction: row !important; align-items: center !important; justify-content: space-between !important; }
}

/* Nút và ô nhập theo font chung của trang */
.tt-body button, .tt-body input, .tt-body select, .tt-body textarea, .tt-body optgroup { font-family: inherit; }
