/**
 * Stylesheet cho Trang Thanh Toán (Checkout) & Hoàn Tất Đơn Hàng (Thank You)
 * Theme: Vtipz
 * Chuẩn màu thương hiệu: #0E4E85 (Navy), #1C75BC (Blue), #F26B21 (Orange), #F8FAFC (BG)
 */

/* ==========================================================================
   1. BỐ CỤC TỔNG THỂ & TIẾN TRÌNH ĐẶT HÀNG
   ========================================================================== */
.vtipz-checkout-page {
    background-color: #F8FAFC;
    min-height: 70vh;
    padding: 32px 0 64px 0;
    font-family: 'Be Vietnam Pro', sans-serif;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Thanh chỉ báo tiến trình đặt hàng (Steps Indicator) */
.vtipz-checkout-steps-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 640px;
    margin: 0 auto 36px auto;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
}

.vtipz-checkout-step {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.vtipz-step-num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    background: #E2E8F0;
    color: #64748B;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    transition: all 0.3s ease;
}

.vtipz-step-info {
    display: flex;
    flex-direction: column;
}

.vtipz-step-title {
    font-size: 14px;
    font-weight: 700;
    color: #64748B;
    line-height: 1.2;
    white-space: nowrap;
}

.step-title-short {
    display: none;
}

.step-title-full {
    display: inline;
}

.vtipz-step-desc {
    font-size: 11px;
    color: #94A3B8;
    white-space: nowrap;
}

.vtipz-checkout-step.is-active .vtipz-step-num {
    background: #0E4E85;
    color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(14, 78, 133, 0.15);
}

.vtipz-checkout-step.is-active .vtipz-step-title {
    color: #0E4E85;
}

.vtipz-checkout-step.is-completed .vtipz-step-num {
    background: #16A34A;
    color: #FFFFFF;
}

.vtipz-checkout-step.is-completed .vtipz-step-title {
    color: #16A34A;
}

.vtipz-step-divider {
    flex: 1 1 0%;
    height: 2px;
    background: #CBD5E1;
    margin: 0 16px;
    min-width: 30px;
    transition: background 0.3s ease;
}

.vtipz-step-divider.is-completed {
    background: #16A34A;
}

/* ==========================================================================
   2. LƯỚI 2 CỘT CHECKOUT
   ========================================================================== */
.vtipz-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 991px) {
    .vtipz-checkout-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Thẻ Card nội dung */
.vtipz-checkout-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(14, 78, 133, 0.04);
    margin-bottom: 24px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.vtipz-checkout-card:hover {
    box-shadow: 0 4px 18px rgba(14, 78, 133, 0.06);
}

.vtipz-card-header {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #F1F5F9;
    background: #FFFFFF;
}

.vtipz-card-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 14px;
}

.vtipz-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #E8F2FB;
    color: #0E4E85;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.h-none{
    min-height: 0px !important;
    height: auto !important;
}
.vtipz-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #0E4E85;
    margin: 0;
    line-height: 1.3;
}
.ml-3{
    margin-left: 3px;
}
.vtipz-card-subtitle {
    font-size: 13px;
    color: #64748B;
    margin: 3px 0 0 0;
    line-height: 1.3;
}

.vtipz-card-body {
    padding: 24px;
}

/* ==========================================================================
   3. STYLING CÁC TRƯỜNG FORM WOOCOMMERCE & DEVVN ADDRESS (CANH CHUẨN 100%)
   ========================================================================== */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px 20px !important;
    align-items: start !important;
}

.woocommerce-billing-fields__field-wrapper .form-row,
.woocommerce-shipping-fields__field-wrapper .form-row {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
    clear: none !important;
}

#billing_first_name_field { grid-column: span 1 !important; }
#billing_last_name_field  { grid-column: span 1 !important; }
#billing_phone_field      { grid-column: span 1 !important; }
#billing_email_field      { grid-column: span 1 !important; }
#billing_state_field      { grid-column: span 1 !important; }
#billing_city_field       { grid-column: span 1 !important; }
#billing_address_2_field  { grid-column: span 1 !important; }
#billing_address_1_field  { grid-column: span 2 !important; }

/* Ẩn các trường không cần thiết để form gọn gàng chuẩn TMĐT Việt Nam */
#billing_country_field,
#billing_postcode_field,
#billing_company_field,
.vtipz-shipping-toggle-wrapper .woocommerce-additional-fields {
    display: none !important;
}

@media (max-width: 640px) {
    .woocommerce-billing-fields__field-wrapper {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    #billing_first_name_field,
    #billing_last_name_field,
    #billing_phone_field,
    #billing_email_field,
    #billing_state_field,
    #billing_city_field,
    #billing_address_2_field,
    #billing_address_1_field {
        grid-column: span 1 !important;
    }
}

/* Nhãn trường nhập liệu đồng nhất */
.woocommerce-checkout label,
.vtipz-form-field label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
    line-height: 1.4 !important;
}

.woocommerce-checkout label .required,
.vtipz-form-field label .required {
    color: #E02B2B !important;
    text-decoration: none !important;
}

/* ĐỒNG NHẤT 100% CHIỀU CAO, LINE-HEIGHT, PADDING CHO INPUT & SELECT2 */
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout select,
.vtipz-vat-fields-grid input[type="text"],
.vtipz-vat-fields-grid input[type="email"] {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    line-height: 44px !important;
    padding: 0 14px !important;
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1E293B !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.woocommerce-checkout textarea {
    width: 100% !important;
    min-height: 80px !important;
    padding: 10px 14px !important;
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #1E293B !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-shadow: none !important;
    resize: vertical;
}

/* CĂN CHỈNH SELECT2 CỦA DEVVN TRÙNG KHỚP 100% VỚI INPUT */
.woocommerce-checkout .select2-container {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout .select2-container .select2-selection--single {
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background-color: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    outline: none !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px !important;
    padding: 0 !important;
    color: #1E293B !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94A3B8 !important;
    line-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    height: 44px !important;
    font-size: 14px !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
    top: 0 !important;
    right: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #64748B transparent transparent transparent !important;
    border-width: 5px 4px 0 4px !important;
}

.woocommerce-checkout input:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout .select2-container--default.select2-container--open .select2-selection--single,
.woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #0E4E85 !important;
    box-shadow: 0 0 0 3px rgba(14, 78, 133, 0.12) !important;
}

.select2-dropdown {
    border: 1px solid #0E4E85 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    z-index: 99999 !important;
}

/* ==========================================================================
   4. THẺ XUẤT HÓA ĐƠN VAT DOANH NGHIỆP (BỎ BORDER-LEFT, CHUẨN ĐẸP)
   ========================================================================== */
.vtipz-vat-card {
    /* ĐỒNG NHẤT VỚI CÁC CARD KHÁC, KHÔNG DÙNG BORDER-LEFT */
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    background: #FFFFFF !important;
}

.vtipz-vat-card-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 18px 24px !important;
    border-bottom: 1px solid #F1F5F9 !important;
    background: #FFFFFF !important;
}

.vtipz-vat-header-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.vtipz-vat-toggle-action {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.vtipz-toggle-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vtipz-toggle-switch {
    position: relative;
    width: 46px;
    height: 26px;
    background: #CBD5E1;
    border-radius: 13px;
    display: inline-block;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.vtipz-toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFFFFF;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.vtipz-toggle-checkbox:checked + .vtipz-toggle-switch {
    background: #F26B21;
}

.vtipz-toggle-checkbox:checked + .vtipz-toggle-switch::after {
    transform: translateX(20px);
}

.vtipz-vat-fields-container {
    padding: 20px 24px 24px 24px;
    border-top: 1px dashed #E2E8F0;
    background: #FAFCFE;
}

.vtipz-vat-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
}

.vtipz-field-full {
    grid-column: span 2;
}

@keyframes vtipzFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   5. CỘT PHẢI: TÓM TẮT ĐƠN HÀNG (STICKY) & REVIEW ORDER
   ========================================================================== */
.vtipz-sticky-order-summary {
    position: sticky;
    top: 90px;
}

/* Danh sách sản phẩm rút gọn */
.vtipz-checkout-products-list {
    max-height: 260px;
    overflow-y: auto;
    margin-bottom: 18px;
    padding-right: 6px;
}

.vtipz-checkout-products-list::-webkit-scrollbar {
    width: 4px;
}

.vtipz-checkout-products-list::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

.vtipz-checkout-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #F1F5F9;
}

.vtipz-checkout-product-item:last-child {
    border-bottom: none;
}

.vtipz-item-thumb {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    flex-shrink: 0;
    background: #F8FAFC;
}

.vtipz-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vtipz-item-qty-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #0E4E85;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
}

.vtipz-item-info {
    flex: 1;
    min-width: 0;
}

.vtipz-item-name {
    font-size: 13px;
    font-weight: 700;
    color: #1E293B;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vtipz-item-total {
    font-size: 14px;
    font-weight: 700;
    color: #0E4E85;
    white-space: nowrap;
}

/* Bảng tổng kết chi phí */
.vtipz-totals-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 20px 0;
    border-top: 1px solid #E2E8F0;
    padding-top: 12px;
}

.vtipz-totals-table tr th,
.vtipz-totals-table tr td {
    padding: 8px 0;
    font-size: 14px;
    border: none;
}

.vtipz-totals-table tr th {
    color: #64748B;
    font-weight: 500;
}

.vtipz-totals-table tr.cart-discount td {
    color: #16A34A;
    font-weight: 700;
}

.vtipz-totals-table tr.order-total {
    border-top: 1px solid #CBD5E1;
    border-bottom: 1px solid #CBD5E1;
}

.vtipz-totals-table tr.order-total th {
    font-size: 16px;
    font-weight: 800;
    color: #0E4E85;
    padding: 14px 0;
}

.vtipz-totals-table tr.order-total td {
    font-size: 20px;
    font-weight: 800;
    color: #F26B21;
    padding: 14px 0;
}

/* ==========================================================================
   6. PHƯƠNG THỨC VẬN CHUYỂN & THANH TOÁN (CĂN CHUẨN LOGO VIETQR)
   ========================================================================== */
#shipping_method {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

#shipping_method li {
    padding: 10px 14px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

#shipping_method li input[type="radio"] {
    accent-color: #0E4E85;
}

/* Danh sách cổng thanh toán (Payment Methods) */
.woocommerce-checkout-payment {
    background: transparent !important;
    padding: 0 !important;
}

ul.wc_payment_methods {
    list-style: none;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    border: none !important;
}

ul.wc_payment_methods li.wc_payment_method {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
    padding: 14px 16px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    display: block !important;
}

ul.wc_payment_methods li.wc_payment_method:hover {
    border-color: #0E4E85 !important;
    background: #F8FAFC !important;
}

ul.wc_payment_methods li.wc_payment_method > input[type="radio"] {
    accent-color: #0E4E85 !important;
    margin-right: 10px !important;
    transform: scale(1.15) !important;
    vertical-align: middle !important;
}

ul.wc_payment_methods li.wc_payment_method > label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0E4E85 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    margin: 0 !important;
}

ul.wc_payment_methods li.wc_payment_method img {
    height: 22px !important;
    width: auto !important;
    max-width: 80px !important;
    vertical-align: middle !important;
    display: inline-block !important;
    object-fit: contain !important;
}

div.payment_box {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    margin-top: 10px !important;
    font-size: 13px !important;
    color: #475569 !important;
    line-height: 1.5 !important;
    position: relative;
}

div.payment_box::before {
    display: none !important;
}

/* Khối điều khoản & Chính sách riêng tư (Bỏ padding, tinh chỉnh chữ thanh thoát, tinh tế) */
.form-row.place-order {
    padding: 0 !important;
    margin: 14px 0 0 0 !important;
    background: transparent !important;
    border: none !important;
    width: 100% !important;
    float: none !important;
}

.woocommerce-terms-and-conditions-wrapper {
    padding: 0 !important;
    margin: 0 0 14px 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.woocommerce-privacy-policy-text {
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-privacy-policy-text p {
    font-size: 12px !important;
    line-height: 1.6 !important;
    color: #64748B !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.woocommerce-privacy-policy-text p::before {
    content: "\f3ed"; /* FontAwesome fa-shield-halved */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #0E4E85;
    margin-right: 6px;
    font-size: 11px;
    vertical-align: middle;
}

.woocommerce-privacy-policy-text a.woocommerce-privacy-policy-link,
.woocommerce-privacy-policy-text a {
    color: #0E4E85 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
    transition: color 0.15s ease !important;
}

.woocommerce-privacy-policy-text a:hover {
    color: #F26B21 !important;
    text-decoration-color: #F26B21 !important;
}

/* Nút đặt hàng CTA */
#place_order,
.woocommerce-checkout #place_order {
    width: 100% !important;
    background: #F26B21 !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 16px 24px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(242, 107, 33, 0.3) !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

#place_order:hover,
.woocommerce-checkout #place_order:hover {
    background: #D85611 !important;
    box-shadow: 0 6px 20px rgba(242, 107, 33, 0.4) !important;
    transform: translateY(-1px);
}

/* Box cam kết & an tâm mua sắm */
.vtipz-checkout-trust-box {
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
    border-radius: 12px;
    padding: 16px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vtipz-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vtipz-trust-item i {
    font-size: 18px;
    color: #0E4E85;
    width: 22px;
    text-align: center;
}

.vtipz-trust-item strong {
    display: block;
    font-size: 13px;
    color: #1E293B;
}

.vtipz-trust-item span {
    font-size: 11px;
    color: #64748B;
}

/* ==========================================================================
   7. GIAO DIỆN TRANG THANK YOU (ORDER RECEIVED)
   ========================================================================== */
.vtipz-thankyou-page-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 0;
}

.vtipz-thankyou-success-header {
    text-align: center;
    margin-bottom: 30px;
}

.vtipz-success-circle-icon {
    width: 64px;
    height: 64px;
    background: #DCFCE7;
    color: #16A34A;
    border-radius: 50%;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.12);
    transition: all 0.3s ease;
}

.vtipz-success-circle-icon.is-awaiting {
    background: #EFF6FF;
    color: #0E4E85;
    box-shadow: 0 0 0 8px rgba(14, 78, 133, 0.12);
}

.vtipz-thankyou-title {
    font-size: 28px;
    font-weight: 800;
    color: #0E4E85;
    margin: 0 0 8px 0;
}

.vtipz-thankyou-desc {
    font-size: 15px;
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Thẻ tóm tắt đơn hàng (Khối Phương thức lớn hơn để chứa nhiều text) */
.vtipz-order-meta-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 18px 24px;
    display: grid;
    grid-template-columns: 1fr 1.05fr 1.95fr 1.15fr;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(14, 78, 133, 0.04);
}

.vtipz-order-meta-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.vtipz-order-meta-item.is-payment-method {
    padding: 8px 14px;
    background: #F8FAFC;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
}

.vtipz-order-meta-item.is-payment-method .payment-method-name {
    font-size: 13.5px;
    line-height: 1.45;
    color: #0E4E85;
    font-weight: 700;
}

.vtipz-meta-label {
    font-size: 12px;
    color: #64748B;
    margin-bottom: 4px;
}

.vtipz-meta-value {
    font-size: 15px;
    font-weight: 700;
    color: #1E293B;
}

.vtipz-meta-value.order-id {
    color: #0E4E85;
    font-family: monospace;
    font-size: 16.5px;
}

.vtipz-meta-value.total-price {
    color: #F26B21;
    font-size: 17px;
}

/* ==========================================================================
   7.0 KHỐI THANH TOÁN VIETQR & CỔNG THANH TOÁN (THANK YOU)
   ========================================================================== */
.vtipz-payment-method-box {
    background: #FFFFFF !important;
    border: 1px solid #CFE3F6 !important;
    border-radius: 16px !important;
    padding: 24px 28px !important;
    box-shadow: 0 4px 20px rgba(14, 78, 133, 0.05) !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 32px !important;
    margin: 0 0 24px 0 !important;
}

.vtipz-payment-method-box:empty {
    display: none !important;
}

/* 1. Cột trái: Quét mã QR */
.woocommerce-vietqr-qr-scan {
    flex: 0 0 270px !important;
    text-align: center !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.woocommerce-vietqr-qr-scan .wc-vietqr-bank-details-heading {
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: #0E4E85 !important;
    margin: 0 0 12px 0 !important;
    text-align: center !important;
    line-height: 1.3 !important;
}

.woocommerce-vietqr-qr-scan #qrcode {
    background: #F8FAFC !important;
    padding: 12px !important;
    border-radius: 12px !important;
    border: 1px solid #E2E8F0 !important;
    display: inline-block !important;
    box-shadow: 0 2px 10px rgba(14, 78, 133, 0.04) !important;
    margin: 0 auto !important;
    line-height: 0 !important;
}

.woocommerce-vietqr-qr-scan #qrcode img {
    width: 220px !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Nút tải ảnh QR trên mobile (nếu có) */
#downloadQR {
    margin-top: 12px !important;
}

#btnDownloadQR {
    border-radius: 8px !important;
    background: #0E4E85 !important;
    border: 1px solid #0E4E85 !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    transition: background 0.2s ease !important;
}

#btnDownloadQR:hover {
    background: #0A3A63 !important;
}

/* 2. Cột phải: Thông tin chuyển khoản */
.woocommerce-vietqr-bank-details {
    flex: 1 1 360px !important;
    text-align: left !important;
    margin: 0 !important;
}

.woocommerce-vietqr-bank-details .wc-vietqr-bank-details-heading {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #0E4E85 !important;
    margin: 0 0 12px 0 !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.woocommerce-vietqr-bank-details .wc-vietqr-bank-details-heading::before {
    content: "\f19c" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    color: #0E4E85 !important;
    background: #EFF6FF !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
}

/* Dòng nhắc nhở nội dung chuyển khoản */
.woocommerce-vietqr-bank-details h4 {
    background: transparent !important;
    border: none !important;
    color: #DC2626 !important;
    padding: 0 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    margin: 0 0 14px 0 !important;
    text-align: left !important;
    display: block !important;
}

.woocommerce-vietqr-bank-details h4 b,
.woocommerce-vietqr-bank-details h4 strong {
    color: #DC2626 !important;
    font-size: 14.5px !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-weight: 800 !important;
    font-family: inherit !important;
    display: inline !important;
}

/* Bảng thông tin tài khoản */
.woocommerce-vietqr-bank-details table.table,
.woocommerce-vietqr-bank-details table.table-bordered {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin: 0 !important;
    background: #FFFFFF !important;
}

.woocommerce-vietqr-bank-details table br {
    display: none !important;
}

.woocommerce-vietqr-bank-details table tr {
    border-bottom: 1px solid #F1F5F9 !important;
    background: transparent !important;
}

.woocommerce-vietqr-bank-details table tr:nth-child(even) {
    background: #F8FAFC !important;
}

.woocommerce-vietqr-bank-details table tr:last-child {
    border-bottom: none !important;
}

.woocommerce-vietqr-bank-details table td {
    padding: 10px 14px !important;
    font-size: 13.5px !important;
    line-height: 1.4 !important;
    border: none !important;
    border-bottom: 1px solid #F1F5F9 !important;
    vertical-align: middle !important;
}

.woocommerce-vietqr-bank-details table tr:last-child td {
    border-bottom: none !important;
}

.woocommerce-vietqr-bank-details table td.text-right,
.woocommerce-vietqr-bank-details table td:first-child {
    width: 34% !important;
    text-align: left !important;
    color: #64748B !important;
    font-weight: 500 !important;
    padding-left: 16px !important;
}

.woocommerce-vietqr-bank-details table td:first-child strong {
    color: #475569 !important;
    font-weight: 600 !important;
}

.woocommerce-vietqr-bank-details table td.text-left,
.woocommerce-vietqr-bank-details table td:last-child {
    width: 66% !important;
    text-align: left !important;
    color: #1E293B !important;
    font-weight: 600 !important;
}

.woocommerce-vietqr-bank-details table td:last-child span {
    color: #0F172A !important;
}

/* Hàng số tiền */
.woocommerce-vietqr-bank-details table tr:nth-child(4) td:last-child span {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #F26B21 !important;
}

.woocommerce-vietqr-bank-details table tr:nth-child(4) td:last-child span sup {
    font-size: 12px !important;
    color: #F26B21 !important;
}

/* Hàng nội dung chuyển khoản */
.woocommerce-vietqr-bank-details table tr:last-child td:last-child strong {
    display: inline-block !important;
    background: #EFF6FF !important;
    color: #0E4E85 !important;
    border: 1px dashed #93C5FD !important;
    padding: 3px 10px !important;
    border-radius: 6px !important;
    font-family: monospace !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
}

/* ==========================================================================
   7.0.1 NÚT XÁC NHẬN "TÔI ĐÃ THANH TOÁN" (VIETQR) & THÔNG BÁO CHO ADMIN
   ========================================================================== */
.vtipz-confirm-paid-container {
    flex: 1 1 100% !important;
    width: 100% !important;
    margin-top: 24px !important;
    padding-top: 24px !important;
    border-top: 1px dashed #CBD5E1 !important;
    text-align: center !important;
}

.vtipz-confirm-paid-action-box {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 14px !important;
    padding: 16px 22px !important;
    max-width: 820px !important;
    margin: 0 auto !important;
}

.vtipz-confirm-paid-intro {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1E293B !important;
    line-height: 1.5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    text-align: left !important;
    flex: 1 1 auto !important;
}

.vtipz-confirm-paid-intro i {
    color: #F26B21 !important;
    font-size: 18px !important;
    flex-shrink: 0 !important;
    background: #FFF7ED !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.vtipz-btn-confirm-paid {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #0E4E85 !important;
    color: #FFFFFF !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 12px 26px !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 14px rgba(14, 78, 133, 0.25) !important;
    transition: all 0.25s ease !important;
    outline: none !important;
}

.vtipz-btn-confirm-paid:hover {
    background: #0A3A63 !important;
    box-shadow: 0 6px 20px rgba(14, 78, 133, 0.35) !important;
    transform: translateY(-1px) !important;
}

.vtipz-btn-confirm-paid:active {
    transform: translateY(0) !important;
}

.vtipz-btn-confirm-paid.is-loading {
    opacity: 0.8 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.vtipz-paid-status-badge {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    background: #F0FDF4 !important;
    border: 1.5px solid #86EFAC !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    max-width: 620px !important;
    margin: 0 auto !important;
    text-align: left !important;
}

.vtipz-paid-badge-icon {
    font-size: 28px !important;
    color: #16A34A !important;
    flex-shrink: 0 !important;
}

.vtipz-paid-badge-content strong {
    display: block !important;
    font-size: 15px !important;
    color: #15803D !important;
    margin-bottom: 3px !important;
}

.vtipz-paid-badge-content p {
    margin: 0 !important;
    font-size: 13px !important;
    color: #374151 !important;
    line-height: 1.4 !important;
}

.vtipz-paid-alert.is-error {
    color: #DC2626 !important;
    font-size: 13px !important;
    background: #FEF2F2 !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    border: 1px solid #FECACA !important;
    margin-top: 6px !important;
}

@keyframes vtipzFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: vtipzFadeIn 0.35s ease forwards !important;
}

/* ==========================================================================
   7.1 THẺ ĐỊA CHỈ NHẬN HÀNG & THANH TOÁN (THANK YOU TOP)
   ========================================================================== */
.vtipz-addresses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.vtipz-twin-addresses-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 24px !important;
}

.vtipz-address-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 4px 14px rgba(14, 78, 133, 0.04);
    transition: box-shadow 0.2s ease;
}

.vtipz-address-card:hover {
    box-shadow: 0 6px 20px rgba(14, 78, 133, 0.07);
}

.vtipz-note-full-width {
    grid-column: 1 / -1 !important;
}

/* Ẩn hoàn toàn khối địa chỉ cũ ở dưới cùng trang order-received */
.woocommerce-order-received .woocommerce-customer-details {
    display: none !important;
}

.vtipz-address-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F1F5F9;
}

.vtipz-address-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #EFF6FF;
    color: #0E4E85;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.vtipz-address-icon.is-shipping {
    background: #FFF7ED;
    color: #EA580C;
}

.vtipz-address-icon.is-billing {
    background: #EFF6FF;
    color: #0E4E85;
}

.vtipz-address-icon.is-note {
    background: #FFF7ED;
    color: #EA580C;
}

.vtipz-address-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #0E4E85;
    margin: 0;
    line-height: 1.3;
}

.vtipz-address-customer-name {
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 8px;
}

.vtipz-address-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.vtipz-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
}

.vtipz-tag.is-phone {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.vtipz-tag.is-email {
    background: #F0F9FF;
    color: #0369A1;
    border: 1px solid #BAE6FD;
}

.vtipz-address-street {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.vtipz-address-street i {
    color: #94A3B8;
    margin-top: 3px;
    font-size: 13px;
}

.vtipz-note-quote {
    font-size: 13.5px;
    color: #475569;
    font-style: italic;
    line-height: 1.6;
    margin: 0;
    background: #F8FAFC;
    padding: 10px 14px;
    border-radius: 8px;
    border-left: 3px solid #F97316;
}

/* ==========================================================================
   7.2 BẢNG CHI TIẾT ĐƠN HÀNG (ORDER DETAILS RECEIPT)
   ========================================================================== */
.woocommerce-order-details,
.vtipz-order-details-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 16px rgba(14, 78, 133, 0.04) !important;
}

.vtipz-order-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #F1F5F9;
}

.vtipz-order-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #EFF6FF;
    color: #0E4E85;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.woocommerce-order-details__title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0E4E85 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

table.woocommerce-table--order-details {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: none !important;
    margin: 0 !important;
}

table.woocommerce-table--order-details thead tr {
    background: #F8FAFC !important;
}

table.woocommerce-table--order-details thead th {
    padding: 12px 16px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #64748B !important;
    border: none !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

table.woocommerce-table--order-details thead th:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

table.woocommerce-table--order-details thead th:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    text-align: right !important;
}

table.woocommerce-table--order-details tbody tr {
    border-bottom: 1px solid #F1F5F9 !important;
    transition: background-color 0.15s ease;
}

table.woocommerce-table--order-details tbody tr:hover {
    background-color: #FAFCFF;
}

table.woocommerce-table--order-details tbody td {
    padding: 16px !important;
    border: none !important;
    border-bottom: 1px solid #F1F5F9 !important;
    vertical-align: middle !important;
}

/* Cột thông tin sản phẩm */
.vtipz-order-product-flex {
    display: flex;
    align-items: center;
    gap: 14px;
}

.vtipz-order-product-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    flex-shrink: 0;
    background: #F8FAFC;
}

.vtipz-order-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vtipz-order-product-meta {
    flex: 1;
    min-width: 0;
}

.vtipz-order-product-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.vtipz-order-product-title {
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
    line-height: 1.45;
    text-decoration: none;
    transition: color 0.2s;
}

.vtipz-order-product-title:hover {
    color: #0E4E85;
}

.vtipz-order-product-mobile-pricing {
    display: none !important;
}

.vtipz-order-item-meta-pills,
.wc-item-meta {
    margin: 4px 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

.vtipz-order-item-meta-pills .vtipz-wc-meta-item,
.vtipz-order-item-meta-pills li,
.wc-item-meta li {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    color: #64748B !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.vtipz-order-item-meta-pills strong,
.wc-item-meta strong,
.wc-item-meta .wc-item-meta-label {
    font-weight: 500 !important;
    color: #64748B !important;
}

.vtipz-order-item-meta-pills p,
.wc-item-meta p,
.vtipz-order-item-meta-pills span {
    display: inline !important;
    margin: 0 !important;
    color: #1E293B !important;
    font-weight: 600 !important;
}

.vtipz-order-product-qty-badge,
table.woocommerce-table--order-details .product-quantity {
    display: inline-flex !important;
    align-items: center !important;
    background: #F1F5F9 !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 2px 7px !important;
    border-radius: 6px !important;
    border: 1px solid #E2E8F0 !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

.vtipz-order-row-subtotal,
table.woocommerce-table--order-details tbody td.product-total {
    text-align: right !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #0E4E85 !important;
    white-space: nowrap !important;
}

/* Footer tổng kết đơn hàng */
table.woocommerce-table--order-details tfoot tr th,
table.woocommerce-table--order-details tfoot tr td {
    padding: 10px 16px !important;
    border: none !important;
    border-top: 1px solid #F1F5F9 !important;
    font-size: 14px !important;
}

table.woocommerce-table--order-details tfoot tr th {
    font-weight: 500 !important;
    color: #64748B !important;
    text-align: left !important;
}

table.woocommerce-table--order-details tfoot tr td {
    font-weight: 600 !important;
    color: #1E293B !important;
    text-align: right !important;
}

/* Dòng giảm giá */
table.woocommerce-table--order-details tfoot tr.is-discount-total th,
table.woocommerce-table--order-details tfoot tr.is-discount-total td {
    color: #16A34A !important;
    font-weight: 700 !important;
}

/* Dòng tổng cộng (Grand Total) */
table.woocommerce-table--order-details tfoot tr.is-grand-total {
    background: #FFF7ED !important;
    border-top: 2px dashed #FDBA74 !important;
    border-bottom: 2px dashed #FDBA74 !important;
}

table.woocommerce-table--order-details tfoot tr.is-grand-total th {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0E4E85 !important;
    padding: 14px 16px !important;
}

table.woocommerce-table--order-details tfoot tr.is-grand-total td {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #F26B21 !important;
    padding: 14px 16px !important;
}

/* ==========================================================================
   7.3 ĐỊA CHỈ THANH TOÁN & GIAO HÀNG (CUSTOMER DETAILS TWIN CARDS)
   ========================================================================== */
.woocommerce-customer-details,
.vtipz-customer-details-section {
    margin-top: 24px !important;
    margin-bottom: 30px !important;
}

.vtipz-customer-addresses-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
}

.vtipz-customer-addresses-grid.is-single-col {
    grid-template-columns: 1fr !important;
}

.vtipz-address-col-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 14px !important;
    padding: 20px 24px !important;
    box-shadow: 0 4px 14px rgba(14, 78, 133, 0.04) !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}

.vtipz-address-col-card:hover {
    box-shadow: 0 6px 20px rgba(14, 78, 133, 0.07) !important;
}

.vtipz-col-card-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #F1F5F9 !important;
}

.vtipz-col-card-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
}

.vtipz-col-card-icon.is-billing {
    background: #EFF6FF !important;
    color: #0E4E85 !important;
}

.vtipz-col-card-icon.is-shipping {
    background: #FFF7ED !important;
    color: #EA580C !important;
}

.vtipz-col-card-title {
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: #0E4E85 !important;
    margin: 0 !important;
}

.vtipz-card-person-name {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    margin-bottom: 8px !important;
}

.vtipz-card-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
}

.vtipz-card-address-line {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    font-size: 14px !important;
    color: #475569 !important;
    line-height: 1.5 !important;
}

.vtipz-card-address-line i {
    color: #94A3B8 !important;
    margin-top: 3px !important;
    font-size: 13px !important;
}

/* Fallback WooCommerce core columns styling nếu template override chưa load */
.woocommerce-columns--addresses {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
}

.woocommerce-column {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 14px !important;
    padding: 20px 24px !important;
    box-shadow: 0 4px 14px rgba(14, 78, 133, 0.04) !important;
}

.woocommerce-column__title {
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: #0E4E85 !important;
    margin: 0 0 14px 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #F1F5F9 !important;
}

.woocommerce-column address {
    font-style: normal !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
}

/* Nút điều hướng chân trang Thank You */
.vtipz-thankyou-footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.vtipz-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0E4E85;
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.vtipz-btn-primary:hover {
    background: #093760;
    color: #FFFFFF;
}

.vtipz-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    color: #0E4E85;
    border: 1px solid #CBD5E1;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.vtipz-btn-secondary:hover {
    background: #F1F5F9;
    border-color: #0E4E85;
}

/* ==========================================================================
   7.4 MOBILE RESPONSIVE CHUYÊN SÂU CHO TRANG ORDER RECEIVED & CHECKOUT (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* 0. Thanh tiến trình đặt hàng trên Mobile (Giỏ hàng -> Thanh toán -> Hoàn tất) */
    .vtipz-checkout-steps-wrapper {
        padding: 0 8px !important;
        margin: 0 auto 20px auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .vtipz-checkout-step {
        gap: 6px !important;
        flex-shrink: 0 !important;
    }

    .vtipz-step-num {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        font-size: 12px !important;
        flex-shrink: 0 !important;
    }

    .vtipz-step-title {
        font-size: 12px !important;
        white-space: nowrap !important;
        line-height: 1.2 !important;
    }

    /* Ẩn dòng mô tả phụ trên mobile để không làm vỡ / ép méo dòng */
    .vtipz-step-desc {
        display: none !important;
    }

    /* Hiển thị chữ ngắn gọn 'Thanh toán' thay vì 'Thông tin thanh toán' */
    .step-title-full {
        display: none !important;
    }

    .step-title-short {
        display: inline !important;
    }

    .vtipz-step-divider {
        margin: 0 8px !important;
        min-width: 14px !important;
        flex: 1 1 0% !important;
    }

    /* 1. Bao bọc toàn trang Thank You - Chống tràn ngang */
    .vtipz-thankyou-page-wrapper {
        padding: 12px 12px 36px 12px !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .vtipz-thankyou-page-wrapper * {
        box-sizing: border-box !important;
    }

    /* 2. Tiêu đề thành công */
    .vtipz-thankyou-success-header {
        margin-bottom: 18px !important;
    }
    .vtipz-success-circle-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }
    .vtipz-thankyou-title {
        font-size: 21px !important;
        margin-bottom: 6px !important;
    }
    .vtipz-thankyou-desc {
        font-size: 13px !important;
        line-height: 1.5 !important;
        padding: 0 4px !important;
    }

    /* 3. Thẻ tóm tắt đơn hàng 4 chỉ số (Phương thức chiếm trọn dòng để text nhiều hiển thị thoáng) */
    .vtipz-order-meta-card {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px 8px !important;
        padding: 14px 12px !important;
        border-radius: 12px !important;
        margin-bottom: 16px !important;
    }
    .vtipz-meta-label {
        font-size: 11px !important;
        margin-bottom: 2px !important;
    }
    .vtipz-meta-value {
        font-size: 13px !important;
        word-break: break-word !important;
    }
    .vtipz-meta-value.order-id {
        font-size: 14.5px !important;
    }
    .vtipz-order-meta-item.is-payment-method {
        grid-column: 1 / -1 !important;
        padding: 10px 12px !important;
        background: #F8FAFC !important;
        border-radius: 8px !important;
        border: 1px solid #E2E8F0 !important;
    }
    .vtipz-order-meta-item.is-payment-method .payment-method-name {
        font-size: 13px !important;
        line-height: 1.4 !important;
        color: #0E4E85 !important;
    }
    .vtipz-order-meta-item.is-total-price {
        grid-column: 1 / -1 !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: #FFF7ED !important;
        padding: 10px 12px !important;
        border-radius: 8px !important;
        border: 1px dashed #FDBA74 !important;
    }
    .vtipz-order-meta-item.is-total-price .vtipz-meta-label {
        margin-bottom: 0 !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #9A3412 !important;
    }
    .vtipz-order-meta-item.is-total-price .vtipz-meta-value.total-price {
        font-size: 16px !important;
        color: #F26B21 !important;
    }

    /* 4. Khối VietQR & Thông tin tài khoản */
    .vtipz-payment-method-box {
        flex-direction: column !important;
        padding: 16px 12px !important;
        gap: 16px !important;
        border-radius: 14px !important;
        margin-bottom: 16px !important;
        width: 100% !important;
    }

    .woocommerce-vietqr-qr-scan,
    .woocommerce-vietqr-bank-details {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .woocommerce-vietqr-qr-scan .wc-vietqr-bank-details-heading {
        font-size: 14.5px !important;
        margin-bottom: 8px !important;
    }

    .woocommerce-vietqr-qr-scan #qrcode {
        padding: 10px !important;
        border-radius: 10px !important;
        max-width: 100% !important;
    }

    .woocommerce-vietqr-qr-scan #qrcode img {
        width: 190px !important;
        max-width: 100% !important;
        height: auto !important;
    }

    /* Fix nút download QR của plugin không được đè cố định đáy màn hình mobile */
    #downloadQR {
        position: static !important;
        display: block !important;
        width: 100% !important;
        max-width: 220px !important;
        margin: 10px auto 0 auto !important;
        z-index: 10 !important;
    }

    #btnDownloadQR {
        border-radius: 8px !important;
        width: 100% !important;
        padding: 8px 12px !important;
        font-size: 12.5px !important;
        margin: 0 !important;
    }

    .woocommerce-vietqr-bank-details .wc-vietqr-bank-details-heading {
        font-size: 15.5px !important;
        margin-bottom: 8px !important;
    }

    .woocommerce-vietqr-bank-details h4 {
        font-size: 12.5px !important;
        line-height: 1.45 !important;
        margin-bottom: 10px !important;
        text-align: left !important;
    }

    .woocommerce-vietqr-bank-details table.table,
    .woocommerce-vietqr-bank-details table.table-bordered {
        width: 100% !important;
        table-layout: fixed !important;
        border-radius: 10px !important;
    }

    .woocommerce-vietqr-bank-details table td {
        padding: 8px 8px !important;
        font-size: 12px !important;
        word-break: break-word !important;
    }

    .woocommerce-vietqr-bank-details table td.width-column-25,
    .woocommerce-vietqr-bank-details table td.text-right,
    .woocommerce-vietqr-bank-details table td:first-child {
        width: 40% !important;
        padding-left: 8px !important;
        font-size: 12px !important;
    }

    .woocommerce-vietqr-bank-details table td.payment-instruction,
    .woocommerce-vietqr-bank-details table td.text-left,
    .woocommerce-vietqr-bank-details table td:last-child {
        width: 60% !important;
        font-size: 12px !important;
    }

    .woocommerce-vietqr-bank-details table tr:nth-child(4) td:last-child span {
        font-size: 14px !important;
    }

    .woocommerce-vietqr-bank-details table tr:last-child td:last-child strong {
        font-size: 13px !important;
        padding: 2px 6px !important;
        word-break: break-all !important;
    }

    /* Nút xác nhận 'Tôi đã thanh toán' trên mobile */
    .vtipz-confirm-paid-container {
        margin-top: 14px !important;
        padding-top: 14px !important;
    }

    .vtipz-confirm-paid-action-box {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 14px !important;
        gap: 12px !important;
        text-align: center !important;
    }

    .vtipz-btn-confirm-paid {
        width: 100% !important;
        padding: 12px 18px !important;
        font-size: 14.5px !important;
        justify-content: center !important;
    }

    .vtipz-paid-status-badge {
        flex-direction: column !important;
        text-align: center !important;
        gap: 8px !important;
        padding: 12px 14px !important;
    }

    .vtipz-confirm-paid-intro {
        font-size: 13px !important;
        text-align: center !important;
        flex-direction: column !important;
        gap: 6px !important;
    }

    .vtipz-confirm-paid-intro i {
        margin: 0 auto !important;
    }

    /* 5. Hai thẻ Địa chỉ nhận hàng & Địa chỉ thanh toán */
    .vtipz-twin-addresses-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-bottom: 16px !important;
    }

    .vtipz-address-card {
        padding: 14px 12px !important;
        border-radius: 12px !important;
    }

    .vtipz-address-header {
        margin-bottom: 8px !important;
        padding-bottom: 8px !important;
    }

    .vtipz-address-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 13px !important;
    }

    .vtipz-address-title {
        font-size: 14px !important;
    }

    .vtipz-address-customer-name {
        font-size: 14.5px !important;
        margin-bottom: 6px !important;
    }

    .vtipz-address-tags {
        gap: 6px !important;
        margin-bottom: 8px !important;
    }

    .vtipz-tag {
        font-size: 11.5px !important;
        padding: 2px 7px !important;
    }

    .vtipz-address-street {
        font-size: 12.5px !important;
        line-height: 1.45 !important;
        word-break: break-word !important;
    }

    /* 6. Bảng Chi tiết đơn hàng */
    .woocommerce-order-details,
    .vtipz-order-details-card {
        padding: 16px 12px !important;
        border-radius: 14px !important;
        margin-bottom: 16px !important;
        overflow-x: hidden !important;
        background: #FFFFFF !important;
        border: 1px solid #E2E8F0 !important;
    }

    .vtipz-order-card-header {
        margin-bottom: 12px !important;
        padding-bottom: 10px !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        border-bottom: 1px solid #F1F5F9 !important;
    }

    .vtipz-order-card-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
    }

    .woocommerce-order-details__title {
        font-size: 16px !important;
        font-weight: 800 !important;
        color: #0E4E85 !important;
    }

    /* Ẩn tiêu đề cột bảng cứng nhắc trên mobile */
    table.woocommerce-table--order-details thead {
        display: none !important;
    }

    table.woocommerce-table--order-details {
        display: block !important;
        width: 100% !important;
        border: none !important;
        margin: 0 !important;
    }

    table.woocommerce-table--order-details tbody {
        display: block !important;
        width: 100% !important;
    }

    table.woocommerce-table--order-details tbody tr.vtipz-order-table-item {
        display: block !important;
        width: 100% !important;
        padding: 14px 0 !important;
        border: none !important;
        border-bottom: 1px solid #F1F5F9 !important;
    }

    table.woocommerce-table--order-details tbody tr.vtipz-order-table-item:last-child {
        border-bottom: 1px solid #E2E8F0 !important;
    }

    table.woocommerce-table--order-details tbody td.vtipz-product-name-col {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
    }

    /* Ẩn cột giá bên phải của desktop để tránh bị chèn ép diện tích */
    table.woocommerce-table--order-details tbody td.vtipz-product-total-col {
        display: none !important;
    }

    .vtipz-order-product-qty-badge.is-desktop-only {
        display: none !important;
    }

    .vtipz-order-product-flex {
        display: flex !important;
        gap: 12px !important;
        align-items: flex-start !important;
        width: 100% !important;
    }

    .vtipz-order-product-thumb {
        width: 58px !important;
        height: 58px !important;
        border-radius: 10px !important;
        border: 1px solid #E2E8F0 !important;
        background: #F8FAFC !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
    }

    .vtipz-order-product-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .vtipz-order-product-meta {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
    }

    .vtipz-order-product-title-wrap {
        display: block !important;
        width: 100% !important;
        margin-bottom: 2px !important;
    }

    .vtipz-order-product-title {
        font-size: 13.5px !important;
        font-weight: 600 !important;
        line-height: 1.45 !important;
        color: #0F172A !important;
        word-break: break-word !important;
        display: block !important;
    }

    /* Hiển thị Giá & Số lượng thành 1 hàng ngang thông thoáng ở đáy mỗi item */
    .vtipz-order-product-mobile-pricing {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-top: 6px !important;
        padding-top: 4px !important;
        width: 100% !important;
    }

    .vtipz-mobile-qty-pill {
        font-size: 12px !important;
        color: #64748B !important;
        background: #F1F5F9 !important;
        border: 1px solid #E2E8F0 !important;
        padding: 2px 8px !important;
        border-radius: 6px !important;
        display: inline-flex !important;
        align-items: center !important;
        font-weight: 500 !important;
    }

    .vtipz-mobile-qty-pill strong {
        color: #0E4E85 !important;
        font-weight: 700 !important;
        margin-left: 2px !important;
    }

    .vtipz-mobile-subtotal-val {
        font-size: 15px !important;
        font-weight: 800 !important;
        color: #0E4E85 !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

    /* Bảng tổng kết chi phí chân trang trên mobile */
    table.woocommerce-table--order-details tfoot {
        display: block !important;
        width: 100% !important;
        margin-top: 10px !important;
        padding-top: 4px !important;
    }

    table.woocommerce-table--order-details tfoot tr {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 9px 0 !important;
        border: none !important;
        border-bottom: 1px dashed #E2E8F0 !important;
    }

    table.woocommerce-table--order-details tfoot tr th {
        font-size: 13px !important;
        font-weight: 500 !important;
        color: #64748B !important;
        padding: 0 !important;
        border: none !important;
        text-align: left !important;
    }

    table.woocommerce-table--order-details tfoot tr td {
        font-size: 13.5px !important;
        font-weight: 600 !important;
        color: #1E293B !important;
        padding: 0 !important;
        border: none !important;
        text-align: right !important;
    }

    table.woocommerce-table--order-details tfoot tr.is-grand-total {
        border-top: 2px solid #0E4E85 !important;
        border-bottom: none !important;
        padding: 12px 0 4px !important;
        margin-top: 6px !important;
    }

    table.woocommerce-table--order-details tfoot tr.is-grand-total th {
        font-size: 15px !important;
        font-weight: 800 !important;
        color: #0E4E85 !important;
    }

    table.woocommerce-table--order-details tfoot tr.is-grand-total td {
        font-size: 18px !important;
        font-weight: 800 !important;
        color: #F26B21 !important;
    }

    /* 7. Nút điều hướng chân trang */
    .vtipz-thankyou-footer-nav {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        margin-top: 14px !important;
    }

    .vtipz-btn-primary,
    .vtipz-btn-secondary {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 16px !important;
        font-size: 13.5px !important;
    }
}

@media (max-width: 380px) {
    .vtipz-checkout-steps-wrapper {
        padding: 0 4px !important;
    }
    .vtipz-checkout-step {
        gap: 4px !important;
    }
    .vtipz-step-num {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
        font-size: 11px !important;
    }
    .vtipz-step-title {
        font-size: 11px !important;
    }
    .vtipz-step-divider {
        margin: 0 4px !important;
        min-width: 10px !important;
    }
}

/* Thẻ giỏ hàng rỗng */
.vtipz-checkout-empty-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    max-width: 540px;
    margin: 40px auto;
    box-shadow: 0 4px 20px rgba(14, 78, 133, 0.05);
}

.vtipz-empty-icon {
    width: 72px;
    height: 72px;
    background: #F1F5F9;
    color: #94A3B8;
    border-radius: 50%;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.vtipz-checkout-empty-card h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0E4E85;
    margin: 0 0 10px 0;
}

.vtipz-checkout-empty-card p {
    font-size: 14px;
    color: #64748B;
    margin: 0 0 24px 0;
}

/* ==========================================================================
   TOAST NOTIFICATION CHO LỖI CHECKOUT (TRÁNH PHÁ VỠ LƯỚI 2 CỘT)
   ========================================================================== */
.vtipz-checkout-grid > .woocommerce-NoticeGroup,
.woocommerce-NoticeGroup-checkout,
.woocommerce-NoticeGroup-updateOrderReview {
    position: fixed !important;
    top: 32px !important;
    right: 32px !important;
    z-index: 999999 !important;
    max-width: 460px !important;
    width: calc(100vw - 64px) !important;
    margin: 0 !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(220, 38, 38, 0.12) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    animation: vtipzToastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes vtipzToastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.woocommerce-NoticeGroup-checkout .woocommerce-error,
.woocommerce-NoticeGroup-updateOrderReview .woocommerce-error {
    background: #FFFFFF !important;
    border: 1px solid #FECACA !important;
    border-left: 5px solid #EF4444 !important;
    border-radius: 12px !important;
    padding: 16px 40px 16px 46px !important;
    margin: 0 !important;
    position: relative !important;
    color: #1F2937 !important;
    box-shadow: none !important;
}

.woocommerce-NoticeGroup-checkout .woocommerce-error::before,
.woocommerce-NoticeGroup-updateOrderReview .woocommerce-error::before {
    content: "\f06a" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    position: absolute !important;
    left: 16px !important;
    top: 17px !important;
    color: #EF4444 !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

.woocommerce-NoticeGroup-checkout .woocommerce-error li,
.woocommerce-NoticeGroup-updateOrderReview .woocommerce-error li {
    list-style: none !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    color: #374151 !important;
    margin-bottom: 6px !important;
    padding-left: 0 !important;
}

.woocommerce-NoticeGroup-checkout .woocommerce-error li:last-child,
.woocommerce-NoticeGroup-updateOrderReview .woocommerce-error li:last-child {
    margin-bottom: 0 !important;
}

.woocommerce-NoticeGroup-checkout .woocommerce-error li strong,
.woocommerce-NoticeGroup-updateOrderReview .woocommerce-error li strong {
    color: #991B1B !important;
}

/* Nút tắt Toast thông báo */
.vtipz-toast-close {
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    background: transparent !important;
    border: none !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #9CA3AF !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
}

.vtipz-toast-close:hover {
    color: #111827 !important;
    background: #F3F4F6 !important;
}

/* Ẩn dòng chữ đỏ làm phình form, chỉ tô viền đỏ tinh tế */
.checkout-inline-error-message {
    display: none !important;
}

.woocommerce-invalid input[type="text"],
.woocommerce-invalid input[type="email"],
.woocommerce-invalid input[type="tel"],
.woocommerce-invalid select,
.woocommerce-invalid .select2-container--default .select2-selection--single {
    border-color: #EF4444 !important;
    background-color: #FFF5F5 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

@media (max-width: 640px) {
    .vtipz-checkout-grid > .woocommerce-NoticeGroup,
    .woocommerce-NoticeGroup-checkout,
    .woocommerce-NoticeGroup-updateOrderReview {
        top: 16px !important;
        right: 16px !important;
        left: 16px !important;
        width: auto !important;
        max-width: calc(100vw - 32px) !important;
    }
}

/* ==========================================================================
   7.5 MOBILE & TABLET RESPONSIVE CHUYÊN BIỆT CHO TRANG THANH TOÁN (/thanh-toan/)
   XÓA BỎ HOÀN TOÀN TRÀN VIỀN / HỞ TRẮNG / SCROLL NGANG TRÊN THIẾT BỊ DI ĐỘNG
   ========================================================================== */

/* 1. Containment toàn diện cho toàn trang Checkout */
.vtipz-checkout-page {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.vtipz-checkout-form-container,
.vtipz-checkout-grid {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 2. Medium Tablets (<= 991px) */
@media (max-width: 991px) {
    .vtipz-checkout-page {
        padding: 24px 0 48px 0 !important;
        overflow-x: hidden !important;
    }

    .vtipz-checkout-grid {
        grid-template-columns: 100% !important;
        gap: 20px !important;
    }

    .vtipz-checkout-left-col,
    .vtipz-checkout-right-col {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .vtipz-sticky-order-summary {
        position: static !important;
        top: auto !important;
        width: 100% !important;
    }

    .vtipz-checkout-card {
        margin-bottom: 20px !important;
        border-radius: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .vtipz-vat-fields-grid {
        gap: 14px 16px;
    }
}

/* 3. Small Tablets & Landscape Mobile (<= 768px) */
@media (max-width: 768px) {
    .vtipz-checkout-page {
        padding: 16px 0 36px 0 !important;
        overflow-x: hidden !important;
    }

    /* Thanh chỉ báo tiến trình đặt hàng - Co giãn mượt 100% */
    .vtipz-checkout-steps-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 4px !important;
        margin: 0 auto 20px auto !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .vtipz-checkout-step {
        gap: 6px !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .vtipz-step-num {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        font-size: 12px !important;
        flex-shrink: 0 !important;
    }

    .vtipz-step-info {
        min-width: 0 !important;
        flex-shrink: 1 !important;
    }

    .vtipz-step-title {
        font-size: 12px !important;
        white-space: nowrap !important;
        line-height: 1.2 !important;
    }

    .vtipz-step-desc,
    .step-title-full {
        display: none !important;
    }

    .step-title-short {
        display: inline !important;
    }

    .vtipz-step-divider {
        margin: 0 6px !important;
        min-width: 8px !important;
        flex: 1 1 8px !important;
        height: 2px !important;
    }

    /* Khối thông báo ưu đãi / coupon toggle */
    .woocommerce-form-coupon-toggle,
    .woocommerce-info,
    form.checkout_coupon {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        word-break: break-word !important;
    }

    .woocommerce-info {
        padding: 12px 14px 12px 42px !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
        border-radius: 10px !important;
        margin-bottom: 16px !important;
    }

    .vtipz-checkout-grid {
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .vtipz-checkout-left-col,
    .vtipz-checkout-right-col {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Thẻ Card */
    .vtipz-checkout-card {
        border-radius: 12px !important;
        margin-bottom: 16px !important;
        box-shadow: 0 2px 8px rgba(14, 78, 133, 0.04) !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .vtipz-card-header {
        padding: 14px 16px !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
    }

    .vtipz-card-header > div:last-child {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .vtipz-card-icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
    }

    .vtipz-card-title {
        font-size: 15px !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
    }

    .vtipz-card-subtitle {
        font-size: 12px !important;
        margin-top: 2px !important;
        line-height: 1.35 !important;
        word-break: break-word !important;
    }

    .vtipz-card-body {
        padding: 16px 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Các trường Billing & Shipping chuyển 1 cột 100% */
    .woocommerce-billing-fields__field-wrapper,
    .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: 100% !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .woocommerce-billing-fields__field-wrapper .form-row,
    .woocommerce-shipping-fields__field-wrapper .form-row {
        grid-column: span 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        float: none !important;
        clear: both !important;
        margin: 0 0 12px 0 !important;
        box-sizing: border-box !important;
    }

    .woocommerce-checkout .select2-container,
    .woocommerce form .form-row.address-field .select2-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Thẻ xuất hóa đơn VAT Doanh nghiệp */
    .vtipz-vat-card-header {
        padding: 14px 16px !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .vtipz-vat-header-info {
        gap: 10px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .vtipz-vat-toggle-action {
        flex-shrink: 0 !important;
    }

    .vtipz-toggle-switch {
        width: 42px !important;
        height: 24px !important;
        border-radius: 12px !important;
    }

    .vtipz-toggle-switch::after {
        width: 18px !important;
        height: 18px !important;
        top: 3px !important;
        left: 3px !important;
    }

    .vtipz-toggle-checkbox:checked + .vtipz-toggle-switch::after {
        transform: translateX(18px) !important;
    }

    .vtipz-vat-fields-container {
        padding: 14px 14px 16px 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .vtipz-vat-fields-grid {
        grid-template-columns: 100% !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .vtipz-field-full {
        grid-column: span 1 !important;
    }

    /* Thẻ Ghi chú shipper */
    .vtipz-notes-card textarea {
        min-height: 70px !important;
        font-size: 13.5px !important;
        padding: 10px 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Đơn hàng của bạn: Danh sách sản phẩm */
    .vtipz-checkout-products-list {
        max-height: 220px !important;
        margin-bottom: 12px !important;
        padding-right: 4px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .vtipz-checkout-product-item {
        padding: 8px 0 !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .vtipz-item-thumb {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        border-radius: 6px !important;
    }

    .vtipz-item-qty-badge {
        width: 18px !important;
        height: 18px !important;
        font-size: 10px !important;
        top: -3px !important;
        right: -3px !important;
    }

    .vtipz-item-name {
        font-size: 12.5px !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .vtipz-item-total {
        font-size: 13.5px !important;
        flex-shrink: 0 !important;
    }

    /* Bảng chi phí & Tổng cộng - Cố định layout tránh tràn ngang */
    .vtipz-review-order-wrap,
    .woocommerce-checkout-review-order-table,
    .vtipz-totals-table {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        table-layout: fixed !important;
    }

    .vtipz-totals-table {
        margin: 10px 0 16px 0 !important;
    }

    .vtipz-totals-table tr th,
    .vtipz-totals-table tr td {
        padding: 7px 0 !important;
        font-size: 13px !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    .vtipz-totals-table tr th {
        width: 42% !important;
    }

    .vtipz-totals-table tr td {
        width: 58% !important;
    }

    .vtipz-totals-table tr.order-total th {
        font-size: 15px !important;
        padding: 10px 0 !important;
    }

    .vtipz-totals-table tr.order-total td {
        font-size: 18px !important;
        padding: 10px 0 !important;
    }

    /* Phương thức vận chuyển (Shipping methods) */
    #shipping_method {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #shipping_method li {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 8px 10px !important;
    }

    #shipping_method li label {
        font-size: 12.5px !important;
        word-break: break-word !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 4px !important;
    }

    /* Cổng thanh toán */
    ul.wc_payment_methods {
        margin-bottom: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    ul.wc_payment_methods li.wc_payment_method {
        padding: 12px 14px !important;
        margin-bottom: 10px !important;
        border-radius: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    ul.wc_payment_methods li.wc_payment_method > label {
        font-size: 13px !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
        line-height: 1.35 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    ul.wc_payment_methods li.wc_payment_method img {
        height: 20px !important;
        max-width: 65px !important;
    }

    div.payment_box {
        padding: 10px 12px !important;
        font-size: 12px !important;
        line-height: 1.45 !important;
        margin-top: 8px !important;
        border-radius: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-break: break-word !important;
    }

    /* Khối danh sách ngân hàng VietQR - Tránh tràn ảnh 831px */
    .payment_box.payment_method_vietqr {
        overflow: hidden !important;
    }

    .payment_box.payment_method_vietqr .vietqr-row {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .payment_box.payment_method_vietqr .list-bank {
        max-width: 68px !important;
        flex: 0 0 calc(25% - 6px) !important;
        box-sizing: border-box !important;
    }

    .payment_box.payment_method_vietqr .list-bank-box {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 3px !important;
        margin: 0 !important;
    }

    .payment_box.payment_method_vietqr .list-bank img,
    .payment_box.payment_method_vietqr .list-bank-box img {
        max-width: 100% !important;
        height: auto !important;
        max-height: 22px !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
    }

    /* Nút Đặt Hàng */
    #place_order,
    .woocommerce-checkout #place_order {
        padding: 14px 18px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
        letter-spacing: 0.3px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Box cam kết */
    .vtipz-checkout-trust-box {
        padding: 12px 14px !important;
        border-radius: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .vtipz-trust-item {
        gap: 10px !important;
        margin-bottom: 8px !important;
    }

    .vtipz-trust-item:last-child {
        margin-bottom: 0 !important;
    }

    .vtipz-trust-item i {
        font-size: 15px !important;
    }

    .vtipz-trust-item strong {
        font-size: 12px !important;
    }

    .vtipz-trust-item span {
        font-size: 11px !important;
    }
}

/* 4. Small Mobile Phones (<= 480px) */
@media (max-width: 480px) {
    .vtipz-checkout-page {
        padding: 10px 0 28px 0 !important;
        overflow-x: hidden !important;
    }

    .vtipz-checkout-steps-wrapper {
        padding: 0 2px !important;
        margin: 0 auto 16px auto !important;
    }

    .vtipz-checkout-step {
        gap: 4px !important;
    }

    .vtipz-step-num {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        min-height: 26px !important;
        font-size: 11px !important;
    }

    .vtipz-step-title {
        font-size: 11.5px !important;
    }

    .vtipz-step-divider {
        margin: 0 4px !important;
        min-width: 6px !important;
        flex: 1 1 6px !important;
    }

    .vtipz-checkout-card {
        border-radius: 10px !important;
        margin-bottom: 12px !important;
    }

    .vtipz-card-header {
        padding: 12px 12px !important;
    }

    .vtipz-card-title {
        font-size: 14px !important;
    }

    .vtipz-card-body {
        padding: 12px 12px !important;
    }

    /* Input & Select2 chiều cao chuẩn gọn */
    .woocommerce-checkout input[type="text"],
    .woocommerce-checkout input[type="email"],
    .woocommerce-checkout input[type="tel"],
    .woocommerce-checkout input[type="password"],
    .woocommerce-checkout select,
    .vtipz-vat-fields-grid input[type="text"],
    .vtipz-vat-fields-grid input[type="email"] {
        height: 42px !important;
        min-height: 42px !important;
        line-height: 40px !important;
        font-size: 13px !important;
        padding: 0 12px !important;
        border-radius: 6px !important;
    }

    .woocommerce-checkout .select2-container .select2-selection--single {
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 12px !important;
        border-radius: 6px !important;
    }

    .woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
        height: 40px !important;
        line-height: 40px !important;
        font-size: 13px !important;
    }

    .woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 40px !important;
    }

    .woocommerce-checkout label,
    .vtipz-form-field label {
        font-size: 12.5px !important;
        margin-bottom: 4px !important;
    }

    .woocommerce-privacy-policy-text p {
        font-size: 11px !important;
        line-height: 1.5 !important;
    }

    #place_order,
    .woocommerce-checkout #place_order {
        padding: 13px 16px !important;
        font-size: 14px !important;
    }
}

/* 5. Extra Small Screens (<= 375px) */
@media (max-width: 375px) {
    .vtipz-checkout-steps-wrapper {
        padding: 0 !important;
    }

    .vtipz-step-num {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
        font-size: 10.5px !important;
    }

    .vtipz-step-title {
        font-size: 11px !important;
    }

    .vtipz-step-divider {
        margin: 0 3px !important;
        min-width: 4px !important;
    }

    .vtipz-card-header > div:first-child {
        gap: 8px !important;
    }

    .vtipz-card-icon {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        font-size: 12px !important;
    }

    .vtipz-card-title {
        font-size: 13px !important;
    }

    .vtipz-card-subtitle {
        font-size: 11px !important;
    }

    .vtipz-item-thumb {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }

    .vtipz-item-name {
        font-size: 12px !important;
    }

    .vtipz-item-total {
        font-size: 12.5px !important;
    }

    .vtipz-totals-table tr.order-total td {
        font-size: 16.5px !important;
    }
}

/* ==========================================================================
   8.0 GIAO DIỆN CHI TIẾT ĐƠN HÀNG (MY ACCOUNT VIEW ORDER)
   Theme: Vtipz
   Tone màu chuẩn: #0E4E85 (Navy), #1C75BC (Blue), #F26B21 (Orange), #16A34A (Green)
   ========================================================================== */

.vtipz-view-order-page {
    background-color: #F8FAFC;
    min-height: 70vh;
    font-family: 'Be Vietnam Pro', sans-serif;
}

/* 8.1 Thanh điều hướng trên cùng (Breadcrumb & Action bar) */
.vtipz-view-order-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.vtipz-view-order-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0E4E85;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-radius: 8px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
}

.vtipz-view-order-back-btn:hover {
    color: #1C75BC;
    border-color: #CBD5E1;
    background: #F1F5F9;
    transform: translateX(-2px);
}

.vtipz-view-order-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vtipz-btn-order-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #475569;
}

.vtipz-btn-order-action:hover {
    background: #F8FAFC;
    color: #0E4E85;
    border-color: #CBD5E1;
}

.vtipz-btn-order-action.is-reorder {
    background: #EFF6FF;
    color: #0E4E85;
    border-color: #BFDBFE;
}

.vtipz-btn-order-action.is-reorder:hover {
    background: #DBEAFE;
    color: #1C75BC;
}

.vtipz-btn-order-action.is-support {
    background: #FEF3C7;
    color: #B45309;
    border-color: #FDE68A;
}

.vtipz-btn-order-action.is-support:hover {
    background: #FDE68A;
    color: #92400E;
}

/* 8.2 Hero Order Status Card */
.vtipz-view-order-hero-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F7FD 100%);
    border: 1px solid #CFE3F6;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 4px 20px -2px rgba(14, 78, 133, 0.06);
}

.vtipz-hero-left {
    flex: 1;
    min-width: 0;
}

.vtipz-hero-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.vtipz-hero-order-title {
    font-size: 22px;
    font-weight: 800;
    color: #0E4E85;
    margin: 0;
    line-height: 1.3;
}

.vtipz-hero-order-num {
    color: #1C75BC;
    font-family: monospace;
    font-size: 24px;
}

.vtipz-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.vtipz-status-pill.is-completed {
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid #BBF7D0;
}

.vtipz-status-pill.is-processing {
    background: #E0F2FE;
    color: #0369A1;
    border: 1px solid #BAE6FD;
}

.vtipz-status-pill.is-on-hold,
.vtipz-status-pill.is-pending {
    background: #FEF3C7;
    color: #B45309;
    border: 1px solid #FDE68A;
}

.vtipz-status-pill.is-cancelled,
.vtipz-status-pill.is-failed {
    background: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.vtipz-status-pill.is-refunded {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
}

.vtipz-hero-meta-chips {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.vtipz-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748B;
}

.vtipz-hero-chip strong {
    color: #1E293B;
}

.vtipz-hero-right {
    text-align: right;
    flex-shrink: 0;
}

.vtipz-hero-grand-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.vtipz-hero-total-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.vtipz-hero-total-val {
    font-size: 24px;
    font-weight: 800;
    color: #F26B21;
    line-height: 1.2;
    margin-bottom: 6px;
}

.vtipz-hero-paid-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
}

.vtipz-hero-paid-badge.is-paid {
    background: #DCFCE7;
    color: #15803D;
}

.vtipz-hero-paid-badge.is-unpaid {
    background: #FEF3C7;
    color: #B45309;
}

/* 8.3 Order Progress Tracker (4 Bước) */
.vtipz-order-tracker-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 22px 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(14, 78, 133, 0.03);
}

.vtipz-tracker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F1F5F9;
}

.vtipz-tracker-title {
    font-size: 16px;
    font-weight: 700;
    color: #0E4E85;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vtipz-tracker-sub {
    font-size: 12px;
    color: #94A3B8;
}

.vtipz-tracker-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.vtipz-tracker-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    min-width: 110px;
}

.vtipz-tracker-node {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F1F5F9;
    border: 2px solid #E2E8F0;
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.vtipz-tracker-step.is-completed .vtipz-tracker-node {
    background: #16A34A;
    border-color: #16A34A;
    color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}

.vtipz-tracker-step.is-current .vtipz-tracker-node {
    background: #0E4E85;
    border-color: #0E4E85;
    color: #FFFFFF;
    box-shadow: 0 0 0 5px rgba(14, 78, 133, 0.18);
    animation: vtipzNodePulse 2s infinite;
}

@keyframes vtipzNodePulse {
    0% { box-shadow: 0 0 0 0 rgba(14, 78, 133, 0.3); }
    70% { box-shadow: 0 0 0 10px rgba(14, 78, 133, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 78, 133, 0); }
}

.vtipz-tracker-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vtipz-tracker-name {
    font-size: 13px;
    font-weight: 700;
    color: #64748B;
    line-height: 1.3;
}

.vtipz-tracker-step.is-completed .vtipz-tracker-name {
    color: #16A34A;
}

.vtipz-tracker-step.is-current .vtipz-tracker-name {
    color: #0E4E85;
}

.vtipz-tracker-time {
    font-size: 11px;
    color: #94A3B8;
}

.vtipz-tracker-line {
    flex: 1;
    height: 3px;
    background: #E2E8F0;
    margin: 0 8px 30px 8px;
    position: relative;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.vtipz-tracker-line.is-active {
    background: #16A34A;
}

/* Cảnh báo đơn hàng hủy */
.vtipz-order-cancelled-alert {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.vtipz-cancelled-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #FEE2E2;
    color: #DC2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.vtipz-cancelled-body strong {
    display: block;
    color: #991B1B;
    font-size: 15px;
    margin-bottom: 4px;
}

.vtipz-cancelled-body p {
    margin: 0;
    font-size: 13px;
    color: #7F1D1D;
    line-height: 1.5;
}

/* 8.4 VietQR Payment Box on Account View Order */
.vtipz-view-order-vietqr-box {
    background: #FFFFFF;
    border: 1px solid #CFE3F6;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(14, 78, 133, 0.05);
}

.vtipz-vietqr-header-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F1F5F9;
}

.vtipz-vietqr-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #EFF6FF;
    color: #0E4E85;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.vtipz-vietqr-title {
    font-size: 18px;
    font-weight: 700;
    color: #0E4E85;
    margin: 0 0 4px 0;
}

.vtipz-vietqr-desc {
    font-size: 13.5px;
    color: #64748B;
    margin: 0;
}

/* 8.5 2-Column Layout Grid */
.vtipz-view-order-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: flex-start;
}

.vtipz-view-order-main-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.vtipz-view-order-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 90px;
}

/* Card base */
.vtipz-order-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(14, 78, 133, 0.03);
}

.vtipz-order-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #F1F5F9;
}

.vtipz-order-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #EFF6FF;
    color: #0E4E85;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.vtipz-order-card-icon.is-vat {
    background: #FEF3C7;
    color: #D97706;
}

.vtipz-order-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #0E4E85;
    margin: 0;
}

/* Bảng danh sách sản phẩm */
.vtipz-order-items-table-wrapper {
    overflow-x: auto;
}

.vtipz-order-items-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.vtipz-order-items-table thead th {
    background: #F8FAFC;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748B;
    border-bottom: 1px solid #E2E8F0;
}

.vtipz-order-items-table thead th.th-product {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    text-align: left;
}

.vtipz-order-items-table thead th.th-price,
.vtipz-order-items-table thead th.th-qty {
    text-align: center;
}

.vtipz-order-items-table thead th.th-total {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    text-align: right;
}

.vtipz-item-row td {
    padding: 16px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
}

.vtipz-item-row:last-child td {
    border-bottom: none;
}

.vtipz-item-cell-flex {
    display: flex;
    align-items: center;
    gap: 14px;
}

.vtipz-item-thumbnail {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vtipz-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vtipz-item-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.vtipz-item-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.15s ease;
}

.vtipz-item-title:hover {
    color: #0E4E85;
}

.vtipz-item-meta-tags {
    font-size: 12px;
    color: #64748B;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vtipz-item-sku {
    font-size: 11.5px;
    color: #94A3B8;
    font-family: monospace;
}

.td-price {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.td-qty {
    text-align: center;
}

.vtipz-item-qty-pill {
    display: inline-block;
    padding: 2px 10px;
    background: #F1F5F9;
    color: #0E4E85;
    font-size: 13px;
    font-weight: 700;
    border-radius: 9999px;
}

.td-total {
    text-align: right;
}

.vtipz-item-line-total {
    font-size: 15px;
    font-weight: 700;
    color: #0E4E85;
}

/* Card VAT Info */
.vtipz-vat-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 20px;
    font-size: 13.5px;
}

.vtipz-vat-info-col.full-width {
    grid-column: span 2;
}

.vtipz-vat-label {
    display: block;
    font-size: 12px;
    color: #64748B;
    margin-bottom: 2px;
}

.vtipz-vat-value {
    color: #1E293B;
    font-weight: 600;
}

/* Ghi chú & Timeline notes */
.vtipz-customer-note-body {
    background: #FFFBEB;
    border-left: 4px solid #F59E0B;
    border-radius: 6px;
    padding: 14px 18px;
}

.vtipz-customer-note-quote {
    font-size: 14px;
    color: #78350F;
    margin: 0;
    line-height: 1.6;
    font-style: italic;
}

.vtipz-timeline-notes-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 8px;
}

.vtipz-timeline-note-item {
    display: flex;
    gap: 14px;
    position: relative;
}

.vtipz-timeline-note-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1C75BC;
    margin-top: 6px;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(28, 117, 188, 0.15);
}

.vtipz-timeline-note-content {
    flex: 1;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 12px 16px;
}

.vtipz-timeline-note-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748B;
    margin-bottom: 6px;
}

.vtipz-timeline-note-text {
    font-size: 13.5px;
    color: #334155;
    line-height: 1.5;
}

.vtipz-timeline-note-text p:last-child {
    margin: 0;
}

/* 8.6 Sidebar Cards */
.vtipz-order-sidebar-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 2px 10px rgba(14, 78, 133, 0.03);
}

.vtipz-sidebar-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F1F5F9;
}

.vtipz-sidebar-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #EFF6FF;
    color: #0E4E85;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.vtipz-sidebar-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #0E4E85;
    margin: 0;
}

.vtipz-totals-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.vtipz-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #64748B;
}

.vtipz-total-row .vtipz-total-value {
    color: #1E293B;
    font-weight: 600;
}

.vtipz-total-row.is-discount .vtipz-total-value {
    color: #16A34A;
}

.vtipz-total-row.is-grand-total {
    border-top: 2px dashed #E2E8F0;
    padding-top: 14px;
    margin-top: 4px;
    font-size: 16px;
    font-weight: 800;
    color: #0E4E85;
}

.vtipz-total-row.is-grand-total .vtipz-total-value {
    font-size: 22px;
    color: #F26B21;
    font-weight: 800;
}

.vtipz-sidebar-payment-info {
    background: #F8FAFC;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vtipz-sidebar-payment-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vtipz-sub-label {
    font-size: 11.5px;
    color: #64748B;
}

.vtipz-sub-val {
    font-size: 13.5px;
    color: #0E4E85;
    font-weight: 700;
}

.vtipz-payment-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-top: 3px;
    width: fit-content;
}

.vtipz-payment-chip.is-paid {
    background: #DCFCE7;
    color: #15803D;
}

.vtipz-payment-chip.is-unpaid {
    background: #FEF3C7;
    color: #B45309;
}

/* Sidebar Actions */
.vtipz-sidebar-actions-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vtipz-btn-sidebar-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    box-sizing: border-box;
}

.vtipz-btn-sidebar-action.is-primary {
    background: #F26B21;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(242, 107, 33, 0.25);
}

.vtipz-btn-sidebar-action.is-primary:hover {
    background: #D95612;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(242, 107, 33, 0.35);
}

.vtipz-btn-sidebar-action.is-secondary {
    background: #0E4E85;
    color: #FFFFFF;
}

.vtipz-btn-sidebar-action.is-secondary:hover {
    background: #1C75BC;
    transform: translateY(-1px);
}

.vtipz-btn-sidebar-action.is-outline {
    background: transparent;
    border: 1px solid #CBD5E1;
    color: #475569;
}

.vtipz-btn-sidebar-action.is-outline:hover {
    background: #F1F5F9;
    color: #0E4E85;
    border-color: #94A3B8;
}

/* Support Help Card */
.vtipz-support-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.vtipz-support-header h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0E4E85;
    margin: 0;
}

.vtipz-support-desc {
    font-size: 12.5px;
    color: #64748B;
    margin: 0 0 14px 0;
    line-height: 1.5;
}

.vtipz-support-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.vtipz-support-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.vtipz-support-contact-item:hover {
    background: #EFF6FF;
    border-color: #BFDBFE;
    transform: translateX(2px);
}

.vtipz-contact-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.vtipz-contact-icon.is-phone {
    background: #FEE2E2;
    color: #DC2626;
}

.vtipz-contact-icon.is-zalo {
    background: #DBEAFE;
    color: #1C75BC;
}

.vtipz-contact-lbl {
    display: block;
    font-size: 11px;
    color: #64748B;
}

.vtipz-contact-val {
    font-size: 13.5px;
    color: #0E4E85;
    font-weight: 700;
}

.vtipz-support-guarantee {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11.5px;
    color: #475569;
    line-height: 1.45;
    padding-top: 10px;
    border-top: 1px solid #F1F5F9;
}

/* 8.7 RESPONSIVE BREAKPOINTS (TABLET & MOBILE) */
@media (max-width: 991px) {
    .vtipz-view-order-layout-grid {
        grid-template-columns: 1fr;
    }

    .vtipz-view-order-sidebar-col {
        position: static;
        order: 2;
    }

    .vtipz-view-order-main-col {
        order: 1;
    }

    .vtipz-view-order-hero-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .vtipz-hero-right {
        text-align: left;
        width: 100%;
        border-top: 1px solid #CFE3F6;
        padding-top: 14px;
    }

    .vtipz-hero-grand-total {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .vtipz-view-order-page {
        padding-top: 16px;
        padding-bottom: 40px;
    }

    .vtipz-view-order-nav-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .vtipz-view-order-nav-actions {
        width: 100%;
        justify-content: space-between;
    }

    .vtipz-btn-order-action {
        flex: 1;
        justify-content: center;
        padding: 8px 10px;
        font-size: 12px;
    }

    .vtipz-view-order-hero-card {
        padding: 16px;
    }

    .vtipz-hero-order-title {
        font-size: 18px;
    }

    .vtipz-hero-order-num {
        font-size: 19px;
    }

    .vtipz-hero-total-val {
        font-size: 20px;
    }

    /* Progress tracker trên mobile: scroll ngang gọn gàng */
    .vtipz-tracker-steps {
        overflow-x: auto;
        padding-bottom: 8px;
        justify-content: flex-start;
        gap: 0;
    }

    .vtipz-tracker-step {
        min-width: 95px;
    }

    .vtipz-tracker-name {
        font-size: 11.5px;
    }

    .vtipz-tracker-time {
        font-size: 10px;
    }

    .vtipz-tracker-line {
        min-width: 24px;
        margin: 0 4px 26px 4px;
    }

    /* Product items table trên mobile */
    .vtipz-order-items-table thead {
        display: none;
    }

    .vtipz-order-items-table tbody tr {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid #F1F5F9;
    }

    .vtipz-order-items-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0 !important;
        border: none !important;
    }

    .vtipz-order-items-table tbody td.td-product {
        display: block;
        padding-bottom: 10px !important;
    }

    .vtipz-order-items-table tbody td[data-label]::before {
        content: attr(data-label);
        font-size: 12px;
        color: #64748B;
        font-weight: 600;
    }

    .vtipz-vat-info-grid {
        grid-template-columns: 1fr;
    }

    .vtipz-vat-info-col.full-width {
        grid-column: span 1;
    }

    .vtipz-order-card {
        padding: 16px;
    }

    .vtipz-order-sidebar-card {
        padding: 16px;
    }
}

/* 8.8 IN ẤN CHUẨN KHỔ A4 (@media print) */
@media print {
    /* Ẩn các thành phần không cần thiết khi in */
    header,
    footer,
    .vtipz-header,
    .vtipz-footer,
    .vtipz-breadcrumb-wrapper,
    .vtipz-view-order-nav-bar,
    .no-print,
    .vtipz-card-quick-actions,
    .vtipz-card-support-help,
    .vtipz-confirm-paid-container,
    .vtipz-order-tracker-card {
        display: none !important;
    }

    body,
    .vtipz-view-order-page {
        background: #FFFFFF !important;
        padding: 0 !important;
        color: #000000 !important;
    }

    .vtipz-container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .vtipz-view-order-layout-grid {
        display: block !important;
    }

    .vtipz-view-order-main-col,
    .vtipz-view-order-sidebar-col {
        display: block !important;
        width: 100% !important;
    }

    .vtipz-order-card,
    .vtipz-view-order-hero-card,
    .vtipz-order-sidebar-card {
        box-shadow: none !important;
        border: 1px solid #CCCCCC !important;
        page-break-inside: avoid;
        margin-bottom: 16px !important;
    }

    .vtipz-total-row.is-grand-total .vtipz-total-value {
        color: #000000 !important;
    }
}


