/* Checkout 2 bước (Trello #326, inc/checkout/) — mobile trước; ≥1024px 2 cột, cột phải sticky.
   Đỏ chỉ cho 1 nút CTA mỗi trang; xanh Greentech chỉ cho Greentech®/tiết kiệm. */
.mitn-co { --co-line: var(--color-border-subtle, #e5e7eb); --co-soft: var(--color-surface-sunken, #f2f4f7); --co-acc: var(--color-brand-secondary, #0b2f73);
	max-width: 1080px; margin: 0 auto; padding: 0 0 120px; font-family: var(--font-body); font-size: var(--fs-base); color: var(--color-text-primary, #111827); }
.mitn-co.is-busy [data-co-body] { opacity: .6; pointer-events: none; transition: opacity .15s; }
.mitn-co h1, .mitn-co h2, .mitn-co h3 { font-family: var(--font-heading); color: inherit; }
.co-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 52px; margin: 0 -16px 12px; padding: 0 4px; border-bottom: 1px solid var(--co-line); background: var(--color-surface-base, #fff); }
.co-head h1 { margin: 0; font-size: var(--fs-md); text-align: center; }
.co-back { display: grid; place-items: center; height: 44px; font-size: 26px; color: inherit; text-decoration: none; }
.co-tel { justify-self: end; padding: 8px 14px 8px 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--color-brand-primary, #dd3333); }
.co-grid { display: grid; gap: 12px; }
.co-card { border: 1px solid var(--co-line); border-radius: 12px; background: var(--color-surface-base, #fff); }
.co-h { margin: 0; padding: 14px 14px 4px; font-size: var(--fs-base); }
/* B1 + B2 */
.co-mode { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; border: 0; }
.co-mode label { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 12px 8px; border-radius: 12px 12px 0 0; background: var(--co-soft); font-size: var(--fs-sm); font-weight: 600; color: var(--color-text-muted, #4b5563); cursor: pointer; }
.co-mode label:has(input:checked) { background: var(--color-surface-base, #fff); color: inherit; }
.co-mode input { margin: 0; accent-color: var(--co-acc); }
.mitn-co .co-addr { display: grid; grid-template-columns: 22px 1fr 18px; gap: 10px; align-items: center; width: 100%; min-height: 0; margin: 0; padding: 14px; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-transform: none; letter-spacing: 0; cursor: pointer; }
.co-addr b { display: block; font-size: var(--fs-sm); }
.co-addr small { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--color-text-muted, #4b5563); }
.co-addr small.is-warn { color: #c2410c; }
.co-pin { width: 18px; height: 18px; border-radius: 50% 50% 50% 0; background: #c2410c; transform: rotate(-45deg); justify-self: center; }
.co-pin.is-ok { background: var(--co-acc); }
.co-chev { font-size: 20px; color: var(--color-text-subtle, #9ca3af); }
.co-recv.is-error { border-color: var(--color-brand-primary, #dd3333); box-shadow: 0 0 0 1px var(--color-brand-primary, #dd3333) inset; }
/* B3 */
.co-items ul { margin: 0; padding: 0; list-style: none; }
.co-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; margin: 0; padding: 12px 14px; border-top: 1px solid var(--co-line); }
.co-item:first-child { border-top: 0; }
.co-thumb { display: block; width: 72px; height: 72px; overflow: hidden; border-radius: 8px; background: var(--co-soft); }
.co-thumb img { width: 100%; height: 100%; object-fit: contain; }
.co-name { font-size: var(--fs-sm); font-weight: 600; line-height: var(--lh-snug); color: inherit; }
.co-sku { margin-top: 2px; font-size: var(--fs-xs); color: var(--color-text-muted, #6b7280); }
.co-price { margin-top: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.co-price s { margin-left: 6px; font-size: var(--fs-xs); font-weight: 400; color: var(--color-text-muted, #6b7280); }
.co-pill { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: var(--color-greentech, #047857); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.co-green { color: var(--color-greentech, #047857); }
.co-gt { display: inline-block; margin-top: 6px; padding: 3px 8px; border-radius: 6px; background: var(--color-greentech-bg, #ecfdf5); color: var(--color-greentech, #047857); font-size: var(--fs-xs); font-weight: 600; }
.co-qty { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid var(--co-line); border-radius: 8px; }
.mitn-co .co-qty button { width: 34px; height: 34px; min-height: 0; margin: 0; padding: 0; border: 0; background: none; color: inherit; font-size: 16px; line-height: 1; }
.co-qty span { min-width: 28px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
/* B4 */
.co-upsell { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px 12px; align-items: start; padding: 12px 14px; border-top: 1px dashed var(--co-line); }
.mitn-co .co-upsell .co-btn-gt { grid-column: 2; justify-self: start; padding: 0 14px; line-height: 34px; } /* điện thoại: nút xuống dưới giá, như ô số lượng */
@media (min-width: 1024px) { .co-upsell { grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; } .mitn-co .co-upsell .co-btn-gt { grid-column: auto; } }
.co-upsell .co-thumb { width: 56px; height: 56px; }
.co-up-t { margin: 0; font-family: var(--font-body) !important; font-size: var(--fs-sm); font-weight: 600; }
.mitn-co .co-btn-gt { min-height: 0; margin: 0; padding: 8px 12px; white-space: nowrap; border: 1px solid var(--color-greentech, #047857); border-radius: 8px; background: #fff; color: var(--color-greentech, #047857); font-size: var(--fs-sm); font-weight: 700; text-transform: none; letter-spacing: 0; }
/* B6 */
.co-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 0; font-size: var(--fs-xs); color: var(--color-text-muted, #4b5563); }
.co-trust span::before { content: "✓ "; font-weight: 700; color: var(--color-greentech, #047857); }
/* B5 + B7: thanh dính đáy trên mobile */
.co-sum { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 0 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--co-line); background: var(--color-surface-base, #fff); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
.co-coupon { border-bottom: 1px solid var(--co-line); margin: 0 -16px; padding: 0 16px; }
.co-coupon summary { padding: 10px 0; font-size: var(--fs-sm); font-weight: 600; list-style: none; cursor: pointer; }
.co-coupon summary::-webkit-details-marker { display: none; }
.co-coupon summary::after { content: " ›"; color: var(--color-text-subtle, #9ca3af); }
.co-coupon__f { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 10px; }
.co-coupon__f input { flex: 1 1 140px; height: 40px; margin: 0; }
.mitn-co .co-coupon__f button { min-height: 0; height: 40px; margin: 0; padding: 0 14px; border: 1px solid var(--co-line); border-radius: 8px; background: #fff; color: inherit; font-size: var(--fs-sm); text-transform: none; letter-spacing: 0; }
.co-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; border-radius: 999px; background: var(--co-soft); font-size: var(--fs-xs); font-weight: 600; }
.mitn-co .co-chip button { height: 22px !important; padding: 0 6px !important; border: 0 !important; background: none !important; }
.co-sum__row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding-top: 10px; }
.co-total { display: block; font-size: var(--fs-lg); font-weight: 700; color: var(--color-brand-primary, #dd3333); font-variant-numeric: tabular-nums; }
.co-sub { display: block; font-size: var(--fs-xs); color: var(--color-text-muted, #4b5563); }
.co-sub.is-green { color: var(--color-greentech, #047857); font-weight: 600; }
.mitn-co .co-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin: 0; padding: 0 22px; border: 0; border-radius: 10px; background: var(--color-brand-primary, #dd3333); color: #fff !important; font-size: var(--fs-base); font-weight: 700; text-decoration: none; text-transform: none; letter-spacing: 0; }
.mitn-co .co-cta:hover { background: var(--color-brand-primary-hover, #c12424); }
/* Màn Thông tin nhận hàng */
.co-sheet { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; }
.co-sheet::backdrop { background: rgba(10, 18, 30, .5); }
.co-sheet__in { position: fixed; inset: 0; display: flex; flex-direction: column; margin: 0; background: var(--color-surface-base, #fff); }
.co-sheet__h { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 52px; border-bottom: 1px solid var(--co-line); }
.co-sheet__h h2 { margin: 0; font-size: var(--fs-md); text-align: center; }
.mitn-co .co-x { min-height: 0; height: 44px; margin: 0; padding: 0; border: 0; background: none; color: inherit; font-size: 26px; }
.co-sheet__b { flex: 1; overflow: auto; padding: 14px 16px; }
.co-sheet__f { padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--co-line); }
.co-sheet__f .co-cta { width: 100%; }
.co-hon { display: flex; gap: 18px; margin: 0 0 12px; padding: 0; border: 0; }
.co-hon label, .co-chk label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-sm); font-weight: 500; }
.co-f { display: grid; gap: 6px; margin: 0 0 12px; }
.co-f label { margin: 0; font-size: var(--fs-sm); font-weight: 600; }
.co-f input, .co-f select { width: 100%; margin: 0; font-size: var(--fs-base); }
.co-err { font-size: var(--fs-xs); color: var(--color-brand-primary, #dd3333); }
.co-err:empty { display: none; }
.co-chk { margin: 0 0 12px; }
.co-help { margin: 0 0 12px; font-size: var(--fs-sm); color: var(--color-text-muted, #4b5563); }
.co-h3 { margin: 4px 0 10px; font-size: var(--fs-base); }
@media (min-width: 1024px) {
	.mitn-co { padding-bottom: 40px; }
	.co-head { margin: 0 0 16px; border-radius: 12px; border: 1px solid var(--co-line); }
	.co-grid--cart { grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "items recv" "items sum" "items trust"; align-items: start; }
	.co-grid--cart .co-items { grid-area: items; }
	.co-grid--cart .co-recv { grid-area: recv; }
	.co-grid--cart .co-trust { grid-area: trust; }
	.co-grid--cart .co-sum { grid-area: sum; position: sticky; top: 16px; padding: 0 16px 16px; border: 1px solid var(--co-line); border-radius: 12px; box-shadow: none; }
	.co-sheet__in { inset: auto; top: 50%; left: 50%; width: 480px; max-height: 88vh; border-radius: 14px; transform: translate(-50%, -50%); }
}
@media (prefers-reduced-motion: reduce) { .mitn-co.is-busy [data-co-body] { transition: none; } }
/* Header/footer rút gọn: không menu, search, promo, thanh đáy, nút nổi (spec §8). */
/* Header + footer theme giữ nguyên ở cả 3 trang (chủ site 30/10); chỉ ẩn thanh đáy + nút nổi vì che thanh Đặt mua. */
.mitn-co-page #navi-mojs, .mitn-co-page .ft-svg-container, .mitn-co-page .ntm-floating-contact, .mitn-co-page .page-title, .mitn-co-page .woocommerce-breadcrumb { display: none !important; }
/* ── Bước 2 Thanh toán ── mobile: 2 cột tan ra, xếp lại C1…C9 bằng order. */
.co-grid--pay .co-left, .co-grid--pay .co-right { display: contents; }
.co-c1 { order: 1; } .co-c2 { order: 2; } .co-c3 { order: 3; } .co-c4 { order: 4; } .co-c6 { order: 6; } .co-c7 { order: 7; } .co-consent { order: 8; } .co-sum--pay { order: 9; }
.co-c1 { background: var(--co-soft); }
.co-addr--static { cursor: default; }
.co-link { justify-self: end; font-size: var(--fs-sm); font-weight: 600; color: var(--co-acc); }
.mitn-co .co-link--btn { display: block; min-height: 0; margin: 0; padding: 0 14px 14px; border: 0; background: none; color: var(--co-acc); font-size: var(--fs-sm); font-weight: 600; text-transform: none; letter-spacing: 0; }
.co-h--row { display: flex; justify-content: space-between; align-items: baseline; padding-right: 14px; }
.co-ship { position: relative; margin: 6px 14px 12px; padding: 12px 14px; border: 1.5px solid var(--co-acc); border-radius: 12px; background: #f7f9ff; }
.co-ship::before { content: "✓"; position: absolute; top: -1px; left: -1px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 12px 0 10px 0; background: var(--co-acc); color: #fff; font-size: 12px; font-weight: 700; }
.co-ship__l1 { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.co-ship__fee.is-free { color: var(--color-greentech, #047857); }
.co-ship__l2 { margin-top: 4px; font-size: var(--fs-sm); color: var(--color-text-muted, #4b5563); }
.co-ship__l2 b { color: var(--color-text-primary, #111827); }
.co-vat-row { grid-template-columns: 1fr 18px !important; }
.co-toggle { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-top: 1px solid var(--co-line); font-size: var(--fs-sm); font-weight: 600; }
.mitn-co .co-sw { position: relative; width: 44px; height: 26px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 13px; background: #cfd6e2; }
.mitn-co .co-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.mitn-co .co-sw[aria-checked="true"] { background: var(--co-acc); }
.mitn-co .co-sw[aria-checked="true"]::after { left: 21px; }
.co-note { padding: 0 14px 14px; }
.co-note .form-row { margin: 0; padding: 0; }
.co-note label { font-size: var(--fs-sm); }
.co-note textarea { min-height: 84px; margin: 0; }
.co-pays { margin: 0; padding: 0; border: 0; }
.co-pays ul { margin: 0; padding: 0; list-style: none; }
.co-pays li { margin: 0; border-top: 1px solid var(--co-line); }
.co-pays li:first-child { border-top: 0; }
.co-pay { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; font-weight: 400; cursor: pointer; }
.co-pay input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--co-acc); }
.co-pay > span:last-child { flex: 1; min-width: 0; } /* COD không có icon → chữ sát radio */
.co-pays ul:has(.co-pay__ic) .co-pay:not(:has(.co-pay__ic)) > span:last-child { margin-left: 40px; } /* có cổng khác mang icon → giữ chữ thẳng hàng */
.co-pay__ic { flex: none; display: grid; place-items: center; width: 30px; height: 22px; border-radius: 5px; background: var(--co-soft); font-size: 11px; font-weight: 700; color: var(--color-text-muted, #4b5563); }
.co-pay b { display: block; font-size: var(--fs-sm); }
.co-pay small { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--color-text-muted, #4b5563); }
.co-cards { display: flex; gap: 4px; margin-top: 6px; }
.co-cards i { padding: 1px 4px; border: 1px solid var(--co-line); border-radius: 3px; font-size: 9px; font-style: normal; font-weight: 700; color: var(--color-text-muted, #4b5563); }
.co-pays .payment_box { margin: 0 14px 12px; padding: 10px; border-radius: 8px; background: var(--co-soft); font-size: var(--fs-sm); }
.co-mini { margin: 0; padding: 4px 14px 12px; list-style: none; }
.co-mini li { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; margin: 0; padding: 6px 0; }
.co-thumb--sm { width: 48px; height: 48px; }
.co-mini small { display: block; font-size: var(--fs-xs); color: var(--color-text-muted, #4b5563); }
.co-tot { width: 100%; margin: 0; border: 0 !important; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.co-tot th, .co-tot td { padding: 7px 14px !important; border: 0 !important; font-weight: 400; text-transform: none; letter-spacing: 0; background: none !important; }
.co-tot td { text-align: right; font-weight: 600; }
.co-tot td.is-free { color: var(--color-greentech, #047857); }
.co-tot__sum th, .co-tot__sum td { padding-top: 10px !important; border-top: 1px solid var(--co-line) !important; font-size: var(--fs-base); font-weight: 700 !important; }
.co-tot__sum td { color: var(--color-brand-primary, #dd3333); font-size: var(--fs-lg); }
.co-tot__sum small { display: block; font-size: 11px; font-weight: 400; color: var(--color-text-subtle, #9ca3af); }
.co-consent { margin: 0; padding: 0 2px; font-size: var(--fs-xs); line-height: 1.45; color: var(--color-text-muted, #4b5563); }
.co-consent label { display: grid; grid-template-columns: 20px 1fr; gap: 8px; margin: 0; font-weight: 400; }
.co-consent span { text-align: justify; }
.co-consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--co-acc); }
.co-consent a { color: var(--co-acc); }
.co-sum--pay .co-sum__row { padding-top: 12px; }
.co-paybar .co-total, .co-paybar .co-sub { display: block; }
.mitn-co .co-cta:disabled { background: #e8b4b4; cursor: not-allowed; }
.co-sheet__f--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mitn-co .co-btn-ghost { min-height: 46px; margin: 0; padding: 0 16px; border: 1px solid var(--co-line); border-radius: 10px; background: #fff; color: inherit; font-size: var(--fs-base); font-weight: 600; text-transform: none; letter-spacing: 0; }
.co-pop { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.co-pop::backdrop { background: rgba(10, 18, 30, .55); }
.co-pop__in { position: fixed; left: 0; right: 0; bottom: 0; padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 18px 18px 0 0; background: #fff; color: var(--color-text-primary, #111827); }
.co-pop__in h2 { margin: 0 0 10px; font-size: var(--fs-md); }
.co-pop__in ul { margin: 0 0 12px; padding-left: 18px; font-size: var(--fs-sm); line-height: 1.5; }
.co-pop__in li { margin-bottom: 4px; }
.mitn-co .co-pop__x { float: right; width: 36px; height: 36px !important; font-size: 18px; }
.co-pop__ok { width: 100%; }
@media (min-width: 1024px) {
	.co-grid--pay { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
	.co-grid--pay .co-left, .co-grid--pay .co-right { display: grid; gap: 12px; }
	.co-grid--pay .co-right { position: sticky; top: 16px; }
	.co-grid--pay .co-sum--pay { position: static; padding: 0 0 4px; border: 0; box-shadow: none; background: none; }
	.co-pop__in { left: 50%; right: auto; bottom: auto; top: 50%; width: 480px; border-radius: 14px; transform: translate(-50%, -50%); }
}
/* ── Trang Cảm ơn ── */
.co-head--plain { grid-template-columns: 44px 1fr 44px; }
.co-grid--thanks { max-width: 780px; margin: 0 auto; }
.co-ok { display: grid; justify-items: center; gap: 4px; padding: 24px 16px 18px; text-align: center; }
.co-ok h2 { margin: 6px 0 0; font-size: var(--fs-h3); }
.co-ok p { margin: 0; font-size: var(--fs-sm); color: var(--color-text-muted, #4b5563); }
.co-ok__ring { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--color-greentech-bg, #ecfdf5); color: var(--color-greentech, #047857); font-size: 28px; font-weight: 700; }
.co-kv { margin: 0; padding: 6px 14px 14px; font-size: var(--fs-sm); line-height: 1.5; color: var(--color-text-muted, #4b5563); }
.co-kv b { color: var(--color-text-primary, #111827); }
.co-vat-done { padding-top: 14px; }
.co-qr > *:not(h2):not(.co-kv) { margin-left: 14px; margin-right: 14px; }
.co-follow { display: grid; justify-items: center; gap: 8px; }
.co-zalo { display: block; width: 100%; padding: 12px; border-radius: 10px; background: #0068ff; color: #fff !important; font-weight: 700; text-align: center; }
.co-upsell--plain { border-top: 0; grid-template-columns: 56px 1fr; }
/* Flatsome thêm margin/vertical-align cho radio + checkbox → lệch xuống so với chữ. Căn lại trong màn nhập + ô đồng ý. */
.mitn-co .co-hon label, .mitn-co .co-chk label, .mitn-co .co-mode label { line-height: 1.3; }
.mitn-co .co-hon input, .mitn-co .co-chk input, .mitn-co .co-mode input, .mitn-co .co-consent input, .mitn-co .co-pay input { flex: none; width: 18px; height: 18px; margin: 0 !important; vertical-align: middle; position: static; top: auto; }
.mitn-co .co-consent input, .mitn-co .co-pay input { margin-top: 1px !important; }
/* Chỉ 1 phương thức: WC checkout.js ẩn radio (display:none) → icon + chữ dồn sang cột 20px/30px, chữ vỡ từng từ. Giữ radio hiện. */
.mitn-co .co-pay input { display: block !important; }
.mitn-co .co-sheet__h h2, .mitn-co .co-sheet__h .co-x { line-height: 1; }
.mitn-co .co-x { display: grid; place-items: center; }
/* 2 tuỳ chọn Người khác nhận hàng · Nhớ thông tin nằm ngang 1 hàng (xuống dòng khi hẹp). */
.co-chks { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.co-chks .co-chk { margin: 0; }
.mitn-co .co-chks label { gap: 6px; font-size: 13px; white-space: nowrap; }
@media (max-width: 400px) { .co-chks { gap: 8px; } .mitn-co .co-chks label { font-size: 12px; } }
/* Toast thông báo (assets/js/checkout-2.js): nổi giữa trên, tự ẩn. */
.co-toast { position: fixed; top: 16px; left: 50%; z-index: 100000; width: max-content; max-width: min(520px, calc(100% - 32px)); padding: 12px 16px 12px 40px; border-radius: 10px; background: var(--color-surface-inverse, #0f172a); color: #fff; font-family: var(--font-body); font-size: var(--fs-sm); line-height: 1.45; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transform: translateX(-50%); cursor: pointer; animation: co-toast-in .25s ease-out; }
.co-toast::before { content: "✓"; position: absolute; left: 14px; top: 50%; display: grid; place-items: center; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--color-greentech, #047857); font-size: 11px; font-weight: 700; }
.co-toast.is-err::before { content: "!"; background: var(--color-brand-primary, #dd3333); }
.co-toast.is-out { opacity: 0; transform: translate(-50%, -8px); transition: opacity .25s, transform .25s; }
@keyframes co-toast-in { from { opacity: 0; transform: translate(-50%, -8px); } }
@media (prefers-reduced-motion: reduce) { .co-toast { animation: none; } .co-toast.is-out { transition: none; } }
/* Chia sẻ vị trí (chỉ điện thoại — JS bỏ hidden). */
.co-geo { display: grid; gap: 6px; margin: 0 0 12px; text-align: center; }
.mitn-co .co-geo__btn { min-height: 44px; margin: 0; padding: 0 16px; border: 0; border-radius: 999px; background: #eaf2ff; color: var(--co-acc); font-size: var(--fs-sm); font-weight: 600; text-transform: none; letter-spacing: 0; }
.mitn-co .co-geo__btn:disabled { opacity: .7; }
.co-geo small { font-size: var(--fs-xs); color: var(--color-text-muted, #4b5563); }
.co-geo__or { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font-size: var(--fs-xs); color: var(--color-text-subtle, #9ca3af); }
.co-geo__or::before, .co-geo__or::after { content: ""; flex: 1; height: 1px; background: var(--co-line); }
/* Màn nhập 2 tầng (3.0.385): màn chính ↔ màn con "Chọn địa chỉ" trượt ngang trong cùng dialog. */
.co-sheet__in { display: block; overflow: hidden; }
.co-panes { display: flex; width: 200%; height: 100%; transition: transform .25s ease; }
.co-sheet.is-addr .co-panes { transform: translateX(-50%); }
.co-pane { display: flex; flex: 0 0 50%; flex-direction: column; width: 50%; height: 100%; min-height: 0; }
.co-where__card { padding: 12px; border: 1px solid var(--co-line); border-radius: 12px; }
.co-where__card .co-geo { margin-bottom: 10px; }
.mitn-co .co-addr-pick { display: grid; grid-template-columns: 1fr 18px; gap: 10px; align-items: center; width: 100%; min-height: 0; margin: 0; padding: 12px 14px; border: 1px solid var(--co-line); border-radius: 10px; background: #fff; color: inherit; font: inherit; text-align: left; text-transform: none; letter-spacing: 0; cursor: pointer; }
.co-addr-pick b { display: block; font-size: var(--fs-sm); color: var(--co-acc); }
.co-addr-pick small { display: block; margin-top: 2px; font-size: var(--fs-xs); line-height: 1.4; color: var(--color-text-muted, #4b5563); }
.co-wards { margin: 8px 0 0; padding: 0; list-style: none; }
.co-wards li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; align-items: center; margin: 0; border-bottom: 1px solid var(--co-line); }
.co-wards li > i { align-self: start; padding-top: 13px; font-size: 12px; font-style: normal; font-weight: 700; color: var(--color-text-subtle, #8a94a6); }
.mitn-co .co-wards button { display: block; width: 100%; min-height: 0; margin: 0; padding: 12px 28px 12px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-transform: none; letter-spacing: 0; position: relative; cursor: pointer; }
.co-wards b { display: block; font-size: var(--fs-sm); font-weight: 600; }
.co-wards small { display: block; margin-top: 4px; font-size: var(--fs-xs); line-height: 1.4; color: var(--color-text-muted, #6b7280); }
.co-wards [aria-selected="true"] b { color: var(--co-acc); }
.co-wards [aria-selected="true"]::after { content: "✓"; position: absolute; right: 4px; top: 50%; margin-top: -10px; font-weight: 700; color: var(--co-acc); }
.co-wards__none { padding: 12px 2px; font-size: var(--fs-sm); color: var(--color-text-muted, #6b7280); }
@media (min-width: 1024px) { .co-sheet__in { height: min(720px, 88vh); } }
@media (prefers-reduced-motion: reduce) { .co-panes { transition: none; } }
/* Ô tìm phường dính trên khi cuộn danh sách dài. */
.co-pane[data-pane="addr"] #co-wq { position: sticky; top: -14px; z-index: 1; box-shadow: 0 6px 8px -6px rgba(0, 0, 0, .12); }
/* Email thu gọn sau dòng mời; máy tính: khung rộng 600px, Họ tên + SĐT 1 hàng (điện thoại giữ 1 cột). */
.mitn-co .co-more { display: block; min-height: 0; margin: -2px 0 12px; padding: 0; border: 0; background: none; color: var(--co-acc); font-size: var(--fs-sm); font-weight: 600; text-align: left; text-transform: none; letter-spacing: 0; cursor: pointer; }
.mitn-co .co-more[hidden], .co-email[hidden] { display: none; }
@media (min-width: 1024px) {
	.co-sheet__in { width: 600px; }
	.co-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
}
/* Ô lỗi bên này không kéo giãn ô bên cạnh (Họ tên | SĐT 1 hàng trên máy tính). */
.co-f { align-content: start; }
.co-f__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mitn-co .co-f__head .co-more { margin: 0; font-size: var(--fs-xs); font-weight: 500; color: var(--color-text-muted, #6b7280); text-decoration: underline; }
/* 3.0.394 — Màn Chọn địa chỉ: Tỉnh → Phường (thu 1 dòng) → Số nhà gợi ý Google → bản đồ ghim */
.co-pane [hidden] { display: none !important; }
.co-f--street { position: relative; }
.co-sug { margin: 4px 0 0; padding: 4px 0; list-style: none; border: 1px solid var(--co-line); border-radius: 10px; background: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .08); }
.co-sug li { margin: 0; }
.mitn-co .co-sug button { display: block; width: 100%; min-height: 0; margin: 0; padding: 9px 12px 9px 34px; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-transform: none; letter-spacing: 0; position: relative; cursor: pointer; }
.mitn-co .co-sug button::before { content: ""; position: absolute; left: 12px; top: 13px; width: 12px; height: 12px; border: 2px solid var(--color-text-subtle, #9ca3af); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.mitn-co .co-sug button:hover, .mitn-co .co-sug button:focus-visible { background: var(--co-soft); }
.co-sug b { display: block; font-size: var(--fs-sm); font-weight: 600; }
.co-sug small { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--color-text-muted, #6b7280); }
.co-map { margin: 4px 0 0; }
.co-map__h { margin: 0 0 6px; font-size: var(--fs-xs); color: var(--color-text-muted, #6b7280); }
.co-map__box { position: relative; overflow: hidden; border: 1px solid var(--co-line); border-radius: 10px; }
.co-map__box img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; cursor: crosshair; }
.co-map__pin { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -31px 0 0 -13px; border-radius: 50% 50% 50% 0; /* mũi nhọn (góc xoay -45°) chạm đúng điểm */ background: var(--color-primary, #dc2626); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transform: rotate(-45deg); transform-origin: 50% 50%; pointer-events: none; transition: left .15s, top .15s; }
.co-map__pin::after { content: ""; position: absolute; left: 8px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
@media (prefers-reduced-motion: reduce) { .co-map__pin { transition: none; } }
/* 3.0.395 — "Đang tìm…" khi gõ số nhà + nút phóng to / thu nhỏ bản đồ */
.co-sug__msg { padding: 10px 12px; font-size: var(--fs-xs); color: var(--color-text-muted, #6b7280); }
.co-map__box img { transition: opacity .15s; }
.co-map.is-loading img { opacity: .5; }
.co-map__zoom { position: absolute; right: 8px; bottom: 8px; display: grid; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.mitn-co .co-map__zoom button { width: 36px; height: 36px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; color: #111; font-size: 20px; font-weight: 600; line-height: 1; text-transform: none; letter-spacing: 0; }
.mitn-co .co-map__zoom button + button { border-top: 1px solid var(--co-line); }
.mitn-co .co-map__zoom button:disabled { color: #c4c4c4; }
/* 3.0.398 — Trang Cảm ơn: mời thêm mực −% khi đơn chưa có mực */
.co-ink-note { margin: -4px 0 4px; font-size: var(--fs-xs); }
.mitn-co a.co-btn-gt { display: inline-flex; align-items: center; text-decoration: none; }
/* 3.0.399 — thanh tổng: phí giao xuống dòng riêng, nhãn đậm đen, "Báo sau" đỏ */
.co-sub__ship b { font-weight: 700; color: var(--color-text, #111827); }
.co-sub__ship .co-red { color: var(--color-primary, #dc2626); }
/* 3.0.406 — Màn Chọn địa chỉ theo mockup 1b: timeline 2 nấc Tỉnh → Phường, ô tìm bo tròn. */
.co-tl { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.co-tl__s { position: relative; margin: 0; padding-left: 30px; }
.co-tl__s::before { content: ""; position: absolute; left: 2px; top: 13px; width: 14px; height: 14px; border-radius: 50%; background: var(--co-acc); }
.co-tl__s.is-cur::before { background: #b7c0cf; }
.co-tl__s:first-child::after { content: ""; position: absolute; left: 7.5px; top: 27px; bottom: -21px; width: 3px; background: var(--co-acc); }
.co-tl__b, .mitn-co .co-tl__b { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; width: 100%; min-height: 0; margin: 0; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; text-transform: none; letter-spacing: 0; cursor: pointer; }
.co-tl__b b { display: block; font-size: var(--fs-sm); font-weight: 700; }
.co-tl__b small { display: block; margin-top: 2px; font-size: var(--fs-xs); line-height: 1.4; color: var(--color-text-muted, #5b6778); }
.co-tl__s.is-cur .co-tl__b { border-color: #bcd3ff; background: #eaf2ff; }
.co-tl__x { font-size: var(--fs-sm); font-weight: 600; color: var(--co-acc); }
.co-tl__s.is-cur .co-tl__x { display: none; }
/* Select tỉnh trong suốt phủ cả nấc 1: bấm ra danh sách native, 16px để iOS không zoom. */
.co-tl #co-prov { position: absolute; inset: 0 0 0 30px; width: calc(100% - 30px); height: 100%; margin: 0; opacity: 0; font-size: 16px; cursor: pointer; }
.co-pane[data-pane="addr"] #co-wq { padding: 11px 14px 11px 40px; border: 1px solid var(--co-line); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%235b6778' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") no-repeat 14px center; }
.co-wards [aria-selected="true"]::after { content: none; }
/* 3.0.407 — Ô "Số nhà, tên đường": bo 12px, icon ghim trái, viền xanh khi gõ (đồng bộ ô tìm phường) */
.co-pane[data-pane="addr"] .co-f--street { gap: 8px; margin-top: 16px; }
.co-pane[data-pane="addr"] #co-street { height: 48px; padding: 0 14px 0 42px; border: 1px solid var(--co-line); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%235b6778' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M9 16.5s5.5-4.8 5.5-9a5.5 5.5 0 0 0-11 0c0 4.2 5.5 9 5.5 9Z'/%3E%3Ccircle cx='9' cy='7.5' r='2'/%3E%3C/svg%3E") no-repeat 14px center; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.co-pane[data-pane="addr"] #co-street:focus { outline: 0; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.co-pane[data-pane="addr"] #co-street::placeholder { color: var(--color-text-subtle, #9ca3af); }
/* Mã giảm: mỗi mã đã áp 1 hàng riêng (số tiền giảm màu đỏ), ô Nhập mã + Áp dụng luôn chung 1 hàng. */
.co-coupon__f .co-chip { flex: 0 0 100%; justify-content: flex-start; }
.co-chip__amt { margin-left: auto; color: var(--color-brand-primary, #dd3333); font-weight: 700; }
.co-coupon__f input { flex: 1 1 0; min-width: 0; }
.mitn-co .co-coupon__f button[data-co-coupon] { flex: none; }
.mitn-co .co-chip button { display: inline-flex !important; align-items: center; justify-content: center; width: 22px; margin: 0 !important; padding: 0 !important; line-height: 1 !important; font-size: 16px; } /* nút × căn giữa: bỏ margin/line-height nút của Flatsome */
