.refund-panel{margin-top:24px;padding:24px;border:1px solid var(--line,#d9ded3);border-radius:16px;background:var(--surface,#fff);color:var(--text,#27342b);min-width:0}
.refund-panel [hidden],.refund-dialog [hidden]{display:none!important}
.refund-head,.refund-actions,.refund-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.refund-head h2{margin:0;font-size:20px}.refund-notice{padding:14px 16px;background:var(--surface-alt,rgba(120,144,72,.12));border-left:3px solid var(--accent,#647c3b);border-radius:8px;line-height:1.8;margin:16px 0}
.refund-balance{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}.refund-balance span{padding:8px 12px;border:1px solid var(--line,#d9ded3);border-radius:8px}
.refund-help{font-size:13px;line-height:1.8;color:var(--muted,#6b756c)}
.refund-form{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:800px;margin-top:18px}
.refund-field{display:flex;flex-direction:column;gap:7px;min-width:0}.refund-wide{grid-column:1/-1}
.refund-panel input:not([type=checkbox]),.refund-panel select,.refund-dialog input:not([type=checkbox]),.refund-dialog textarea{box-sizing:border-box;width:100%;max-width:100%;min-height:42px;padding:10px 12px;border-radius:8px;border:1px solid var(--line,#bcc5b7);background:var(--surface,#fff);color:var(--text,#27342b);font:inherit}
.refund-panel input[type=file]{font-size:13px}.refund-panel input[type=checkbox],.refund-dialog input[type=checkbox]{width:18px;height:18px;flex-shrink:0;accent-color:var(--accent,#647c3b)}
.refund-check{display:flex;align-items:flex-start;gap:10px;line-height:1.8;font-size:14px}.refund-check input{margin-top:4px}
.refund-status{white-space:pre-wrap;line-height:1.7;margin:10px 0;min-height:1.7em;overflow-wrap:anywhere}.refund-status[data-error=true]{color:var(--err,#bc3838)}
.refund-preview{width:160px;max-height:200px;object-fit:contain;background:#fff;border:1px solid var(--line,#ddd);border-radius:8px}
.refund-list{display:grid;gap:12px;margin-top:18px}.refund-card{border:1px solid var(--line,#d9ded3);border-radius:12px;padding:16px;min-width:0}.refund-card p{margin:7px 0;overflow-wrap:anywhere}.refund-id{font:12px ui-monospace,monospace;color:var(--muted,#6b756c)}
.refund-card .refund-state{font-size:13px;font-weight:600}.refund-card .refund-state[data-state=pending]{color:var(--accent,#647c3b)}
.refund-filters{display:grid;grid-template-columns:2fr 1fr auto;align-items:end;gap:12px;margin:18px 0}.refund-setting{margin-top:18px;display:flex;align-items:center;flex-wrap:wrap;gap:18px}
.refund-panel button,.refund-dialog button{cursor:pointer}.refund-panel button:disabled,.refund-dialog button:disabled{cursor:wait;opacity:.6}
.refund-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 28px));max-height:90dvh;overflow:auto;border:1px solid var(--line,#d9ded3);border-radius:16px;padding:22px;color:var(--text,#27342b);background:var(--surface,#fff)}
.refund-dialog::backdrop{background:rgba(0,0,0,.65)}.refund-dialog h3{margin:0}.refund-dialog img{display:block;width:min(100%,340px);height:320px;object-fit:contain;background:#fff;border-radius:8px;margin:16px auto}.refund-dialog textarea{min-height:76px;resize:vertical}.refund-dialog .refund-field{margin-bottom:14px}.refund-dialog .refund-actions{justify-content:flex-end;margin-top:16px}
@media(max-width:640px){.refund-panel{padding:16px;margin-top:16px}.refund-form,.refund-filters{grid-template-columns:1fr}.refund-wide{grid-column:auto}.refund-balance{display:grid;grid-template-columns:1fr 1fr;font-size:13px}.refund-balance span:last-child{grid-column:1/-1}.refund-dialog{padding:16px}.refund-dialog img{height:260px}.refund-actions button{min-height:42px}.refund-setting{align-items:flex-start}}

.refund-panel button,.refund-dialog button{font:inherit;border:1px solid var(--line,#c5cebe);border-radius:8px;padding:9px 14px;background:transparent;color:inherit}.refund-panel .primary-btn,.refund-dialog .primary-btn{background:var(--accent,#647c3b);border-color:var(--accent,#647c3b);color:#fff}
