/* HVSC – giỏ / thanh toán / cảm ơn (Woo classic). Dùng biến màu theme (tokens + hv-theme) → tự theo Sáng/Tối. */
:root { --co-r: 14px; --co-in: 48px; }
body.woocommerce-checkout .hv-prose, body.woocommerce-cart .hv-prose { max-width: none; }
body.woocommerce-checkout .hv-app, body.woocommerce-cart .hv-app { padding-top: 4px; padding-bottom: 56px; }

/* đầu trang + tiến độ */
.hvco-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 6px 0 22px; }
.hv-prose .hvco-title, .hvco-title { font-size: clamp(26px, 2vw + 14px, 36px); line-height: 1.2; margin: 0; letter-spacing: -.01em; color: var(--ink); }
.hvco-steps { display: flex; gap: 6px; list-style: none; margin: 0 !important; padding: 0 !important; font-size: 13.5px; color: var(--muted); }
.hvco-steps li { display: flex; align-items: center; gap: 8px; margin: 0 !important; padding: 0 !important; }
.hvco-steps li + li::before { content: ""; width: 22px; height: 2px; background: var(--line-2); border-radius: 2px; margin-right: 2px; }
.hvco-steps li::marker { content: none; }
.hvco-steps__n { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 12px; border: 2px solid var(--line-2); color: var(--muted); }
.hvco-steps .is-done .hvco-steps__n { background: var(--csr-ink, #137A47); border-color: transparent; color: #fff; }
.hvco-steps .is-cur { color: var(--ink); font-weight: 600; }
.hvco-steps .is-cur .hvco-steps__n { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 599px) { .hvco-steps li:not(.is-cur) span:last-child { display: none; } .hvco-head { margin-bottom: 16px; } }

/* thông báo chung */
body.woocommerce-checkout .woocommerce-info, body.woocommerce-checkout .woocommerce-message, body.woocommerce-cart .woocommerce-info, body.woocommerce-cart .woocommerce-message {
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); border-radius: var(--co-r); padding: 12px 16px 12px 44px; font-size: 14.5px; }
body.woocommerce-checkout .woocommerce-info::before, body.woocommerce-cart .woocommerce-info::before { color: var(--tech-ink, #4338CA); top: 13px; left: 16px; }
body.woocommerce-checkout .woocommerce-error, body.woocommerce-cart .woocommerce-error { background: var(--brand-50); color: var(--brand-700); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); border-radius: var(--co-r); padding: 12px 16px 12px 44px; font-size: 14.5px; }
html[data-theme="dark"] body .woocommerce-error { background: #2a1416; color: #ffb4b6; }
.woocommerce-form-login-toggle .woocommerce-info { padding: 10px 14px !important; font-size: 14px !important; }
.woocommerce-form-login-toggle .woocommerce-info::before { display: none; }
form.woocommerce-form-login { border: 1px solid var(--line) !important; border-radius: var(--co-r) !important; background: var(--surface); padding: 18px !important; margin: 0 0 18px !important; }

/* lưới thanh toán */
form.checkout.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 960px) {
  form.checkout.woocommerce-checkout { grid-template-columns: minmax(0, 1fr) 400px; gap: 28px 32px; }
  form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; }
  form.checkout #order_review { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h, 72px) + 16px); }
  .hvco-mini { display: none; }
}
@media (min-width: 1200px) { form.checkout.woocommerce-checkout { grid-template-columns: minmax(0, 1fr) 440px; } }
form.checkout #order_review_heading { display: none; }
form.checkout .col2-set, form.checkout .col2-set .col-1, form.checkout .col2-set .col-2 { float: none; width: 100%; max-width: none; margin: 0; padding: 0; }
form.checkout .col2-set::before, form.checkout .col2-set::after { display: none; }
form.checkout #customer_details { display: grid; gap: 16px; }
form.checkout .col-2 { display: grid; gap: 16px; }
form.checkout .col-2:empty, form.checkout .woocommerce-shipping-fields:empty { display: none; }

/* thẻ khối */
form.checkout .woocommerce-billing-fields, form.checkout .woocommerce-additional-fields, #hvsc_einv_box, #order_review {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 20px); padding: 20px; box-shadow: var(--shadow-1); }
@media (min-width: 600px) { form.checkout .woocommerce-billing-fields, form.checkout .woocommerce-additional-fields, #hvsc_einv_box, #order_review { padding: 24px; } }
form.checkout h3, .hv-prose form.checkout h3 { font-size: 18px; line-height: 1.3; margin: 0 0 14px; color: var(--ink); }
form.checkout .woocommerce-additional-fields > h3 { display: none; }
.hvco-sec-h h3 { margin: 0 0 4px !important; }
.hvco-sec-h p { margin: 0 0 4px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
form.checkout .woocommerce-additional-fields:not(:has(.hvco-sec-h)) { padding: 6px 20px; box-shadow: none; }

/* hàng trường */
form.checkout .woocommerce-billing-fields__field-wrapper, form.checkout .woocommerce-additional-fields__field-wrapper {
  display: grid; grid-template-columns: 1fr; gap: 14px 16px; }
@media (min-width: 600px) {
  form.checkout .woocommerce-billing-fields__field-wrapper, form.checkout .woocommerce-additional-fields__field-wrapper { grid-template-columns: 1fr 1fr; }
  form.checkout .form-row-wide, form.checkout .hvco-sec-h { grid-column: 1 / -1; }
}
form.checkout .form-row { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; position: relative; }
form.checkout .hvco-hidden { display: none !important; }
form.checkout .form-row > label, #hvsc_einv_box .form-row > label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 6px; line-height: 1.35; }
form.checkout .form-row .required { color: var(--brand-ink); text-decoration: none; border: 0; }
form.checkout .form-row .optional { color: var(--muted-2); font-weight: 400; font-size: 13px; }
form.checkout .input-text, form.checkout select, form.checkout textarea, .woocommerce-cart .hvco-yr__s, form.checkout .hvco-yr__s {
  width: 100%; min-height: var(--co-in); padding: 11px 14px; font: 400 16px/1.3 var(--font); color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line-2); border-radius: 12px; box-shadow: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
form.checkout select, .hvco-yr__s { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
form.checkout textarea { min-height: 88px; resize: vertical; }
form.checkout .input-text::placeholder, form.checkout textarea::placeholder { color: var(--muted-2); opacity: .85; }
form.checkout .input-text:hover, form.checkout select:hover { border-color: var(--line-ui, #8A8579); }
form.checkout .input-text:focus, form.checkout select:focus, form.checkout textarea:focus, .hvco-yr__s:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
form.checkout .woocommerce-invalid .input-text, form.checkout .woocommerce-invalid select, form.checkout .hvco-bad .input-text { border-color: var(--brand) !important; }
form.checkout .woocommerce-validated .input-text { border-color: var(--line-2); }
.hvco-ferr, form.checkout .checkout-inline-error-message { display: block; margin-top: 6px; font-size: 13px; color: var(--brand-ink); line-height: 1.4; }
html[data-theme="dark"] .hvco-ferr, html[data-theme="dark"] form.checkout .checkout-inline-error-message { color: #ff9c9f; }
form.checkout .description { display: block; font-size: 12.5px; color: var(--muted); margin-top: 5px; }
form.checkout input[type="date"].input-text { min-height: var(--co-in); }

/* nút chọn dạng phân đoạn (Cá nhân / Tổ chức) */
form.checkout .hvco-seg .woocommerce-input-wrapper { display: flex; flex-wrap: wrap; gap: 8px; }
form.checkout .hvco-seg input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
form.checkout .hvco-seg label.radio { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer; font-weight: 500; font-size: 15px; color: var(--ink); background: var(--surface); margin: 0; }
form.checkout .hvco-seg input[type="radio"]:checked + label.radio { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
html[data-theme="dark"] form.checkout .hvco-seg input[type="radio"]:checked + label.radio { background: #2a1416; color: #ffc9ca; }
form.checkout .hvco-seg input[type="radio"]:focus-visible + label.radio { box-shadow: var(--focus); }
form.checkout .hvco-seg label.radio .optional, form.checkout .hvco-seg label.radio .required, form.checkout .hvco-seg > label .optional { display: none; }

/* ghi chú thu gọn */
#order_comments_field.is-folded { display: none !important; }
.hvco-addnote { grid-column: 1 / -1; justify-self: start; background: none; border: 0; padding: 4px 0; color: var(--brand-ink); font: 600 14.5px var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
html[data-theme="dark"] .hvco-addnote { color: #ff9c9f; }

/* hoá đơn VAT (khối hvsc-einvoice) */
#hvsc_einv_box { display: grid; grid-template-columns: 1fr; gap: 14px 16px; }
@media (min-width: 600px) { #hvsc_einv_box { grid-template-columns: 1fr 1fr; } #hvsc_einv_box > * { grid-column: 1 / -1; } #hvsc_einv_taxcode_field { grid-column: 1 !important; } #hvsc_einv_email_field { grid-column: 2 !important; } }
#hvsc_einv_box .form-row { margin: 0 !important; padding: 0 !important; width: auto !important; float: none !important; }
#hvsc_einv_want_field label.checkbox { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; cursor: pointer; margin: 0; color: var(--ink); }
#hvsc_einv_want_field .optional { display: none; }
#hvsc_einv_want_field input[type="checkbox"], form.checkout #terms { width: 22px; height: 22px; accent-color: var(--brand); margin: 0; flex: none; }
.hvco-vat-note { margin: 0; font-size: 13px; color: var(--muted); }
#hvsc_einv_box:has(#hvsc_einv_want:not(:checked)) .hvco-vat-note { display: none; }

/* tóm tắt đơn */
#order_review::before { content: "Đơn hàng của bạn"; display: block; font: 700 18px/1.3 var(--font); color: var(--ink); margin-bottom: 12px; }
#order_review .shop_table { width: 100%; border: 0 !important; margin: 0 0 8px !important; border-collapse: collapse; font-size: 15px; background: none; }
#order_review .shop_table thead { display: none; }
#order_review .shop_table td, #order_review .shop_table th { border: 0 !important; border-top: 1px solid var(--line) !important; padding: 12px 0 !important; background: none !important; color: var(--ink); vertical-align: top; }
#order_review .shop_table tbody tr:first-child td { border-top: 0 !important; }
#order_review .shop_table .product-total, #order_review .shop_table tfoot td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: 12px !important; }
#order_review .shop_table tfoot th { font-weight: 500; color: var(--muted); text-align: left; }
#order_review .shop_table .order-total th, #order_review .shop_table .order-total td { font-size: 18px; font-weight: 700; color: var(--ink); padding-top: 14px !important; }
#order_review .shop_table .order-total .amount { font-size: 22px; }
#order_review .product-quantity { display: none; }
#order_review .product-name { line-height: 1.4; }
#order_review .product-name dl.variation { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); display: grid; grid-template-columns: auto 1fr; gap: 2px 6px; }
#order_review .product-name dl.variation dt { font-weight: 500; margin: 0; } #order_review .product-name dl.variation dd { margin: 0; } #order_review .product-name dl.variation p { margin: 0; display: inline; }

/* thẻ ảnh tên miền */
.hvco-dth { display: inline-flex; flex-direction: column; justify-content: center; align-items: flex-start; width: 92px; min-height: 64px; padding: 8px 10px; border-radius: 12px; vertical-align: top;
  background: radial-gradient(120% 90% at 0% 0%, #2a2d37 0%, #121316 70%); color: #fff; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); float: left; margin: 2px 12px 6px 0; }
.hvco-dth__www { font: 600 9px/1 var(--mono); letter-spacing: .12em; color: rgba(255,255,255,.55); margin-bottom: 5px; text-transform: uppercase; }
.hvco-dth b { font: 700 13px/1.15 var(--font); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hvco-dth i { font: 700 13px/1.15 var(--font); font-style: normal; color: #FF7A7E; }
.hvco-pn { display: block; font-weight: 600; overflow-wrap: anywhere; }
.hvco-yr { display: flex; align-items: center; gap: 8px; margin-top: 8px; clear: none; }
.hvco-yr__l { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.hvco-yr__s { min-height: 40px !important; padding: 7px 34px 7px 10px !important; font-size: 14.5px !important; width: auto !important; max-width: 100%; }
.hvco-yr.is-busy { opacity: .6; }
#order_review .product-name::after { content: ""; display: block; clear: both; }

/* thanh toán */
#payment, .woocommerce-checkout #payment { background: none !important; border-radius: 0; margin-top: 4px; }
#payment ul.payment_methods { border: 0 !important; padding: 0 !important; margin: 0 0 14px !important; list-style: none; display: grid; gap: 10px; }
#payment ul.payment_methods li { margin: 0 !important; padding: 0 !important; list-style: none; }
#payment ul.payment_methods li.wc_payment_method > input { position: absolute; opacity: 0; }
#payment ul.payment_methods li.wc_payment_method > label { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px 12px 46px; border: 1.5px solid var(--line-2); border-radius: 14px; cursor: pointer; font-weight: 600; position: relative; color: var(--ink); background: var(--surface); margin: 0; }
#payment ul.payment_methods li.wc_payment_method > label::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid var(--line-ui, #8A8579); background: var(--surface); }
#payment ul.payment_methods li.wc_payment_method > input:checked + label { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
#payment ul.payment_methods li.wc_payment_method > input:checked + label::before { border-color: var(--brand); background: radial-gradient(circle, var(--brand) 0 4px, var(--surface) 5px); }
#payment ul.payment_methods li.wc_payment_method > input:focus-visible + label { box-shadow: var(--focus); }
#payment ul.payment_methods li img { max-height: 24px; margin-left: auto; }
#payment div.payment_box { background: var(--surface-2) !important; color: var(--ink) !important; border-radius: 12px; margin: 8px 0 0 !important; padding: 12px 14px !important; font-size: 14px; }
#payment div.payment_box::before { display: none !important; }
#payment ul.payment_methods li.woocommerce-notice, #payment .woocommerce-info { background: var(--surface-2) !important; color: var(--ink) !important; border: 1px dashed var(--line-ui, #8A8579) !important; border-radius: 12px !important; padding: 12px 14px !important; font-size: 14px; line-height: 1.55; }
#payment ul.payment_methods li.woocommerce-notice::before, #payment .woocommerce-info::before { display: none !important; }
#payment .woocommerce-info a, .hvco-trust a, .hvco-next a { color: var(--brand-ink); font-weight: 600; }
html[data-theme="dark"] #payment .woocommerce-info a, html[data-theme="dark"] .hvco-trust a, html[data-theme="dark"] .hvco-next a { color: #ff9c9f; }
#payment .place-order { padding: 0 !important; margin: 0 !important; }
#payment .woocommerce-privacy-policy-text p, #payment .woocommerce-terms-and-conditions-wrapper p { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; }
.hvco-btn, #payment #place_order { display: block; width: 100%; min-height: 56px; border: 0 !important; border-radius: 14px !important; background: var(--brand) !important; color: #fff !important; font: 700 17px/1.2 var(--font) !important; letter-spacing: .01em; cursor: pointer; transition: background .15s, transform .1s; float: none !important; }
#payment #place_order:hover:not([disabled]) { background: var(--brand-600) !important; }
#payment #place_order:active:not([disabled]) { transform: translateY(1px); }
#payment #place_order:focus-visible { box-shadow: var(--focus) !important; outline: none; }
#payment #place_order[disabled] { background: var(--surface-2) !important; color: var(--muted) !important; border: 1.5px dashed var(--line-ui, #8A8579) !important; cursor: not-allowed; font-size: 15.5px !important; }
.hvco-call { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 10px; border-radius: 14px; background: var(--ink); color: var(--bg) !important; font-weight: 700; text-decoration: none !important; }
.hvco-trust { list-style: none; margin: 14px 0 0 !important; padding: 12px 0 0 !important; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.hvco-trust li { margin: 0 !important; padding: 0 0 0 22px !important; position: relative; }
.hvco-trust li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 10px; height: 6px; border-left: 2px solid var(--csr-ink, #137A47); border-bottom: 2px solid var(--csr-ink, #137A47); transform: rotate(-45deg); }
html[data-theme="dark"] .hvco-trust li::before { border-color: var(--csr-hi, #5EDB9C); }
.blockUI.blockOverlay { border-radius: var(--r-lg, 20px); background: var(--surface) !important; }

/* tóm tắt đơn thu gọn trên mobile */
.hvco-mini { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin: 0 0 16px; box-shadow: var(--shadow-1); }
.hvco-mini summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); min-height: 52px; }
.hvco-mini summary::-webkit-details-marker { display: none; }
.hvco-mini summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: 2px; transition: transform .2s; }
.hvco-mini[open] summary::after { transform: rotate(-135deg); }
.hvco-mini__t { margin-right: auto; }
.hvco-mini__sum { font-size: 17px; font-variant-numeric: tabular-nums; }
.hvco-mini__body { padding: 0 16px 14px; font-size: 14px; }
.hvco-mini__body ul { list-style: none; margin: 0 0 8px !important; padding: 0 !important; }
.hvco-mini__body li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0 !important; margin: 0 !important; border-top: 1px solid var(--line); }
.hvco-mini__body li span { overflow-wrap: anywhere; } .hvco-mini__body li b { white-space: nowrap; }
.hvco-mini__go { font-weight: 600; color: var(--brand-ink); }


/* giỏ hàng */
body.woocommerce-cart table.shop_table.cart { border: 1px solid var(--line); border-radius: var(--r-lg, 20px); background: var(--surface); border-collapse: separate; overflow: hidden; }
body.woocommerce-cart table.shop_table.cart th, body.woocommerce-cart table.shop_table.cart td { border-color: var(--line) !important; color: var(--ink); background: none; padding: 14px 12px; vertical-align: middle; }
body.woocommerce-cart table.shop_table.cart thead th { font-size: 13px; color: var(--muted); font-weight: 600; }
body.woocommerce-cart table.shop_table.cart .product-thumbnail { width: 112px; }
body.woocommerce-cart table.shop_table.cart .product-thumbnail .hvco-dth { float: none; margin: 0; }
body.woocommerce-cart table.shop_table.cart td.actions .button { border-radius: 12px; min-height: 44px; }
body.woocommerce-cart .cart_totals { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 20px); padding: 20px; }
body.woocommerce-cart .cart_totals h2 { font-size: 18px; margin: 0 0 10px; }
body.woocommerce-cart .cart_totals table { border: 0 !important; } body.woocommerce-cart .cart_totals th, body.woocommerce-cart .cart_totals td { border-color: var(--line) !important; color: var(--ink); background: none; }
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { background: var(--brand) !important; color: #fff !important; border-radius: 14px; min-height: 56px; display: flex; align-items: center; justify-content: center; font: 700 17px var(--font); margin-bottom: 0; }
body.woocommerce-cart .product-remove a.remove { color: var(--muted) !important; font-size: 22px; width: 32px; height: 32px; line-height: 30px; }
body.woocommerce-cart .product-remove a.remove:hover { background: var(--brand) !important; color: #fff !important; }
@media (max-width: 768px) {
  body.woocommerce-cart table.shop_table_responsive tr td.product-thumbnail { display: block; text-align: left !important; }
  body.woocommerce-cart table.shop_table_responsive tr td.product-thumbnail::before { display: none; }
  body.woocommerce-cart table.shop_table_responsive tr td { background: none !important; }
}

/* trang cảm ơn */
body.woocommerce-order-received .woocommerce-order { display: grid; gap: 18px; }
.hvco-next { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--csr-ink, #137A47); border-radius: var(--r-lg, 20px); padding: 20px 22px; box-shadow: var(--shadow-1); }
.hvco-next__code { margin: 0 0 4px; font-size: 14px; color: var(--muted); } .hvco-next__code b { font-size: 20px; color: var(--ink); letter-spacing: .02em; }
.hv-prose .hvco-next h2, .hvco-next h2 { font-size: 20px; margin: 4px 0 10px; }
.hvco-next ol { margin: 0 0 12px !important; }
.hvco-next ol li { margin: 0 !important; line-height: 1.55; }
.hvco-next__help { margin: 0; font-size: 14px; color: var(--muted); }
body.woocommerce-order-received .woocommerce-thankyou-order-received { font-size: 17px; font-weight: 600; color: var(--csr-ink, #137A47); margin: 0; }
html[data-theme="dark"] body.woocommerce-order-received .woocommerce-thankyou-order-received { color: var(--csr-hi, #5EDB9C); }
body.woocommerce-order-received ul.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 !important; padding: 0 !important; list-style: none; }
body.woocommerce-order-received ul.woocommerce-order-overview li { border: 1px solid var(--line) !important; border-radius: 12px; padding: 10px 12px !important; margin: 0 !important; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); float: none; background: var(--surface); overflow-wrap: anywhere; }
body.woocommerce-order-received ul.woocommerce-order-overview li strong { display: block; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--ink); margin-top: 4px; }
body.woocommerce-order-received .woocommerce-order-details, body.woocommerce-order-received .woocommerce-customer-details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 20px); padding: 20px; }
body.woocommerce-order-received .woocommerce-order-details table, body.woocommerce-order-received .woocommerce-order-details td, body.woocommerce-order-received .woocommerce-order-details th { border-color: var(--line) !important; color: var(--ink); background: none; }
body.woocommerce-order-received .woocommerce-order-details .hvco-dth { width: 84px; min-height: 56px; }
body.woocommerce-order-received .woocommerce-customer-details address { border: 0 !important; padding: 0 !important; font-style: normal; }

@media (prefers-reduced-motion: reduce) { .hvco-mini summary::after, #payment #place_order { transition: none; } }
.hvco-qr { margin: 8px 0 0; display: inline-flex; flex-direction: column; gap: 6px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.hvco-qr img { display: block; max-width: 100%; height: auto; } .hvco-qr figcaption { font-size: 13px; color: #565A63; text-align: center; }
/* chống tràn ngang mobile + giữ chỗ (CLS) */
#order_review .shop_table td.product-name { min-width: 0; overflow-wrap: anywhere; }
.hvco-yr { display: grid; grid-template-columns: auto minmax(0, 1fr); min-height: 40px; }
.hvco-yr__s { width: 100% !important; min-width: 0; }
@media (min-width: 960px) { .hvco-mini { display: none !important; } }
@media (max-width: 959px) { .hvco-mini { min-height: 54px; } }

/* v2: tiến độ không bị kiểu danh sách của .hv-prose ghi đè; tóm tắt đơn gọn */
.hv-prose ol.hvco-steps, ol.hvco-steps { display: flex !important; flex-wrap: wrap; align-items: center; counter-reset: none; list-style: none !important; }
.hv-prose ol.hvco-steps > li { display: flex !important; padding: 0 !important; counter-increment: none; background: none !important; border-radius: 0; }
.hv-prose ol.hvco-steps > li::before { content: none !important; display: none !important; }
.hv-prose ol.hvco-steps > li + li { padding-left: 30px !important; position: relative; }
.hv-prose ol.hvco-steps > li + li::after { content: ""; position: absolute; left: 4px; top: 50%; width: 20px; height: 2px; background: var(--line-2); border-radius: 2px; }
.hvco-steps__n { flex: none; }
#order_review .shop_table td.product-name { width: 100%; }
#order_review .hvco-dth { width: 76px; min-height: 54px; padding: 7px 8px; }
#order_review .hvco-dth b, #order_review .hvco-dth i { font-size: 12px; }
#order_review .hvco-yr { clear: both; padding-top: 4px; }
#order_review .product-name dl.variation { clear: both; display: block; padding-top: 6px; }
#order_review .product-name dl.variation dt { float: left; clear: left; margin-right: 4px; }
#order_review .shop_table .order-total .amount { font-size: 20px; }
/* tắt kiểu danh sách của .hv-prose trong khu Woo */
.hv-prose .woocommerce ul > li, .hv-prose .hvco-mini ul > li { padding-left: 0; }
.hv-prose .woocommerce ul > li::before, .hv-prose .hvco-mini ul > li::before { content: none; display: none; }
.hv-prose .woocommerce ul { display: block; margin: 0; }
.hv-prose #payment ul.payment_methods { display: grid; }
.hv-prose ul.hvco-trust { display: grid; }
.hv-prose ul.hvco-trust > li { padding-left: 22px !important; }
.hv-prose ul.hvco-trust > li::before { content: "" !important; display: block !important; position: absolute; left: 2px; top: 4px; width: 10px; height: 6px; border-radius: 0; background: none; border-left: 2px solid var(--csr-ink, #137A47); border-bottom: 2px solid var(--csr-ink, #137A47); transform: rotate(-45deg); }
html[data-theme="dark"] .hv-prose ul.hvco-trust > li::before { border-color: var(--csr-hi, #5EDB9C); }
.hv-prose body.woocommerce-order-received ul.woocommerce-order-overview, body.woocommerce-order-received .hv-prose ul.woocommerce-order-overview { display: grid; }
@media (max-width: 599px) {
  #order_review .hvco-dth { float: none; display: inline-flex; margin: 0 0 8px; }
  #order_review .hvco-yr { grid-template-columns: 1fr; gap: 4px; }
}
.woocommerce ul.wc-item-meta { margin: 6px 0 0 !important; padding: 0 !important; display: grid !important; gap: 2px; font-size: 13px; color: var(--muted); }
.woocommerce ul.wc-item-meta li { display: flex !important; gap: 4px; align-items: baseline; padding: 0 !important; margin: 0 !important; }
.woocommerce ul.wc-item-meta li::before { content: none !important; display: none !important; }
.woocommerce ul.wc-item-meta li strong { font-weight: 600; color: var(--ink-2); } .woocommerce ul.wc-item-meta p { margin: 0 !important; display: inline; }
.hvco-mini__body, .hvco-mini__body li, .hvco-mini__body li span { color: var(--ink) !important; }
body.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info, body.woocommerce-checkout .woocommerce-info { background: var(--surface-2) !important; color: var(--ink) !important; border-color: var(--line) !important; }
html[data-theme="dark"] body.woocommerce-checkout .woocommerce-info a { color: #ff9c9f; }
button.hvco-addnote, button.hvco-addnote:hover, button.hvco-addnote:focus { border: 0 !important; background: none !important; box-shadow: none !important; min-height: 0; }
button.hvco-addnote:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
