/* Checkout V3 (owner mockup 2026-10-20) — cart/checkout heading, checkout form, order-received, «Xem đơn hàng» card.
   Loaded only on cart / checkout / order-received / view-order (inc/checkout-v3.php). */
.vnt39co-page {
	--co-red: #991B38;
	--co-red-soft: #FBEFF2;
	--co-bg: #F6F4F6;
	--co-text: #241B24;
	--co-muted: #6B5F6B;
	--co-line: #E8E2E7;
	--co-radius: 14px;
}
body.vnt39co-page,
.vnt39co-page #main { background: var(--co-bg); }
.vnt39co-page #main { color: var(--co-text); }

/* ---------- heading + steps */
.vnt39co-head { padding: 28px 0 8px; }
.vnt39co-head .container { padding-left: 15px; padding-right: 15px; }
.vnt39co-head__title { margin: 0 0 14px; font-size: 32px; line-height: 1.2; font-weight: 800; color: var(--co-text); text-transform: none; letter-spacing: 0; }
.vnt39co-steps { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 0; padding: 0; list-style: none; }
.vnt39co-steps__item { display: flex; align-items: center; margin: 0; color: var(--co-muted); font-size: 16px; font-weight: 500; }
.vnt39co-steps__item a { display: flex; align-items: center; color: inherit; }
.vnt39co-steps__n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 50%; background: #ECE7EB; color: var(--co-muted); font-size: 14px; font-weight: 700; }
.vnt39co-steps__item.is-current { color: var(--co-red); font-weight: 700; }
.vnt39co-steps__item.is-current .vnt39co-steps__n { background: var(--co-red); color: #fff; }
.vnt39co-steps__item.is-done .vnt39co-steps__n { background: var(--co-red-soft); color: var(--co-red); }

/* ---------- cards + grid */
.vnt39co-page .woocommerce { padding-top: 16px; padding-bottom: 40px; }
.vnt39co-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.vnt39co-grid--done { grid-template-columns: minmax(0, 760px); justify-content: center; }
.vnt39co-card { background: #fff; border: 1px solid var(--co-line); border-radius: var(--co-radius); padding: 28px 32px; box-shadow: none; }
.vnt39co-side { position: sticky; top: 90px; }
.vnt39co-h2 { margin: 0 0 6px; font-size: 24px; line-height: 1.3; font-weight: 800; color: var(--co-text); text-transform: none; letter-spacing: 0; }
.vnt39co-h3 { margin: 18px 0 10px; font-size: 18px; font-weight: 700; color: var(--co-text); text-transform: none; letter-spacing: 0; }
.vnt39co-lead { margin: 0 0 22px; color: var(--co-muted); font-size: 15px; }
.vnt39co-foot { margin: 22px 0 0; color: var(--co-muted); font-size: 14px; }
.vnt39co-foot a { color: var(--co-red); font-weight: 600; }

/* ---------- top notices (login / register / coupon messages) */
.vnt39co-page .woocommerce-form-login-toggle .woocommerce-info,
.vnt39co-page .woocommerce > .woocommerce-info,
.vnt39co-page .vnt39m-checkout-link {
	margin: 0 0 12px; padding: 12px 16px; border: 1px solid var(--co-line); border-radius: 10px; background: #fff; color: var(--co-text); font-size: 14px;
}
.vnt39co-page .woocommerce-form-login-toggle .woocommerce-info a,
.vnt39co-page .vnt39m-checkout-link a { color: var(--co-red); font-weight: 600; }
.vnt39co-page form.woocommerce-form-login { margin: 0 0 16px; padding: 20px; border: 1px solid var(--co-line); border-radius: var(--co-radius); background: #fff; }

/* ---------- fields */
.vnt39co-form .woocommerce-billing-fields > h3,
.vnt39co-form .woocommerce-additional-fields > h3 { display: none; }
.vnt39co-form .woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.vnt39co-form .woocommerce-billing-fields__field-wrapper > .form-row { width: auto; float: none; margin: 0 0 18px; padding: 0; grid-column: 1 / -1; }
.vnt39co-form #billing_first_name_field { grid-column: 1; grid-row: 1; }
.vnt39co-form #billing_email_field { grid-column: 2; grid-row: 1; }
.vnt39co-form #billing_phone_field { grid-column: 1; grid-row: 2; }
.vnt39co-form #billing_postcode_field { grid-column: 2; grid-row: 2; }
.vnt39co-form #billing_address_1_field { grid-row: 3; }
.vnt39co-form #billing_social_field { grid-row: 4; }
.vnt39co-form .woocommerce-additional-fields .form-row { margin: 0; padding: 0; }
.vnt39co-form .form-row label { margin: 0 0 8px; color: var(--co-text); font-size: 14px; font-weight: 700; }
.vnt39co-form .form-row label .optional { color: var(--co-muted); font-weight: 600; }
.vnt39co-form .form-row .required { color: var(--co-red); text-decoration: none; border: 0; }
.vnt39co-form .input-text,
.vnt39co-form select,
.vnt39co-form textarea,
.vnt39co-review .vnt39co-coupon__box .input-text {
	height: 50px; margin: 0; padding: 0 14px; border: 1px solid #DCD5DB; border-radius: 10px; background: #fff; box-shadow: none; color: var(--co-text); font-size: 16px;
}
.vnt39co-form textarea { height: 110px; min-height: 110px; padding: 12px 14px; line-height: 1.5; }
.vnt39co-form .input-text:focus,
.vnt39co-form textarea:focus { border-color: var(--co-red); box-shadow: 0 0 0 3px rgba(153, 27, 56, .12); outline: 0; }
.vnt39co-form .woocommerce-invalid .input-text { border-color: #d03b3b; }

/* ---------- summary (review-order.php) */
.vnt39co-card--summary .vnt39co-h2 { margin-bottom: 18px; }
.vnt39co-review { width: 100%; margin: 0; border: 0; }
.vnt39co-review th,
.vnt39co-review td { padding: 12px 0; border: 0; border-top: 1px solid var(--co-line); background: none; color: var(--co-text); font-size: 15px; text-transform: none; letter-spacing: 0; vertical-align: top; }
.vnt39co-review tbody tr:first-child td { border-top: 0; }
.vnt39co-review td.product-total,
.vnt39co-review tfoot td { text-align: right; white-space: nowrap; font-weight: 600; }
.vnt39co-review tfoot th { font-weight: 500; color: var(--co-muted); }
.vnt39co-line { display: flex; gap: 14px; align-items: flex-start; }
.vnt39co-line__thumb { flex: 0 0 64px; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.vnt39co-line__thumb img { max-width: 64px; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.vnt39co-line__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vnt39co-line__name { font-weight: 700; line-height: 1.35; }
.vnt39co-line__body dl.variation { margin: 0; color: var(--co-muted); font-size: 13px; }
.vnt39co-line__body dl.variation dt,
.vnt39co-line__body dl.variation dd { display: inline; float: none; margin: 0; padding: 0; font-weight: 400; }
.vnt39co-line__body dl.variation dd p { display: inline; margin: 0; }
.vnt39co-line__body dl.variation dd::after { content: ' · '; }
.vnt39co-line__body dl.variation dd:last-of-type::after { content: ''; }
.vnt39co-line__body .product-quantity { color: var(--co-muted); font-size: 13px; font-weight: 400; }
.vnt39co-review .vnt39co-coupon td { padding: 12px 0; text-align: left; white-space: normal; }
.vnt39co-coupon__toggle { margin: 0; padding: 0; border: 0; background: none; color: var(--co-red); font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; cursor: pointer; min-height: 44px; }
.vnt39co-coupon__box { display: flex; gap: 10px; margin-top: 6px; }
.vnt39co-coupon__box[hidden] { display: none; }
.vnt39co-coupon__box .input-text { flex: 1 1 auto; min-width: 0; height: 46px; }
.vnt39co-coupon__apply.button { margin: 0; height: 46px; padding: 0 18px; border-radius: 10px; background: var(--co-text); color: #fff; text-transform: none; letter-spacing: 0; font-size: 15px; }
.vnt39co-coupon-msg:empty { display: none; }
.vnt39co-coupon-msg .woocommerce-message,
.vnt39co-coupon-msg .woocommerce-error,
.vnt39co-coupon-msg .woocommerce-info { margin: 0 0 12px; font-size: 14px; }
.vnt39co-review tr.order-total th { padding-top: 16px; color: var(--co-text); font-size: 18px; font-weight: 800; vertical-align: middle; }
.vnt39co-review tr.order-total td { padding-top: 16px; color: var(--co-red); font-size: 30px; font-weight: 900; line-height: 1.1; }
.vnt39co-review tr.order-total td strong { font-weight: 900; }
.vnt39co-review .woocommerce-remove-coupon { color: var(--co-red); font-weight: 500; }

/* ---------- payment */
.vnt39co-payhead { margin: 20px 0 12px; padding-top: 18px; border-top: 1px solid var(--co-line); }
.vnt39co-page #payment { background: none; border: 0; padding: 0; }
.vnt39co-page #payment ul.payment_methods { margin: 0; padding: 0; border: 0; }
.vnt39co-page #payment .wc_payment_method { margin: 0 0 10px; padding: 16px 18px; border: 1px solid var(--co-line); border-radius: 12px; list-style: none; }
.vnt39co-page #payment .wc_payment_method:has(input:checked),
.vnt39co-page #payment ul.payment_methods > li:only-child { border-color: transparent; background: var(--co-red-soft); }
.vnt39co-page #payment .wc_payment_method > label { display: inline; margin: 0; color: var(--co-red); font-size: 16px; font-weight: 700; }
.vnt39co-page #payment .wc_payment_method input.input-radio { accent-color: var(--co-red); margin-right: 8px; }
.vnt39co-page #payment .payment_box { margin: 8px 0 0; padding: 0; background: none; color: var(--co-muted); font-size: 14px; }
.vnt39co-page #payment .payment_box::before { display: none; }
.vnt39co-page #payment .place-order { margin: 0; padding: 8px 0 0; }
.vnt39co-page #place_order,
.vnt39co-btn.button {
	display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin: 6px 0 0; padding: 0 20px;
	border: 1px solid var(--co-red); border-radius: 12px; background: var(--co-red); color: #fff; font-size: 17px; font-weight: 800; text-transform: none; letter-spacing: 0; box-shadow: none;
}
.vnt39co-page #place_order:hover,
.vnt39co-btn.button:hover { background: #7E1530; border-color: #7E1530; color: #fff; }
.vnt39co-submit-note { margin: 12px 0 0; color: var(--co-muted); font-size: 13px; line-height: 1.55; }
.vnt39co-page .woocommerce-privacy-policy-text { color: var(--co-muted); font-size: 13px; }

/* ---------- order received / order card */
.vnt39co-badge { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--co-red-soft); color: var(--co-red); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.vnt39co-done__title { margin: 16px 0 8px; font-size: 32px; line-height: 1.25; font-weight: 800; color: var(--co-text); text-transform: none; letter-spacing: 0; }
.vnt39co-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 24px; padding: 18px 22px; border-radius: 12px; background: var(--co-red-soft); }
.vnt39co-status strong { display: block; color: var(--co-red); font-size: 18px; font-weight: 800; }
.vnt39co-status > div > span { display: block; margin-top: 2px; color: var(--co-muted); font-size: 14px; }
.vnt39co-status__total { color: var(--co-red); font-size: 30px; font-weight: 900; white-space: nowrap; }
.vnt39co-bank { margin: 0 0 18px; }
.vnt39co-bank .vnt39co-h3 { margin-top: 0; }
.vnt39co-bank__list { margin: 0; padding: 8px 20px; border-radius: 12px; background: var(--co-bg); }
.vnt39co-bank__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--co-line); }
.vnt39co-bank__row:first-child { border-top: 0; }
.vnt39co-bank__row dt { margin: 0; color: var(--co-muted); font-size: 15px; font-weight: 400; }
.vnt39co-bank__row dd { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--co-text); font-size: 16px; text-align: right; }
.vnt39co-bank__row dd.is-strong span { font-weight: 800; letter-spacing: .02em; }
.vnt39co-copy { margin: 0; min-height: 36px; padding: 0 12px; border: 1px solid #DCD5DB; border-radius: 8px; background: #fff; color: var(--co-red); font-size: 13px; font-weight: 700; text-transform: none; letter-spacing: 0; line-height: 34px; cursor: pointer; }
.vnt39co-copy.is-done { border-color: #1E7A46; color: #1E7A46; }
.vnt39co-bank__note,
.vnt39co-next,
.vnt39co-help { margin: 0 0 16px; color: var(--co-muted); font-size: 14px; line-height: 1.6; }
.vnt39co-help a { color: var(--co-red); font-weight: 600; }
.vnt39co-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--co-line); }
.vnt39co-actions .vnt39co-btn.button { margin: 0; font-size: 16px; }
.vnt39co-btn--ghost.button { background: #fff; color: var(--co-red); border-color: #DCD5DB; }
.vnt39co-btn--ghost.button:hover { background: var(--co-red-soft); color: var(--co-red); border-color: var(--co-red); }
.vnt39co-items { margin: 0 0 16px; padding: 0; list-style: none; }
.vnt39co-items__row { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 14px; }
.vnt39co-items__thumb { flex: 0 0 72px; width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.vnt39co-items__thumb img { max-width: 72px; max-height: 72px; width: auto; height: auto; object-fit: contain; }
.vnt39co-items__body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 3px; min-width: 0; }
.vnt39co-items__name { font-size: 17px; font-weight: 800; color: var(--co-text); }
.vnt39co-items__meta,
.vnt39co-items__qty,
.vnt39co-items__warranty { color: var(--co-muted); font-size: 14px; }
.vnt39co-items__price { font-weight: 700; white-space: nowrap; }
.vnt39co-ordercard { margin: 0 0 24px; }
.vnt39co-ordercard .vnt39co-status { margin-top: 12px; }
.vnt39co-warranty { color: var(--co-muted); }

/* ---------- tablet / mobile */
@media (max-width: 1023px) {
	.vnt39co-grid { grid-template-columns: 1fr; gap: 20px; }
	.vnt39co-side { position: static; }
}
@media (max-width: 849px) {
	.vnt39co-head { padding: 20px 0 4px; }
	.vnt39co-head__title { font-size: 26px; }
	.vnt39co-steps { gap: 8px 18px; }
	.vnt39co-steps__item { font-size: 14px; }
	.vnt39co-steps__n { width: 26px; height: 26px; margin-right: 8px; font-size: 13px; }
	.vnt39co-card { padding: 20px 16px; border-radius: 12px; }
	.vnt39co-h2 { font-size: 21px; }
	.vnt39co-form .woocommerce-billing-fields__field-wrapper { display: flex; flex-direction: column; }
	.vnt39co-done__title { font-size: 26px; }
	.vnt39co-status { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; }
	.vnt39co-status__total { font-size: 28px; }
	.vnt39co-bank__list { padding: 4px 14px; }
	.vnt39co-bank__row { flex-wrap: wrap; }
	.vnt39co-bank__row dd { font-size: 15px; }
	.vnt39co-actions { grid-template-columns: 1fr; }
	.vnt39co-review tr.order-total td { font-size: 26px; }
}
@media (max-width: 380px) {
	.vnt39co-steps__item { font-size: 13px; }
	.vnt39co-steps { gap: 6px 12px; }
	.vnt39co-line__thumb { flex-basis: 52px; width: 52px; height: 52px; }
	.vnt39co-line__thumb img { max-width: 52px; max-height: 52px; }
}

/* ---------- Flatsome overrides found on staging (specificity) */
.vnt39co-form .form-row .required { visibility: visible !important; display: inline !important; }
.vnt39co-form .woocommerce-billing-fields { border-top: 0 !important; padding-top: 0 !important; }
.vnt39co-page .vnt39co-h2,
.vnt39co-page .vnt39co-h3 { text-transform: none !important; letter-spacing: 0 !important; }
.vnt39co-review tfoot tr.vnt39co-coupon td { text-align: left !important; }
.vnt39co-review tfoot tr.order-total th,
.vnt39co-review tfoot tr.order-total td { border-top: 1px solid var(--co-line) !important; }
.vnt39co-review tfoot tr.order-total td,
.vnt39co-review tfoot tr.order-total td * { color: var(--co-red) !important; }
.vnt39co-coupon__apply.button { flex: 0 0 auto; min-width: 96px; line-height: 46px; white-space: nowrap; }
.vnt39co-status .vnt39co-status__total { font-size: 30px !important; line-height: 1.1; color: var(--co-red) !important; white-space: nowrap; font-weight: 900; }
.vnt39co-status__total * { display: inline !important; font-size: inherit !important; color: inherit !important; font-weight: inherit !important; }
@media (max-width: 849px) { .vnt39co-status .vnt39co-status__total { font-size: 26px !important; } }
.vnt39co-bank__row dt { text-transform: none !important; letter-spacing: 0 !important; }
.vnt39co-review tfoot tr.cart-discount th { font-size: 15px; }
.vnt39co-review td.product-name,
.vnt39co-review td.product-name * { text-align: left !important; }
.vnt39co-review tfoot tr.cart-subtotal th,
.vnt39co-review tfoot tr.cart-subtotal td { font-size: 15px !important; }

/* ---------- order-received without a readable order + WooCommerce e-mail check form */
.vnt39co-page .woocommerce-thankyou-order-received:not(.vnt39co-done__title) { max-width: 760px; margin: 0 auto 16px; padding: 18px 22px; border: 1px solid var(--co-line); border-radius: 12px; background: #fff; color: var(--co-text); font-size: 15px; font-weight: 500; }
.vnt39co-page form.woocommerce-verify-email { max-width: 760px; margin: 0 auto; padding: 22px; border: 1px solid var(--co-line); border-radius: var(--co-radius); background: #fff; }
.vnt39co-page form.woocommerce-verify-email input[type="email"] { height: 50px; border: 1px solid #DCD5DB; border-radius: 10px; box-shadow: none; font-size: 16px; }
.vnt39co-page form.woocommerce-verify-email .button { min-height: 50px; padding: 0 24px; border-radius: 10px; background: var(--co-red); color: #fff; text-transform: none; letter-spacing: 0; font-size: 16px; }
.vnt39co-page .order-again .button { min-height: 48px; padding: 0 22px; border-radius: 10px; background: #fff; border: 1px solid #DCD5DB; color: var(--co-red); text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 700; }
.vnt39co-page .woocommerce-customer-details address { font-style: normal; }
