/* VangPOS — website tĩnh. CSS thuần, không thư viện ngoài. */

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-2: #f3eee4;
  --text: #1d1a16;
  --muted: #4d463c;
  --border: #d9d0bf;
  --gold: #8a5a0c;          /* chữ/nút vàng đậm, tương phản cao trên nền sáng */
  --gold-strong: #6f4808;
  --gold-soft: #f6e9c8;
  --gold-line: #d4a437;
  --on-gold: #ffffff;
  --focus: #1f5fbf;
  --ok-bg: #e6f3e8;
  --ok-text: #1d5a2a;
  --warn-bg: #fff4d6;
  --warn-text: #5c4300;
  --err-bg: #fbe7e5;
  --err-text: #8a1f14;
  --ph-bg: #fff1b8;
  --ph-text: #6b5200;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(40, 30, 10, .06), 0 4px 16px rgba(40, 30, 10, .06);
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15130f;
    --surface: #1e1b16;
    --surface-2: #26221b;
    --text: #f3eee4;
    --muted: #cfc6b6;
    --border: #3d372d;
    --gold: #e4b95a;
    --gold-strong: #f0cb78;
    --gold-soft: #2e2715;
    --gold-line: #b88a2a;
    --on-gold: #1a1406;
    --focus: #8ab4ff;
    --ok-bg: #16301c;
    --ok-text: #b7e4c0;
    --warn-bg: #33290c;
    --warn-text: #f3dc9a;
    --err-bg: #3a1714;
    --err-text: #f6b8b0;
    --ph-bg: #3b3210;
    --ph-text: #f5dd8a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;       /* 18px */
  line-height: 1.65;
  overflow-wrap: break-word;
}

img, svg, iframe { max-width: 100%; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; color: var(--text); }
h1 { font-size: clamp(1.9rem, 5.5vw, 2.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .4em; }

a { color: var(--gold); text-underline-offset: .18em; }
a:hover { color: var(--gold-strong); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--surface);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 8px;
  border: 2px solid var(--focus);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* Chỗ trống cần điền: dễ thấy với chủ sở hữu, không chói với khách */
.ph {
  background: var(--ph-bg);
  color: var(--ph-text);
  border-radius: 4px;
  padding: 0 .25em;
  font-size: .95em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.soon {
  display: inline-block;
  font-size: .8em;
  font-weight: 600;
  line-height: 1.4;
  padding: .05em .55em;
  border-radius: 999px;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  background: var(--gold-soft);
  white-space: nowrap;
}

/* ---------- Đầu trang ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text);
  text-decoration: none;
  min-height: 48px;
}
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo span b { color: var(--gold); font-weight: 800; }

.nav-toggle {
  display: none;
  min-height: 48px;
  min-width: 48px;
  padding: 0 14px;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.js .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
}
.site-nav a:hover { background: var(--surface-2); color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--gold); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.site-nav .nav-cta { margin-left: 4px; }

/* Điện thoại: menu gập */
@media (max-width: 1023px) {
  .header-inner { flex-wrap: wrap; }
  .site-nav { width: 100%; padding-bottom: 12px; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { font-size: 1.15rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .site-nav .nav-cta { margin: 10px 0 0; }
  .site-nav .nav-cta a { border: 0; }
}
@media (min-width: 1024px) {
  .js .nav-toggle { display: none; }
  .site-nav a { font-size: 1.05rem; }
}
/* Màn 1024-1279px: thu gọn để menu nằm trên một dòng */
@media (min-width: 1024px) and (max-width: 1279px) {
  .site-nav ul { gap: 0; flex-wrap: nowrap; }
  .site-nav a { padding: 0 9px; font-size: 1rem; white-space: nowrap; }
  .logo { font-size: 1.25rem; }
}

/* ---------- Nút ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 24px;
  font: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--gold); color: var(--on-gold); }
.btn-primary:hover { background: var(--gold-strong); color: var(--on-gold); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--text); }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); }
.site-nav .btn { min-height: 48px; padding: 8px 18px; font-size: 1.05rem; color: var(--on-gold); }
.site-nav .btn:hover { background: var(--gold-strong); color: var(--on-gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2em 0 .6em; }
@media (max-width: 479px) { .btn-row .btn { width: 100%; } }

/* ---------- Khối nội dung ---------- */
main { display: block; }
.section { padding: 48px 0; }
.section-alt { background: var(--surface-2); }
@media (min-width: 768px) { .section { padding: 72px 0; } }

.page-head { padding: 40px 0 8px; }
.page-head .lead { max-width: 46em; }
.lead { font-size: 1.2rem; color: var(--muted); }
.small { font-size: 1.0625rem; color: var(--muted); }
.narrow { max-width: 46em; }

.hero { padding: 40px 0 48px; background: linear-gradient(180deg, var(--gold-soft), var(--bg)); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 1fr; } .hero { padding: 72px 0; } }

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: var(--surface);
  border: 2px dashed var(--gold-line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  overflow: hidden;
}
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-box button { font: inherit; }

.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: .4em; }
.card-pain { border-left: 5px solid var(--gold-line); font-size: 1.15rem; }
.num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: var(--on-gold);
  font-weight: 800; margin-bottom: 10px;
}

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: "";
  position: absolute; left: 4px; top: .45em;
  width: 14px; height: 8px;
  border-left: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  transform: rotate(-45deg);
}

.note {
  background: var(--warn-bg);
  color: var(--warn-text);
  border-radius: 10px;
  padding: 14px 18px;
}

.feature-group { margin-bottom: 36px; }
.feature-group h2 { font-size: 1.45rem; padding-bottom: 8px; border-bottom: 2px solid var(--gold-line); }
.feature-list { list-style: none; padding: 0; display: grid; gap: 14px; }
@media (min-width: 720px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
.feature-list li { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; margin: 0; }
.feature-list strong { display: block; font-size: 1.15rem; margin-bottom: 2px; }

/* ---------- Bảng giá ---------- */
.plans { display: grid; gap: 20px; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { display: flex; flex-direction: column; }
.plan h3 { font-size: 1.5rem; margin-bottom: .2em; }
.plan .fit { color: var(--muted); min-height: 3.2em; }
.price { font-size: 2rem; font-weight: 800; color: var(--gold); line-height: 1.2; margin: .3em 0 .1em; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan dl { margin: 16px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; }
.plan dt { color: var(--muted); }
.plans .plan dl { grid-template-columns: auto 1fr; }
.plan dt { white-space: nowrap; }
.plan dd { margin: 0; font-weight: 700; text-align: right; }
[data-tier-detail][hidden], [data-tier-pending][hidden] { display: none !important; }

.table-wrap { position: relative; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 1em; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 1.05rem; }
caption { text-align: left; padding: 12px 16px; font-weight: 700; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
thead th { background: var(--surface-2); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.c, th.c { text-align: center; }
.yes { color: var(--ok-text); font-weight: 700; }

/* ---------- Câu hỏi chọn phần mềm ---------- */
.q-list { list-style: none; padding: 0; counter-reset: q; display: grid; gap: 18px; }
.q-item { margin: 0; }
.q-item h2 { font-size: 1.25rem; }
.q-item dl { margin: 0; display: grid; gap: 10px; }
@media (min-width: 800px) { .q-item dl { grid-template-columns: 1fr 1fr; gap: 20px; } }
.q-item dt { font-weight: 700; color: var(--muted); font-size: 1rem; text-transform: none; }
.q-item dd { margin: 2px 0 0; }
.q-item .ours { background: var(--gold-soft); border-radius: 8px; padding: 10px 14px; }

/* ---------- Hỏi đáp ---------- */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 48px 16px 18px;
  min-height: 52px;
  font-weight: 700;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 18px; top: 12px;
  font-size: 1.6rem; line-height: 1; color: var(--gold);
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 18px 16px; }
.faq .answer > :last-child { margin-bottom: 0; }

/* ---------- Form ---------- */
.steps { list-style: none; padding: 0; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { margin: 0; }

.form-card { max-width: 720px; }
.field { margin-bottom: 20px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { display: block; font-size: 1.0625rem; color: var(--muted); margin-bottom: 6px; font-weight: 400; }
.req { color: var(--err-text); }
input[type="text"], input[type="tel"], input[type="email"], select {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 10px;
}
input:focus-visible, select:focus-visible { border-color: var(--focus); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--err-text); }
.field-error { color: var(--err-text); font-weight: 600; font-size: 1rem; margin-top: 6px; }
.field-error:empty { display: none; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); margin-bottom: 14px; }
.consent input { width: 26px; height: 26px; margin: 3px 0 0; accent-color: var(--gold); }
.consent label { font-weight: 400; font-size: 1.05rem; }
.consent .tag { display: inline-block; font-size: .9rem; font-weight: 700; margin-bottom: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.status { border-radius: 10px; padding: 14px 18px; margin-top: 16px; font-weight: 600; }
.status:empty { display: none; }
.status.ok { background: var(--ok-bg); color: var(--ok-text); }
.status.warn { background: var(--warn-bg); color: var(--warn-text); }
.status.err { background: var(--err-bg); color: var(--err-text); }

/* ---------- Chính sách ---------- */
.legal h2 { margin-top: 1.6em; padding-top: .6em; border-top: 2px solid var(--gold-line); }
.legal h3 { margin-top: 1.4em; }
.toc { list-style: none; padding: 0; display: grid; gap: 8px; }
.toc a { display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- Chân trang ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  font-size: 1.02rem;
}
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; } }
.site-footer h2 { font-size: 1.1rem; margin-bottom: .6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer li a, .link-btn { display: inline-flex; align-items: center; min-height: 44px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--gold); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 18px; color: var(--muted); }

/* ---------- Nút liên hệ nổi (điện thoại) ---------- */
.float-contact {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
}
.float-contact button {
  font: inherit;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  min-height: 48px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--gold);
  color: var(--gold);
  background: var(--surface);
  text-align: center;
  line-height: 1.2;
}
.float-contact button:first-child { background: var(--gold); color: var(--on-gold); }
body { padding-bottom: 72px; }
@media (min-width: 1024px) {
  .float-contact { display: none; }
  body { padding-bottom: 0; }
}

/* Chỉ hiện khi có JavaScript (nút chat, nút gửi form) */
html:not(.js) .js-only { display: none !important; }

/* ---------- Ảnh màn hình ---------- */
.hero-media { display: grid; gap: 20px; }
.shots { display: grid; gap: 20px; margin: 8px 0 40px; }
@media (min-width: 800px) { .shots { grid-template-columns: repeat(3, 1fr); } }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); }
.shot figcaption { font-size: 1.0625rem; color: var(--muted); margin-top: 8px; }

/* ---------- Hộp đồng ý trước khi nhắn tin ---------- */
.chat-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding: 24px 20px 16px;
  border: 2px solid var(--gold-line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 12px 48px rgba(0, 0, 0, .3);
}
.chat-dialog::backdrop { background: rgba(20, 15, 5, .55); }
.chat-dialog h2 { font-size: 1.4rem; }
.chat-actions { display: grid; gap: 10px; }
@media (min-width: 520px) { .chat-actions { grid-template-columns: 1fr 1fr; } }
.chat-actions .btn { width: 100%; }
.chat-close { margin-top: 8px; min-height: 44px; }

/* ---------- Băng cookie ---------- */
.cookie-banner {
  position: fixed;
  left: 12px; right: 12px; bottom: 80px;
  z-index: 60;
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--gold-line);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
  padding: 18px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin-bottom: .8em; }
@media (max-width: 599px) { .cookie-banner .long-text { display: none; } .cookie-banner { padding: 14px; } }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie-actions .btn { font-size: 1.02rem; padding: 10px 12px; width: 100%; }
/* Hai nút ngang nhau: cùng kiểu, cùng cỡ */
.cookie-actions .btn { background: var(--surface); color: var(--text); border-color: var(--text); }
.cookie-actions .btn:hover { background: var(--surface-2); }
@media (min-width: 1024px) { .cookie-banner { bottom: 16px; } }

/* ---------- In (bản in 10 câu hỏi) ---------- */
@media print {
  .site-header, .site-footer, .float-contact, .cookie-banner, .no-print, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; padding: 0; }
  .card, .q-item .ours { box-shadow: none; background: #fff; border: 1px solid #999; }
  .q-item { break-inside: avoid; }
  a { color: #000; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Trang Tải về, Hướng dẫn, Cập nhật */
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .95em; }
code.hash { word-break: break-all; overflow-wrap: anywhere; }
pre.code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.badge { display: inline-block; vertical-align: middle; font-size: .8rem; font-weight: 700; padding: .2em .6em; border-radius: 999px; background: var(--ok-bg); color: var(--ok-text); }
.badge-muted { background: var(--surface-2); color: var(--muted); }
.release-card h2 { margin-top: 0; }
.steps-list { padding-left: 1.4em; display: grid; gap: 10px; }
.version-entry { margin-bottom: 18px; }
.version-entry h3 { margin: 0; }
.version-entry ul { margin: .4em 0 0; padding-left: 1.2em; }
.toc a { display: inline-block; padding: 6px 0; }

/* ---------- Chọn gói (tab 4 gói, chi nhánh bổ sung, tổng tiền) ---------- */
.picker { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 14px; }
.picker-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 999px; }
.picker-tabs button { min-height: 48px; min-width: 0; padding: 0 4px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.picker-tabs button:hover { color: var(--text); }
.picker-tabs button[aria-selected="true"] { background: var(--gold); color: var(--on-gold); }
.picker-tabs button:focus-visible, .picker-panel:focus-visible { outline: 3px solid var(--gold-line); outline-offset: 2px; }
.picker-panel { padding: 18px 8px 8px; }
html:not(.js) .picker-panel + .picker-panel { border-top: 1px solid var(--border); }
.js .picker-name { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.js .picker-static-price { display: none; }
.picker-panel .fit { color: var(--muted); margin: 0; }
.picker-big { font-size: 2.3rem; font-weight: 800; line-height: 1.15; margin: .35em 0 .1em; }
.picker-sub { color: var(--muted); margin: 0 0 1em; }
.picker-label { color: var(--muted); font-weight: 700; padding-bottom: 8px; border-bottom: 1px solid var(--border); margin: 0 0 10px; }
.picker-list li { margin-bottom: 6px; }
.picker-buy { display: grid; gap: 14px; border-top: 1px solid var(--border); padding: 16px 8px 4px; margin-top: 8px; }
.picker-buy p { margin: 0; }
.picker-option { border: 2px solid var(--gold); border-radius: 16px; padding: 12px 16px; background: var(--gold-soft); }
.picker-option-price strong { font-size: 1.8rem; color: var(--gold); }
.picker-option-note { color: var(--muted); }
.picker-branches { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.picker-branches[data-disabled] .stepper { opacity: .5; }
.picker-branches-label { font-weight: 700; }
.picker-branches-label .small { font-weight: 400; }
.picker-branches > .small { flex-basis: 100%; }
.picker-branches > .small:empty { display: none; }
.stepper { display: inline-flex; align-items: center; gap: 10px; }
.stepper .btn { min-width: 48px; min-height: 48px; padding: 0; font-size: 1.4rem; line-height: 1; }
.stepper output { min-width: 2.5ch; text-align: center; font-weight: 800; font-size: 1.3rem; }
.picker-total { font-size: 1.15rem; }
.picker-total strong { font-size: 1.35rem; }
.picker-cta { width: 100%; min-height: 56px; font-size: 1.15rem; border-radius: 999px; }
.picker-buy .status { margin-top: 0; }
.checkout-dialog { width: min(640px, calc(100vw - 24px)); }
.co-summary { font-weight: 700; }
.order-info { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0; }
.order-info dt { color: var(--muted); }
.order-info dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.picker-tabs button { white-space: nowrap; }
@media (max-width: 480px) {
  .picker { padding: 8px; border-radius: 16px; }
  .picker-tabs { gap: 2px; padding: 3px; }
  .picker-tabs button { font-size: .9rem; padding: 0 2px; }
  .picker-big { font-size: 2rem; }
}

/* ---------- Bảng dòng hàng và thuế (hộp đặt mua, trang kết quả) ---------- */
.co-lines { width: 100%; border-collapse: collapse; font-size: 1rem; margin: 4px 0 12px; }
.co-lines th, .co-lines td { padding: 6px 4px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; font-weight: 400; }
.co-lines { min-width: 0; }
.co-lines th { overflow-wrap: anywhere; }
.co-lines td:nth-child(2) { white-space: nowrap; }
.co-lines td:nth-child(2) { text-align: right; }
.co-lines td:nth-child(3) { color: var(--muted); font-size: .92rem; white-space: normal; }
.co-lines .co-sum th, .co-lines .co-sum td { color: var(--muted); }
.co-lines .co-total th, .co-lines .co-total td { font-weight: 800; border-bottom: 0; font-size: 1.1rem; }
.picker-tax { font-weight: 700; color: var(--ok-text); }
