/*
 * Luồng mua hàng (giỏ hàng · thông tin đặt hàng · thanh toán thẻ · hoàn tất COD) — bố cục D "hoá đơn", bảng màu 1 · Cam Amazon
 * (chủ dự án chốt 09/10/2026, bản mẫu https://claude.ai/artifact/3AHYu6gMQf7S4fNzcdyVB1). Trang QR dùng cùng bảng màu ở
 * plugin vivix-orders (assets/qr.css). Chỉ nạp trên trang giỏ hàng / thanh toán (inc/checkout-flow.php).
 */
body.vvx-ck {
	--k-cta: var(--buy, #FFA41C); --k-cta-2: var(--buy-2, #FA8900); --k-cta-t: var(--buy-t, #0F1111); /* một nguồn với nút mua toàn web (vivix.css, Q8 10/10/2026) */
	--k-sec: var(--add, #FFD814); --k-sec-2: var(--add-2, #F7CA00); --k-sec-t: var(--buy-t, #0F1111);
	--k-price: #B12704; --k-acc: #007185; --k-acc-t: #E6F4F6;
	--k-ok: #067D62; --k-ok-t: #E6F6F1; --k-warn: #C45500; --k-warn-t: #FFF3E3; --k-sale: #CC0C39;
	--k-ink: #0F1B2D; --k-text: #1F2937; --k-muted: #667085; --k-line: #C3CAD3; --k-line-2: #E4E7EC; --k-bg: #E9EDF2;
}
body.vvx-ck #main, body.vvx-ck .page-wrapper { background: var(--k-bg); }
body.vvx-ck .cart-container, body.vvx-ck .page-checkout { padding-top: 0; padding-bottom: 48px; max-width: 1200px; }
body.vvx-ck .woocommerce-notices-wrapper:empty { display: none; }
body.vvx-ck .woocommerce-notices-wrapper:not(:empty) { margin-top: 20px; }
body.vvx-ck .woocommerce-notices-wrapper .message-container, body.vvx-ck .woocommerce-notices-wrapper .woocommerce-message, body.vvx-ck .woocommerce-notices-wrapper .woocommerce-error { margin: 0; border-radius: 8px; font-size: 14px; }
.vk { color: var(--k-text); font-size: 14px; line-height: 1.5; }
.vk *, .vk *::before, .vk *::after { box-sizing: border-box; }
.vk h1, .vk h2, .vk h3 { margin: 0; color: var(--k-ink); text-transform: none; letter-spacing: 0; }
.vk a { color: var(--k-acc); }
.vk button, .vk .button { text-transform: none; letter-spacing: 0; }

/* ---- Thanh 4 bước ---- */
.vk-steps { background: #fff; border-bottom: 1px solid #D9DFE6; }
.vk-steps nav { max-width: 1200px; margin: 0 auto; height: 72px; padding: 0 16px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.vk-st { display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 600; color: #98A2B3; white-space: nowrap; text-decoration: none !important; }
.vk-st b { font-size: 22px; font-weight: 800; }
.vk-st.on, .vk-st.done { color: var(--k-acc); }
a.vk-st.done:hover { color: var(--k-ink); }
.vk-ln { width: 80px; border-top: 1.5px dashed var(--k-line); }
.vk-ln.done { border-top-style: solid; border-color: var(--k-acc); }
.vk-bar3 { height: 3px; background: #D9DFE6; } .vk-bar3 i { display: block; height: 3px; background: var(--k-acc); }
@media (max-width: 849px) {
	.vk-steps nav { height: auto; padding: 14px 12px 12px; gap: 2px; justify-content: space-between; }
	.vk-st { flex-direction: column; align-items: center; gap: 1px; font-size: 12px; min-width: 52px; }
	.vk-st b { font-size: 17px; }
	.vk-ln { flex: 1; width: auto; margin-bottom: 14px; }
}

/* ---- Bố cục 2 cột ---- */
.vk-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-top: 24px; }
.vk-main { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.vk-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 960px) { .vk-side { position: sticky; top: 90px; } }
.vk-box { background: #fff; border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.vk-lab { margin: 0 !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: .08em !important; color: var(--k-ink) !important; text-transform: uppercase; }
.vk-h1 { font-size: 24px; font-weight: 700; color: var(--k-ink); margin: 0; }
.vk-h1 small { margin-left: 8px; font-size: 15px; font-weight: 400; color: var(--k-muted); }
.vk-muted { color: var(--k-muted); font-size: 13px; }
@media (max-width: 849px) {
	.vk-cols { padding-top: 16px; gap: 14px; }
	.vk-box { padding: 16px; }
	.vk-h1 { font-size: 21px; }
}

/* ---- Hoá đơn (mép răng cưa) ---- */
.vk-rc { position: relative; background: #fff; padding: 20px 20px 28px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.vk-rc::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: radial-gradient(circle at 8px 0, #fff 7px, transparent 7.5px) repeat-x; background-size: 16px 10px; }
.vk-rc.top::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; background: radial-gradient(circle at 8px 10px, #fff 7px, transparent 7.5px) repeat-x; background-size: 16px 10px; }
.vk-rc-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.vk-rc-h b { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--k-ink); }
.vk-rc-h span, .vk-rc-h a { font-size: 12px; color: var(--k-muted); }
.vk-rw { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-variant-numeric: tabular-nums; }
.vk-rw > :first-child { min-width: 0; }
.vk-rw > :last-child { text-align: right; white-space: nowrap; }
.vk-rw .k { color: var(--k-muted); }
.vk-tot { font-size: 20px; font-weight: 700; color: var(--k-ink); align-items: baseline; }
.vk-tot > :first-child { white-space: nowrap; }
.vk-side .vk-tot { font-size: clamp(17px, 1.6vw, 20px); }
.vk-tot > :last-child, .vk-price { color: var(--k-price); }
.vk-dash { border-top: 1.5px dashed var(--k-line); margin: 2px 0; }
.vk-free { color: var(--k-ok); font-weight: 500; }
.vk-save { color: var(--k-sale); font-weight: 500; }
.vk-coupon { display: flex; gap: 8px; margin: 4px 0; }
.vk-coupon input { flex: 1; min-width: 0; height: 40px !important; margin: 0 !important; border: 1px solid var(--k-line) !important; border-radius: 8px !important; padding: 0 10px !important; font-size: 14px !important; box-shadow: none !important; background: #fff !important; }
.vk-coupon button { height: 40px !important; min-height: 40px !important; margin: 0 !important; padding: 0 14px !important; border: 0 !important; border-radius: 6px !important; background: var(--k-sec) !important; color: var(--k-sec-t) !important; font-size: 13px !important; font-weight: 700 !important; line-height: 40px !important; }
.vk-coupon button:hover { background: var(--k-sec-2) !important; }
.vk-coupon-msg { font-size: 12px; } .vk-coupon-msg.bad { color: var(--k-sale); } .vk-coupon-msg.ok { color: var(--k-ok); }

/* ---- Nút ---- */
.vk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 8px; border: 0; font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none !important; cursor: pointer; margin: 0; }
.vk-btn.full { width: 100%; }
.vk-cta, body.vvx-ck #place_order, body.vvx-ck .vk-cta.button { background: var(--k-cta) !important; color: var(--k-cta-t) !important; font-weight: 700; border: 0 !important; }
.vk-cta:hover, body.vvx-ck #place_order:hover { background: var(--k-cta-2) !important; color: var(--k-cta-t) !important; }
.vk-sec { background: var(--k-sec); color: var(--k-sec-t) !important; }
.vk-sec:hover { background: var(--k-sec-2); }
.vk-ghost { background: #fff; color: var(--k-ink) !important; border: 1.5px solid var(--k-line); }
.vk-ghost:hover { border-color: #98A2B3; }
.vk-msg { color: #0084FF !important; background: #fff; }
.vk-danger { background: #fff; color: #B42318 !important; }
body.vvx-ck #place_order { width: 100%; min-height: 52px; margin: 8px 0 0; border-radius: 8px; font-size: 16px; text-transform: none; letter-spacing: 0; box-shadow: none; }

/* ---- Thanh dính đáy (điện thoại, máy tính bảng — dưới 960px hoá đơn nằm dưới cột trái nên cần nút luôn trong tầm tay) ---- */
.vk-sbar { display: none; }
@media (max-width: 959px) {
	.vk-sbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; border-top: 1px solid #D9DFE6; box-shadow: 0 -8px 24px -12px rgba(16,24,40,.18); padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); align-items: center; gap: 12px; }
	.vk-sbar > div { display: flex; flex-direction: column; line-height: 1.2; }
	.vk-sbar small { font-size: 11px; letter-spacing: .06em; color: var(--k-muted); }
	.vk-sbar b { font-size: 18px; color: var(--k-price); font-variant-numeric: tabular-nums; white-space: nowrap; }
	.vk-sbar .vk-btn { flex: 1; min-height: 50px; font-size: 16px; }
	body.vvx-ck .page-wrapper { padding-bottom: 90px; }
	body.vvx-ck .vvx-chat-float, body.vvx-ck .back-to-top { bottom: 90px !important; }
}

/* ---- Giỏ hàng: bảng ảnh · tên · đơn giá · số lượng · thành tiền · xoá (chỉnh 09/10/2026 tối: bớt chữ đậm, giá có nhãn) ---- */
.vk-cart { padding: 8px 20px; gap: 0; }
.vk-ci { display: grid; grid-template-columns: 64px minmax(0, 1fr) 104px 120px 108px 28px; column-gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--k-line-2); position: relative; }
.vk-ci-h { padding: 8px 0; border-top: 0; font-size: 12px; color: var(--k-muted); }
.vk-ci-h + .vk-ci, .vk-cart > .vk-ci:first-of-type { border-top: 0; }
.vk-ci-h span:nth-child(n+3) { text-align: right; } .vk-ci-h span:nth-child(4) { text-align: center; }
.vk-ci-h span:nth-child(2) { grid-column: 1 / 3; }
.vk-ci-h span:first-child { display: none; }
.vk-ci .th, .vk-ci .th img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #F2F4F7; display: block; }
.vk-ci .info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vk-ci .nm { font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--k-ink) !important; text-decoration: none; }
.vk-ci .nm:hover { color: var(--k-acc) !important; }
.vk-ci .meta { font-size: 13px; color: var(--k-muted); }
.vk-ci .meta dl, .vk-ci .meta p { margin: 0; } .vk-ci .meta dl { display: flex; gap: 4px; flex-wrap: wrap; } .vk-ci .meta dt, .vk-ci .meta dd { margin: 0; font-weight: 400; }
.vk-ci .up { text-align: right; font-size: 14px; color: var(--k-text); font-variant-numeric: tabular-nums; }
.vk-ci .up > span:last-child { display: flex; flex-direction: column; align-items: flex-end; }
.vk-ci .up s { font-size: 12px; color: #98A2B3; }
.vk-ci .up .lb { display: none; }
.vk-ci .qt { display: flex; justify-content: center; }
.vk-ci .lt { text-align: right; font-size: 15px; font-weight: 600; color: var(--k-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vk-ci .product-remove { display: flex; justify-content: flex-end; width: auto; padding: 0; border: 0; }
.vk-ci .rm { width: 32px; height: 32px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: #98A2B3 !important; font-size: 0 !important; line-height: 1 !important; border: 0 !important; }
.vk-ci .rm:hover { background: #FEF3F2 !important; color: #B42318 !important; }
.vk-ci .quantity { margin: 0 !important; display: inline-flex !important; width: auto !important; opacity: 1; }
.vk-ci .quantity input.qty { height: 36px; width: 44px; font-weight: 500; }
.vk-ci .quantity .button { height: 36px; min-height: 36px; font-weight: 500; }
@media (max-width: 1199px) { /* giỏ hàng dạng thẻ khi cột trái hẹp (máy tính bảng, laptop nhỏ, điện thoại) */
	.vk-cart { padding: 4px 16px; }
	.vk-ci-h { display: none; }
	.vk-ci { grid-template-columns: 64px minmax(0, 1fr) 32px; grid-template-areas: "th info rm" "th up up" "th qt lt"; column-gap: 12px; row-gap: 8px; align-items: start; padding: 14px 0; }
	.vk-ci:nth-child(2) { border-top: 0; }
	.vk-ci .th { grid-area: th; } .vk-ci .info { grid-area: info; } .vk-ci .product-remove { grid-area: rm; margin: -4px -6px 0 0; }
	.vk-ci .th, .vk-ci .th img { width: 64px; height: 64px; }
	.vk-ci .up { grid-area: up; text-align: left; font-size: 13px; color: var(--k-muted); display: flex; gap: 6px; }
	.vk-ci .up .lb { display: inline; }
	.vk-ci .up > span:last-child { flex-direction: row; gap: 6px; align-items: baseline; }
	.vk-ci .qt { grid-area: qt; justify-content: flex-start; }
	.vk-ci .lt { grid-area: 3 / 2 / 4 / 4; justify-self: end; align-self: center; } /* hàng 3: số lượng trái, thành tiền phải (cột 3 chỉ rộng 32px cho thùng rác) */
	.vk-ci .nm { font-size: 14px; }
}
.vk-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; font-size: 13px; color: #475467; }
.vk-trust span { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px; padding: 12px 14px; }
.vk-trust svg { color: var(--k-acc); flex-shrink: 0; }
@media (max-width: 549px) { .vk-trust { font-size: 11px; gap: 8px; } .vk-trust span { flex-direction: column; text-align: center; gap: 4px; padding: 10px 6px; } }
.vk-back { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--k-acc); }
body.vvx-ck .woocommerce-cart-form .vk-upd { position: absolute; left: -9999px; }
body.vvx-ck .vvx-offers--cart { margin: 0; }

/* ---- Thông tin đặt hàng: ô nhập có khung, tên ô nằm trong khung (như ô của Haravan) ---- */
.vk-boxhd { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.vk-info { gap: 0; }
body.vvx-ck form.checkout .form-row { position: relative; padding: 0; margin: 0 0 12px; }
body.vvx-ck form.checkout .form-row > label:not(.checkbox) { position: absolute; z-index: 2; left: 13px; top: 7px; margin: 0; font-size: 12px; font-weight: 400; line-height: 1.2; color: var(--k-muted); text-transform: none; letter-spacing: 0; pointer-events: none; }
body.vvx-ck form.checkout .form-row .required { color: var(--k-sale); text-decoration: none; border: 0; }
body.vvx-ck form.checkout .form-row .optional { color: #98A2B3; }
body.vvx-ck form.checkout input.input-text, body.vvx-ck form.checkout textarea, body.vvx-ck form.checkout select, body.vvx-ck form.checkout .select2-container .select2-selection--single {
	height: 54px; margin: 0; border: 1px solid var(--k-line) !important; border-radius: 8px !important; box-shadow: none !important; background: #fff !important; padding: 20px 12px 0 !important; font-size: 15px !important; font-weight: 400; color: var(--k-ink);
}
body.vvx-ck form.checkout textarea { height: 76px; min-height: 76px; padding-top: 26px !important; line-height: 1.45; resize: vertical; }
body.vvx-ck form.checkout input.input-text::placeholder, body.vvx-ck form.checkout textarea::placeholder { color: #98A2B3; }
body.vvx-ck form.checkout input.input-text:focus, body.vvx-ck form.checkout textarea:focus, body.vvx-ck form.checkout select:focus, body.vvx-ck form.checkout .select2-container--open .select2-selection--single, body.vvx-ck form.checkout .select2-container--focus .select2-selection--single { border-color: var(--k-acc) !important; box-shadow: 0 0 0 3px var(--k-acc-t) !important; outline: none; }
body.vvx-ck form.checkout .woocommerce-invalid input.input-text, body.vvx-ck form.checkout .woocommerce-invalid .select2-selection { border-color: var(--k-sale) !important; }
body.vvx-ck form.checkout .select2-container { width: 100% !important; }
body.vvx-ck form.checkout .select2-container .select2-selection__rendered { line-height: 32px !important; padding: 0 24px 0 0 !important; color: var(--k-ink); }
body.vvx-ck form.checkout .select2-container .select2-selection__arrow { height: 52px !important; right: 8px !important; }
body.vvx-ck form.checkout .select2-container .select2-selection__clear { display: none; }
@media (min-width: 850px) {
	.vk-f2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
	.vk-f2 > .form-row { grid-column: 1 / -1; width: auto !important; float: none !important; }
	.vk-f2 > #billing_last_name_field, .vk-f2 > #billing_first_name_field, .vk-f2 > #billing_state_field, .vk-f2 > #shipping_last_name_field, .vk-f2 > #shipping_state_field { grid-column: 1; }
	.vk-f2 > #billing_phone_field, .vk-f2 > #billing_city_field, .vk-f2 > #shipping_phone_field, .vk-f2 > #shipping_city_field { grid-column: 2; }
}
body.vvx-ck .woocommerce-billing-fields > h3, body.vvx-ck #order_review_heading, body.vvx-ck .woocommerce-additional-fields > h3 { display: none; }
body.vvx-ck .vvx-address-by-phone { margin: 0; }
body.vvx-ck .vvx-address-by-phone button { background: none; border: 0; padding: 0; margin: 0; min-height: 0; color: var(--k-acc); font-size: 13px; font-weight: 500; text-transform: none; }
body.vvx-ck .woocommerce-shipping-fields, body.vvx-ck .woocommerce-additional-fields { margin: 0; }
/* "Giao hàng đến một địa chỉ khác": dòng chữ cuối khung, ô tích ẩn — bấm mở các ô địa chỉ khác */
body.vvx-ck #ship-to-different-address { margin: 4px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--k-line-2); font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; }
body.vvx-ck #ship-to-different-address label { margin: 0; cursor: pointer; color: var(--k-acc); display: inline-flex; align-items: center; gap: 6px; }
body.vvx-ck #ship-to-different-address input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
body.vvx-ck #ship-to-different-address span::before { content: "+"; display: inline-block; width: 1em; font-weight: 600; }
body.vvx-ck #ship-to-different-address input:checked + span::before { content: "−"; }
body.vvx-ck #ship-to-different-address input:focus-visible + span { outline: 2px solid var(--k-acc); outline-offset: 2px; }
body.vvx-ck .shipping_address { padding-top: 14px; }

/* ---- Phương thức giao hàng ---- */
.vk-ship { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.vk-ship li { margin: 0; border: 1px solid var(--k-line); border-radius: 8px; background: #fff; position: relative; }
.vk-ship li.on, .vk-ship li:has(input:checked) { border-color: var(--k-acc); box-shadow: 0 0 0 1px var(--k-acc); }
.vk-ship input { position: absolute; left: 14px; top: 17px; margin: 0; width: 18px; height: 18px; accent-color: var(--k-acc); }
.vk-ship label { display: flex !important; justify-content: space-between; align-items: center; gap: 12px; margin: 0; padding: 14px 14px 14px 44px; cursor: pointer; font-size: 15px; font-weight: 400; color: var(--k-ink); text-transform: none; letter-spacing: 0; }
.vk-ship label > span:last-child { white-space: nowrap; font-weight: 500; font-variant-numeric: tabular-nums; }
.vk-ship-note { margin: 0 14px 14px 44px; padding: 10px 12px; border-radius: 8px; background: var(--k-warn-t); font-size: 13px; line-height: 1.55; color: #475467; }
.vk-later { color: var(--k-warn); font-weight: 500; }

/* ---- Phương thức thanh toán (trong khung Thông tin đơn hàng, kiểu danh sách) ---- */
body.vvx-ck #payment { background: transparent; border: 0; padding: 0; border-radius: 0; margin-top: 4px; }
body.vvx-ck #payment .vk-pay-t { margin: 0 0 6px; padding-top: 12px; border-top: 1.5px dashed var(--k-line); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--k-ink); }
body.vvx-ck #payment ul.payment_methods { display: flex; flex-direction: column; padding: 0; margin: 0; border: 0; list-style: none; }
body.vvx-ck #payment ul.payment_methods li.wc_payment_method { margin: 0; padding: 12px 0; border: 0; border-bottom: 1px solid var(--k-line-2); background: transparent; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: center; }
body.vvx-ck #payment ul.payment_methods li.wc_payment_method:last-child { border-bottom: 0; }
body.vvx-ck #payment li.wc_payment_method > input { grid-column: 2; grid-row: 1; margin: 0; width: 20px; height: 20px; accent-color: var(--k-acc); }
body.vvx-ck #payment li.wc_payment_method > label { grid-column: 1; grid-row: 1; margin: 0; padding: 0; display: flex !important; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: var(--k-ink); cursor: pointer; line-height: 1.35; text-transform: none; letter-spacing: 0; }
body.vvx-ck #payment li.wc_payment_method > label img { display: none; }
body.vvx-ck #payment .vk-pm-ic { width: 32px; height: 32px; border-radius: 8px; background: var(--k-acc-t); color: var(--k-acc); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
body.vvx-ck #payment .vk-pm-ic svg { width: 20px; height: 20px; }
body.vvx-ck #payment .vk-pm-sub { grid-column: 1; padding-left: 44px; font-size: 12px; color: var(--k-muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
body.vvx-ck #payment .vk-badge { height: 20px; padding: 0 6px; border-radius: 4px; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; background: var(--k-ok-t); color: var(--k-ok); }
body.vvx-ck #payment .vk-card { height: 20px; padding: 0 5px; border-radius: 3px; border: 1px solid #D0D5DD; font-size: 9px; font-weight: 800; display: inline-flex; align-items: center; background: #fff; }
body.vvx-ck #payment div.payment_box { grid-column: 1 / -1; margin: 8px 0 0; padding: 10px 12px; background: #F7F8FA; border-radius: 8px; font-size: 13px; color: #475467; }
body.vvx-ck #payment div.payment_box::before { display: none; }
body.vvx-ck #payment div.payment_box p:last-child { margin-bottom: 0; }
body.vvx-ck #payment .form-row.place-order { display: none; }
body.vvx-ck .vk-rc .vk-coupon { margin: 6px 0 2px; }

/* bảng hoá đơn tạm tính (được WooCommerce vẽ lại khi đổi địa chỉ / phí giao hàng) */
body.vvx-ck table.vk-rt { width: 100%; border: 0; margin: 0; background: transparent; border-collapse: collapse; }
body.vvx-ck table.vk-rt th, body.vvx-ck table.vk-rt td { border: 0 !important; padding: 5px 0 !important; font-size: 14px; font-weight: 400; color: var(--k-text); background: transparent; text-transform: none; letter-spacing: 0; vertical-align: top; }
body.vvx-ck table.vk-rt td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: 12px !important; }
body.vvx-ck table.vk-rt tbody tr:first-child td { padding-top: 0 !important; }
body.vvx-ck table.vk-rt tfoot tr:first-child > * { border-top: 1.5px dashed var(--k-line) !important; padding-top: 10px !important; }
body.vvx-ck table.vk-rt tfoot th { color: var(--k-muted); text-align: left; }
body.vvx-ck table.vk-rt tr.order-total > * { border-top: 1.5px dashed var(--k-line) !important; padding-top: 10px !important; font-size: 19px; font-weight: 700; color: var(--k-ink); }
body.vvx-ck table.vk-rt tr.order-total th { color: var(--k-ink); }
body.vvx-ck table.vk-rt tr.order-total td, body.vvx-ck table.vk-rt tr.order-total .amount { color: var(--k-price); }
body.vvx-ck table.vk-rt .woocommerce-shipping-methods { list-style: none; margin: 0; padding: 0; text-align: right; }
body.vvx-ck table.vk-rt .woocommerce-shipping-methods li { margin: 0 0 4px; font-size: 13px; }
body.vvx-ck table.vk-rt .woocommerce-shipping-destination, body.vvx-ck table.vk-rt .shipping-calculator-button { display: none; }
body.vvx-ck table.vk-rt .cart-discount td, body.vvx-ck table.vk-rt .cart-discount .amount { color: var(--k-sale); }
body.vvx-ck .woocommerce-privacy-policy-text p, body.vvx-ck .vk-terms { font-size: 12px; line-height: 1.5; color: var(--k-muted); text-align: center; margin: 6px 0 0; }

/* ---- Trang hoàn tất (COD) / thanh toán thẻ ---- */
.vk-hero { display: flex; align-items: center; gap: 16px; }
.vk-hero .ic { width: 60px; height: 60px; border-radius: 50%; background: var(--k-ok); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vk-hero h1 { font-size: 28px; font-weight: 800; }
.vk-hero p { margin: 2px 0 0; font-size: 14px; color: #475467; }
.vk-due { background: var(--k-warn-t); border-radius: 10px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vk-due small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #475467; }
.vk-due b { font-size: 30px; color: var(--k-price); font-variant-numeric: tabular-nums; }
.vk-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.vk-next > div { display: flex; flex-direction: column; gap: 6px; }
.vk-next i { width: 28px; height: 28px; border-radius: 50%; font-style: normal; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; background: #F2F4F7; color: var(--k-muted); }
.vk-next > div:first-child i { background: var(--k-acc-t); color: var(--k-acc); }
.vk-next b { font-size: 15px; color: var(--k-ink); } .vk-next span { font-size: 13px; color: #475467; }
.vk-acts { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 849px) {
	.vk-hero .ic { width: 52px; height: 52px; } .vk-hero h1 { font-size: 22px; }
	.vk-next { grid-template-columns: 1fr; gap: 14px; }
	.vk-next > div { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; } .vk-next > div > :not(i) { grid-column: 2; }
	.vk-acts .vk-btn { flex: 1 1 100%; }
	.vk-due b { font-size: 26px; }
}
.vk-ccard { height: 186px; max-width: 320px; width: 100%; border-radius: 16px; background: var(--k-ink); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; }
.vk-ccard .chip { width: 40px; height: 30px; border-radius: 6px; background: #4FE0C4; }
.vk-ccard .no { font-size: 19px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
body.vvx-ck .wc-credit-card-form .form-row, body.vvx-ck .payment_box fieldset .form-row { margin-bottom: 14px; }
body.vvx-ck .payment_box input.input-text, body.vvx-ck .wc-credit-card-form input { height: 46px !important; border: 0 !important; border-bottom: 1.5px solid var(--k-line) !important; border-radius: 0 !important; box-shadow: none !important; font-size: 17px !important; letter-spacing: .04em; background: transparent !important; }

/* Flatsome lồng phí giao hàng trong bảng con (cart-shipping.php) → trải phẳng cho thẳng hàng với các dòng khác */
body.vvx-ck table.vk-rt td.shipping__inner { padding: 0 !important; }
body.vvx-ck table.vk-rt table.shipping__table { width: 100%; margin: 0; border: 0; }
body.vvx-ck table.vk-rt table.shipping__table th { color: var(--k-muted); text-align: left; padding-left: 0 !important; }
body.vvx-ck table.vk-rt table.shipping__table td { padding-left: 12px !important; text-align: right; }
/* Flatsome kẻ viền trên khối billing/shipping → bỏ (đã có hộp riêng) */
body.vvx-ck .woocommerce-billing-fields, body.vvx-ck .woocommerce-shipping-fields, body.vvx-ck .woocommerce-additional-fields { border-top: 0 !important; padding-top: 0 !important; }

/* ---- Hoàn tất: biến thể chờ thanh toán / thất bại, hoá đơn đơn đã đặt, in hoá đơn ---- */
.vk-hero .ic { color: #fff; }
.vk-hero.is-wait .ic { background: var(--k-warn); } .vk-hero.is-bad .ic { background: var(--k-sale); }
.vk-due span { font-size: 14px; color: #344054; }
.vk-due.is-ok { background: var(--k-ok-t); } .vk-due.is-ok b { color: var(--k-ok); }
.vk-warn { color: var(--k-warn); }
.vk-shipto { font-size: 13px; line-height: 1.55; color: #344054; }
.vk-shipto b { display: block; font-size: 12px; letter-spacing: .08em; color: var(--k-ink); }
.vk-instr :is(h2, h3) { font-size: 15px; margin: 0 0 8px; }
.vk-instr ul { margin: 0; padding-left: 18px; }
.vk-msg { color: #0084FF !important; }
@media print {
	body.vvx-ck #header, body.vvx-ck #footer, body.vvx-ck .vk-steps, body.vvx-ck .vk-main, body.vvx-ck .vk-print, body.vvx-ck .vvx-float, body.vvx-ck #wpadminbar { display: none !important; }
	body.vvx-ck .vk-side { position: static; max-width: 420px; margin: 0 auto; }
	body.vvx-ck #main, body.vvx-ck .page-wrapper { background: #fff; }
}

/* ---- Thanh toán thẻ (order-pay) ---- */
.vk-payhd { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vk-brands { display: flex; gap: 6px; }
.vk-brands .vk-card { height: 24px; padding: 0 7px; border-radius: 4px; border: 1px solid #D0D5DD; font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; background: #fff; }
.vk-paybody { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.vk-paybody .vk-ccard { flex: 0 0 300px; }
@media (max-width: 849px) { .vk-paybody .vk-ccard { order: -1; flex-basis: 100%; max-width: 340px; margin: 0 auto; } }
/* cổng có ô nhập (thẻ) đang chọn → chiếm cả hàng; chỉ 1 cổng → ẩn ô chọn, hiện thẳng ô nhập */
body.vvx-ck #payment ul.payment_methods li.wc_payment_method:has(> input:checked):has(.payment_box) { grid-column: 1 / -1; }
body.vvx-ck #payment ul.is-single li.wc_payment_method { border: 0; padding: 0; background: transparent; }
body.vvx-ck #payment ul.is-single li.wc_payment_method > input, body.vvx-ck #payment ul.is-single li.wc_payment_method > label, body.vvx-ck #payment ul.is-single .vk-pm-sub { display: none; }
body.vvx-ck #payment ul.is-single div.payment_box { display: block !important; padding: 0; }
.vk-note { display: flex; gap: 12px; align-items: flex-start; border-radius: 10px; padding: 14px 18px; font-size: 13px; line-height: 1.5; color: #344054; background: var(--k-acc-t); }
.vk-note svg { flex-shrink: 0; }
.vk-note.is-ok { background: var(--k-ok-t); } .vk-note.is-ok svg { color: var(--k-ok); }
body.vvx-ck #place_order { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
/* Giỏ trống */
body.vvx-ck .cart-empty { padding-top: 40px; font-size: 16px; color: var(--k-ink); }
body.vvx-ck .return-to-shop { padding-bottom: 40px; }
body.vvx-ck .return-to-shop .button { background: var(--k-cta) !important; color: var(--k-cta-t) !important; border-radius: 8px; font-weight: 800; text-transform: none; letter-spacing: 0; padding: 0 24px; }
/* Thông báo của WooCommerce (Flatsome in ngay đầu .page-wrapper): cách thanh 4 bước, bo góc */
body.vvx-ck .page-wrapper > .woocommerce-message, body.vvx-ck .page-wrapper > .woocommerce-error, body.vvx-ck .page-wrapper > .woocommerce-info, body.vvx-ck .page-wrapper > .message-wrapper { margin: 20px 0 0; border-radius: 8px; font-size: 14px; }
/* Flatsome tô đậm mọi .amount → giá theo độ đậm của dòng chứa nó */
.vk .amount, .vk bdi { font-weight: inherit; }
.vk-rw > :last-child { font-weight: 500; }
.vk-tot > :last-child { font-weight: 700; }
body.vvx-ck form.checkout .vk-f2 > .form-row, body.vvx-ck form.checkout .woocommerce-additional-fields .form-row { width: 100% !important; float: none !important; }
.vk-note.is-warn { background: var(--k-warn-t); } .vk-note.is-warn svg { color: var(--k-warn); }
body.vvx-ck table.vk-rt tr.vk-saved > * { padding-top: 2px !important; font-size: 13px; color: var(--k-ok) !important; } body.vvx-ck table.vk-rt tr.vk-saved .amount { color: var(--k-ok); }
/* ô chọn tỉnh / phường: khung bọc là inline → thừa một dòng dưới ô */
body.vvx-ck form.checkout .form-row .woocommerce-input-wrapper { display: block; }
/* điều khoản / chính sách trống (chưa đặt trang điều khoản) không chiếm chỗ trên nút Đặt hàng */
body.vvx-ck .vk-rc .woocommerce-terms-and-conditions-wrapper { margin: 0; }
body.vvx-ck .vk-rc .woocommerce-terms-and-conditions-wrapper:not(:has(input, p)), body.vvx-ck .vk-rc .woocommerce-privacy-policy-text:not(:has(p)) { display: none; }
body.vvx-ck form.checkout .select2-container { display: block; margin-bottom: 0 !important; }
body.vvx-ck .vvx-address-by-phone button { line-height: 1.45 !important; min-height: 0 !important; height: auto !important; text-align: left; }

/* ================================================================ Rà soát 09/10/2026 — Đợt 3 */
/* dải trắng giữa nội dung (nền xám) và chân trang: chân trang cách 40px trên nền trắng của body */
body.vvx-ck .vvx-footer { margin-top: 0; }
/* nút chat nổi (Zalo / Messenger) nằm trên thanh dính đáy, không che số tiền */
@media (max-width: 959px) { body.vvx-ck .vvx-float-chat { bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; } }
/* thanh 4 bước ở máy tính bảng: chữ 12px cho dễ đọc */
@media (min-width: 600px) and (max-width: 849px) { .vk-st { font-size: 12px; min-width: 64px; } }
/* màn rất hẹp (≤ 380px): bảng hoá đơn không tràn — tên / nhãn xuống dòng, tổng tiền nhỏ lại; tiêu đề khung một dòng */
body.vvx-ck table.vk-rt th { white-space: normal !important; }
body.vvx-ck table.vk-rt td.product-name { overflow-wrap: anywhere; }
.vk-rc-h a { white-space: nowrap; }
@media (max-width: 380px) {
	.vk-rc { padding-left: 16px; padding-right: 16px; }
	.vk-rc-h b { letter-spacing: .04em; font-size: 12px; }
	body.vvx-ck table.vk-rt tr.order-total > * { font-size: 16px; }
	.vk-side .vk-tot { font-size: 16px; }
	.vk-ci { grid-template-columns: 56px minmax(0, 1fr) 32px; column-gap: 10px; }
	.vk-ci .th, .vk-ci .th img { width: 56px; height: 56px; }
}
/* hoàn tất: đơn đã huỷ */
.vk-hero.is-void .ic { background: #98A2B3; }
/* giỏ hàng trống */
.vk-empty { max-width: 420px; margin: 40px auto 56px; padding: 32px 24px; background: #fff; border-radius: 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.vk-empty .ic { width: 64px; height: 64px; border-radius: 50%; background: var(--k-acc-t); color: var(--k-acc); display: inline-flex; align-items: center; justify-content: center; }
.vk-empty h1 { margin: 0; font-size: 20px; font-weight: 700; color: var(--k-ink); text-transform: none; letter-spacing: 0; }
.vk-empty p { margin: 0; font-size: 14px; color: #475467; }
.vk-empty .vk-btn { margin-top: 4px; }
.vk-ship label .t small { display: block; font-size: 12px; color: var(--k-ok); font-weight: 400; }
/* tài khoản khách: thẻ "Lưu đơn hàng vào tài khoản" (trang hoàn tất) + chọn nhanh địa chỉ đã dùng (trang Thông tin) */
.vk-save-acc { flex-direction: row; align-items: center; gap: 16px; flex-wrap: wrap; border: 1.5px dashed var(--k-acc); }
.vk-save-acc .t { flex: 1 1 260px; }
.vk-save-acc h2 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--k-ink); text-transform: none; letter-spacing: 0; }
.vk-save-acc p { margin: 0; font-size: 13px; color: #475467; }
.vk-save-acc .vvx-gbtn { min-height: 44px; }
@media (max-width: 549px) { .vk-save-acc .vvx-gbtn { flex: 1 1 100%; display: flex; justify-content: center; } } /* nút Google đo khung lúc vẽ: chiếm cả hàng để không tràn mép phải */
.vk-save-acc .vvx-gmsg { flex: 1 1 100%; margin: 0; font-size: 13px; color: var(--k-ok); } .vk-save-acc .vvx-gmsg.bad { color: #B42318; }
.vk-used { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -4px 0 14px; font-size: 13px; color: var(--k-muted); }
.vk-chip { height: auto; min-height: 32px; margin: 0; padding: 6px 12px; border: 1px solid var(--k-line); border-radius: 999px; background: #fff; color: var(--k-ink); font-size: 13px; font-weight: 400; line-height: 1.3; text-transform: none; letter-spacing: 0; text-align: left; cursor: pointer; }
.vk-chip:hover, .vk-chip.on { border-color: var(--k-acc); background: var(--k-acc-t); color: var(--k-acc); }
