/* Online Fundraising section: the only new CSS. Everything else reuses the live site's
   existing classes (sf-tool, sf-result, sf-template, sf-cards, sf-steps, callout...). */

.sf-tool textarea {
  font: inherit; font-size: .9rem; width: 100%; box-sizing: border-box; min-height: 7rem;
  border: 2px solid var(--wat-line); border-radius: var(--wat-radius-sm);
  background: var(--wat-cream); color: var(--wat-navy); padding: 9px 11px;
}
.sf-tool textarea:focus-visible { outline: 3px solid var(--wat-sky); outline-offset: 1px; border-color: var(--wat-sky); }
.sf-tool [hidden] { display: none !important; }
.sf-tool .sf-gen__btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.sf-tool .of-file { display: inline-flex; align-items: center; }
.of-receipt .sf-template__body { display: block; white-space: pre-wrap; font-size: .92rem; line-height: 1.55; }
/* Donation tracker: each gift is a small card so every field is readable at any width. */
.sf-tool table.of-tracker { display: block; width: 100%; margin: 0; border: 0; min-width: 0; }
.sf-tool table.of-tracker thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sf-tool table.of-tracker tbody { display: block; }
.sf-tool table.of-tracker tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--wat-line); background: none; }
.sf-tool table.of-tracker td { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; }
.sf-tool table.of-tracker td[data-label]::before { content: attr(data-label); color: var(--wat-navy); font-size: .8rem; font-weight: 700; }
.sf-tool table.of-tracker td[colspan] { grid-column: 1 / -1; }
.sf-tool table.of-tracker input, .sf-tool table.of-tracker select { width: 100%; box-sizing: border-box; }
.sf-tool table.of-tracker input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--wat-green-600); }
.sf-tool table.of-tracker td:last-child { justify-content: flex-end; }
.sf-result ol, .sf-result ul { margin: 6px 0 0; padding-left: 1.2rem; }
/* Keep result cards inside the tool at phone width: a wide table scrolls inside its own region
   instead of stretching the results grid. */
.sf-tool .sf-results { grid-template-columns: minmax(0, 1fr); }
.sf-tool .sf-result { min-width: 0; overflow-wrap: anywhere; }
/* Input warnings in the tools (amber, same tone as callout--amber) */
.sf-result--warn { border-left: 4px solid #E0A100; background: #FFF8E6; color: var(--wat-navy); padding: 10px 14px; border-radius: var(--wat-radius-sm); }
.sf-tool p.sf-tool__note:empty { display: none; }

/* Printing receipts: only the copied receipts are shown, one per page. */
.of-print-root { display: none; }
@media print {
  body.of-printing > *:not(.of-print-root) { display: none !important; }
  body.of-printing .of-print-root { display: block !important; }
  .of-print-root .sf-results__h, .of-print-root .sf-result__meta, .of-print-root .sf-result--muted, .of-print-root .sf-result--warn { display: none !important; }
  .of-print-root .of-receipt { border: 0; background: none; padding: 0; break-after: page; page-break-after: always; }
  .of-print-root .of-receipt:last-child { break-after: auto; page-break-after: auto; }
  .of-print-root .sf-template__body { font: 11pt/1.5 Georgia, "Times New Roman", serif; color: #000; }
}

/* Preview-only banner (not part of the integration) */
.of-preview-bar { position: sticky; top: 0; z-index: 50; background: #0B2942; color: #fff; font: 600 13px/1.4 system-ui, sans-serif; padding: 6px 14px; }
