/* =========================================================
   Nora Kingdom — โซนสติกเกอร์ไลน์ (ธีมพิกเซลเดียวกับทั้งเว็บ)
   ========================================================= */
.badge-lav { background: var(--lav-l); }
.sec-num { width: 28px; height: 28px; display: inline-grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--pink-l); font-family: var(--font-px); font-size: .85rem; flex: none; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; cursor: pointer; }
.check-inline input { width: 18px; height: 18px; accent-color: var(--pink-d); }
.slipok { display: inline-block; margin-top: 6px; padding: 4px 12px; border: 2px solid var(--ink); border-radius: 999px; background: #d9f5e3; color: #1f6b3f; font-family: var(--font-th); font-size: .88rem; }
.slipbad { margin-top: 6px; padding: 8px 12px; border: 2px dashed #c4314e; border-radius: 12px; background: #ffe8ec; color: #8f1d3a; font-size: .9rem; }

/* ---------- เหรียญพิกเซล ---------- */
.coin-n { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.coin-n svg { width: 30px; height: 30px; image-rendering: pixelated; }
.coin-n b { font-size: 1.35rem; line-height: 1; color: #8a5a00; }
.coin-n.sm svg { width: 20px; height: 20px; }
.coin-n.sm b { font-size: .85rem; }

/* ---------- ส่วนหัวโซน ---------- */
.stk-hero-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 0 12px; }
.fest-chip, .deal-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 14px; border: var(--bw) solid var(--ink); border-radius: 999px; background: var(--gold); font: inherit; font-family: var(--font-th); color: var(--ink); box-shadow: 0 3px 0 var(--ink); cursor: pointer; }
.fest-chip span { font-size: .82rem; }
.deal-chip { background: var(--pink); cursor: default; }
.ways { display: grid; gap: 12px; }
.way { padding: 12px; border: 2px dashed var(--lav); border-radius: 14px; background: var(--lav-xl); }
.way + .way { background: #eefbf1; border-color: #9fd9b4; }
.way h3 { margin: 0 0 6px; font-family: var(--font-th); font-weight: 500; font-size: 1rem; display: flex; align-items: center; gap: 6px; }
.how-list { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.how-list li { counter-increment: s; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; }
.how-list li::before { content: counter(s); grid-row: span 2; width: 26px; height: 26px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 8px; background: var(--white); font-family: var(--font-px); font-size: .8rem; }
.how-list b { font-family: var(--font-th); font-weight: 500; }
.how-list span { font-size: .85rem; color: var(--ink-soft); }

/* ---------- ตารางราคาเหรียญ ---------- */
.rate-tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.rate-tabs .tab { position: relative; display: grid; line-height: 1.2; padding: 6px 14px; }
.rate-tabs .tab small { font-size: .7rem; opacity: .75; }
.rate-tabs .hot { position: absolute; top: -10px; right: -6px; padding: 1px 8px; border: 2px solid var(--ink); border-radius: 999px; background: var(--pink); font-size: .68rem; transform: rotate(6deg); }
.rate-box h3 { margin: 6px 0 2px; font-family: var(--font-th); font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rate-box > .btn { margin-top: 12px; }
.rb-intl h3 { color: #3f68a0; }
.mega { padding: 1px 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--pink); font-size: .95rem; transform: rotate(4deg); display: inline-block; }
.intl-steps { margin: 6px 0; padding: 10px 14px 10px 30px; border: 2px dashed #9cc0ec; border-radius: 12px; background: #f1f7ff; font-size: .86rem; display: grid; gap: 2px; }
.closed-pill { margin: 8px 0; padding: 6px 12px; border-radius: 999px; background: var(--lav-xl); border: 2px dashed var(--lav); font-size: .85rem; width: fit-content; }
.deal { margin: 8px 0; padding: 8px 14px; border: var(--bw) solid var(--ink); border-radius: 12px; font-family: var(--font-th); color: var(--white); background: repeating-linear-gradient(-45deg, var(--pink-d) 0 12px, #d98cb0 12px 24px); text-shadow: 0 1px 0 var(--ink); }
.days { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; font-size: .86rem; }
.days span { padding: 1px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--lav-l); font-family: var(--font-th); }
.rate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; padding-top: 10px; }
.rate { position: relative; display: grid; justify-items: center; align-content: start; gap: 2px; padding: 10px 4px 10px; text-align: center; border: var(--bw) solid var(--ink); border-radius: 14px; background: var(--white); box-shadow: 0 4px 0 var(--ink); }
.rate.sale { background: #fff3f7; }
.rate .flag { position: absolute; top: -12px; right: -6px; padding: 0 8px; border: 2px solid var(--ink); border-radius: 999px; background: var(--pink); font-family: var(--font-th); font-size: .74rem; transform: rotate(8deg); }
.rate .unit { font-family: var(--font-th); font-size: .8rem; display: grid; line-height: 1.2; }
.rate .unit small { font-size: .68rem; color: #3f68a0; }
.rate .lbl { font-size: .72rem; color: var(--ink-soft); }
.rate .tag { display: inline-flex; align-items: baseline; gap: 4px; margin-top: 4px; padding: 1px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--gold); }
.rate .tag b { font-size: 1.05rem; }
.rate .tag small, .rate .tag s { font-size: .7rem; color: var(--ink-soft); }
.rate .next { font-size: .7rem; color: var(--pink-d); font-family: var(--font-th); }

/* ---------- การ์ดโปร ---------- */
.stk-chips .chip { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); display: inline-block; }
.t-sticker { background: #ffb7d2; } .t-emoji { background: #ffe08a; } .t-theme { background: #a8e6c9; }
.stk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.stk-card { display: flex; flex-direction: column; min-width: 0; border: var(--bw) solid var(--ink); border-radius: 16px; background: var(--white); box-shadow: 0 4px 0 var(--ink); overflow: hidden; }
.stk-card.soon { border-color: #c4314e; box-shadow: 0 4px 0 #c4314e; }
.stk-media { position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: 14px; border: 0; border-bottom: 2px dashed var(--lav-l); background: var(--lav-xl); cursor: pointer; }
.stk-card:nth-child(3n+2) .stk-media { background: #eefbf1; } .stk-card:nth-child(3n) .stk-media { background: #fff7de; }
.stk-media img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.stk-type { position: absolute; top: 8px; left: 8px; padding: 0 10px; border: 2px solid var(--ink); border-radius: 999px; font-family: var(--font-th); font-size: .72rem; }
.meta-row .stk-type { position: static; }
.stk-time { position: absolute; bottom: 8px; left: 8px; padding: 0 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); font-family: var(--font-th); font-size: .72rem; }
.soon .stk-time { background: #ffc2c8; }
.stk-body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.stk-body > b { font-family: var(--font-th); font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.stk-body .btn { margin-top: auto; }
.price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.price { padding: 0 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--gold); font-size: 1rem; }
.price small { font-size: .7rem; }
.from { font-size: .78rem; color: var(--ink-soft); }
.was { font-size: .8rem; color: var(--ink-soft); }
.off { font-size: .8rem; color: #c4314e; font-family: var(--font-th); }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dt-body { margin-top: 10px; }
.opt-list { display: grid; gap: 8px; }
.opt-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px; border: 2px solid var(--lav-l); border-radius: 14px; background: var(--lav-xl); }
.opt-row.sel { border-color: var(--ink); background: var(--pink-l); }
.opt-row img, .opt-ph { width: 64px; height: 64px; object-fit: contain; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); image-rendering: pixelated; cursor: zoom-in; flex: none; }
.opt-row b { font-family: var(--font-th); font-weight: 500; }
.opt-row .grow { flex: 1 1 160px; min-width: 0; display: grid; gap: 4px; }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.shot { aspect-ratio: 1; padding: 6px; border: 2px solid var(--ink); border-radius: 12px; background: var(--lav-xl); cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.vframe { position: relative; aspect-ratio: 16/9; border: var(--bw) solid var(--ink); border-radius: 14px; overflow: hidden; background: #2b2230; display: grid; place-items: center; }
.vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.overview { display: grid; place-items: center; padding: 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--lav-xl); }
.overview img { max-height: 50vh; object-fit: contain; image-rendering: pixelated; }
.desc { white-space: pre-wrap; overflow-wrap: anywhere; }
.order-note { margin-top: 14px; padding: 12px; border: var(--bw) solid var(--ink); border-radius: 14px; background: var(--pink-l); display: grid; gap: 6px; justify-items: start; }
.order-note b { font-family: var(--font-th); font-weight: 500; }
.stk-zoom { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(43, 30, 70, .7); cursor: zoom-out; }
.stk-zoom img { max-height: 86vh; max-width: 100%; padding: 12px; border: var(--bw) solid var(--ink); border-radius: 16px; background: var(--white); image-rendering: pixelated; }

/* ---------- ปุ่มตะกร้าลอย ---------- */
.stk-fab { position: fixed; right: 14px; bottom: calc(96px + var(--safe-b, 0px)); z-index: 55; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: var(--bw) solid var(--ink); border-radius: 999px; background: var(--pink); color: var(--ink); text-decoration: none; font-family: var(--font-th); box-shadow: 0 4px 0 var(--ink); }
.stk-fab svg { width: 24px; height: 24px; }
.stk-fab b { min-width: 24px; padding: 0 6px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); text-align: center; }

/* ---------- สั่งซื้อ ---------- */
.stepper-2 { grid-template-columns: 1fr 1fr; }
.stepper-3 { grid-template-columns: repeat(3, 1fr); }
.cl-list { display: grid; gap: 10px; margin: 10px 0; }
.cl-row { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border: 2px solid var(--lav-l); border-radius: 14px; background: var(--lav-xl); }
.cl-row.dup { border-color: #c4314e; background: #fff0f3; }
.cl-row .grow { flex: 1; min-width: 0; display: grid; gap: 6px; }
.cl-row .label { margin: 0; }
.cl-p { white-space: nowrap; padding-top: 28px; font-size: .9rem; }
.cl-info { display: grid; gap: 4px; }
.cl-info:empty { display: none; }
.cl-bad { font-size: .85rem; color: #a3243a; }
.ctnote { margin: 8px 0 0; padding: 8px 12px; border: 2px dashed var(--gold); border-radius: 12px; background: #fff8de; font-size: .88rem; }
.ctnote.intl { border-color: #9cc0ec; background: #f1f7ff; }
.radio-pill.dis { opacity: .45; text-decoration: line-through; }
.qr-prev img { max-height: 220px; }

/* ใบแจ้งยอด / ใบเสร็จ (กระดาษพิกเซล ขอบล่างหยัก) */
.bill { margin: 6px auto 14px; max-width: 440px; padding: 16px 16px 26px; border: var(--bw) solid var(--ink); border-bottom: 0; border-radius: 14px 14px 0 0; background: #fffef9; box-shadow: 0 6px 0 rgba(47, 33, 83, .12);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; }
.bill-head { display: grid; justify-items: center; text-align: center; gap: 1px; }
.bill-head b { font-family: var(--font-th); font-weight: 500; font-size: 1.1rem; letter-spacing: .05em; }
.bill-head span { font-size: .86rem; } .bill-head small { font-size: .74rem; color: var(--ink-soft); }
.bill-sep { border-top: 2px dashed var(--lav-l); margin: 10px 0; }
.bill-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.bill-row img { width: 36px; height: 36px; object-fit: contain; border: 2px solid var(--ink); border-radius: 8px; background: var(--lav-xl); image-rendering: pixelated; }
.bill-row .grow { flex: 1; min-width: 0; display: grid; }
.bill-row .grow b { font-weight: 400; overflow-wrap: anywhere; }
.bill-row .grow small { font-size: .74rem; color: var(--ink-soft); }
.bill-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bill-total span { font-family: var(--font-th); font-weight: 500; }
.bill-total b { font-size: 1.5rem; color: var(--pink-d); }
.bill-total b small { font-size: .8rem; }
.bill-exact { margin: 6px 0 0; padding: 4px 10px; border-radius: 999px; background: var(--pink-l); text-align: center; font-size: .82rem; }
.bill-to { display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; padding: 2px 0; }
.bill-to span { color: var(--ink-soft); flex: none; }
.bill-to b { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.bill-qr { display: block; max-width: 160px; margin: 6px auto; border: 2px solid var(--ink); border-radius: 10px; }
.bill-lbl { display: block; text-align: center; font-size: .8rem; color: var(--ink-soft); margin: 8px 0 4px; }
.bill .qr-box { margin: 0 auto; }
.rc-rows { display: grid; gap: 4px; }
.rc-row { display: flex; align-items: center; gap: 6px; min-height: 34px; }
.rc-l { font-size: .84rem; color: var(--ink-soft); flex: none; max-width: 42%; }
.rc-dots { flex: 1; min-width: 10px; border-bottom: 2px dotted var(--lav-l); }
.rc-n { font-size: .98rem; }
.bill-foot { margin: 10px 0 0; text-align: center; font-size: .76rem; color: var(--ink-soft); }
.rcpt { position: relative; }
.rc-stamp { display: block; width: fit-content; margin: 6px auto 0; padding: 1px 10px; border: 2px solid currentColor; border-radius: 10px; font-family: var(--font-th); font-size: .8rem; transform: rotate(-4deg); background: var(--white); }
.rc-stamp.ok { color: #2e8a58; } .rc-stamp.wait { color: #a5741c; } .rc-stamp.bad { color: #c4314e; }
.stk-cancel { margin: 6px 0; color: #a3243a; font-family: var(--font-th); }
.done-ico { width: 64px; height: 64px; }

/* ---------- ประวัติ ---------- */
.osum { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 12px; background: #fff8de; }
.olist { display: grid; gap: 10px; }
.ocard { padding: 12px 14px; border: var(--bw) solid var(--ink); border-radius: 14px; background: var(--lav-xl); box-shadow: 0 4px 0 var(--ink); }
.ocard.past { background: var(--white); box-shadow: none; }
.tfind { margin-top: 18px; padding-top: 6px; border-top: 2px dashed var(--lav-l); }

/* ---------- โหมดแคปหน้าจอ ---------- */
body.stk-cap .hud, body.stk-cap .nav, body.stk-cap .foot, body.stk-cap .stk-fab { display: none !important; }
body.stk-cap.customer { padding-bottom: 0; }
.capfoot { margin: 18px auto 8px; width: fit-content; max-width: 100%; padding: 10px 18px; border: var(--bw) solid var(--ink); border-radius: 999px; background: var(--white); font-family: var(--font-th); text-align: center; box-shadow: 0 4px 0 var(--ink); }

/* ---------- หลังบ้าน: แถวแก้ไข ---------- */
.er { display: grid; gap: 6px; margin-bottom: 6px; }
.er-row { display: flex !important; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; border: 2px dashed var(--lav-l); border-radius: 12px; }
.er-row .input { min-width: 0; padding: 6px 8px; min-height: 40px; }
.er-img { position: relative; width: 44px; height: 44px; padding: 0; overflow: hidden; flex: none; }
.er-img img, .er-img svg { width: 100%; height: 100%; object-fit: cover; }
.ds-row { display: grid; gap: 6px; padding: 8px; margin-bottom: 8px; border: 2px dashed var(--lav-l); border-radius: 12px; }
.ds-imgs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ds-imgs .opt-img img { width: 64px; height: 64px; }

@media (max-width: 479px) {
  .rc-row { flex-wrap: wrap; row-gap: 2px; }
  .rc-l { flex: 1 1 100%; max-width: none; }
  .rc-dots { display: none; }
  .rc-n { flex: 1; }
}
.rc-row .btn, .rc-n { white-space: nowrap; }
@media (min-width: 640px) {
  .ways { grid-template-columns: 1fr 1fr; }
  .stk-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (min-width: 980px) {
  .stk-fab { bottom: 24px; right: 24px; }
}
