/* 小票返现 (account-rewards.js): wallet, 拍小票, the draft, my receipts. Builds on site.css tokens and account.css. */
.rw-head h1 { margin-bottom: .1em; }
.rw-steps { margin: 12px 0; padding-left: 1.3em; display: grid; gap: 8px; }
.rw-steps strong { display: block; }
.rw-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 14px 0 0; }
.rw-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rw-nums.three { grid-template-columns: 1fr 1fr 1fr; }
.rw-num { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rw-num strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; color: var(--brand-dark); }
.rw-week { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.rw-big { min-height: 56px; font-size: 1.1rem; margin: 8px 0; }
.rw-file { position: relative; overflow: hidden; }
.rw-file input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rw-file:focus-within { box-shadow: 0 0 0 3px var(--brand-soft); }
.rw-check { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0; color: var(--ink-2); }
.rw-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.rw-thumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.rw-th { position: relative; }
.rw-th img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.rw-th button { position: absolute; top: 3px; right: 3px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 1rem; line-height: 28px; padding: 0; cursor: pointer; }
.rw-est { margin: 8px 0; }
.rw-est-line { margin: 0; }
.rw-est-line strong { color: var(--brand-dark); }
.rw-notes { margin: 6px 0 0; padding-left: 1.2em; color: var(--ink-2); }
.rw-stores { margin-top: 14px; }
.rw-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; margin: 8px 0; cursor: pointer; }
.rw-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.rw-opt input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.rw-opt span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rw-badge { color: #C2410C; font-weight: 600; }
.rw-result .rw-status { font-weight: 650; font-size: 1.05rem; }
.rw-result .rw-notes { list-style: none; padding-left: 0; } /* centred result card: no bullet hanging at the left edge */
.rw-got { color: var(--brand-dark); font-weight: 650; }
.rw-list { list-style: none; padding: 0; margin: 0; }
.rw-row { padding: 10px 0; border-top: 1px solid var(--line); }
.rw-row:first-child { border-top: 0; padding-top: 0; }
.rw-row p { margin: 4px 0 0; }
.rw-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rw-row-top strong { min-width: 0; overflow-wrap: anywhere; }
.rw-amt { white-space: nowrap; font-weight: 650; color: var(--brand-dark); }
.rw-st { font-weight: 600; }
.rw-st-PENDING, .rw-st-REVIEW, .rw-wd-REQUESTED, .rw-wd-APPROVED, .rw-wd-SENDING { color: #8a5a00; }
.rw-st-CREDITED, .rw-wd-SENT { color: var(--ok); }
.rw-st-REJECTED, .rw-st-VOID, .rw-wd-REJECTED, .rw-wd-RETURNED { color: var(--danger); }
.rw-reason { color: var(--danger); }
@media (max-width: 380px) { .rw-nums.three { grid-template-columns: 1fr 1fr; } }
/* 第二版 (account-rewards.js): 我领取的返现, 领取返现 list, tags on receipts, 照片有点糊, 邀请码 / 转发邮箱 with 复制 */
.rw-tags { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 6px 0 0; }
.rw-tag { display: inline-block; font-size: .8rem; font-weight: 600; line-height: 1.3; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); }
.rw-tag-now { background: #FFF7ED; color: #C2410C; }
.rw-tag-claim { background: #fff3d6; color: #8a5a00; }
.rw-left { white-space: nowrap; font-weight: 650; color: #C2410C; font-variant-numeric: tabular-nums; }
.rw-claim-list .rw-row-top { align-items: center; }
.rw-claim-btn { flex: none; min-height: 40px; }
.rw-blur { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: #fff8e6; border: 1px solid #f2d899; }
.rw-blur p { margin: 0; }
.rw-blur .rw-blur-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rw-th-blur img { border: 2px solid #d97706; }
.rw-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 8px 0; }
.rw-code { font-size: 1.4rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.rw-mail { overflow-wrap: anywhere; }
.rw-streak { margin: 6px 0 0; color: var(--ink-2); }
.rw-offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }
/* 提现方式 (rewards-money.js): gift card, PayPal, Venmo, Zelle — the ones that are on */
.rw-ways { border: 0; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.rw-ways legend { font-weight: 600; margin-bottom: 2px; padding: 0; }
.rw-ways .check { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0; }
/* 商家开小票 (account-rewards.js 商家小票): the list, 输入小票码, one receipt with its lines, 不是我的 */
.rw-iss-form { margin-top: 12px; border-top: 1px solid var(--line, #e3e6e4); padding-top: 4px; }
.rw-iss-form input { text-transform: uppercase; letter-spacing: .08em; }
.rw-iss-tag { color: var(--ink-2, #3d4743); margin: 4px 0 0; }
.rw-iss-one h1 { margin-bottom: 2px; }
.rw-iss-lines { width: 100%; border-collapse: collapse; margin: 10px 0 12px; font-size: .95rem; }
.rw-iss-lines th, .rw-iss-lines td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line, #e3e6e4); vertical-align: top; }
.rw-iss-lines th { font-size: .82rem; color: var(--muted, #5b6661); font-weight: 600; }
.rw-iss-lines .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rw-iss-lines tfoot td { border-bottom: 0; }
.rw-iss-lines tr.total td { font-weight: 750; border-top: 2px solid currentColor; }
.rw-iss-one #rw-iss-claim { margin-top: 12px; }
.rw-decline { margin-top: 12px; }
.rw-decline summary { cursor: pointer; color: var(--danger, #b42318); font-weight: 600; min-height: 40px; display: flex; align-items: center; }
.rw-rc-pre h2 { margin-top: 0; }

/* 拍小票请用生活帮 App (account-rewards.js appSnapHtml; owner 11-29 「按建议改」): the stores, and a QR code on wide screens. */
.rw-app-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 10px; }
.rw-qr { display: none; justify-items: center; gap: 4px; }
.rw-qr svg { display: block; width: 112px; height: 112px; }
@media (min-width: 761px) { .rw-qr { display: grid; } }
