/* VIBE Shop · giỏ hàng, thanh toán, Ví Thưởng, định kỳ — phong cách Tròn Living
   Ngôn ngữ thiết kế: nền trắng, chữ đen, góc vuông, viền mảnh, nhấn cam đất.
   Biến màu được ghi đè từ trang cài đặt (inline :root). */

:root {
  --tl-ink: #141414;
  --tl-accent: #d9683e;
  --tl-reward: #3f7f76;
  --tl-canvas: #f5f2ee;
  --tl-paper: #ffffff;
  --tl-line: #e3ded7;
  --tl-line-strong: #c9c2b8;
  --tl-muted: #6b665f;
  --tl-accent-soft: color-mix(in srgb, var(--tl-accent) 10%, #fff);
  --tl-reward-soft: color-mix(in srgb, var(--tl-reward) 10%, #fff);
  --tl-danger: #b3261e;
  --tl-r: 8px;
  --tl-r-lg: 12px;
  --tl-r-xl: 18px;
  --tl-pill: 999px;
  --tl-shadow: 0 18px 50px rgba(20, 20, 20, 0.18);
}

.vncf-shop,
.vncf-modal,
.vncf-toast {
  color: var(--tl-ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.vncf-shop *,
.vncf-modal * { box-sizing: border-box; }
:where(.vncf-shop) :is(h1, h2, h3), :where(.vncf-modal) :is(h2, h3) { margin: 0; color: var(--tl-ink); font-family: inherit; text-transform: none; letter-spacing: 0; }
:where(.vncf-shop) p { margin: 0; }
:where(.vncf-shop, .vncf-modal) button { font-family: inherit; }
:where(.vncf-shop, .vncf-modal) small { font-size: 12.5px; color: var(--tl-muted); }
:where(.vncf-shop) del { color: var(--tl-muted); font-weight: 400; }

.vncf-i { flex: none; vertical-align: -0.2em; }

/* --------------------------------------------------------- Nút & control */

.vncf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; margin: 0;
  border: 1px solid var(--tl-ink); border-radius: var(--tl-r);
  background: var(--tl-paper); color: var(--tl-ink);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background .16s, color .16s, border-color .16s;
}
.vncf-btn:hover { background: var(--tl-ink); color: #fff; }
.vncf-btn.is-primary { background: var(--tl-ink); color: #fff; }
.vncf-btn.is-primary:hover { background: var(--tl-accent); border-color: var(--tl-accent); color: #fff; }
.vncf-btn.is-ghost { border-color: var(--tl-line-strong); }
.vncf-btn.is-ghost:hover { border-color: var(--tl-ink); }
.vncf-btn.is-text { border-color: transparent; background: transparent; }
.vncf-btn.is-text:hover { background: transparent; color: var(--tl-accent); }
.vncf-btn.is-block { display: flex; width: 100%; }
.vncf-btn.is-sm { min-height: 36px; padding: 0 14px; font-size: 11.5px; }
.vncf-btn small { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; letter-spacing: 0.02em; text-transform: none; color: inherit; opacity: .8; }
.vncf-btn:has(small) { flex-direction: column; gap: 0; padding-top: 6px; padding-bottom: 6px; }
.vncf-shop .vncf-btn:focus-visible, .vncf-modal .vncf-btn:focus-visible,
.vncf-shop button:focus-visible, .vncf-modal button:focus-visible,
.vncf-shop a:focus-visible, .vncf-shop input:focus-visible, .vncf-shop select:focus-visible,
.vncf-modal input:focus-visible { outline: 2px solid var(--tl-ink); outline-offset: 2px; }

.vncf-link { border: 0; background: none; padding: 0; color: var(--tl-ink); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.vncf-link:hover { color: var(--tl-accent); }
.vncf-link.is-strong { font-weight: 600; }

.vncf-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--tl-line); border-radius: var(--tl-r); background: var(--tl-canvas);
  color: var(--tl-ink); font-size: 13px; font-weight: 500; cursor: pointer; transition: border-color .16s;
}
.vncf-chip:hover { border-color: var(--tl-ink); }
.vncf-chip.is-plain { background: var(--tl-paper); }
.vncf-icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--tl-line); border-radius: var(--tl-r); background: var(--tl-paper); color: var(--tl-ink); cursor: pointer; }
.vncf-icon-btn:hover { border-color: var(--tl-danger); color: var(--tl-danger); }

.vncf-select { position: relative; display: inline-flex; align-items: center; }
.vncf-select select { appearance: none; -webkit-appearance: none; height: 38px; margin: 0; padding: 0 34px 0 14px; border: 1px solid var(--tl-line); border-radius: var(--tl-r); background: var(--tl-canvas); color: var(--tl-ink); font-size: 14px; box-shadow: none; cursor: pointer; }
.vncf-select svg { position: absolute; right: 12px; pointer-events: none; }

.vncf-qty { display: inline-flex; align-items: center; height: 36px; border: 1px solid var(--tl-line); border-radius: var(--tl-r); background: var(--tl-paper); }
.vncf-qty button { display: grid; place-items: center; width: 34px; height: 100%; border: 0; background: none; color: var(--tl-ink); cursor: pointer; padding: 0; }
.vncf-qty button:hover { color: var(--tl-accent); }
.vncf-qty input { width: 42px; height: 100%; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; text-align: center; font-size: 14px; font-weight: 600; -moz-appearance: textfield; }
.vncf-qty input::-webkit-outer-spin-button, .vncf-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.vncf-tag { display: inline-block; padding: 2px 8px; border: 1px solid var(--tl-line); border-radius: var(--tl-r); background: var(--tl-canvas); font-size: 11.5px; color: var(--tl-muted); }
.vncf-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; background: var(--tl-canvas); font-size: 12px; font-weight: 600; }

.vncf-inline-form { display: flex; gap: 10px; }
.vncf-inline-form input { flex: 1; min-width: 0; height: 46px; margin: 0; padding: 0 14px; border: 1px solid var(--tl-line-strong); border-radius: var(--tl-r); background: var(--tl-paper); box-shadow: none; font-size: 15px; }
.vncf-inline-form input:focus { border-color: var(--tl-ink); }
.vncf-hint { margin-top: 8px; font-size: 12.5px; color: var(--tl-muted); }

.vncf-shop .is-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }

/* ----------------------------------------------------------------- Toast */

.vncf-toast { position: fixed; z-index: 100002; left: 50%; bottom: 28px; transform: translate(-50%, 12px); max-width: min(92vw, 460px); padding: 12px 20px; background: var(--tl-ink); color: #fff; font-size: 14px; opacity: 0; transition: opacity .2s, transform .2s; }
.vncf-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.vncf-toast[hidden] { display: none; }

/* ----------------------------------------------------------------- Modal */

body.vncf-modal-open { overflow: hidden; }
.vncf-modal { position: fixed; z-index: 100000; inset: 0; display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .16s; }
.vncf-modal[hidden] { display: none; }
.vncf-modal.is-open { opacity: 1; }
.vncf-modal-back { position: absolute; inset: 0; background: rgba(20, 20, 20, .5); }
.vncf-modal-dialog { position: relative; display: flex; flex-direction: column; width: min(520px, 100%); max-height: min(88vh, 860px); background: var(--tl-paper); box-shadow: var(--tl-shadow); outline: none; transform: translateY(10px); transition: transform .2s; }
.vncf-modal.is-open .vncf-modal-dialog { transform: none; }
.vncf-modal-dialog:has(.vncf-bundle-modal) { width: min(980px, 100%); }
.vncf-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid var(--tl-line); }
.vncf-modal-head h2 { font-size: 22px; font-weight: 600; line-height: 1.25; }
.vncf-modal-head p { margin-top: 4px; font-size: 13.5px; color: var(--tl-muted); }
.vncf-modal-kicker { display: block; margin-bottom: 4px; color: var(--tl-accent); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.vncf-modal-x { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--tl-line); border-radius: 50%; background: var(--tl-paper); color: var(--tl-ink); cursor: pointer; }
.vncf-modal-x:hover { border-color: var(--tl-ink); }
.vncf-modal-body { flex: 1; overflow-y: auto; padding: 20px 24px; overscroll-behavior: contain; }
.vncf-modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--tl-line); background: var(--tl-paper); }
.vncf-modal-foot.is-end { justify-content: flex-end; }
.vncf-modal-foot-info { display: flex; flex-direction: column; font-size: 13.5px; }
.vncf-modal-foot-info strong { color: var(--tl-accent); }
.vncf-modal-actions { display: flex; gap: 10px; }
.vncf-modal-empty { padding: 18px 0; color: var(--tl-muted); font-size: 14px; }

/* Mã giảm giá */
.vncf-code-entry label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.vncf-code-entry-row { display: flex; gap: 10px; }
.vncf-code-entry-row input { flex: 1; min-width: 0; height: 46px; margin: 0; padding: 0 14px; border: 1px solid var(--tl-line-strong); border-radius: var(--tl-r); background: var(--tl-paper); box-shadow: none; text-transform: uppercase; }
.vncf-code-entry-row input::placeholder { text-transform: none; }
.vncf-code-error { margin-top: 8px; color: var(--tl-danger); font-size: 13px; }
.vncf-sub-h { display: flex; align-items: center; margin: 24px 0 12px; font-size: 15px !important; font-weight: 600; }
.vncf-code-none { display: flex; justify-content: space-between; align-items: center; margin: 0 0 10px; padding: 14px 4px; font-size: 14px; cursor: pointer; }
.vncf-coupon { position: relative; display: flex; align-items: stretch; margin: 0 0 10px; border: 1px solid var(--tl-line); background: var(--tl-paper); cursor: pointer; transition: border-color .16s, background .16s; }
.vncf-coupon-val { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; flex: none; width: 116px; padding: 14px 10px; background: var(--tl-canvas); border-right: 1px dashed var(--tl-line-strong); text-align: center; }
.vncf-coupon-val small { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; }
.vncf-coupon-val strong { font-size: 19px; line-height: 1.15; }
.vncf-coupon-info { display: flex; flex-direction: column; justify-content: center; gap: 2px; flex: 1; padding: 12px 52px 12px 16px; min-width: 0; }
.vncf-coupon-info strong { font-size: 16px; letter-spacing: .03em; }
.vncf-coupon-info em { align-self: flex-start; padding: 1px 8px; background: var(--tl-accent-soft); color: var(--tl-accent); font-style: normal; font-size: 11.5px; font-weight: 600; }
.vncf-coupon input[type="radio"], .vncf-code-none input[type="radio"] { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid var(--tl-line-strong); border-radius: 50%; background: var(--tl-paper); cursor: pointer; }
.vncf-coupon input[type="radio"] { position: absolute; top: 50%; right: 16px; margin-top: -11px; }
.vncf-coupon input[type="radio"]:checked, .vncf-code-none input[type="radio"]:checked { border-color: var(--tl-ink); background: radial-gradient(var(--tl-ink) 0 44%, var(--tl-paper) 48%); }
.vncf-coupon.is-active, .vncf-coupon.is-picked, .vncf-coupon:has(input:checked) { border-color: var(--tl-ink); background: var(--tl-canvas); }
.vncf-coupon.is-disabled { cursor: default; opacity: .6; }
.vncf-unavail { margin-top: 14px; border-top: 1px solid var(--tl-line); padding-top: 14px; }
.vncf-unavail summary { cursor: pointer; font-size: 14px; color: var(--tl-muted); list-style: none; margin-bottom: 12px; }
.vncf-unavail summary::-webkit-details-marker { display: none; }

/* Ví Thưởng */
.vncf-wallet-box { margin-bottom: 16px; padding: 18px; border: 1px solid var(--tl-line); background: var(--tl-canvas); }
.vncf-wallet-box label { display: block; margin: 14px 0 8px; font-size: 13.5px; font-weight: 600; }
.vncf-wallet-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.vncf-wallet-row h3 { font-size: 16px; font-weight: 600; }
.vncf-wallet-after { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 4px; border-top: 1px solid var(--tl-line); }
.vncf-wallet-after strong { font-size: 24px; color: var(--tl-accent); }

/* Chỉnh bộ */
.vncf-bundle-modal { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; }
.vncf-bundle-comp { padding: 16px 0; border-bottom: 1px solid var(--tl-line); }
.vncf-bundle-comp:first-child { padding-top: 0; }
.vncf-bundle-comp header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.vncf-bundle-comp header strong { font-size: 15px; font-weight: 600; }
.vncf-bundle-thumb { position: relative; flex: none; width: 56px; height: 56px; background: var(--tl-canvas); }
.vncf-bundle-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vncf-bundle-thumb i { position: absolute; right: -4px; bottom: -4px; padding: 0 5px; background: var(--tl-ink); color: #fff; font-style: normal; font-size: 11px; font-weight: 600; }
.vncf-bundle-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.vncf-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 1px solid var(--tl-line); border-radius: var(--tl-r); background: var(--tl-paper); color: var(--tl-ink); text-align: left; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .16s; }
.vncf-opt small { font-weight: 400; }
.vncf-opt:hover { border-color: var(--tl-line-strong); }
.vncf-opt.is-selected { border-color: var(--tl-ink); box-shadow: inset 0 0 0 1px var(--tl-ink); background: var(--tl-canvas); }
.vncf-bundle-right { padding: 20px; border: 1px solid var(--tl-line); align-self: start; }
.vncf-bundle-right h3 { margin-bottom: 12px; font-size: 12px !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tl-muted) !important; }
.vncf-bundle-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.vncf-bundle-table th { padding: 6px 0; border: 0; font-size: 12px; font-weight: 500; color: var(--tl-muted); text-align: right; text-transform: none; }
.vncf-bundle-table th:first-child, .vncf-bundle-table td:first-child { text-align: left; }
.vncf-bundle-table td { padding: 10px 0 10px 8px; border: 0; border-top: 1px solid var(--tl-line); text-align: right; vertical-align: top; }
.vncf-bundle-table td:first-child { padding-left: 0; }
.vncf-bundle-table td small { display: block; }
.vncf-bundle-table td em { display: block; color: var(--tl-reward); font-style: normal; font-weight: 600; font-size: 12px; }
.vncf-bundle-note { margin: 10px 0 14px; font-size: 12px; color: var(--tl-muted); }
.vncf-bundle-sum { margin: 0; padding-top: 12px; border-top: 1px solid var(--tl-line); }
.vncf-bundle-sum div { display: flex; justify-content: space-between; padding: 4px 0; }
.vncf-bundle-sum dt, .vncf-bundle-sum dd { margin: 0; }
.vncf-bundle-sum .is-strong dd { font-size: 24px; font-weight: 700; color: var(--tl-accent); }
.vncf-bundle-save { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 14px 16px; background: var(--tl-reward-soft); }
.vncf-bundle-save span { font-size: 14px; font-weight: 600; }
.vncf-bundle-save small { display: block; font-weight: 400; }
.vncf-bundle-save strong { font-size: 22px; color: var(--tl-reward); }
.vncf-bundle-sets { display: flex; align-items: center; gap: 14px; font-size: 14px; }

/* ------------------------------------------------------------ Giỏ hàng */

.vncf-cart { max-width: 1240px; margin: 0 auto; padding: 8px 16px 48px; }
.vncf-cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 32px; align-items: start; }
.vncf-cart-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px; }

.vncf-suggest { margin-bottom: 28px; }
.vncf-suggest header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.vncf-suggest h2 { font-size: 13px !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.vncf-suggest-nav { display: flex; gap: 8px; }
.vncf-suggest-nav button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--tl-line-strong); border-radius: 50%; background: var(--tl-paper); color: var(--tl-ink); cursor: pointer; padding: 0; }
.vncf-suggest-nav button:hover { background: var(--tl-ink); color: #fff; border-color: var(--tl-ink); }
.vncf-suggest-track { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.vncf-suggest-track::-webkit-scrollbar { display: none; }
.vncf-suggest-track .vncf-mini { flex: 0 0 min(300px, 82%); scroll-snap-align: start; }

.vncf-mini { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--tl-line); background: var(--tl-paper); }
.vncf-mini-img { display: block; width: 76px; height: 76px; background: var(--tl-canvas); }
.vncf-mini-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vncf-mini-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vncf-mini-name { color: var(--tl-ink); font-size: 14px; line-height: 1.35; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vncf-mini-name:hover { color: var(--tl-accent); }
.vncf-mini-body strong { font-size: 15px; }
.vncf-mini-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.vncf-suggest-track .vncf-mini-act .vncf-btn { width: 36px; padding: 0; }

.vncf-cart-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.vncf-back { display: inline-flex; align-items: center; gap: 6px; color: var(--tl-ink); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.vncf-back:hover { color: var(--tl-accent); }
.vncf-cart-tools { display: flex; gap: 18px; }
.vncf-tool { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; color: var(--tl-ink); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.vncf-tool:hover { color: var(--tl-accent); }

.vncf-cart-card { border: 1px solid var(--tl-line); background: var(--tl-paper); }
.vncf-progress { padding: 18px 20px 16px; border-bottom: 1px solid var(--tl-line); background: var(--tl-canvas); }
.vncf-progress-bar { height: 4px; background: var(--tl-line); overflow: hidden; }
.vncf-progress-bar i { display: block; height: 100%; background: var(--tl-accent); transition: width .4s ease; }
.vncf-progress p { margin-top: 10px; font-size: 13.5px; }

.vncf-line { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; padding: 22px 20px; border-bottom: 1px solid var(--tl-line); }
.vncf-line:last-child { border-bottom: 0; }
.vncf-line-img { display: block; width: 112px; height: 112px; background: var(--tl-canvas); }
.vncf-line-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vncf-line-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.vncf-line-head { display: flex; justify-content: space-between; gap: 20px; width: 100%; }
.vncf-line-head h3 { font-size: 17px; font-weight: 600; line-height: 1.35; }
.vncf-line-head h3 a { color: var(--tl-ink); text-decoration: none; }
.vncf-line-head h3 a:hover { color: var(--tl-accent); }
.vncf-line-price { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.vncf-line-price strong { font-size: 18px; white-space: nowrap; }
.vncf-line-price del { font-size: 13px; }
.vncf-line-sku, .vncf-line-variant { font-size: 13px; color: var(--tl-muted); }
.vncf-line-sku b { color: var(--tl-ink); font-weight: 600; }
.vncf-line-tag { align-self: flex-end; margin-top: -4px; font-size: 13px; color: var(--tl-muted); }
.vncf-line-tag strong { color: var(--tl-danger); }
.vncf-line-set { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.vncf-line-set li { display: flex; flex-direction: column; font-size: 14px; }
.vncf-line-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.vncf-sub-menu { position: relative; align-self: flex-end; }
.vncf-sub-menu summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; color: var(--tl-ink); }
.vncf-sub-menu summary::-webkit-details-marker { display: none; }
.vncf-sub-menu summary:hover { color: var(--tl-accent); }
.vncf-sub-pop { position: absolute; z-index: 5; right: 0; top: calc(100% + 6px); display: flex; flex-direction: column; min-width: 190px; border: 1px solid var(--tl-ink); background: var(--tl-paper); box-shadow: var(--tl-shadow); }
.vncf-sub-pop button { padding: 11px 16px; border: 0; background: none; text-align: left; font-size: 14px; cursor: pointer; }
.vncf-sub-pop button:hover { background: var(--tl-canvas); }
.vncf-sub-pop button.is-on { font-weight: 600; box-shadow: inset 3px 0 0 var(--tl-accent); }

.vncf-cart-empty { padding: 72px 16px; text-align: center; }
.vncf-cart-empty h2 { margin-bottom: 8px; font-size: 22px !important; }
.vncf-cart-empty p { margin-bottom: 22px; color: var(--tl-muted); }

/* Đã lưu / Yêu thích */
.vncf-saved { margin-top: 36px; }
.vncf-tabs { display: inline-flex; margin-bottom: 20px; border: 1px solid var(--tl-ink); }
.vncf-tabs button { min-width: 150px; padding: 11px 22px; border: 0; background: var(--tl-paper); color: var(--tl-ink); font-size: 13px; font-weight: 600; letter-spacing: .04em; cursor: pointer; }
.vncf-tabs button.is-on { background: var(--tl-ink); color: #fff; }
.vncf-tabpanel[hidden] { display: none; }
.vncf-tabpanel header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.vncf-tabpanel h2 { font-size: 19px !important; font-weight: 600; }
.vncf-empty-note { color: var(--tl-muted); font-size: 14px; }
.vncf-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }

/* Cột phải */
.vncf-side-card { display: block; width: 100%; border: 1px solid var(--tl-line); background: var(--tl-paper); padding: 0; text-align: left; }
.vncf-side-action { display: flex; align-items: center; gap: 14px; padding: 16px 18px; color: var(--tl-ink); cursor: pointer; transition: border-color .16s; }
.vncf-side-action:hover { border-color: var(--tl-ink); }
.vncf-side-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; background: var(--tl-canvas); }
.vncf-side-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.vncf-side-txt strong { font-size: 16px; font-weight: 600; }
.vncf-side-action.is-reward { background: var(--tl-reward-soft); border-color: color-mix(in srgb, var(--tl-reward) 28%, #fff); }
.vncf-side-action.is-reward .vncf-side-ico { background: color-mix(in srgb, var(--tl-reward) 16%, #fff); color: var(--tl-reward); }

.vncf-ref summary { display: flex; justify-content: space-between; align-items: center; padding: 18px; list-style: none; cursor: pointer; font-size: 16px; }
.vncf-ref summary::-webkit-details-marker { display: none; }
.vncf-ref[open] summary svg { transform: rotate(180deg); }
.vncf-ref-body { padding: 0 18px 18px; }
.vncf-ref-ok { margin-bottom: 8px; font-size: 14px; }

.vncf-sum { padding: 18px; }
.vncf-sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14.5px; }
.vncf-sum-row span { color: var(--tl-muted); }
.vncf-sum-row b { font-weight: 500; }
.vncf-sum-row b.is-neg { color: var(--tl-danger); }
.vncf-sum-row b.is-reward { color: var(--tl-reward); font-weight: 600; }
.vncf-sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--tl-line); }
.vncf-sum-total span { font-size: 18px; }
.vncf-sum-total strong { font-size: 26px; font-weight: 700; color: var(--tl-accent); }
.vncf-sum-save { margin: 2px 0 14px; text-align: right; font-size: 13px; color: var(--tl-muted); }

.vncf-qr-promo { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--tl-accent-soft); border-color: color-mix(in srgb, var(--tl-accent) 30%, #fff); }
.vncf-qr-kicker { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.vncf-qr-promo strong { font-size: 32px; line-height: 1.1; color: var(--tl-accent); }
.vncf-qr-promo a { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--tl-accent) 25%, #fff); color: var(--tl-ink); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.vncf-qr-promo a:hover { color: var(--tl-accent); }

/* ------------------------------------------------------------ Thanh toán */

.vncf-checkout { max-width: 1240px; margin: 0 auto; padding: 8px 16px 56px; }
.vncf-co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 0; align-items: start; }
.vncf-co-main { padding-right: 48px; }
.vncf-co-side { position: sticky; top: 96px; padding: 28px 24px; background: var(--tl-canvas); }
.vncf-co-title { margin-bottom: 30px; }
.vncf-co-title h1 { font-size: 36px !important; font-weight: 700; letter-spacing: .01em !important; text-transform: uppercase !important; line-height: 1.1; }
.vncf-co-title p { margin-top: 6px; color: var(--tl-muted); }
.vncf-co-sec { margin-bottom: 34px; }
.vncf-co-sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.vncf-co-sec-head h2 { font-size: 13px !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase !important; }
.vncf-co-sec-head .vncf-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }

.vncf-addr-card { padding: 18px 20px; border: 1px solid var(--tl-line-strong); background: var(--tl-canvas); }
.vncf-addr-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.vncf-addr-name { font-size: 16px; font-weight: 600; }
.vncf-addr-line { margin-top: 4px; color: var(--tl-muted); }
.vncf-addr-form { margin-top: 14px; }
.vncf-addr-form[hidden], .vncf-note-box[hidden], .vncf-invoice-fields[hidden] { display: none; }
.vncf-note-box { margin-top: 14px; }

/* Trường form của WooCommerce */
.vncf-checkout .woocommerce-billing-fields > h3, .vncf-checkout .woocommerce-shipping-fields > h3, .vncf-checkout .woocommerce-additional-fields > h3 { display: none; }
.vncf-checkout .woocommerce-billing-fields__field-wrapper { display: flex; flex-wrap: wrap; gap: 0 14px; }
.vncf-checkout .form-row { margin: 0 0 14px; padding: 0; float: none; width: 100%; }
.vncf-checkout .form-row-first, .vncf-checkout .form-row-last { width: calc(50% - 7px); }
.vncf-checkout .form-row label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--tl-ink); }
.vncf-checkout .form-row .required { color: var(--tl-accent); text-decoration: none; }
.vncf-checkout input[type="text"], .vncf-checkout input[type="tel"], .vncf-checkout input[type="email"], .vncf-checkout input[type="number"], .vncf-checkout select, .vncf-checkout textarea {
  width: 100%; height: 48px; margin: 0; padding: 0 14px; border: 1px solid var(--tl-line-strong); border-radius: var(--tl-r); background: var(--tl-paper); color: var(--tl-ink); font-size: 15px; box-shadow: none; transition: border-color .16s;
}
.vncf-checkout textarea { height: auto; min-height: 96px; padding: 12px 14px; }
.vncf-checkout input:focus, .vncf-checkout select:focus, .vncf-checkout textarea:focus { border-color: var(--tl-ink); outline: 0; box-shadow: 0 0 0 1px var(--tl-ink); }
.vncf-checkout .woocommerce-invalid input, .vncf-checkout .woocommerce-invalid select { border-color: var(--tl-danger); }
.vncf-checkout .select2-container .select2-selection--single { height: 48px; border: 1px solid var(--tl-line-strong); border-radius: var(--tl-r); }
.vncf-checkout .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 46px; padding-left: 14px; }
.vncf-checkout .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }

/* Phương thức giao hàng */
.vncf-ship-list { border: 1px solid var(--tl-line-strong); background: var(--tl-paper); }
.vncf-ship { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; margin: 0; border-top: 1px solid var(--tl-line); cursor: pointer; transition: background .16s; }
.vncf-ship:first-child { border-top: 0; }
.vncf-ship input { position: absolute; opacity: 0; pointer-events: none; }
.vncf-ship-radio { flex: none; width: 20px; height: 20px; margin-top: 2px; border: 1.5px solid var(--tl-line-strong); border-radius: 50%; background: var(--tl-paper); }
.vncf-ship.is-selected { background: var(--tl-canvas); box-shadow: inset 3px 0 0 var(--tl-ink); }
.vncf-ship.is-selected .vncf-ship-radio { border-color: var(--tl-ink); background: radial-gradient(var(--tl-ink) 0 44%, var(--tl-paper) 48%); }
.vncf-ship input:focus-visible ~ .vncf-ship-radio { outline: 2px solid var(--tl-ink); outline-offset: 2px; }
.vncf-ship-body { display: flex; flex-direction: column; flex: 1; gap: 2px; min-width: 0; }
.vncf-ship-body strong { font-size: 15px; font-weight: 600; }
.vncf-ship-body em { font-style: normal; font-size: 12px; color: var(--tl-muted); }
.vncf-ship-price { flex: none; font-weight: 600; white-space: nowrap; }
.vncf-ship.is-disabled { cursor: not-allowed; opacity: .55; }
.vncf-ship-note, .vncf-ship-empty { margin-top: 10px; font-size: 13px; color: var(--tl-muted); }
.vncf-ship-empty { padding: 18px; margin: 0; }

/* Thanh toán */
.vncf-checkout #payment { background: none; border-radius: 0; padding: 0; }
.vncf-checkout #payment .vncf-payment-section-head { display: none; }
.vncf-checkout #payment ul.payment_methods { margin: 0; padding: 0; border: 1px solid var(--tl-line-strong); list-style: none; background: var(--tl-paper); }
.vncf-checkout #payment ul.payment_methods > li { position: relative; margin: 0; padding: 16px 18px 16px 52px; border-top: 1px solid var(--tl-line); list-style: none; transition: background .16s; }
.vncf-checkout #payment ul.payment_methods > li:first-child { border-top: 0; }
.vncf-checkout #payment ul.payment_methods > li input[type="radio"] { position: absolute; left: 18px; top: 18px; appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--tl-line-strong); border-radius: 50%; background: var(--tl-paper); cursor: pointer; }
.vncf-checkout #payment ul.payment_methods > li input[type="radio"]:checked { border-color: var(--tl-ink); background: radial-gradient(var(--tl-ink) 0 44%, var(--tl-paper) 48%); }
.vncf-checkout #payment ul.payment_methods > li:has(input:checked) { background: var(--tl-canvas); box-shadow: inset 3px 0 0 var(--tl-ink); }
.vncf-checkout #payment ul.payment_methods > li > label { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 600; cursor: pointer; }
.vncf-checkout #payment .payment_box { margin: 10px 0 0; padding: 0; background: none; color: var(--tl-muted); font-size: 13.5px; }
.vncf-checkout #payment .payment_box::before { display: none; }
.vncf-checkout #payment .payment_box p { margin: 0 0 6px; }
.vncf-pay-badge { padding: 1px 8px; background: var(--tl-accent-soft); color: var(--tl-accent); font-size: 11.5px; font-weight: 600; }
.vncf-pay-method-icon { display: inline-grid; place-items: center; min-width: 28px; height: 22px; margin-left: auto; padding: 0 6px; border: 1px solid var(--tl-line-strong); background: var(--tl-paper); font-size: 11px; font-weight: 700; }
.vncf-pay-method-icon img { display: block; max-height: 20px; width: auto; }
.vncf-reward-hint { margin-top: 10px; padding: 12px 14px; border-top: 1px solid var(--tl-line-strong); }
.vncf-reward-hint strong { display: block; color: var(--tl-reward); font-size: 15px; }
.vncf-reward-hint p { margin: 4px 0 0 !important; }

.vncf-checkout #payment .place-order { margin: 0; padding: 20px 0 0; }
.vncf-checkout #place_order { display: flex; align-items: center; justify-content: center; float: none; width: 100%; min-height: 58px; margin: 0; padding: 0 24px; border: 1px solid var(--tl-ink); border-radius: var(--tl-r); background: var(--tl-ink); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background .16s, border-color .16s; }
.vncf-checkout #place_order:hover { background: var(--tl-accent); border-color: var(--tl-accent); }
.vncf-checkout .woocommerce-terms-and-conditions-wrapper { margin-bottom: 14px; font-size: 13px; color: var(--tl-muted); }
.vncf-checkout .woocommerce-privacy-policy-text { display: none; }
.vncf-checkout .woocommerce-checkout-payment .blockUI.blockOverlay { background: rgba(255,255,255,.6) !important; }

/* Hóa đơn điện tử */
.vncf-invoice { padding: 16px 0 4px; }
.vncf-switch { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0; font-size: 14.5px; cursor: pointer; }
.vncf-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vncf-switch i { position: relative; flex: none; width: 44px; height: 24px; background: var(--tl-line-strong); transition: background .16s; }
.vncf-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; transition: transform .16s; }
.vncf-switch input:checked + i { background: var(--tl-ink); }
.vncf-switch input:checked + i::after { transform: translateX(20px); }
.vncf-switch input:focus-visible + i { outline: 2px solid var(--tl-ink); outline-offset: 2px; }
.vncf-invoice-fields { margin-top: 16px; display: grid; gap: 12px; }
.vncf-invoice-fields label { display: block; font-size: 13px; font-weight: 600; }
.vncf-invoice-fields input { margin-top: 6px; }

/* Cột tóm tắt */
.vncf-co-h { margin-bottom: 20px; font-size: 13px !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase !important; }
.vncf-co-items { display: flex; flex-direction: column; gap: 18px; margin-bottom: 22px; }
.vncf-co-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.vncf-co-thumb { position: relative; display: block; width: 64px; height: 64px; background: var(--tl-paper); border: 1px solid var(--tl-line); }
.vncf-co-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vncf-co-thumb i { position: absolute; top: -8px; right: -8px; z-index: 2; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 2px solid #fff; box-sizing: content-box; border-radius: 999px; background: var(--tl-ink); color: #fff; font-style: normal; font-size: 11px; font-weight: 600; line-height: 1; }
.vncf-co-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vncf-co-info strong { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.vncf-co-sub { display: inline-flex; align-items: center; gap: 4px; color: var(--tl-reward) !important; }
.vncf-co-more summary { cursor: pointer; font-size: 12.5px; text-decoration: underline; text-underline-offset: 2px; }
.vncf-co-more ul { margin: 6px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--tl-muted); }
.vncf-co-more li { margin: 0 0 3px; }
.vncf-co-more em { font-style: normal; }
.vncf-co-price { display: flex; flex-direction: column; align-items: flex-end; }
.vncf-co-price strong { font-size: 14.5px; white-space: nowrap; }
.vncf-co-price del { font-size: 12.5px; }
.vncf-co-side .vncf-side-card { margin-bottom: 10px; }
.vncf-co-sums { margin: 18px 0 4px; padding-top: 16px; border-top: 1px solid var(--tl-line-strong); }
.vncf-co-reward { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 0; padding: 12px 14px; background: var(--tl-reward-soft); }
.vncf-co-reward strong { display: block; font-size: 13.5px; }
.vncf-co-reward b { font-size: 18px; color: var(--tl-reward); white-space: nowrap; }
.vncf-co-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--tl-line-strong); }
.vncf-co-total span { font-size: 17px; }
.vncf-co-total strong { font-size: 30px; font-weight: 700; color: var(--tl-accent); }
.vncf-co-vat { text-align: right; font-size: 12.5px; color: var(--tl-muted); }
.vncf-co-subnote { margin-top: 18px; padding: 14px 16px; background: var(--tl-paper); border-left: 3px solid var(--tl-reward); font-size: 13px; }
.vncf-co-subnote strong { display: block; margin-bottom: 4px; font-size: 14px; }
.vncf-co-subnote p { color: var(--tl-muted); }

/* --------------------------------------------------- Trang sản phẩm / tài khoản */

.vncf-pdp-bundle, .vncf-pdp-sub { margin: 0 0 18px; padding: 16px; border: 1px solid var(--tl-line-strong); background: var(--tl-canvas); }
.vncf-pdp-bundle h4 { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.vncf-pdp-comp { margin: 0 0 12px; padding: 0; border: 0; min-width: 0; }
.vncf-pdp-comp legend { padding: 0; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.vncf-pdp-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.vncf-pdp-opt { position: relative; margin: 0; cursor: pointer; }
.vncf-pdp-opt input { position: absolute; opacity: 0; }
.vncf-pdp-opt span { display: flex; flex-direction: column; padding: 9px 14px; border: 1px solid var(--tl-line-strong); background: var(--tl-paper); font-size: 14px; font-weight: 600; }
.vncf-pdp-opt span small { font-weight: 400; color: var(--tl-muted); }
.vncf-pdp-opt input:checked + span { border-color: var(--tl-ink); box-shadow: inset 0 0 0 1px var(--tl-ink); }
.vncf-pdp-opt input:focus-visible + span { outline: 2px solid var(--tl-ink); outline-offset: 2px; }
.vncf-pdp-bundle-total { margin: 4px 0 0; font-size: 15px; }
.vncf-pdp-bundle-total strong { font-size: 22px; color: var(--tl-accent); }
.vncf-pdp-bundle-total span { display: block; font-size: 13px; color: var(--tl-reward); }
.vncf-pdp-sub { display: flex; flex-direction: column; gap: 10px; }
.vncf-pdp-sub-opt { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--tl-line-strong); background: var(--tl-paper); cursor: pointer; }
.vncf-pdp-sub-opt:has(input:checked) { border-color: var(--tl-ink); box-shadow: inset 0 0 0 1px var(--tl-ink); }
.vncf-pdp-sub-opt > span { flex: 1; display: flex; flex-direction: column; font-size: 14.5px; font-weight: 600; }
.vncf-pdp-sub-opt em { color: var(--tl-accent); font-style: normal; }
.vncf-pdp-sub-opt small { font-weight: 400; }
.vncf-pdp-sub-opt select { width: auto; min-width: 120px; height: 38px; margin: 0; padding: 0 10px; }
.vncf-wish-btn { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; min-height: 44px; padding: 0 16px; border: 1px solid var(--tl-line-strong); background: var(--tl-paper); color: var(--tl-ink); font-size: 13.5px; cursor: pointer; vertical-align: middle; }
.vncf-wish-btn:hover { border-color: var(--tl-ink); }
.vncf-wish-btn.is-on { color: var(--tl-accent); border-color: var(--tl-accent); }
.vncf-wish-btn.is-on svg { fill: currentColor; }

.vncf-acc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 28px; }
.vncf-acc-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--tl-line); background: var(--tl-canvas); }
.vncf-acc-card span { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tl-muted); }
.vncf-acc-card strong { font-size: 26px; line-height: 1.2; }
.vncf-acc-card.is-wallet { background: var(--tl-reward-soft); }
.vncf-acc-card.is-wallet strong { color: var(--tl-reward); }
.vncf-acc-code { letter-spacing: .08em; }
.vncf-acc-title { margin: 26px 0 10px; font-size: 16px; }
.vncf-acc-empty { color: var(--tl-muted); }
.vncf-acc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vncf-acc-table td { padding: 10px 6px; border-top: 1px solid var(--tl-line); }
.vncf-acc-table td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.vncf-acc-table .is-plus { color: var(--tl-reward); }
.vncf-acc-table .is-minus { color: var(--tl-danger); }
.vncf-acc-sub { margin-bottom: 14px; padding: 18px; border: 1px solid var(--tl-line); }
.vncf-acc-sub header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.vncf-acc-sub.is-cancelled { opacity: .6; }
.vncf-acc-pill { padding: 2px 10px; background: var(--tl-canvas); font-size: 12px; font-weight: 600; }
.vncf-acc-sub p { color: var(--tl-muted); }
.vncf-acc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.vncf-acc-actions .button { margin: 0; }
.vncf-acc-actions select { width: auto; margin: 0; height: 40px; }
.vncf-acc-actions .vncf-danger { color: var(--tl-danger); }

/* ----------------------------------------------------------- Responsive */

@media (max-width: 1024px) {
  .vncf-cart-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; }
  .vncf-co-grid { grid-template-columns: minmax(0, 1fr) 360px; }
  .vncf-co-main { padding-right: 28px; }
}

@media (max-width: 849px) {
  .vncf-cart-grid, .vncf-co-grid { grid-template-columns: 1fr; }
  .vncf-cart-side, .vncf-co-side { position: static; }
  .vncf-co-main { padding-right: 0; }
  .vncf-co-side { order: -1; margin: 0 -16px 28px; padding: 22px 16px; }
  .vncf-co-title h1 { font-size: 28px !important; }
  .vncf-line { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 18px 14px; }
  .vncf-line-img { width: 84px; height: 84px; }
  .vncf-line-head { flex-direction: column; gap: 4px; }
  .vncf-line-price { align-items: flex-start; flex-direction: row; gap: 10px; align-items: baseline; }
  .vncf-line-tag, .vncf-sub-menu { align-self: flex-start; }
  .vncf-sub-pop { left: 0; right: auto; }
  .vncf-bundle-modal { grid-template-columns: 1fr; }
  .vncf-modal { padding: 0; align-items: end; }
  .vncf-modal-dialog { width: 100%; max-height: 92vh; }
  .vncf-modal-dialog:has(.vncf-bundle-modal) { width: 100%; }
  .vncf-modal-foot { flex-wrap: wrap; }
  .vncf-modal-foot .vncf-modal-actions { flex: 1; justify-content: flex-end; }
}

@media (max-width: 549px) {
  .vncf-checkout .form-row-first, .vncf-checkout .form-row-last { width: 100%; }
  .vncf-tabs { display: flex; }
  .vncf-tabs button { flex: 1; min-width: 0; }
  .vncf-mini-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .vncf-shop *, .vncf-modal, .vncf-modal *, .vncf-toast { transition: none !important; animation: none !important; }
}


/* ==========================================================================
   4.0.1 — Căn chỉnh, chống style nút/ô nhập của Flatsome, bo góc mềm
   ========================================================================== */

/* Reset nút của theme trong phạm vi plugin */
.vncf-shop button, .vncf-modal button, .vncf-shop .vncf-btn, .vncf-modal .vncf-btn {
  margin: 0; box-shadow: none; text-shadow: none; text-transform: none; letter-spacing: normal; min-height: 0; line-height: 1.2;
}
.vncf-shop .vncf-btn, .vncf-modal .vncf-btn { text-transform: uppercase; letter-spacing: .09em; min-height: 46px; border-radius: var(--tl-r); }
.vncf-shop .vncf-btn.is-sm { min-height: 36px; letter-spacing: .06em; }
.vncf-shop .vncf-link, .vncf-modal .vncf-link {
  display: inline-flex; align-items: center; gap: 6px; width: auto; min-height: 0; margin: 0; padding: 0;
  border: 0; background: none; box-shadow: none; white-space: nowrap; flex: none;
  font-size: 13px; font-weight: 500; letter-spacing: normal; text-transform: none; color: var(--tl-ink);
}

/* Hàng thao tác dưới mỗi sản phẩm: cùng chiều cao 40px, thẳng hàng */
.vncf-shop .vncf-line-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vncf-shop .vncf-line-actions > * { flex: none; }
.vncf-shop .vncf-qty { display: inline-flex; align-items: center; width: auto; height: 40px; margin: 0; padding: 0; border-radius: var(--tl-r); overflow: hidden; }
.vncf-shop .vncf-qty button { flex: none; width: 38px; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; }
.vncf-shop .vncf-qty input, .vncf-modal .vncf-qty input {
  flex: none; width: 44px; max-width: 44px; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: center; font-size: 14px; font-weight: 600;
}
.vncf-shop .vncf-icon-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: var(--tl-r); }
.vncf-shop .vncf-chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-height: 40px; padding: 0 16px; border-radius: var(--tl-r); font-size: 13px; }
.vncf-modal .vncf-qty { display: inline-flex; align-items: center; height: 40px; border-radius: var(--tl-r); overflow: hidden; }
.vncf-modal .vncf-qty button { width: 38px; height: 100%; padding: 0; border: 0; background: transparent; }
.vncf-shop .vncf-select select { height: 40px; min-height: 0; border-radius: var(--tl-r); }

/* Gợi ý mua thêm: nút nằm dưới thông tin, không bị bóp chữ */
.vncf-suggest-track .vncf-mini { grid-template-columns: 76px minmax(0, 1fr); align-items: start; row-gap: 10px; }
.vncf-suggest-track .vncf-mini-img { grid-row: 1 / span 1; }
.vncf-suggest-track .vncf-mini-act { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; }
.vncf-shop .vncf-mini-act .vncf-btn { width: auto; min-height: 36px; padding: 0 16px; white-space: nowrap; font-size: 11.5px; }
.vncf-suggest-track .vncf-mini-act .vncf-btn { width: auto; }
.vncf-suggest-track .vncf-mini-act .vncf-btn:has(svg) { width: 40px; padding: 0; }
.vncf-suggest-track .vncf-mini { flex-basis: min(280px, 84%); }

/* Đầu mục "Thông tin nhận hàng" + "Thêm ghi chú" */
.vncf-co-sec-head { align-items: center; gap: 16px; }
.vncf-co-sec-head h2 { flex: 1 1 auto; min-width: 0; margin: 0; }
.vncf-co-sec-head .vncf-link { flex: none; padding: 8px 14px; border: 1px solid var(--tl-line); border-radius: var(--tl-pill); text-decoration: none; }
.vncf-co-sec-head .vncf-link:hover { border-color: var(--tl-ink); color: var(--tl-ink); }
.vncf-addr-top .vncf-link { padding: 0; border: 0; text-decoration: underline; text-underline-offset: 3px; }

/* Form địa chỉ: lưới 2 cột rõ ràng, ô Phường/Xã không tràn */
.vncf-checkout .woocommerce-billing-fields__field-wrapper,
.vncf-checkout .woocommerce-shipping-fields__field-wrapper {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px;
}
.vncf-checkout .woocommerce-billing-fields__field-wrapper > .form-row,
.vncf-checkout .woocommerce-shipping-fields__field-wrapper > .form-row {
  grid-column: 1 / -1; width: 100%; max-width: 100%; margin: 0 0 16px; padding: 0; float: none; clear: none; min-width: 0;
}
.vncf-checkout #billing_first_name_field { grid-column: 1; order: 1; }
.vncf-checkout #billing_phone_field      { grid-column: 2; order: 2; }
.vncf-checkout #billing_state_field      { grid-column: 1; order: 3; }
.vncf-checkout #billing_address_2_field  { grid-column: 2; order: 4; }
.vncf-checkout #billing_address_1_field  { grid-column: 1 / -1; order: 5; }
.vncf-checkout #billing_email_field      { grid-column: 1 / -1; order: 6; }
.vncf-checkout #billing_country_field    { display: none; }
.vncf-checkout .form-row .woocommerce-input-wrapper { display: block; width: 100%; }
.vncf-checkout #billing_state, .vncf-checkout #billing_address_2,
.vncf-checkout .form-row select { display: block; width: 100% !important; max-width: 100%; min-width: 0; height: 48px; margin: 0; padding: 0 38px 0 14px; }
.vncf-checkout .select2-container { width: 100% !important; max-width: 100%; display: block; }
.vncf-checkout .form-row-first, .vncf-checkout .form-row-last { width: 100%; }
.vncf-checkout input[type="text"], .vncf-checkout input[type="tel"], .vncf-checkout input[type="email"], .vncf-checkout input[type="number"], .vncf-checkout select, .vncf-checkout textarea { border-radius: var(--tl-r); }
.vncf-checkout .form-row { min-width: 0; }
.vncf-note-box .form-row { margin-bottom: 0; }

/* Thanh toán: biểu tượng đứng trước tên, không bị đẩy sang phải */
.vncf-checkout #payment ul.payment_methods > li > label { justify-content: flex-start; text-align: left; flex-wrap: wrap; }
.vncf-checkout #payment .vncf-pay-method-icon { order: -1; margin: 0 4px 0 0; flex: none; border-radius: 6px; }
.vncf-checkout #payment .vncf-pay-method-icon img { border-radius: 4px; }
.vncf-checkout #payment ul.payment_methods > li > label > img { order: -1; margin: 0 4px 0 0; max-height: 24px; width: auto; }

/* Công tắc hóa đơn: dạng viên thuốc */
.vncf-switch { padding: 14px 18px; border: 1px solid var(--tl-line-strong); border-radius: var(--tl-pill); background: var(--tl-paper); transition: border-color .16s, background .16s; }
.vncf-switch:hover { border-color: var(--tl-ink); }
.vncf-switch:has(input:checked) { border-color: var(--tl-ink); background: var(--tl-canvas); }
.vncf-switch span { padding-left: 4px; font-weight: 600; }
.vncf-switch i { width: 48px; height: 28px; border-radius: var(--tl-pill); background: var(--tl-line-strong); }
.vncf-switch i::after { top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.vncf-switch input:checked + i::after { transform: translateX(20px); }
.vncf-switch input:focus-visible + i { outline-offset: 3px; }
.vncf-invoice { padding: 18px 0 6px; }
.vncf-invoice-fields { padding: 16px; border-radius: var(--tl-r-lg); background: var(--tl-canvas); }

/* ------------------------------- Bo góc mềm cho toàn bộ thành phần ------ */
.vncf-cart-card, .vncf-side-card, .vncf-mini, .vncf-addr-card, .vncf-ship-list, .vncf-wallet-box,
.vncf-bundle-right, .vncf-acc-card, .vncf-acc-sub, .vncf-pdp-bundle, .vncf-pdp-sub, .vncf-coupon,
.vncf-co-side { border-radius: var(--tl-r-lg); }
.vncf-cart-card, .vncf-ship-list, .vncf-coupon { overflow: hidden; }
.vncf-side-card { overflow: hidden; }
.vncf-co-side { border-radius: var(--tl-r-xl); }
.vncf-progress { border-radius: 0; }
.vncf-progress-bar, .vncf-progress-bar i { border-radius: var(--tl-pill); }
.vncf-line-img, .vncf-mini-img, .vncf-bundle-thumb { border-radius: 10px; overflow: hidden; }
/* Thumbnail checkout: không cắt (overflow) để huy hiệu số lượng hiện đủ; bo góc áp lên ảnh */
.vncf-co-thumb { border-radius: 10px; overflow: visible; }
.vncf-co-thumb img { border-radius: 9px; }
.vncf-side-ico { border-radius: 10px; }
.vncf-tag, .vncf-count, .vncf-pay-badge, .vncf-acc-pill, .vncf-coupon-info em { border-radius: var(--tl-pill); }
.vncf-tag, .vncf-pay-badge, .vncf-coupon-info em { padding-left: 10px; padding-right: 10px; }
.vncf-count { padding: 0 8px; }
.vncf-coupon-val { border-radius: 0; }
.vncf-opt, .vncf-pdp-opt span, .vncf-pdp-sub-opt, .vncf-wish-btn { border-radius: var(--tl-r); }
.vncf-bundle-save, .vncf-co-reward, .vncf-reward-hint, .vncf-qr-promo, .vncf-co-subnote { border-radius: var(--tl-r-lg); }
.vncf-co-subnote { border-left-width: 3px; }
.vncf-reward-hint { padding-left: 0; padding-right: 0; border-radius: 0; }
.vncf-sub-pop { border-radius: var(--tl-r-lg); overflow: hidden; }
.vncf-tabs { border-radius: var(--tl-pill); overflow: hidden; }
.vncf-tabs button { border-radius: 0; }
.vncf-suggest-nav button, .vncf-modal-x { border-radius: 50%; }
.vncf-modal-dialog { border-radius: var(--tl-r-xl); overflow: hidden; }
.vncf-modal-dialog:has(.vncf-bundle-modal) { border-radius: var(--tl-r-xl); }
.vncf-toast { border-radius: var(--tl-pill); padding: 12px 22px; }
.vncf-code-entry-row input, .vncf-inline-form input, .vncf-code-entry-row .vncf-btn, .vncf-inline-form .vncf-btn { border-radius: var(--tl-r); }
.vncf-checkout #place_order { border-radius: var(--tl-r-lg); }
.vncf-checkout #payment ul.payment_methods { border-radius: var(--tl-r-lg); overflow: hidden; }
.vncf-ship.is-selected, .vncf-checkout #payment ul.payment_methods > li:has(input:checked) { box-shadow: inset 3px 0 0 var(--tl-ink); }
.vncf-coupon-val small { letter-spacing: .14em; }

@media (max-width: 849px) {
  .vncf-modal-dialog, .vncf-modal-dialog:has(.vncf-bundle-modal) { border-radius: var(--tl-r-xl) var(--tl-r-xl) 0 0; }
  .vncf-co-side { border-radius: 0; }
  .vncf-suggest-track .vncf-mini { flex-basis: min(270px, 86%); }
}
@media (max-width: 549px) {
  .vncf-checkout .woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr; }
  .vncf-checkout #billing_first_name_field, .vncf-checkout #billing_phone_field,
  .vncf-checkout #billing_state_field, .vncf-checkout #billing_address_2_field { grid-column: 1 / -1; }
}


/* Nút Yêu thích: tròn, nổi ở góc phải trên của ảnh sản phẩm */
.vncf-wish-btn.is-floating {
  position: absolute; z-index: 30; top: 14px; right: 14px; margin: 0;
  display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--tl-ink);
  box-shadow: 0 2px 12px rgba(20, 20, 20, .18); cursor: pointer;
  transition: transform .16s, color .16s, background .16s, box-shadow .16s;
}
.vncf-wish-btn.is-floating:not(.is-placed) { visibility: hidden; }
.vncf-wish-btn.is-floating:hover { transform: scale(1.08); color: var(--tl-accent); background: #fff; }
.vncf-wish-btn.is-floating:active { transform: scale(.96); }
.vncf-wish-btn.is-floating:focus-visible { outline: 2px solid var(--tl-ink); outline-offset: 3px; }
.vncf-wish-btn.is-floating svg { display: block; margin: 0; transition: transform .2s; }
.vncf-wish-btn.is-floating.is-on { color: var(--tl-accent); }
.vncf-wish-btn.is-floating.is-on svg { fill: currentColor; animation: vncf-pop .28s ease; }
.vncf-wish-btn .vncf-wish-text { display: none; }
.vncf-wish-btn.is-floating.is-inline { position: static; display: inline-flex; align-items: center; gap: 8px; width: auto; height: 44px; margin: 12px 0 0; padding: 0 18px; border: 1px solid var(--tl-line-strong); border-radius: 999px; background: #fff; box-shadow: none; }
.vncf-wish-btn.is-floating.is-inline .vncf-wish-text { display: inline; font-size: 13.5px; font-weight: 500; }
@keyframes vncf-pop { 50% { transform: scale(1.25); } }
@media (max-width: 549px) { .vncf-wish-btn.is-floating { top: 10px; right: 10px; width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .vncf-wish-btn.is-floating.is-on svg { animation: none; } }

/* Nhãn form giữ chữ thường theo phong cách Tròn Living */
.vncf-shop .form-row label, .vncf-shop .vncf-invoice-fields label, .vncf-shop label { text-transform: none; }
.vncf-checkout #payment ul.payment_methods > li > label { text-transform: none; letter-spacing: normal; }
