/* PRINTREE customer portal — layout follows DTF prototype v4,
   re-skinned with the logo palette (leaf green + PRINTREE blue + CMYK accents). */
@import url("https://fonts.googleapis.com/css2?family=Sarabun:wght@400;500;600;700;800&display=swap");

:root {
  --green: #5cb947;
  --green-dark: #4aa038;
  --blue: #1f7ec4;
  --blue-dark: #1a6aa6;
  --cyan: #1ba0e0;
  --magenta: #e6177f;
  --yellow: #f4d400;
  --pink: #f3b8d0;
  --ink: #233226;
  --muted: #7a8a7d;
  --line: #e6ece4;
  --bg: #eef4ec;
  --card: #ffffff;
  --danger: #c0392b;
  --radius: 12px;
  --shadow: 0 4px 22px rgba(40, 80, 40, 0.08);
  --font: "Sarabun", system-ui, sans-serif;
  --font-scale: 1.3;   /* ปรับตัวเลขนี้ = ขยาย/ย่อตัวอักษรทั้งเว็บ (1 = ปกติ, 1.15 = ใหญ่ขึ้น 15%) */
  font-family: var(--font);
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); min-height: 100vh; line-height: 1.5; }
a { color: var(--blue); }
.hidden, [hidden] { display: none !important; }

/* ═══ LOGIN ═══ */
.auth-bg {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px;
  background:
    radial-gradient(circle at 14% 16%, rgba(230, 23, 127, .05), transparent 42%),
    radial-gradient(circle at 86% 84%, rgba(27, 160, 224, .07), transparent 42%),
    var(--bg);
}
.auth-card { background: var(--card); border-radius: 14px; padding: 36px 34px 28px; width: 100%; max-width: 400px; box-shadow: 0 2px 24px rgba(0,0,0,.08); }
.auth-title { font-size: calc(22px * var(--font-scale)); font-weight: 800; text-align: center; color: var(--ink); }
.auth-sub { font-size: calc(13px * var(--font-scale)); color: var(--muted); text-align: center; margin: 4px 0 28px; }

.field { margin-bottom: 16px; }
.field-label { display: block; font-size: calc(12px * var(--font-scale)); font-weight: 600; color: #556; margin-bottom: 5px; letter-spacing: .2px; }
.field-input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: calc(14px * var(--font-scale)); font-family: inherit; color: var(--ink); background: #fafdf9; outline: none; transition: border-color .15s, background .15s;
}
.field-input:focus { border-color: var(--green); background: #fff; }
.field-input::placeholder { color: #bcc7bd; }
.login-forgot { font-size: calc(12px * var(--font-scale)); color: var(--muted); text-align: right; display: block; margin-top: 6px; }
.login-forgot strong { color: var(--blue); }
.pw-wrap { position: relative; }
.pw-wrap .field-input { padding-right: 44px; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: calc(16px * var(--font-scale)); padding: 4px 6px; line-height: 1; opacity: .6; }
.pw-eye:hover { opacity: 1; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: calc(13px * var(--font-scale)); color: #445; margin-bottom: 16px; cursor: pointer; }
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--green); }

.btn-primary {
  width: 100%; padding: 13px; background: var(--green); color: #fff; border: none; border-radius: 9px;
  font-family: inherit; font-size: calc(16px * var(--font-scale)); font-weight: 700; cursor: pointer; transition: background .15s;
}
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.error { background: #fdeceA; color: var(--danger); border: 1px solid #f3c7c0; padding: 10px 12px; border-radius: 8px; font-size: calc(13px * var(--font-scale)); margin-bottom: 14px; }

/* ═══ BU SELECTOR ═══ */
.bus-page { min-height: 100vh; display: flex; flex-direction: column; }
.bus-topbar {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 24px;
  background: var(--card); border-bottom: 1px solid var(--line);
}
.bus-brand { font-size: calc(16px * var(--font-scale)); font-weight: 800; letter-spacing: .5px; color: var(--blue); }
.bus-brand .accent { color: var(--green); }

.avatar-btn { position: relative; cursor: pointer; border: none; background: none; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: calc(15px * var(--font-scale)); font-weight: 700; }
.pf-dropdown { position: absolute; right: 0; top: 46px; background: var(--card); border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,.18); min-width: 210px; z-index: 50; overflow: hidden; text-align: left; }
.pf-head { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pf-name { font-size: calc(14px * var(--font-scale)); font-weight: 700; color: var(--ink); }
.pf-id { font-size: calc(11px * var(--font-scale)); color: var(--muted); margin-top: 2px; }
.pf-item { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: calc(13px * var(--font-scale)); color: #445; cursor: pointer; background: none; border: none; width: 100%; font-family: inherit; text-align: left; }
.pf-item:hover { background: #f2f8ef; }
.pf-item.danger { color: var(--danger); border-top: 1px solid var(--line); }

.bus-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px; }
.bus-title { color: var(--muted); font-size: calc(13px * var(--font-scale)); margin-bottom: 30px; letter-spacing: 1px; text-transform: uppercase; }
.bu-group { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.bu-card {
  width: 320px; height: 196px; border: none; border-radius: 20px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; color: #fff; box-shadow: 0 6px 26px rgba(0,0,0,.16); transition: transform .15s, box-shadow .15s;
}
.bu-card:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(0,0,0,.22); }
.bu-card.bu-printree { background: linear-gradient(135deg, #4aa038, #6cc24a); }
.bu-card.bu-shinemaker { background: linear-gradient(135deg, #c4136c, #e6177f); }
.bu-card .bu-label { font-size: calc(26px * var(--font-scale)); font-weight: 800; letter-spacing: .5px; }
.bu-card .bu-sub { font-size: calc(13px * var(--font-scale)); color: rgba(255,255,255,.85); }
.bus-note { color: var(--muted); font-size: calc(11px * var(--font-scale)); margin-top: 30px; }

/* ═══ DASHBOARD (portal) ═══ */
.portal-shell { display: flex; max-width: 1000px; margin: 0 auto; min-height: 100vh; background: var(--card); }
.portal-sidebar { width: 200px; flex-shrink: 0; border-right: 1px solid var(--line); padding: 22px 0; }
.portal-brand { padding: 0 20px 18px; font-size: calc(16px * var(--font-scale)); font-weight: 800; color: var(--blue); }
.portal-brand .accent { color: var(--green); }
.portal-nav { padding: 11px 20px; font-size: calc(13px * var(--font-scale)); color: #556; cursor: pointer; border-left: 3px solid transparent; background: none; border-top: none; border-right: none; border-bottom: none; width: 100%; text-align: left; font-family: inherit; }
.portal-nav:hover { background: #f6faf4; }
.portal-nav.active { color: var(--green-dark); font-weight: 700; border-left-color: var(--green); background: #f1f9ee; }
.portal-nav.danger { color: var(--danger); }

.portal-main { flex: 1; padding: 28px 28px 40px; min-width: 0; }
.greeting { font-size: calc(22px * var(--font-scale)); font-weight: 800; color: var(--ink); margin-bottom: 2px; }
.greeting-sub { font-size: calc(12px * var(--font-scale)); color: var(--muted); margin-bottom: 22px; }

.dash-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 26px; }
.dash-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 14px; text-align: center; border-top: 3px solid var(--accent, var(--green)); }
.dash-num { font-size: calc(26px * var(--font-scale)); font-weight: 800; color: var(--ink); line-height: 1; }
.dash-lbl { font-size: calc(11px * var(--font-scale)); color: var(--muted); margin-top: 5px; }

.recent-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.recent-head .t { font-size: calc(14px * var(--font-scale)); font-weight: 700; color: var(--ink); }
.recent-head .more { font-size: calc(12px * var(--font-scale)); color: var(--blue); cursor: pointer; }
.empty-state { background: #fbfdfa; border: 1px dashed var(--line); border-radius: var(--radius); padding: 34px; text-align: center; color: var(--muted); font-size: calc(13px * var(--font-scale)); }
.badge-dev { display: inline-block; background: var(--pink); color: #8a1357; font-size: calc(.72rem * var(--font-scale)); font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-left: 8px; }

/* ═══ ORDER WIZARD (F-005) ═══ */
.wiz-topbar { display: flex; align-items: center; gap: 14px; background: var(--card); border-bottom: 1px solid var(--line); padding: 14px 24px; position: sticky; top: 0; z-index: 10; }
.wiz-back { background: none; border: none; cursor: pointer; color: var(--muted); font-size: calc(13px * var(--font-scale)); font-family: inherit; }
.wiz-back:hover { color: var(--ink); }
.wiz-title { font-size: calc(16px * var(--font-scale)); font-weight: 800; color: var(--ink); }
.wiz-title .bu { color: var(--green-dark); }
.wiz-wrap { max-width: 1640px; margin: 0 auto; padding: 24px 32px 60px; }
.wiz-wrap section { width: 100%; }
/* left config + right price are fixed; the center (upload+preview) takes the rest */
.grid-3 { display: grid; grid-template-columns: 430px minmax(0, 1fr) 350px; gap: 20px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }

/* review warning + file-check tool */
.warn-banner { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 11px 14px; font-size: calc(13px * var(--font-scale)); color: #92400e; line-height: 1.55; margin-bottom: 14px; }
.filecheck .fc-sub { font-size: calc(12px * var(--font-scale)); color: var(--muted); margin-bottom: 14px; line-height: 1.5; }
.fc-engine { color: var(--blue); }
.fc-results { display: flex; flex-direction: column; gap: 2px; }
.fc-loading { font-size: calc(13px * var(--font-scale)); color: var(--muted); padding: 6px 0; }
.fc-item { display: flex; gap: 11px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.fc-item:last-child { border-bottom: none; }
.fc-ic { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: calc(14px * var(--font-scale)); font-weight: 800; flex-shrink: 0; }
.fc-pass .fc-ic { background: #dcfce7; color: #16a34a; }
.fc-warn .fc-ic { background: #fef3c7; color: #d97706; }
.fc-fail .fc-ic { background: #fee2e2; color: #dc2626; }
.fc-label { font-size: calc(13px * var(--font-scale)); font-weight: 600; color: var(--ink); }
.fc-detail { font-size: calc(11px * var(--font-scale)); margin-top: 2px; }
.fc-pass .fc-detail { color: #16a34a; }
.fc-warn .fc-detail { color: #d97706; }
.fc-fail .fc-detail { color: #dc2626; }
.fc-ack-box { margin-top: 14px; }
.fc-ack-text { font-size: calc(12px * var(--font-scale)); color: #555; line-height: 1.7; background: #fafafa; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; white-space: pre-line; }
.fc-foot { font-size: calc(11px * var(--font-scale)); color: var(--muted); text-align: center; margin-top: 8px; }
.shake { animation: shake .4s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }

.centered { max-width: 640px; margin: 0 auto; }
.step-title { font-size: calc(22px * var(--font-scale)); font-weight: 800; color: var(--ink); margin-bottom: 2px; }
.step-sub { font-size: calc(13px * var(--font-scale)); color: var(--muted); margin-bottom: 18px; }
.step-actions { display: flex; gap: 10px; }
.step-actions .btn-primary, .step-actions .btn-outline { flex: 1; }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--line); border-radius: 9px; padding: 13px; font-size: calc(15px * var(--font-scale)); font-weight: 600; cursor: pointer; font-family: inherit; }
.btn-outline:hover { border-color: var(--muted); }
.btn-quote { width: 100%; margin-top: 10px; background: #fff; color: var(--blue); border: 1.5px solid var(--blue); border-radius: 9px; padding: 11px; font-size: calc(14px * var(--font-scale)); font-weight: 700; cursor: pointer; font-family: inherit; }
.btn-quote:hover { background: #eef6ff; }

/* upload conditions popup */
.modal-overlay { position: fixed; inset: 0; background: rgba(20,30,22,.5); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
/* max-height + internal scroll so tall content (e.g. the upload guide image) never
   overflows the viewport with no way to scroll to the buttons. */
.modal-box { background: #fff; border-radius: 14px; padding: 28px 26px; width: 100%; max-width: 440px; box-shadow: 0 12px 48px rgba(0,0,0,.25); max-height: calc(100vh - 40px); overflow-y: auto; }
.modal-title { font-size: calc(18px * var(--font-scale)); font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.modal-list { padding-left: 22px; margin-bottom: 22px; }
.modal-list li { font-size: calc(14px * var(--font-scale)); color: #374151; line-height: 1.8; }
.modal-img { display: block; max-width: 100%; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 14px; }
.modal-link { display: inline-block; color: var(--blue); font-size: calc(13px * var(--font-scale)); font-weight: 600; margin-bottom: 16px; text-decoration: underline; }

/* file-check per-file */
.fc-file + .fc-file { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line); }
.fc-file-head { display: flex; align-items: center; gap: 7px; font-size: calc(13px * var(--font-scale)); font-weight: 700; color: var(--ink); padding: 6px 0; }
.fc-badge { font-size: calc(11px * var(--font-scale)); font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.fc-badge.ok { background: #dcfce7; color: #16a34a; }
.fc-badge.bad { background: #fee2e2; color: #dc2626; }

/* address pick + delete */
.addr-pick { display: flex; gap: 11px; align-items: flex-start; flex: 1; cursor: pointer; }
.addr-del { background: none; border: none; color: var(--muted); font-size: calc(14px * var(--font-scale)); cursor: pointer; padding: 2px 6px; flex-shrink: 0; align-self: flex-start; }
.addr-del:hover { color: var(--danger); }

/* address (F-018) */
.addr-opt { display: flex; gap: 11px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 15px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s; }
.addr-opt:hover { border-color: var(--green); }
.addr-opt:has(input:checked) { border-color: var(--green); background: #f1f9ee; }
.addr-opt input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--green); flex-shrink: 0; }
.addr-title { font-size: calc(13px * var(--font-scale)); font-weight: 700; color: var(--ink); }
.addr-text { font-size: calc(12px * var(--font-scale)); color: var(--muted); line-height: 1.6; margin-top: 3px; }
.addr-add-toggle { background: none; border: 1.5px dashed var(--line); border-radius: 9px; padding: 11px; width: 100%; color: var(--blue); font-size: calc(13px * var(--font-scale)); font-weight: 600; cursor: pointer; font-family: inherit; }
.addr-add-toggle:hover { border-color: var(--green); }
.addr-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.addr-same { display: flex; align-items: center; gap: 8px; font-size: calc(13px * var(--font-scale)); color: #444; margin-bottom: 12px; cursor: pointer; }
.addr-same input { width: 16px; height: 16px; cursor: pointer; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sum-addr { margin: 14px 0; padding: 12px; background: #fafdf9; border: 1px solid var(--line); border-radius: 8px; }
.sum-addr-label { font-size: calc(11px * var(--font-scale)); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 5px; }
.sum-addr-body { font-size: calc(12px * var(--font-scale)); color: var(--ink); line-height: 1.6; }

@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* step indicator */
.wiz-steps { display: flex; justify-content: center; gap: 28px; background: var(--card); border-bottom: 1px solid var(--line); padding: 12px 16px; flex-wrap: wrap; }
.wiz-step { display: flex; align-items: center; gap: 7px; font-size: calc(12px * var(--font-scale)); color: var(--muted); }
.wiz-step .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: calc(11px * var(--font-scale)); font-weight: 700; color: #bcc7bd; }
.wiz-step.active { color: var(--ink); font-weight: 700; }
.wiz-step.active .dot { border-color: var(--green); color: var(--green-dark); }
.wiz-step.done { color: var(--green-dark); }
.wiz-step.done .dot { background: var(--green); border-color: var(--green); color: #fff; }

/* dropzone + file list */
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 30px 18px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--green); background: #f6faf4; }
.dz-icon { font-size: calc(26px * var(--font-scale)); color: var(--green); }
.dz-main { font-size: calc(14px * var(--font-scale)); color: var(--ink); margin-top: 6px; }
.dz-link { color: var(--blue); font-weight: 700; text-decoration: underline; }
.dz-hint { font-size: calc(11px * var(--font-scale)); color: var(--muted); margin-top: 4px; }
.file-err { margin-top: 12px; background: #fdeceA; color: var(--danger); border: 1px solid #f3c7c0; padding: 9px 12px; border-radius: 8px; font-size: calc(12px * var(--font-scale)); }
.file-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.file-item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }
.file-ic { font-size: calc(18px * var(--font-scale)); }
.file-meta { flex: 1; min-width: 0; }
.file-name { font-size: calc(13px * var(--font-scale)); font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-size: calc(11px * var(--font-scale)); color: var(--muted); }
.file-del { background: none; border: none; color: var(--danger); font-size: calc(12px * var(--font-scale)); cursor: pointer; font-family: inherit; }
.progress { height: 6px; background: var(--line); border-radius: 999px; margin-top: 5px; overflow: hidden; }
.progress .bar { height: 100%; background: var(--green); transition: width .15s; width: 2%; }
/* F-006 upload progress */
.upload-prog { margin: 10px 0; }
.upload-prog .up-label { font-size: calc(12px * var(--font-scale)); color: var(--muted); margin-bottom: 2px; }
.price-lock { margin-top: 10px; padding: 9px 10px; background: #f7f9f6; border-radius: 7px; font-size: calc(11px * var(--font-scale)); color: var(--muted); text-align: center; }

/* artwork preview */
.thumb-hint { font-size: calc(13px * var(--font-scale)); color: var(--muted); margin-bottom: 12px; }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.thumb-item { text-align: center; }
.thumb-img { width: 100%; aspect-ratio: 3/4; object-fit: contain; background: #fafdf9; border: 1px solid var(--line); border-radius: 8px; cursor: zoom-in; transition: border-color .15s, transform .1s; }
.thumb-img:hover { border-color: var(--green); transform: translateY(-2px); }
.thumb-cap { font-size: calc(13px * var(--font-scale)); font-weight: 600; color: var(--ink); margin-top: 6px; }
.thumb-confirm { display: flex; gap: 9px; align-items: flex-start; margin-top: 16px; padding: 13px 15px; background: #f1f9ee; border: 1px solid #cfe9c5; border-radius: 9px; font-size: calc(14px * var(--font-scale)); color: var(--ink); line-height: 1.5; cursor: pointer; }
.thumb-confirm input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--green); flex-shrink: 0; }

/* slip preview */
.slip-preview { margin-top: 10px; }
.slip-preview-img { max-width: 240px; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fafdf9; cursor: zoom-in; transition: border-color .15s; }
.slip-preview-img:hover { border-color: var(--green); }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(20, 30, 22, .82); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 28px; cursor: zoom-out; }
.lightbox-img { max-width: 94vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 12px 48px rgba(0,0,0,.4); background: #fff; }
.lightbox-close { position: fixed; top: 18px; right: 22px; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255,255,255,.9); color: var(--ink); font-size: calc(18px * var(--font-scale)); cursor: pointer; }

/* review (step 2) */
.review-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.edit-link { background: none; border: none; color: var(--blue); font-size: calc(12px * var(--font-scale)); cursor: pointer; font-family: inherit; }
.edit-link:hover { text-decoration: underline; }
.rev-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rev-row:last-child { border-bottom: none; }
.rev-name { font-size: calc(14px * var(--font-scale)); color: var(--ink); }
.rev-meta { font-size: calc(12px * var(--font-scale)); color: var(--muted); margin-top: 2px; }
.rev-amt { font-size: calc(14px * var(--font-scale)); font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rev-row.rev-total { padding-top: 12px; }
.rev-row.rev-total .rev-name, .rev-row.rev-total .rev-amt { font-size: calc(16px * var(--font-scale)); font-weight: 800; color: var(--green-dark); }
.rev-empty { font-size: calc(13px * var(--font-scale)); color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; }
.card-title { font-size: calc(12px * var(--font-scale)); font-weight: 700; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; margin-bottom: 14px; }
.info-note { display: flex; gap: 6px; align-items: flex-start; background: #eef6ff; border: 1px solid #c8e0f6; border-radius: 7px; padding: 8px 11px; font-size: calc(11px * var(--font-scale)); color: var(--blue-dark); margin-bottom: 14px; }
.spec-note { font-size: calc(12px * var(--font-scale)); color: var(--muted); margin: 4px 0 8px; }
.unit-price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; background: #f1f9ee; border: 1px solid #cfe9c5; border-radius: 8px; padding: 9px 13px; margin-bottom: 14px; }
.unit-price .up-label { font-size: calc(12px * var(--font-scale)); color: var(--green-dark); font-weight: 600; }
.unit-price .up-value { font-size: calc(15px * var(--font-scale)); font-weight: 800; color: var(--green-dark); font-variant-numeric: tabular-nums; }
.qty-row { display: flex; align-items: center; gap: 10px; max-width: 240px; }
.qty-row .field-input { flex: 1; }
.qty-unit { font-size: calc(13px * var(--font-scale)); color: var(--muted); }
select.field-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }

.logi-opts { display: flex; flex-direction: column; gap: 8px; }
.logi-btn { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 9px; padding: 11px 13px; cursor: pointer; transition: border-color .15s; }
.logi-btn:hover { border-color: var(--green); }
.logi-btn.active { border-color: var(--green); background: #f1f9ee; }
.logi-chk { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.logi-btn.active .logi-chk { border-color: var(--green); background: var(--green); }
.logi-btn.active .logi-chk::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.logi-main { flex: 1; }
.logi-name { font-size: calc(13px * var(--font-scale)); color: var(--ink); font-weight: 600; }
.logi-note { font-size: calc(11px * var(--font-scale)); color: var(--muted); margin-top: 2px; }
.logi-fee { font-size: calc(13px * var(--font-scale)); font-weight: 600; color: var(--ink); align-self: center; }
.logi-fee.free { color: var(--green-dark); }

.price-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 84px; box-shadow: var(--shadow); }
.price-row { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; font-size: calc(13px * var(--font-scale)); }
.price-row .lbl { color: var(--muted); }
.price-row .val { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-row .agreed { color: var(--green-dark); font-weight: 700; font-size: calc(11px * var(--font-scale)); }
.price-item { border-bottom: 1px dashed #eef1ec; padding-bottom: 7px; }
.price-item .lbl { color: var(--ink); font-weight: 600; }
.price-calc { color: var(--green-dark); font-weight: 400; font-size: calc(12px * var(--font-scale)); }
.price-detail { font-size: calc(11px * var(--font-scale)); color: var(--muted); text-align: right; margin: -2px 0 2px; font-variant-numeric: tabular-nums; }
.price-divider { border: none; border-top: 1px solid var(--line); margin: 7px 0; }
.price-grand { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; }
.price-grand .lbl { font-size: calc(13px * var(--font-scale)); font-weight: 700; color: var(--ink); }
.price-grand .val { font-size: calc(26px * var(--font-scale)); font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-cur { font-size: calc(11px * var(--font-scale)); color: var(--muted); text-align: right; margin-top: 2px; }
.vat-note { margin-top: 8px; padding: 7px 10px; background: #f0fdf4; border: 1px solid #bbf0c0; border-radius: 7px; font-size: calc(10.5px * var(--font-scale)); color: var(--green-dark); line-height: 1.5; }
.price-remark:empty { display: none; }
.price-remark { margin-top: 10px; padding: 9px 12px; background: #fff8e6; border: 1px solid #f0cc55; border-radius: 7px; font-size: calc(11px * var(--font-scale)); color: #92400e; line-height: 1.5; }
.price-card .btn-primary { margin-top: 16px; }

/* order list (dashboard recent + my orders) */
.ord-list { display: flex; flex-direction: column; gap: 8px; }
.ord-item { display: flex; justify-content: space-between; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; }
.ord-no { font-size: calc(13px * var(--font-scale)); font-weight: 700; color: var(--ink); }
.ord-meta { font-size: calc(11px * var(--font-scale)); color: var(--muted); margin-top: 2px; }
.badge { font-size: calc(11px * var(--font-scale)); font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }

/* payment (step 3) */
.pay-notice { display: flex; gap: 7px; align-items: flex-start; background: #eef6ff; border: 1px solid #c8e0f6; border-radius: 8px; padding: 9px 12px; font-size: calc(12px * var(--font-scale)); color: var(--blue-dark); margin-bottom: 10px; }
.expiry-banner { display: flex; gap: 7px; align-items: flex-start; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 9px 12px; font-size: calc(11px * var(--font-scale)); color: #92400e; line-height: 1.5; margin-bottom: 16px; }
.pay-row { display: flex; gap: 16px; align-items: stretch; flex-wrap: wrap; }
.qr-mock { width: 140px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; }
.qr-cap { font-size: calc(11px * var(--font-scale)); font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.qr-grid { width: 110px; height: 110px; margin: 0 auto; border-radius: 6px;
  background:
    linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%) 0 0 / 22px 22px,
    linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%) 11px 11px / 22px 22px,
    #fff; opacity: .85; }
.qr-id { font-size: calc(11px * var(--font-scale)); color: var(--muted); margin-top: 7px; }
.bank-info { flex: 1; min-width: 180px; }
.bank-label { font-size: calc(11px * var(--font-scale)); color: var(--muted); margin-bottom: 6px; }
.bank-name { font-size: calc(14px * var(--font-scale)); font-weight: 700; color: var(--ink); }
.bank-acc { font-size: calc(18px * var(--font-scale)); font-weight: 800; color: var(--green-dark); letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.bank-holder { font-size: calc(12px * var(--font-scale)); color: var(--muted); margin-top: 2px; }
.pay-divider { border-top: 1px solid var(--line); margin: 16px 0; }
.slip-title { font-size: calc(12px * var(--font-scale)); font-weight: 700; color: #556; margin-bottom: 8px; }
.slip-dz { padding: 20px 16px; }
.pay-foot { font-size: calc(11px * var(--font-scale)); color: var(--muted); text-align: center; margin-top: 6px; }

/* wizard success */
.wiz-success { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; background: var(--bg); }
.success-card { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 36px 32px; width: 100%; max-width: 400px; text-align: center; }
.success-check { width: 60px; height: 60px; border-radius: 50%; background: #dcfce7; color: var(--green-dark); font-size: calc(30px * var(--font-scale)); font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.success-card h2 { font-size: calc(20px * var(--font-scale)); font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.success-sub { font-size: calc(13px * var(--font-scale)); color: var(--muted); margin-bottom: 20px; }
.order-no-box { border: 2px solid var(--line); border-radius: 10px; padding: 14px; background: #fafdf9; margin-bottom: 14px; }
.order-no-label { font-size: calc(10px * var(--font-scale)); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.order-no { font-size: calc(22px * var(--font-scale)); font-weight: 800; color: var(--green-dark); letter-spacing: .5px; margin-top: 4px; }
.success-total { font-size: calc(14px * var(--font-scale)); color: var(--ink); margin-bottom: 20px; }
.success-total strong { font-size: calc(18px * var(--font-scale)); }

@media (max-width: 720px) {
  .wiz-wrap { grid-template-columns: 1fr; }
  .price-card { position: static; }
  .portal-shell { flex-direction: column; }
  .portal-sidebar { width: 100%; display: flex; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--line); padding: 10px; }
  .portal-brand { width: 100%; }
  .dash-cards { grid-template-columns: repeat(2, 1fr); }
  .bu-card { width: 100%; max-width: 340px; }
}

/* ── Customer order list + detail (F-003 / F-004) ── */
.ta-r { text-align: right; }
.ord-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; }
.ord-chip { font-size: calc(13px * var(--font-scale)); padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; font-family: inherit; }
.ord-chip.active { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.ord-link { text-decoration: none; color: inherit; transition: box-shadow .12s, transform .12s; }
.ord-link:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-1px); }
.ord-tag-quote { font-size: calc(11px * var(--font-scale)); font-weight: 700; color: #7c3aed; background: #ede9fe; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }

.od-back { display: inline-block; color: var(--muted); font-size: calc(14px * var(--font-scale)); text-decoration: none; margin-bottom: 16px; }
.od-back:hover { color: var(--green-dark); }
.od-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.od-no { font-size: calc(22px * var(--font-scale)); font-weight: 800; color: var(--ink); margin: 0; }
.od-badge { font-size: calc(13px * var(--font-scale)); padding: 5px 14px; }

/* timeline */
.od-timeline { display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin-bottom: 18px; }
.od-step { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.od-dot { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: calc(14px * var(--font-scale)); background: #eef2ee; color: var(--muted); border: 2px solid var(--line); }
.od-step.done .od-dot { background: var(--green); color: #fff; border-color: var(--green); }
.od-step.active .od-dot { background: #fff; color: var(--green-dark); border-color: var(--green); box-shadow: 0 0 0 4px rgba(92,185,71,.18); }
.od-step-lbl { font-size: calc(12px * var(--font-scale)); color: var(--muted); white-space: nowrap; }
.od-step.done .od-step-lbl, .od-step.active .od-step-lbl { color: var(--ink); font-weight: 600; }
.od-line { flex: 1; height: 2px; background: var(--line); margin: 0 6px; margin-bottom: 26px; }
.od-cancelled { background: #fee2e2; color: #b91c1c; font-weight: 700; padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; }

.od-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; }
.od-h { font-size: calc(15px * var(--font-scale)); font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.od-table { width: 100%; border-collapse: collapse; font-size: calc(14px * var(--font-scale)); }
.od-table td { padding: 9px 0; border-bottom: 1px solid #f4f6f3; }
.od-table tfoot td { border-bottom: none; padding: 6px 0; color: var(--muted); }
.od-table tfoot .od-total td { font-weight: 800; color: var(--green-dark); font-size: calc(15px * var(--font-scale)); padding-top: 12px; border-top: 1px solid var(--line); }

.od-files { display: flex; gap: 14px; flex-wrap: wrap; }
.od-file { width: 150px; }
.od-thumb { width: 150px; aspect-ratio: 3/4; object-fit: contain; background: #fafdf9; border: 1px solid var(--line); border-radius: 10px; cursor: zoom-in; }
.od-fname { font-size: calc(12px * var(--font-scale)); font-weight: 600; color: var(--ink); margin-top: 6px; word-break: break-word; }
.od-fmeta { font-size: calc(11px * var(--font-scale)); color: var(--muted); margin-top: 2px; }
.od-dl { display: inline-block; font-size: calc(12px * var(--font-scale)); padding: 5px 12px; margin-top: 6px; }
.od-file-gone { width: 100%; background: #f9fafb; border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; }
.od-ship { font-size: calc(14px * var(--font-scale)); color: #444; line-height: 1.8; }

.od-note { padding: 14px 18px; border-radius: 12px; margin-bottom: 16px; font-size: calc(14px * var(--font-scale)); }
.od-note-quote { background: #ede9fe; color: #5b21b6; }
.od-note-info { background: #dbeafe; color: #1e40af; }
.od-expire { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; padding: 12px 16px; border-radius: 12px; font-size: calc(13px * var(--font-scale)); }
/* F-011 NG re-upload block */
.od-ng { background: #fff7f7; border: 1.5px solid #fecaca; border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.od-ng-head { font-size: calc(15px * var(--font-scale)); font-weight: 700; color: #b91c1c; margin-bottom: 10px; }
.od-ng-reasons { margin-bottom: 12px; }
.ng-file { margin-bottom: 8px; }
.ng-fname { font-size: calc(13px * var(--font-scale)); font-weight: 600; color: #444; margin-bottom: 3px; }
.ng-item { font-size: calc(12.5px * var(--font-scale)); line-height: 1.7; padding: 3px 8px; border-radius: 6px; }
.ng-item.ng-fail { color: #b91c1c; background: #fef2f2; }
.ng-item.ng-warn { color: #a16207; background: #fefce8; }
.od-ng-files { background: #fff; border: 1px solid #f1d9d9; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.od-ng-lbl { font-size: calc(12px * var(--font-scale)); color: #6b7280; margin-bottom: 8px; }
.ng-cur { display: flex; justify-content: space-between; align-items: center; font-size: calc(13px * var(--font-scale)); padding: 4px 0; }
.ng-del { padding: 3px 12px; font-size: calc(12px * var(--font-scale)); }
.od-pay { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-top: 12px; }
.od-pay-amt { font-size: calc(15px * var(--font-scale)); margin-bottom: 8px; }
.od-pay-bank { font-size: calc(13px * var(--font-scale)); color: #444; line-height: 1.8; margin-bottom: 12px; }
.od-pay-lbl { font-size: calc(13px * var(--font-scale)); font-weight: 600; display: block; margin-bottom: 6px; }
.od-pay-file { font-size: calc(13px * var(--font-scale)); margin-bottom: 10px; }
.fld-msg { font-size: calc(12.5px * var(--font-scale)); min-height: 16px; margin: 4px 0; }

/* ── Customer cart order page (B2 phase 3) ── */
.od-h { font-size: calc(16px * var(--font-scale)); font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.od-flbl { display: block; font-size: calc(13px * var(--font-scale)); font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.od-fmeta { font-size: calc(12px * var(--font-scale)); color: var(--muted); }
.od-file { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: calc(14px * var(--font-scale)); font-family: inherit; box-sizing: border-box; }
.mode-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.mode-tab { font-size: calc(14px * var(--font-scale)); font-weight: 600; padding: 9px 18px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; font-family: inherit; }
.mode-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.dc-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; margin-bottom: 10px; }
.dc-unit { display: flex; align-items: center; gap: 6px; }
.dc-unit input { flex: 1; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: calc(14px * var(--font-scale)); font-family: inherit; width: 100%; box-sizing: border-box; }
.dc-unit span { font-size: calc(13px * var(--font-scale)); color: var(--muted); white-space: nowrap; }
.dc-del { background: none; border: none; color: var(--danger); font-size: calc(16px * var(--font-scale)); cursor: pointer; padding: 8px; }
.cart-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f4f6f3; }
.cart-item:last-child { border-bottom: none; }
.cart-name { font-size: calc(14px * var(--font-scale)); font-weight: 600; color: var(--ink); }
.cart-right { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.ship-pick { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; font-size: calc(14px * var(--font-scale)); }
.ship-pick input { margin-top: 3px; accent-color: var(--green); }
.ship-pick:has(input:checked) { border-color: var(--green); background: #f6faf4; }
.od-trow { display: flex; justify-content: space-between; padding: 7px 0; font-size: calc(14px * var(--font-scale)); color: var(--muted); }
.od-trow.od-min { color: var(--warn); }
.od-trow.od-grand { font-size: calc(17px * var(--font-scale)); font-weight: 800; color: var(--green-dark); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
@media (max-width: 720px){ .dc-row { grid-template-columns: 1fr 1fr; } }

/* order page card header + responsive grid-3 (B2) */
.card-h { font-size: calc(15px * var(--font-scale)); font-weight: 700; color: var(--ink); margin: 0 0 14px; }
@media (max-width: 1080px) { .grid-3 { grid-template-columns: 1fr; } .price-card { position: static; } }

/* prominent unit-price display next to size (all modes) */
.rate-lead { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; padding: 10px 14px; background: #f1f9ee; border: 1px solid #cfe8c4; border-radius: 9px; }
.rate-lead-lbl { font-size: calc(12px * var(--font-scale)); font-weight: 600; color: #556; }
.rate-big { font-size: calc(20px * var(--font-scale)); font-weight: 800; color: var(--green-dark); transition: color .15s; }
.rate-big span { font-size: calc(13px * var(--font-scale)); font-weight: 500; color: var(--muted); }
/* effective unit price dropped to a volume tier (1.1) */
.rate-big.rate-tier { color: #d97706; }
.rate-big.rate-tier::after { content: "ราคาขั้นบันได"; display: inline-block; margin-left: 6px; font-size: calc(11px * var(--font-scale)); font-weight: 700; color: #fff; background: #d97706; padding: 1px 6px; border-radius: 8px; vertical-align: middle; }
.size-price-row { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.size-price-row .a3-size { margin-top: 5px; }

/* compact add-to-cart button (B2 wizard step 1) */
.btn-add-cart { background: var(--green); color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-size: calc(13px * var(--font-scale)); font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn-add-cart:hover { background: var(--green-dark); }
.btn-add-cart:disabled { opacity: .5; cursor: not-allowed; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.btn-cart-outline { background: #fff; color: var(--green-dark); border: 1.5px solid var(--green); border-radius: 8px; padding: 8px 16px; font-size: calc(13px * var(--font-scale)); font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn-cart-outline:hover { background: #f1f9ee; }
.cart-edit { background: none; border: none; cursor: pointer; font-size: calc(14px * var(--font-scale)); opacity: .65; padding: 2px 4px; }
.cart-edit:hover { opacity: 1; }
.cart-item-editing { background: #f1f9ee; border-radius: 8px; padding: 10px; margin: 0 -10px; }
.filecheck .set-toggle { margin-top: 10px; }

/* step 3 wide wrapper + upload-conditions popup */
.centered-wide { max-width: 940px; margin: 0 auto; }
.up-text { font-size: calc(13px * var(--font-scale)); color: #444; line-height: 1.7; white-space: pre-line; margin-bottom: 12px; }
.up-image { width: 100%; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 12px; display: block; }
.up-link { display: inline-block; color: var(--blue); font-weight: 700; font-size: calc(13px * var(--font-scale)); text-decoration: none; margin-bottom: 14px; }
.up-link:hover { text-decoration: underline; }
.up-actions { display: flex; gap: 10px; }
.up-actions .btn-primary, .up-actions .btn-outline { flex: 1; }

/* step 2 acknowledgement (matches old version) */
.fc-sec-title { font-size: calc(13px * var(--font-scale)); font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.fc-ack-check { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; font-size: calc(12.5px * var(--font-scale)); color: var(--ink); line-height: 1.5; }
.fc-ack-check input { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; }

/* step 1: PDF preview, A3 size, diecut per-piece, quote */
.pdf-embed { width: 100%; height: 260px; border: 1px solid var(--line); border-radius: 8px; margin-top: 8px; background: #f7faf6; }
.thumb-instruction { font-size: calc(11.5px * var(--font-scale)); color: var(--muted); display: block; margin-top: 6px; }
.a3-size { display: inline-flex; align-items: center; gap: 9px; margin-top: 5px; padding: 8px 13px; background: #f5f7f4; border: 1.5px solid var(--line); border-radius: 8px; font-size: calc(14px * var(--font-scale)); font-weight: 700; }
.a3-size span { font-size: calc(12px * var(--font-scale)); font-weight: 400; color: var(--muted); }
.cart-pp { color: var(--green-dark); font-weight: 600; }
.cart-calc { color: var(--green-dark); font-weight: 700; white-space: nowrap; }
.ord-meta .cart-calc { font-size: calc(12px * var(--font-scale)); }
.price-newlink:disabled { opacity: .5; cursor: not-allowed; }
.cart-min { color: #d97706; font-weight: 600; font-size: calc(11px * var(--font-scale)); }
.diecut-note { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; font-size: calc(13px * var(--font-scale)); font-weight: 600; padding: 9px 12px; border-radius: 8px; margin-bottom: 14px; line-height: 1.5; }
.slip-item { align-items: center; gap: 10px; }
.slip-thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex-shrink: 0; background: #f5f7f4; cursor: zoom-in; }
.slip-thumb-pdf { display: inline-flex; align-items: center; justify-content: center; font-size: calc(11px * var(--font-scale)); font-weight: 700; color: var(--muted); cursor: default; }
.bu-tag { display: inline-block; font-size: calc(10px * var(--font-scale)); font-weight: 700; padding: 1px 7px; border-radius: 10px; vertical-align: middle; }
.bu-tag-PRINTREE { background: #dcfce7; color: #166534; }
.bu-tag-SHINE_MAKER { background: #e0e7ff; color: #3730a3; }

/* step 3: summary sections, thumbnails, address delete, cutoff */
.sum-sec { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 10px; }
.sum-h { display: flex; justify-content: space-between; align-items: center; font-size: calc(12px * var(--font-scale)); font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.edit-link { background: none; border: none; color: var(--blue); font-size: calc(11.5px * var(--font-scale)); cursor: pointer; font-family: inherit; padding: 0; }
.edit-link:hover { text-decoration: underline; }
.thumb-row { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb-mini { width: 76px; text-align: center; }
.thumb-mini img { width: 76px; height: 76px; object-fit: cover; border: 1px solid var(--line); border-radius: 7px; background: #f7faf6; }
.thumb-fallback { width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 7px; background: #f1f9ee; color: var(--muted); font-size: calc(11px * var(--font-scale)); font-weight: 700; }
.thumb-cap { font-size: calc(9.5px * var(--font-scale)); color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr-row { position: relative; }
.addr-del { position: absolute; top: 8px; right: 8px; background: none; border: none; cursor: pointer; font-size: calc(14px * var(--font-scale)); opacity: .6; }
.addr-del:hover { opacity: 1; }
.cutoff-box { margin-top: 12px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 9px 13px; font-size: calc(11.5px * var(--font-scale)); color: #92400e; line-height: 1.6; }
.cutoff-h { font-weight: 700; text-transform: uppercase; letter-spacing: .3px; font-size: calc(10px * var(--font-scale)); margin-bottom: 3px; }

/* step 4 expiry warning + success summary */
.expire-warn { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 9px 13px; margin: 10px 0 14px; font-size: calc(11.5px * var(--font-scale)); color: #92400e; line-height: 1.55; }
.success-summary { background: #fbfdfa; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 16px 0; text-align: left; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: calc(13px * var(--font-scale)); padding: 4px 0; }
.summary-key { color: var(--muted); flex-shrink: 0; }
.summary-val { color: var(--ink); font-weight: 600; text-align: right; }
.success-hr { border: none; border-top: 1px solid var(--line); margin: 7px 0; }

/* die-cut: per-row live per-piece price */
.dc-item { margin-bottom: 12px; }
.dc-item .dc-row { margin-bottom: 0; }
.dc-pp { display: none; margin-top: 5px; font-size: calc(12.5px * var(--font-scale)); color: var(--green-dark); background: #f1f9ee; border: 1px solid #cfe8c4; border-radius: 7px; padding: 6px 10px; }
.dc-pp strong { font-weight: 800; }

/* tax-invoice request checkbox (payment step) */
.tax-opt { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: calc(13px * var(--font-scale)); color: var(--ink); line-height: 1.5; background: #f7faf6; border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; }
.tax-opt input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--green); }

/* customer account page */
.acct-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: calc(14px * var(--font-scale)); }
.acct-row:last-child { border-bottom: none; }
.acct-lbl { color: var(--muted); flex-shrink: 0; }
.acct-val { color: var(--ink); text-align: right; }
.acct-bu { display: inline-block; background: #f1f9ee; color: var(--green-dark); font-size: calc(12px * var(--font-scale)); font-weight: 700; padding: 3px 10px; border-radius: 999px; }

/* customer order detail — shipped tracking */
.od-track { margin-top: 12px; padding: 10px 14px; background: #f1f9ee; border: 1px solid #cfe8c4; border-radius: 8px; font-size: calc(13px * var(--font-scale)); color: var(--green-dark); }
.od-trackno { font-family: monospace; font-size: calc(14px * var(--font-scale)); }

.dz-multi { color: var(--green-dark); font-weight: 600; font-size: calc(12px * var(--font-scale)); }

/* multi-file per-page preview thumbnails (PDF.js) */
.file-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 8px; }
.thumb-card { border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fff; text-align: center; }
.thumb-card canvas { width: 100%; height: auto; border-radius: 4px; display: block; }
.thumb-fallback2 { height: 120px; display: flex; align-items: center; justify-content: center; background: #f1f9ee; color: var(--muted); font-weight: 700; border-radius: 4px; }
.thumb-cap2 { font-size: calc(11px * var(--font-scale)); color: var(--muted); margin-top: 6px; word-break: break-word; }
