/* 주문 흐름(결제 · 완료 · 실패) 공통 스타일 — order.html 과 같은 디자인 */
:root {
  --orange: #ff6b35; --orange-dark: #e85a26; --orange-soft: #fff1ea;
  --black: #1a1a2e; --cream: #f4f2ec; --card: #ffffff; --line: #e8e4da;
  --muted: #7a746b; --bad: #d93025; --good: #15803d; --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Noto Sans KR", -apple-system, sans-serif; background: var(--cream); color: var(--black); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 600px; margin: 0 auto; height: 60px; padding: 0 16px; display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; font-size: 18px; letter-spacing: -0.03em; }
.brand img { width: 30px; height: 30px; }
.brand b { color: var(--orange); font-weight: 900; }
.top .back { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.top .back:hover { color: var(--orange); }
main { max-width: 600px; margin: 0 auto; padding: 20px 16px 120px; }
.steps { display: flex; align-items: center; gap: 8px; margin: 4px 0 18px; font-size: 13px; font-weight: 700; color: var(--muted); }
.steps .s { display: inline-flex; align-items: center; gap: 6px; }
.steps .n { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; background: #e6e1d6; color: var(--muted); }
.steps .done .n { background: #f3c7b3; color: #fff; }
.steps .on { color: var(--black); }
.steps .on .n { background: var(--orange); color: #fff; }
.steps .bar { flex: 0 0 24px; height: 2px; background: #e0dbd0; }
h1 { font-size: 24px; font-weight: 900; letter-spacing: -0.04em; margin-bottom: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.rows .r { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: #4a453f; padding: 7px 0; }
.rows .r span:last-child { text-align: right; font-weight: 600; color: var(--black); word-break: keep-all; }
.rows .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; margin-top: 6px; border-top: 1px solid var(--line); }
.rows .total span { font-size: 15px; font-weight: 800; }
.rows .total strong { font-size: 24px; font-weight: 900; color: var(--orange); letter-spacing: -0.02em; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.method { display: flex; align-items: center; gap: 12px; padding: 14px; border: 2px solid var(--orange); border-radius: 12px; background: var(--orange-soft); font-weight: 800; }
.method .dot { width: 18px; height: 18px; border-radius: 50%; border: 5px solid var(--orange); background: #fff; flex: none; }
.method small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.note { margin-top: 12px; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.pay-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(255,255,255,0.97); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.pay-bar-in { max-width: 600px; margin: 0 auto; }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 56px; border: 0; border-radius: 14px; background: var(--orange); color: #fff; font: inherit; font-size: 17px; font-weight: 900; letter-spacing: -0.02em; cursor: pointer; text-decoration: none; box-shadow: 0 8px 24px rgba(255,107,53,0.3); transition: background 0.2s; }
.btn:hover { background: var(--orange-dark); }
.btn:disabled { background: #c8c2b8; box-shadow: none; cursor: default; }
.btn.ghost { background: #fff; color: var(--black); border: 1.5px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-row { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.err { margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--bad); text-align: center; }
.err:empty { display: none; }
.result { text-align: center; padding: 26px 8px 8px; }
.result .ic { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 34px; background: #e7f6ec; }
.result.fail .ic { background: #fdeceb; }
.result h2 { font-size: 22px; font-weight: 900; letter-spacing: -0.03em; }
.result p { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.loading { padding: 40px 0; text-align: center; color: var(--muted); font-size: 14px; }
.foot { margin-top: 22px; font-size: 11.5px; line-height: 1.7; color: var(--muted); text-align: center; }

.methods { display: flex; flex-direction: column; gap: 10px; }
label.method { position: relative; cursor: pointer; border: 2px solid var(--line); background: #fff; }
label.method input { position: absolute; opacity: 0; pointer-events: none; }
label.method .dot { border: 2px solid #c8c2b8; background: #fff; }
label.method:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }
label.method:has(input:checked) .dot { border: 5px solid var(--orange); }
