/* public/refund-dialogs.css
   The refund dialogs (public/refund-dialogs.js) and the reason chips the card refund dialog shares, from the approved
   mockup (Richard 2026-11-20). Tokens only (both themes come from the token layer); borders separate, no shadows
   (the dialog itself floats and is the system's .ds-dialog). Every control is at least 44px tall on a phone. */

.rfd-dialog { width: min(600px, 100%); }
.rfd-body { display: flex; flex-direction: column; gap: var(--s-3); }
.rfd-lead { margin: 0; font-size: var(--text-sm); color: var(--ink-3); overflow-wrap: anywhere; }
.rfd-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.rfd-field { display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; }
.rfd-label { font-size: var(--text-xs); font-weight: 700; color: var(--ink); }
.rfd-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.rfd-chip {
  min-height: 36px; padding: 0 var(--s-3); border: 1px solid var(--border); border-radius: var(--r-full);
  background: var(--surface); color: var(--ink-2); font: inherit; font-size: var(--text-sm); font-weight: 600; cursor: pointer;
}
.rfd-chip:hover { border-color: var(--ink-3); color: var(--ink); }
.rfd-chip:focus-visible { outline: none; box-shadow: var(--ring); }
.rfd-chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.rfd-detail { margin-top: var(--s-1); }
.rfd-warn {
  margin: 0; padding: var(--s-2) var(--s-3); border-radius: var(--r-sm);
  background: var(--warn-soft); color: var(--warn-ink); font-size: var(--text-sm);
}
.rfd-error { margin: 0; padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); background: var(--danger-soft); color: var(--danger-ink); font-size: var(--text-sm); }
.rfd-error[hidden], .rfd-detail[hidden] { display: none; }
@media (max-width: 640px) {
  .rfd-row2 { grid-template-columns: 1fr; }
  .rfd-chip { min-height: 44px; }
}
