:root {
	--cream: #FFF8E1;
	--paper: #FFFDF8;
	--line: #EFDFA6;
	--green: #0E4426;
	--green-2: #1E5A2C;
	--gold: #F6CF1E;
	--maroon: #7A2B33;
	--ink: #1F2A1F;
	--muted: #5E6A5C;
	--ok: #1A7F37;
	--warn: #9A5B00;
	--err: #B32D2E;
	--r: 18px;
	--display: 'Baloo 2', system-ui, sans-serif;
	--body: 'Plus Jakarta Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 500 15px/1.5 var(--body); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
#app { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -16px; padding: 10px 16px; background: rgba(250, 244, 231, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--green); text-decoration: none; }
.brand b { display: block; font: 800 20px/1 var(--display); }
.brand small { color: var(--muted); font-size: 12px; font-weight: 600; }
.logo { width: 42px; height: 42px; border-radius: 12px; background: var(--paper) url(logo.png) center/86% no-repeat; border: 1px solid var(--line); }
.back { display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px 8px 4px; border: 0; background: none; color: var(--green); font-weight: 700; min-height: 44px; }
.ttl { font: 800 20px/1 var(--display); color: var(--green); }

.hero { padding: 22px 0 6px; }
.hero h1 { margin: 0; font: 800 clamp(28px, 7vw, 40px)/1.05 var(--display); color: var(--green); }
.hero p { margin: 6px 0 0; color: var(--muted); }

/* category chips */
.chips { position: sticky; top: 63px; z-index: 15; display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px 0; padding: 8px 16px; background: var(--cream); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--green); font-weight: 700; font-size: 14px; text-decoration: none; }
.chips a:hover { border-color: var(--green); }

.cat { scroll-margin-top: 120px; }
.cat h2 { margin: 22px 0 10px; font: 800 24px/1.1 var(--display); color: var(--green); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px 10px; }
.card .ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #fff; }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card h3 { margin: 8px 2px 6px; font-size: 14.5px; line-height: 1.25; font-weight: 700; color: var(--green); flex-grow: 1; }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 40px; }
.price { font: 800 17px/1 var(--display); color: var(--maroon); }
.card.off img { filter: grayscale(1); opacity: .55; }
.tag { position: absolute; top: 8px; left: 8px; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.add { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--green); color: #fff; font-size: 24px; line-height: 1; }
.add:hover { background: var(--green-2); }
.step { display: inline-flex; align-items: center; border-radius: 12px; background: var(--green); color: #fff; overflow: hidden; }
.step button { width: 36px; height: 40px; border: 0; background: none; color: #fff; font-size: 20px; }
.step span { min-width: 22px; text-align: center; font-weight: 800; }

/* bottom bar */
.spacer { height: 110px; }
.bar { position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; width: min(728px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 20px; background: var(--green); color: #fff; box-shadow: 0 12px 30px rgba(20, 66, 31, .3); }
.bar b { display: block; font-size: 15px; }
.bar small { color: var(--gold); font-weight: 800; font-size: 17px; }
.bar em { display: block; font-style: normal; font-size: 12px; color: #CFE0C9; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 0; font-weight: 800; text-decoration: none; }
.btn.primary { background: var(--gold); color: var(--green); }
.btn.primary:disabled { opacity: .7; cursor: wait; }
.btn.ghost { background: var(--paper); color: var(--green); border: 1.5px solid var(--green); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn.wa { width: 100%; margin-top: 14px; background: #1E8E4E; color: #fff; }
.lastlink { display: block; text-align: center; margin: -80px 0 100px; color: var(--green); font-weight: 700; }

/* panels */
.panel { margin: 14px 0; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.panel h2 { margin: 0 0 12px; font: 800 20px/1.1 var(--display); color: var(--green); }
.line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.line > div:first-child { flex: 1; min-width: 0; }
.line b { display: block; font-size: 14.5px; color: var(--green); }
.line small { color: var(--muted); font-size: 13px; }
.line .lt { min-width: 74px; text-align: right; font-weight: 700; }
.line.sub { color: var(--muted); font-size: 14px; }
.line.tot { border-bottom: 0; font-size: 16px; }
.link { margin-top: 10px; padding: 8px 0; border: 0; background: none; color: var(--green); font-weight: 700; text-decoration: underline; }

.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.seg button { display: flex; align-items: center; gap: 10px; padding: 12px; text-align: left; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--green); min-height: 64px; }
.seg button svg { width: 26px; height: 26px; }
.seg button small { display: block; color: var(--muted); font-size: 12.5px; }
.seg button.on { border-color: var(--green); background: #EEF4EA; box-shadow: inset 0 0 0 1px var(--green); }

.fld { display: block; margin-top: 12px; }
.fld > span { display: block; margin-bottom: 6px; font-weight: 700; font-size: 14px; color: var(--green); }
.fld i { color: var(--muted); font-style: normal; font-weight: 500; }
.fld em { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; font-style: normal; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 16px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(20, 66, 31, .12); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.pays { display: grid; gap: 8px; }
.pay { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.pay input { width: 20px; height: 20px; accent-color: var(--green); }
.pay b { display: block; color: var(--green); }
.pay small { color: var(--muted); font-size: 13px; }
.pay.on { border-color: var(--green); background: #EEF4EA; }
.hint { margin: 10px 0 0; color: var(--muted); font-size: 13.5px; }

.banner { margin: 14px 0; padding: 12px 14px; border-radius: 14px; font-weight: 700; }
.banner.warn { background: #FFF1D6; color: var(--warn); }
.banner.err { background: #FBE4E4; color: var(--err); }

/* status */
.status { text-align: center; }
.num small { display: block; color: var(--muted); font-weight: 600; }
.num b { font: 800 34px/1.1 var(--display); color: var(--green); letter-spacing: .02em; }
.pill { display: inline-block; margin-top: 8px; padding: 5px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; background: #FFF1D6; color: var(--warn); }
.pill.s-lunas, .pill.s-siap, .pill.s-selesai { background: #E3F3E6; color: var(--ok); }
.pill.s-ditolak { background: #FBE4E4; color: var(--err); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 18px 0 2px; padding: 0; list-style: none; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.steps li::before { content: ''; position: absolute; top: 14px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.steps li:first-child::before { display: none; }
.steps li span { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--line); }
.steps li span svg { width: 16px; height: 16px; stroke-width: 3; }
.steps li.done, .steps li.now { color: var(--green); }
.steps li.done span { background: var(--green); border-color: var(--green); color: #fff; }
.steps li.done::before, .steps li.now::before { background: var(--green); }
.steps li.now span { border-color: var(--green); background: var(--gold); color: var(--green); }

.big { text-align: center; }
.big p { margin: 4px 0; }
.big.ok { background: #F0F8EE; border-color: #CFE5C9; }
.amt { margin: 6px 0; font: 800 40px/1.1 var(--display); color: var(--maroon); }
.qr { width: min(280px, 80vw); margin: 14px auto 4px; padding: 10px; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.qr svg { width: 100%; height: auto; display: block; stroke: none; }
.cp { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-align: left; }
.cp small { display: block; color: var(--muted); font-size: 12.5px; }
.cp b { font-size: 17px; color: var(--green); word-break: break-all; }
.cp button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--green); background: var(--paper); color: var(--green); font-weight: 700; font-size: 13.5px; flex-shrink: 0; }
.cp button svg { width: 16px; height: 16px; }
.wait { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px !important; color: var(--warn); font-weight: 700; font-size: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); animation: pulse 1.4s infinite; flex-shrink: 0; }
@keyframes pulse { 0%, 100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
.meta { margin: 10px 0 0; color: var(--muted); font-size: 13.5px; }
.center { text-align: center; }
.pad { padding: 8px 0 40px; }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } html { scroll-behavior: auto; } }

.geo { margin-top: 12px; }
.geo svg { width: 18px; height: 18px; }
.geo-ok { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; color: var(--ok); font-weight: 700; font-size: 14px; }
.geo-ok svg { width: 18px; height: 18px; stroke-width: 3; }

.seg3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg3 button { flex-direction: column; justify-content: center; text-align: center; gap: 4px; padding: 10px 6px; min-height: 92px; }
.seg3 button small { font-size: 11.5px; }

.outlet-one { margin: 14px 0 0; padding: 10px 14px; border-radius: 14px; background: #EEF4EA; color: var(--green); font-size: 14px; }

.minwarn { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(max(12px, env(safe-area-inset-bottom)) + 76px); z-index: 31; width: min(728px, calc(100% - 24px)); box-sizing: border-box; padding: 12px 14px; border-radius: 16px; background: #FFF1D6; color: var(--warn); font-size: 14px; line-height: 1.4; box-shadow: 0 8px 20px rgba(154, 91, 0, .18); }
.minwarn b { color: #7A3E00; }
.minwarn .btn { display: flex; margin-top: 8px; min-height: 40px; border-color: var(--warn); color: var(--warn); background: #fff; }
.bar.blocked .btn.primary { background: #C9C2B0; color: #6B6455; cursor: not-allowed; }
.v-checkout .spacer { height: 200px; }

.card .ds{margin:2px 0 4px;font-size:12px;line-height:1.35;color:#6b5b4e;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
