/* budit-pay 결제 화면 — 작은 카드 하나. 폰 너비(16px 여백)에서도 가로 스크롤 없음. */
:root {
  --bg: #f6f7f9; --card: #ffffff; --text: #1a1d21; --muted: #6b7280; --line: #e5e7eb;
  --accent: #2f6fed; --accent-text: #ffffff; --danger: #c2410c; --ok: #15803d; --badge: #fff7ed; --badge-text: #9a3412;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1216; --card: #171b21; --text: #e7eaee; --muted: #9aa3ad; --line: #2a3139;
    --accent: #5b8def; --accent-text: #0b1220; --danger: #fb923c; --ok: #4ade80; --badge: #3a2410; --badge-text: #fdba74;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; min-height: 100dvh; display: flex; flex-direction: column; }
a { color: inherit; }
header.top { padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
header.top .wrap { max-width: 560px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
header.top .brand { font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
header.top .lang { font-size: 13px; color: var(--muted); text-decoration: none; }
main { flex: 1; padding: 24px 16px 40px; }
.wrap { max-width: 560px; margin: 0 auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card + .card { margin-top: 14px; }
h1 { font-size: 20px; margin: 0 0 14px; }
h2 { font-size: 16px; margin: 18px 0 8px; }
h3 { font-size: 17px; margin: 0 0 10px; }
p { margin: 8px 0; }
.muted { color: var(--muted); font-size: 14px; }
.err { color: var(--danger); }
.ok { color: var(--ok); }
.badge { display: inline-block; background: var(--badge); color: var(--badge-text); border-radius: 999px; padding: 2px 10px; font-size: 13px; margin-bottom: 10px; }
.rows { display: grid; grid-template-columns: 1fr; gap: 6px 12px; margin: 12px 0 18px; }
.row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.row .k { color: var(--muted); font-size: 14px; flex: 0 0 auto; }
.row .v { text-align: right; word-break: break-all; }
.row .v.amount { font-size: 20px; font-weight: 700; }
.btn { display: inline-block; appearance: none; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 10px; padding: 12px 16px; font-size: 16px; text-decoration: none; cursor: pointer; text-align: center; }
.btn.accent { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 700; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.actions .btn { flex: 1 1 140px; }
.state { text-align: center; padding: 16px 0 6px; }
.state h3 { font-size: 20px; }
.svc { margin-top: 16px; }
.svc .head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.svc .head img { width: 28px; height: 28px; border-radius: 6px; }
.item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.item .name { font-weight: 600; }
.item .blurb { color: var(--muted); font-size: 13px; }
.item .price { text-align: right; white-space: nowrap; }
.item .price s { color: var(--muted); font-size: 13px; margin-right: 6px; }
.item .price .pct { color: var(--danger); font-size: 13px; margin-right: 6px; }
footer.foot { border-top: 1px solid var(--line); padding: 18px 16px 28px; color: var(--muted); font-size: 12.5px; background: var(--card); }
footer.foot .wrap p { margin: 3px 0; }
footer.foot a { color: inherit; }
ol.policy { padding-left: 20px; } ol.policy li { margin: 8px 0; }
