/* ==========================================================================
   Live Chat Pro — antarmuka chat belanja ala aplikasi native
   --------------------------------------------------------------------------
   - Tema TERANG bawaan. Gelap hanya bila dipilih (Studio: html[data-sty-theme=dark]).
   - Tanpa framework/CDN: satu berkas CSS yang di-cache browser (versi = filemtime).
   - Warna merek toko disuntik lewat --lcp-brand* dari PHP.
   - Prefix kelas: .lcp-  (tidak bentrok dengan gaya etalase).
   ========================================================================== */
:root {
  --lcp-brand: #2563eb; --lcp-brand-2: #1d4ed8; --lcp-on-brand: #fff;
  --lcp-soft: #eef4ff; --lcp-line-brand: #bfd3fb; --lcp-ink: #1d4ed8; --lcp-ink-dark: #93b4ff;
  --lcp-bg: #f3f5f9; --lcp-surface: #fff; --lcp-surface-2: #f5f7fb; --lcp-input: #f1f4f9;
  --lcp-text: #0f172a; --lcp-text-2: #475569; --lcp-text-3: #8a94a6;
  --lcp-border: #e3e8ef; --lcp-border-2: #d5dce6;
  --lcp-ok: #15803d; --lcp-ok-bg: #e9f8ef; --lcp-warn: #b45309; --lcp-warn-bg: #fff6e5;
  --lcp-bad: #dc2626; --lcp-bad-bg: #fdecec; --lcp-info: #0369a1; --lcp-info-bg: #e8f4fb;
  --lcp-bubble-them: #fff; --lcp-shadow: 0 1px 2px rgba(15,23,42,.06), 0 1px 1px rgba(15,23,42,.04);
  --lcp-shadow-2: 0 10px 30px -8px rgba(15,23,42,.22), 0 2px 6px rgba(15,23,42,.06);
  --lcp-r: 18px; --lcp-r-sm: 12px; --lcp-r-xs: 9px;
  --lcp-ease: cubic-bezier(.2,.9,.25,1); --lcp-spring: cubic-bezier(.34,1.56,.64,1);
  --lcp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Ubuntu, Cantarell, Arial, sans-serif;
  --lcp-app-h: 100vh;
  color-scheme: light;
}
@supports (height: 100dvh) { :root { --lcp-app-h: 100dvh; } }
html[data-sty-theme="dark"], html[data-lcp-theme="dark"] {
  --lcp-bg: #0d1117; --lcp-surface: #1f2533; --lcp-surface-2: #1a1f2b; --lcp-input: #161b26;
  --lcp-text: #e8edf5; --lcp-text-2: #b3bdcc; --lcp-text-3: #8490a3;
  --lcp-border: #394356; --lcp-border-2: #465269;
  --lcp-soft: rgba(127,127,127,.16); --lcp-line-brand: rgba(127,127,127,.38); --lcp-ink: var(--lcp-ink-dark);
  --lcp-ok: #4ade80; --lcp-ok-bg: rgba(74,222,128,.12); --lcp-warn: #fbbf24; --lcp-warn-bg: rgba(251,191,36,.12);
  --lcp-bad: #f87171; --lcp-bad-bg: rgba(248,113,113,.13); --lcp-info: #7dd3fc; --lcp-info-bg: rgba(125,211,252,.12);
  --lcp-bubble-them: #1f2533; --lcp-shadow: 0 1px 2px rgba(0,0,0,.4);
  --lcp-shadow-2: 0 16px 40px -10px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ---------- dasar ---------- */
html, body { margin: 0; padding: 0; height: 100%; }
body.lcp-body { background: var(--lcp-bg); color: var(--lcp-text); font-family: var(--lcp-font);
  font-size: 15px; line-height: 1.45; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow: hidden;
  overscroll-behavior: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.lcp-app, .lcp-app * { box-sizing: border-box; }
/* Reset ber-spesifisitas RENDAH (:where) supaya kelas komponen (.lcp-chip,
   .lcp-padd, .lcp-send, …) selalu menang tanpa perlu !important. */
:where(.lcp-app) :where(button, input, textarea, select) { font: inherit; color: inherit; }
:where(.lcp-app) :where(button) { cursor: pointer; border: 0; background: none; padding: 0; -webkit-appearance: none; appearance: none; }
.lcp-app a { color: inherit; }
.lcp-app svg { display: block; flex: none; }
.lcp-app .lcp-ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lcp-app .lcp-ic.sm { width: 16px; height: 16px; }
.lcp-app .lcp-ic.xs { width: 13px; height: 13px; stroke-width: 2.1; }
.lcp-app .lcp-ic.lg { width: 28px; height: 28px; }
.lcp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 639px) { body.lcp-body { font-size: 14.5px; } }
@supports (-webkit-touch-callout: none) { .lcp-app input, .lcp-app textarea, .lcp-app select { font-size: 16px !important; } }

/* ---------- kerangka ---------- */
.lcp-app { position: relative; display: flex; flex-direction: column; height: var(--lcp-app-h); max-height: var(--lcp-app-h);
  width: 100%; margin: 0 auto; background: var(--lcp-bg); overflow: hidden; overflow: clip; }
/* Lapisan overlay (lembar, latar gelap, toast, menu) terpisah dari kerangka:
   lembar yang disembunyikan di luar layar tidak boleh membuat kerangka bisa
   tergulir saat kotak pesan difokus (header "terdorong" ke atas). */
.lcp-layer { position: absolute; inset: 0; overflow: hidden; overflow: clip; pointer-events: none; z-index: 40; }
.lcp-layer > * { pointer-events: auto; }
.lcp-layer > .lcp-scrim:not(.on) { pointer-events: none; }
.lcp-layer > .lcp-sheet:not(.on) { visibility: hidden; transition: transform .38s var(--lcp-ease), visibility 0s .38s; }
.lcp-layer > .lcp-sheet.on { visibility: visible; transition: transform .38s var(--lcp-ease), visibility 0s; }
.lcp-app.is-page { max-width: 560px; box-shadow: 0 0 0 1px var(--lcp-border), 0 20px 60px -30px rgba(15,23,42,.35); }
@media (min-width: 900px) { .lcp-app.is-page { max-width: 880px; } }
.lcp-app.is-fill { height: 100%; max-height: 100%; }

.lcp-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px;
  padding-top: calc(8px + env(safe-area-inset-top, 0px)); min-height: 60px; position: relative; z-index: 5;
  background: color-mix(in srgb, var(--lcp-surface) 90%, transparent); border-bottom: 1px solid var(--lcp-border);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); }
@supports not (background: color-mix(in srgb, red 50%, blue)) { .lcp-bar { background: var(--lcp-surface); } }
.lcp-back { width: 40px; height: 40px; margin-left: -6px; border-radius: 50%; display: grid; place-items: center; color: var(--lcp-text-2); }
.lcp-avatar { position: relative; width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--lcp-brand), var(--lcp-brand-2)); color: var(--lcp-on-brand); overflow: visible; }
.lcp-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.lcp-avatar::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 0 2px var(--lcp-surface); transition: background .3s; }
.lcp-app.is-offline .lcp-avatar::after { background: var(--lcp-text-3); }
.lcp-app.is-human .lcp-avatar::after { background: #f59e0b; }
.lcp-ttl { flex: 1; min-width: 0; }
.lcp-ttl b { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcp-ttl small { display: block; font-size: 12px; color: var(--lcp-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.lcp-app.is-typing .lcp-ttl small { color: var(--lcp-ink); }
.lcp-acts { display: flex; align-items: center; gap: 2px; }
.lcp-ib { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--lcp-text-2);
  transition: background .18s, color .18s, transform .18s var(--lcp-ease); }
.lcp-ib:hover { background: var(--lcp-surface-2); color: var(--lcp-text); }
.lcp-ib:active { transform: scale(.9); }
.lcp-ib:focus-visible, .lcp-btn:focus-visible, .lcp-chip:focus-visible, .lcp-opt:focus-visible { outline: 2px solid var(--lcp-brand); outline-offset: 2px; }
.lcp-badge { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--lcp-bad);
  color: #fff; font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--lcp-surface);
  transform: scale(0); transition: transform .25s var(--lcp-spring); }
.lcp-badge.on { transform: scale(1); }
.lcp-badge.bump { animation: lcpBump .45s var(--lcp-spring); }
@keyframes lcpBump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- banner jaringan ---------- */
.lcp-net { flex: none; overflow: hidden; max-height: 0; transition: max-height .3s var(--lcp-ease); background: var(--lcp-warn-bg); color: var(--lcp-warn); }
.lcp-net.on { max-height: 44px; }
.lcp-net.ok { background: var(--lcp-ok-bg); color: var(--lcp-ok); }
.lcp-net div { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; font-weight: 600; padding: 9px 12px; }

/* ---------- daftar pesan ---------- */
.lcp-main { position: relative; flex: 1; min-height: 0; display: flex; }
.lcp-list { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 14px 12px 8px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  scroll-behavior: auto; outline: none; }
.lcp-list > .lcp-in { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; }
.lcp-list::-webkit-scrollbar { width: 6px; } .lcp-list::-webkit-scrollbar-thumb { background: var(--lcp-border-2); border-radius: 3px; }
.lcp-day { align-self: center; margin: 10px 0 8px; padding: 4px 11px; border-radius: 999px; background: var(--lcp-surface);
  color: var(--lcp-text-3); font-size: 11.5px; font-weight: 600; box-shadow: var(--lcp-shadow); }
.lcp-sep { display: flex; align-items: center; gap: 10px; margin: 10px 0; color: var(--lcp-ink); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lcp-sep::before, .lcp-sep::after { content: ""; flex: 1; height: 1px; background: var(--lcp-line-brand); }

.lcp-row { display: flex; flex-direction: column; margin: 2px 0; max-width: 100%; }
.lcp-row.me { align-items: flex-end; }
.lcp-row.them { align-items: flex-start; }
.lcp-row.gap { margin-top: 10px; }
.lcp-row.enter { animation: lcpIn .32s var(--lcp-ease) both; }
.lcp-row.me.enter { animation-name: lcpInMe; }
@keyframes lcpIn { from { opacity: 0; transform: translate3d(-8px, 10px, 0) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes lcpInMe { from { opacity: 0; transform: translate3d(8px, 10px, 0) scale(.98); } to { opacity: 1; transform: none; } }
.lcp-who { font-size: 11px; font-weight: 700; color: var(--lcp-text-3); margin: 0 8px 3px; display: flex; align-items: center; gap: 5px; }
.lcp-who.admin { color: var(--lcp-warn); }
.lcp-bub { position: relative; max-width: min(84%, 560px); padding: 8px 12px 6px; border-radius: var(--lcp-r); word-wrap: break-word; overflow-wrap: anywhere;
  box-shadow: var(--lcp-shadow); transition: transform .2s var(--lcp-ease); touch-action: pan-y; }
.lcp-row.them .lcp-bub { background: var(--lcp-bubble-them); color: var(--lcp-text); border-bottom-left-radius: 6px; }
.lcp-row.me .lcp-bub { background: var(--lcp-brand); color: var(--lcp-on-brand); border-bottom-right-radius: 6px; }
.lcp-row.system .lcp-bub { background: var(--lcp-warn-bg); color: var(--lcp-warn); box-shadow: none; }
.lcp-row.cont.them .lcp-bub { border-top-left-radius: 8px; } .lcp-row.cont.me .lcp-bub { border-top-right-radius: 8px; }
.lcp-bub .lcp-txt { white-space: normal; }
.lcp-bub .lcp-txt p { margin: 0 0 6px; } .lcp-bub .lcp-txt p:last-child { margin-bottom: 0; }
.lcp-bub .lcp-txt ul, .lcp-bub .lcp-txt ol { margin: 4px 0 6px; padding-left: 20px; }
.lcp-bub .lcp-txt li { margin: 2px 0; }
.lcp-bub .lcp-txt a { text-decoration: underline; text-underline-offset: 2px; font-weight: 600; word-break: break-all; }
.lcp-row.them .lcp-bub .lcp-txt a { color: var(--lcp-ink); }
.lcp-bub code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: rgba(127,127,127,.14); padding: 1px 5px; border-radius: 6px; }
.lcp-meta { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 2px; font-size: 10.5px; opacity: .72; line-height: 1; user-select: none; }
.lcp-meta .lcp-ic { width: 14px; height: 14px; stroke-width: 2.2; }
.lcp-row.failed .lcp-bub { background: var(--lcp-bad-bg); color: var(--lcp-bad); }
.lcp-retry { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--lcp-bad); display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px; }
.lcp-quote { display: block; margin: 0 0 6px; padding: 5px 9px; border-left: 3px solid currentColor; border-radius: 8px; background: rgba(127,127,127,.12);
  font-size: 12.5px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcp-attach-mini { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; padding: 6px; border-radius: 10px; background: rgba(255,255,255,.18); }
.lcp-row.them .lcp-attach-mini { background: var(--lcp-surface-2); }
.lcp-attach-mini img, .lcp-attach-mini .ph { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; background: rgba(127,127,127,.2); }
.lcp-attach-mini span { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lcp-typing { display: inline-flex; align-items: center; gap: 4px; padding: 12px 14px; border-radius: var(--lcp-r); border-bottom-left-radius: 6px;
  background: var(--lcp-bubble-them); box-shadow: var(--lcp-shadow); }
.lcp-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--lcp-text-3); animation: lcpDot 1.3s infinite ease-in-out both; }
.lcp-typing i:nth-child(2) { animation-delay: .16s; } .lcp-typing i:nth-child(3) { animation-delay: .32s; }
.lcp-typing em { font-style: normal; font-size: 12px; color: var(--lcp-text-3); margin-left: 6px; }
@keyframes lcpDot { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-4px); opacity: 1; } }

/* ---------- kartu ---------- */
.lcp-cards { width: 100%; display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.lcp-card { width: 100%; max-width: 440px; background: var(--lcp-surface); border: 1px solid var(--lcp-border); border-radius: var(--lcp-r);
  box-shadow: var(--lcp-shadow); overflow: hidden; animation: lcpCard .38s var(--lcp-ease) both; }
@keyframes lcpCard { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.lcp-card-h { display: flex; align-items: center; gap: 9px; padding: 11px 13px 9px; font-weight: 700; font-size: 14px; }
.lcp-card-h .lcp-ic { color: var(--lcp-ink); }
.lcp-card-h .sub { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--lcp-text-3); }
.lcp-card-b { padding: 0 13px 12px; }
.lcp-card-f { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--lcp-border); }
.lcp-card-f.stack { flex-direction: column; }
.lcp-kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13px; color: var(--lcp-text-2); border-bottom: 1px dashed var(--lcp-border); }
.lcp-kv:last-child { border-bottom: 0; }
.lcp-kv b { color: var(--lcp-text); font-weight: 650; text-align: right; }
.lcp-kv.total { font-size: 15px; color: var(--lcp-text); padding-top: 9px; border-bottom: 0; }
.lcp-kv.total b { font-size: 17px; font-weight: 800; color: var(--lcp-ink); }
.lcp-kv.neg b { color: var(--lcp-ok); }
.lcp-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; padding: 9px 11px; border-radius: var(--lcp-r-sm);
  background: var(--lcp-info-bg); color: var(--lcp-info); margin-top: 8px; }
.lcp-note.warn { background: var(--lcp-warn-bg); color: var(--lcp-warn); } .lcp-note.bad { background: var(--lcp-bad-bg); color: var(--lcp-bad); }
.lcp-note.ok { background: var(--lcp-ok-bg); color: var(--lcp-ok); }
.lcp-note .lcp-ic { width: 16px; height: 16px; margin-top: 1px; }

.lcp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 16px; border-radius: 13px;
  font-weight: 700; font-size: 14px; letter-spacing: -.005em; transition: transform .16s var(--lcp-ease), background .2s, opacity .2s, box-shadow .2s;
  user-select: none; white-space: nowrap; text-decoration: none; }
.lcp-btn:active { transform: scale(.97); }
.lcp-btn.block { width: 100%; } .lcp-btn.flex1 { flex: 1; }
.lcp-btn.pri { background: var(--lcp-brand); color: var(--lcp-on-brand); box-shadow: 0 6px 16px -8px var(--lcp-brand); }
.lcp-btn.pri:hover { background: var(--lcp-brand-2); }
.lcp-btn.ton { background: var(--lcp-soft); color: var(--lcp-ink); }
html[data-sty-theme="dark"] .lcp-btn.ton { color: var(--lcp-text); }
.lcp-btn.gho { background: var(--lcp-surface-2); color: var(--lcp-text); border: 1px solid var(--lcp-border); }
.lcp-btn.ok { background: #16a34a; color: #fff; } .lcp-btn.bad { background: var(--lcp-bad-bg); color: var(--lcp-bad); }
.lcp-btn.sm { min-height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 11px; }
.lcp-btn[disabled], .lcp-btn.is-busy { opacity: .55; pointer-events: none; }
.lcp-btn.is-busy::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: lcpSpin .7s linear infinite; }
@keyframes lcpSpin { to { transform: rotate(360deg); } }

/* produk */
.lcp-hscroll { display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; padding: 2px 13px 12px; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.lcp-hscroll::-webkit-scrollbar { display: none; }
.lcp-pcard { position: relative; flex: 0 0 150px; scroll-snap-align: start; border-radius: 15px; background: var(--lcp-surface); border: 1px solid var(--lcp-border);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .18s var(--lcp-ease), box-shadow .2s; cursor: pointer; }
.lcp-pcard:active { transform: scale(.975); }
@media (hover: hover) { .lcp-pcard:hover { box-shadow: var(--lcp-shadow-2); } }
.lcp-pimg { position: relative; aspect-ratio: 1 / 1; background: var(--lcp-surface-2); display: grid; place-items: center; color: var(--lcp-text-3); overflow: hidden; }
.lcp-pimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: lcpFade .4s ease both; }
@keyframes lcpFade { from { opacity: 0; } to { opacity: 1; } }
.lcp-ptag { position: absolute; left: 7px; top: 7px; padding: 2px 7px; border-radius: 7px; font-size: 10.5px; font-weight: 800; background: var(--lcp-bad); color: #fff; }
.lcp-ptag.soft { background: rgba(15,23,42,.72); }
.lcp-pinfo { padding: 8px 9px 10px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.lcp-pname { font-size: 12.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.lcp-price { font-size: 14px; font-weight: 800; color: var(--lcp-text); letter-spacing: -.01em; }
.lcp-price s { font-size: 11px; font-weight: 500; color: var(--lcp-text-3); margin-left: 4px; }
.lcp-stock { font-size: 11px; color: var(--lcp-text-3); }
.lcp-stock.low { color: var(--lcp-warn); font-weight: 700; } .lcp-stock.out { color: var(--lcp-bad); font-weight: 700; }
.lcp-padd { position: absolute; right: 7px; bottom: 7px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lcp-brand); color: var(--lcp-on-brand); box-shadow: 0 6px 14px -6px rgba(15,23,42,.55); transition: transform .2s var(--lcp-spring); }
.lcp-padd:active { transform: scale(.86); }
.lcp-pask { position: absolute; left: 7px; bottom: 10px; height: 30px; padding: 0 9px; border-radius: 15px; display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.92); color: #0f172a; font-size: 11px; font-weight: 700; box-shadow: 0 3px 8px -4px rgba(15,23,42,.4); }
.lcp-more { flex: 0 0 110px; display: grid; place-items: center; border-radius: 15px; border: 1.5px dashed var(--lcp-border-2); color: var(--lcp-ink); font-weight: 700; font-size: 12.5px; }

/* list baris */
.lcp-li { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-top: 1px solid var(--lcp-border); }
.lcp-li:first-child { border-top: 0; }
.lcp-li .th { width: 48px; height: 48px; border-radius: 11px; object-fit: cover; flex: none; background: var(--lcp-surface-2); display: grid; place-items: center; color: var(--lcp-text-3); overflow: hidden; }
.lcp-li .th { position: relative; }
.lcp-li .th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lcp-li .th .lcp-ph, .lcp-opt .ico .lcp-ph { width: 22px; height: 22px; }
.lcp-li .tx { flex: 1; min-width: 0; }
.lcp-li .tx b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13.5px; font-weight: 650; line-height: 1.3; overflow: hidden; }
.lcp-li .tx small { display: block; font-size: 12px; color: var(--lcp-text-3); margin-top: 1px; }
.lcp-li .rt { text-align: right; font-weight: 750; font-size: 13.5px; white-space: nowrap; }
.lcp-li.tap { cursor: pointer; transition: background .15s; } .lcp-li.tap:active { background: var(--lcp-surface-2); }

/* status pill */
.lcp-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--lcp-surface-2); color: var(--lcp-text-2); }
.lcp-pill.ok { background: var(--lcp-ok-bg); color: var(--lcp-ok); } .lcp-pill.warn { background: var(--lcp-warn-bg); color: var(--lcp-warn); }
.lcp-pill.bad { background: var(--lcp-bad-bg); color: var(--lcp-bad); } .lcp-pill.info { background: var(--lcp-info-bg); color: var(--lcp-info); }
.lcp-copy { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; margin-left: 6px; border-radius: 9px; background: var(--lcp-soft); color: var(--lcp-ink); font-size: 12px; font-weight: 700; }
html[data-sty-theme="dark"] .lcp-copy { color: var(--lcp-text); }
.lcp-big { font-size: 24px; font-weight: 850; letter-spacing: -.02em; color: var(--lcp-text); }

/* voucher tiket */
.lcp-ticket { position: relative; display: flex; align-items: stretch; margin: 8px 13px; border-radius: 14px; background: var(--lcp-soft); border: 1px solid var(--lcp-line-brand); overflow: hidden; }
.lcp-ticket .l { flex: 1; min-width: 0; padding: 10px 12px; }
.lcp-ticket .l b { font-size: 14px; letter-spacing: .04em; font-weight: 800; color: var(--lcp-ink); }
html[data-sty-theme="dark"] .lcp-ticket .l b { color: var(--lcp-text); }
.lcp-ticket .l small { display: block; font-size: 12px; color: var(--lcp-text-2); margin-top: 2px; }
.lcp-ticket .r { display: grid; place-items: center; padding: 0 12px; border-left: 2px dashed var(--lcp-line-brand); }
.lcp-ticket.off { opacity: .6; filter: grayscale(.5); }

/* sukses pesanan */
.lcp-success { text-align: center; padding: 18px 16px 6px; }
.lcp-check { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: var(--lcp-ok-bg); display: grid; place-items: center; color: var(--lcp-ok); animation: lcpPop .5s var(--lcp-spring) both; }
.lcp-check svg { width: 34px; height: 34px; stroke-width: 2.6; }
.lcp-check path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: lcpDraw .55s .25s var(--lcp-ease) forwards; }
@keyframes lcpPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lcpDraw { to { stroke-dashoffset: 0; } }

/* timeline status pesanan */
.lcp-steps { display: flex; align-items: center; gap: 4px; margin: 6px 0 4px; }
.lcp-steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--lcp-border); }
.lcp-steps i.on { background: var(--lcp-brand); }

/* ---------- lompat ke bawah ---------- */
.lcp-jump { position: absolute; right: 14px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; background: var(--lcp-surface); color: var(--lcp-text-2);
  box-shadow: var(--lcp-shadow-2); display: grid; place-items: center; transform: translateY(20px) scale(.6); opacity: 0; pointer-events: none;
  transition: transform .25s var(--lcp-spring), opacity .2s; z-index: 4; }
.lcp-jump.on { transform: none; opacity: 1; pointer-events: auto; }
.lcp-jump .lcp-badge { top: -4px; right: -4px; background: var(--lcp-brand); }

/* ---------- saran cepat ---------- */
.lcp-quick { flex: none; display: flex; gap: 8px; overflow-x: auto; padding: 8px 12px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.lcp-quick::-webkit-scrollbar { display: none; }
.lcp-quick:empty { display: none; }
.lcp-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 13px; border-radius: 999px; background: var(--lcp-surface);
  border: 1px solid var(--lcp-border); color: var(--lcp-text); font-size: 13px; font-weight: 600; box-shadow: var(--lcp-shadow);
  transition: transform .16s var(--lcp-ease), background .2s, border-color .2s; animation: lcpChip .3s var(--lcp-ease) both; }
.lcp-chip .lcp-ic { width: 16px; height: 16px; color: var(--lcp-ink); }
.lcp-chip:active { transform: scale(.95); }
.lcp-chip.on, .lcp-chip.pri { background: var(--lcp-soft); border-color: var(--lcp-line-brand); color: var(--lcp-ink); }
html[data-sty-theme="dark"] .lcp-chip.on, html[data-sty-theme="dark"] .lcp-chip.pri { color: var(--lcp-text); }
@keyframes lcpChip { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- penulis pesan ---------- */
.lcp-foot { flex: none; background: var(--lcp-bg); padding-bottom: env(safe-area-inset-bottom, 0px); position: relative; z-index: 3; }
.lcp-ctx { display: none; margin: 8px 12px 0; padding: 8px 8px 8px 11px; border-radius: 14px; background: var(--lcp-surface); border: 1px solid var(--lcp-border);
  align-items: center; gap: 10px; animation: lcpChip .25s var(--lcp-ease) both; }
.lcp-ctx.on { display: flex; }
.lcp-ctx .bar { width: 3px; align-self: stretch; border-radius: 2px; background: var(--lcp-brand); }
.lcp-ctx .tx { flex: 1; min-width: 0; font-size: 12.5px; }
.lcp-ctx .tx b { display: block; font-size: 11.5px; color: var(--lcp-ink); }
.lcp-ctx .tx span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--lcp-text-2); }
.lcp-ctx img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.lcp-composer { display: flex; align-items: flex-end; gap: 6px; padding: 8px 8px 10px; }
.lcp-field-wrap { flex: 1; min-width: 0; display: flex; align-items: flex-end; background: var(--lcp-surface); border: 1px solid var(--lcp-border);
  border-radius: 22px; padding: 3px 4px 3px 14px; transition: border-color .2s, box-shadow .2s; box-shadow: var(--lcp-shadow); }
.lcp-field-wrap:focus-within { border-color: var(--lcp-line-brand); box-shadow: 0 0 0 3px var(--lcp-soft); }
.lcp-input { flex: 1; min-width: 0; border: 0; outline: 0; resize: none; background: transparent; padding: 9px 0; max-height: 132px; min-height: 38px;
  line-height: 1.4; font-size: 15px; color: var(--lcp-text); }
.lcp-input::placeholder { color: var(--lcp-text-3); }
.lcp-send { width: 46px; height: 46px; border-radius: 50%; background: var(--lcp-brand); color: var(--lcp-on-brand); display: grid; place-items: center; flex: none;
  box-shadow: 0 8px 18px -10px var(--lcp-brand); transition: transform .2s var(--lcp-spring), opacity .2s, background .2s; }
.lcp-send:active { transform: scale(.88); }
.lcp-send[disabled] { opacity: .45; box-shadow: none; }
.lcp-send .lcp-ic { width: 21px; height: 21px; transform: translateX(1px); }
.lcp-plus { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--lcp-text-2); background: var(--lcp-surface); border: 1px solid var(--lcp-border); flex: none; box-shadow: var(--lcp-shadow); transition: transform .2s var(--lcp-ease); }
.lcp-plus:active { transform: scale(.9) rotate(45deg); }

/* ---------- lembar bawah (sheet) ---------- */
.lcp-scrim { position: absolute; inset: 0; background: rgba(15,23,42,.42); opacity: 0; pointer-events: none; transition: opacity .28s; z-index: 40; }
.lcp-scrim.on { opacity: 1; pointer-events: auto; }
.lcp-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92%; display: flex; flex-direction: column; background: var(--lcp-surface);
  border-radius: 22px 22px 0 0; box-shadow: var(--lcp-shadow-2); z-index: 41; transform: translate3d(0, 105%, 0);
  transition: transform .38s var(--lcp-ease); will-change: transform; padding-bottom: env(safe-area-inset-bottom, 0px); }
.lcp-sheet.on { transform: none; }
.lcp-sheet.full { height: 92%; }
.lcp-grab { flex: none; height: 22px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.lcp-grab::before { content: ""; width: 38px; height: 5px; border-radius: 3px; background: var(--lcp-border-2); }
.lcp-sh-h { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 8px 8px 16px; }
.lcp-sh-h h2 { flex: 1; margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.015em; }
.lcp-sh-b { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 16px 16px; }
.lcp-sh-f { flex: none; padding: 10px 16px 12px; border-top: 1px solid var(--lcp-border); background: var(--lcp-surface); display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 900px) {
  .lcp-sheet { left: auto; top: 0; bottom: 0; width: 420px; max-height: none; height: 100%; border-radius: 22px 0 0 22px; transform: translate3d(105%, 0, 0); }
  .lcp-sheet.full { height: 100%; }
  .lcp-grab { display: none; }
  .lcp-sh-h { padding-top: 14px; }
}
.lcp-sec { margin: 14px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--lcp-text-3); display: flex; align-items: center; gap: 8px; }
.lcp-sec .n { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--lcp-surface-2); color: var(--lcp-text-2); font-size: 11px; letter-spacing: 0; }
.lcp-sec .n.done { background: var(--lcp-ok); color: #fff; }
.lcp-sec .n.need { background: var(--lcp-warn); color: #fff; }
.lcp-fld { display: flex; flex-direction: column; gap: 5px; margin: 8px 0; }
.lcp-fld label { font-size: 12.5px; font-weight: 650; color: var(--lcp-text-2); }
.lcp-fld input, .lcp-fld textarea, .lcp-fld select { width: 100%; border: 1px solid var(--lcp-border); background: var(--lcp-input); border-radius: 12px;
  padding: 11px 12px; font-size: 15px; outline: 0; transition: border-color .2s, box-shadow .2s, background .2s; color: var(--lcp-text); }
.lcp-fld input:focus, .lcp-fld textarea:focus { border-color: var(--lcp-brand); box-shadow: 0 0 0 3px var(--lcp-soft); background: var(--lcp-surface); }
.lcp-fld textarea { min-height: 76px; resize: vertical; }
.lcp-fld .err { font-size: 12px; color: var(--lcp-bad); }
.lcp-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { .lcp-row2 { grid-template-columns: 1fr; } }
.lcp-opt { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 11px 12px; margin: 7px 0; border-radius: 14px;
  border: 1.5px solid var(--lcp-border); background: var(--lcp-surface); transition: border-color .2s, background .2s, transform .15s var(--lcp-ease); }
.lcp-opt:active { transform: scale(.99); }
.lcp-opt .ico { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--lcp-surface-2); color: var(--lcp-text-2); overflow: hidden; }
.lcp-opt .ico { position: relative; }
.lcp-opt .ico img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.lcp-opt .tx { flex: 1; min-width: 0; }
.lcp-opt .tx b { display: block; font-size: 14px; font-weight: 650; }
.lcp-opt .tx small { display: block; font-size: 12px; color: var(--lcp-text-3); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; }
.lcp-opt .pr { font-weight: 800; font-size: 14px; white-space: nowrap; }
.lcp-opt .rd { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--lcp-border-2); flex: none; display: grid; place-items: center; transition: all .2s; }
.lcp-opt.on { border-color: var(--lcp-brand); background: var(--lcp-soft); }
.lcp-opt.on .rd { border-color: var(--lcp-brand); background: var(--lcp-brand); color: var(--lcp-on-brand); }
.lcp-opt .rd .lcp-ic { width: 13px; height: 13px; stroke-width: 3; opacity: 0; } .lcp-opt.on .rd .lcp-ic { opacity: 1; }
.lcp-opt[disabled] { opacity: .5; pointer-events: none; }
.lcp-vchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.lcp-vchip { min-height: 38px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--lcp-border); background: var(--lcp-surface); font-size: 13.5px; font-weight: 650;
  transition: all .18s var(--lcp-ease); }
.lcp-vchip.on { border-color: var(--lcp-brand); background: var(--lcp-soft); color: var(--lcp-ink); }
html[data-sty-theme="dark"] .lcp-vchip.on { color: var(--lcp-text); }
.lcp-vchip.off { opacity: .42; text-decoration: line-through; }
.lcp-qty { display: inline-flex; align-items: center; border: 1px solid var(--lcp-border); border-radius: 12px; overflow: hidden; background: var(--lcp-surface); }
.lcp-qty button { width: 38px; height: 36px; display: grid; place-items: center; color: var(--lcp-text-2); }
.lcp-qty button:active { background: var(--lcp-surface-2); }
.lcp-qty input { width: 44px; height: 36px; text-align: center; border: 0; outline: 0; background: transparent; font-weight: 750; font-size: 14.5px; -moz-appearance: textfield; }
.lcp-qty input::-webkit-outer-spin-button, .lcp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lcp-hero { position: relative; margin: 0 -16px 12px; aspect-ratio: 4 / 3; max-height: 320px; background: var(--lcp-surface-2); display: grid; place-items: center; color: var(--lcp-text-3); overflow: hidden; }
.lcp-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lcp-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; margin: 2px 0 10px; border-radius: 14px; background: var(--lcp-input); border: 1px solid var(--lcp-border); }
.lcp-search input { flex: 1; border: 0; outline: 0; background: transparent; padding: 11px 0; font-size: 15px; min-width: 0; }
.lcp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.lcp-grid .lcp-pcard { flex: none; }
.lcp-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 10px; padding: 0 16px; }
.lcp-tabs::-webkit-scrollbar { display: none; }
.lcp-empty { text-align: center; padding: 34px 16px; color: var(--lcp-text-3); }
.lcp-empty .lcp-ic { width: 44px; height: 44px; margin: 0 auto 10px; stroke-width: 1.4; }
.lcp-empty b { display: block; color: var(--lcp-text-2); font-size: 15px; margin-bottom: 4px; }
.lcp-skel { position: relative; overflow: hidden; background: var(--lcp-surface-2); border-radius: 10px; }
.lcp-skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: lcpShim 1.25s infinite; }
html[data-sty-theme="dark"] .lcp-skel::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent); }
@keyframes lcpShim { to { transform: translateX(100%); } }
.lcp-frame { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- menu aksi ---------- */
.lcp-menu .lcp-li { border: 0; border-radius: 14px; margin: 2px 0; }
.lcp-menu .lcp-li .th { width: 40px; height: 40px; border-radius: 12px; background: var(--lcp-soft); color: var(--lcp-ink); }
.lcp-menu .lcp-li.danger .th { background: var(--lcp-bad-bg); color: var(--lcp-bad); }

/* ---------- toast ---------- */
.lcp-toast { position: absolute; left: 50%; bottom: 84px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 9px; max-width: calc(100% - 32px); padding: 11px 15px; border-radius: 14px; background: #111827; color: #fff;
  font-size: 13.5px; font-weight: 600; box-shadow: var(--lcp-shadow-2); transition: transform .3s var(--lcp-spring), opacity .2s; }
.lcp-toast.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.lcp-toast .lcp-ic { width: 18px; height: 18px; flex: none; }
.lcp-toast.ok .lcp-ic { color: #4ade80; } .lcp-toast.bad .lcp-ic { color: #f87171; }
.lcp-toast button { color: #93c5fd; font-weight: 800; margin-left: 6px; }

/* menu tekan-lama pesan */
.lcp-pop { position: absolute; z-index: 70; min-width: 170px; padding: 6px; border-radius: 14px; background: var(--lcp-surface); box-shadow: var(--lcp-shadow-2);
  border: 1px solid var(--lcp-border); animation: lcpPop .22s var(--lcp-ease) both; }
.lcp-pop button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; text-align: left; }
.lcp-pop button:hover { background: var(--lcp-surface-2); }

/* boot guard */
.lcp-boot { position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding: 24px; background: var(--lcp-bg); z-index: 90; }
.lcp-boot.on { display: grid; }

@media (prefers-reduced-motion: reduce) {
  .lcp-app *, .lcp-app *::before, .lcp-app *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (min-width: 640px) {
  .lcp-list { padding: 18px 20px 10px; }
  .lcp-pcard { flex-basis: 164px; }
}
