:root {
  --bg: #f6f4ef; --card: #fff; --ink: #1f1f1f; --muted: #6b6760; --line: #e3dfd6;
  --accent: #3b3b3b; --accent-ink: #fff; --warn: #a65a00; --bad: #a12a2a;
}
body[data-theme="ytc"] { --accent: #b3122e; }
body[data-theme="luo"] { --accent: #1c4f8c; }
body[data-theme="canopy"] { --accent: #2f6b3a; }
body[data-theme="watersedge"] { --accent: #1f6f78; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
header { display: flex; align-items: center; gap: 12px; padding: 16px; max-width: 560px; margin: 0 auto; }
header img { height: 52px; width: auto; }
.brand-name { margin: 0; color: var(--accent); font-weight: 600; font-size: 14px; }
h1 { margin: 0; font-size: 22px; }
h2 { font-size: 17px; margin: 0 0 10px; }
main { max-width: 560px; margin: 0 auto; padding: 0 16px 120px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0 0 12px; }
label { display: block; font-weight: 600; margin-bottom: 8px; }
.num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 13px; margin-right: 6px; }
select { width: 100%; font-size: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.notice { background: #fff4e5; border: 1px solid #f0d3a8; color: #5a3b00; padding: 12px; border-radius: 8px; }
.brand-grid { display: grid; gap: 10px; }
.brand-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; font-size: 16px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }
.brand-btn img { height: 40px; width: auto; }
.show { border-top: 1px solid var(--line); padding: 12px 0; }
.show:first-child { border-top: 0; padding-top: 0; }
.show.closed { opacity: .55; }
.show-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.tag { font-size: 13px; color: var(--bad); font-weight: 600; }
.tag.warn { color: var(--warn); }
.line { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper output { min-width: 24px; text-align: center; font-weight: 600; font-size: 18px; }
.step { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer; }
.step:disabled { opacity: .35; cursor: default; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.bar strong { font-size: 20px; }
#pay { padding: 14px 18px; font-size: 16px; font-weight: 600; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
#pay:disabled { opacity: .45; cursor: default; }
footer { max-width: 560px; margin: 0 auto; padding: 0 16px 100px; }
@media (min-width: 600px) { .bar { left: 50%; transform: translateX(-50%); max-width: 560px; border: 1px solid var(--line); border-radius: 12px 12px 0 0; } }
