/* ======================================================
   SMWF – Donations (Donate Hub)
   File: /themes/blocksy-child/assets/css/smwf-donations.css
   NOTE: Single-file refactor (Launch). Minimal conflicts.
   ====================================================== */

/* ======================================================
   0) Token Binding & Base Typography
   ====================================================== */

.smwf-donate-hero,
.smwf-donate-steps,
.smwf-donate-impact,
.smwf-thank-you,
.smwf-btn,
.smwf-input,
.smwf-textarea,
.smwf-label,
.smwf-radio,
.smwf-gift-summary,
.smwf-help,
.smwf-legend,
.smwf-header,
.smwf-footer {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--smwf-ink, #111);
}

/* ======================================================
   1) Launch Shell Tokens (Header + Footer + separators)
   - Uses CTA Blue (#2872FA) as a very light tint
   ====================================================== */

:root {
    /* SMWF palette (kept for future; launch uses blue tint chrome) */
    --smwf-sienna: #C74B1C;
    --smwf-clay: #DAA520;
    --smwf-sand: #EDC9AF;
    --smwf-ebony: #2B1B17;
    --smwf-sage: #7C8A4D;
    --smwf-stack-max: 760px;

    /* CTA Blue (observed) */
    --smwf-blue: #2872FA;

    /* Launch shell tint */
    --smwf-shell-bg: rgba(40, 114, 250, 0.04);
    --smwf-shell-line: rgba(40, 114, 250, 0.12);

    /* Text */
    --smwf-shell-fg: #111111;
    --smwf-shell-muted: rgba(0, 0, 0, .62);

    /* Links */
    --smwf-shell-link: #111111;
    --smwf-shell-link-hover: var(--smwf-blue);

    /* Radii */
    --smwf-radius: 14px;
    --smwf-radius-sm: 10px;

    /* Focus */
    --smwf-focus: rgba(40, 114, 250, .35);
    /* matches blue system */
}

/* Shared focus ring */
.smwf-header a:focus-visible,
.smwf-footer a:focus-visible,
.smwf-btn:focus-visible,
.smwf-input:focus-visible,
.smwf-textarea:focus-visible,
.smwf-amount-option:focus-visible {
    outline: 2px solid var(--smwf-focus);
    outline-offset: 3px;
    border-radius: 10px;
}

/* ======================================================
   2) Layout Utilities
   ====================================================== */

.smwf-container {
    width: min(1100px, calc(100% - 32px));
    margin-inline: auto;
}

.smwf-grid {
    display: grid;
    gap: 14px;
}

.smwf-grid--2 {
    display: grid;
    gap: 14px;
}

.smwf-field {
    display: grid;
    gap: 6px;
}

.smwf-fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.smwf-legend {
    font-weight: 900;
    margin-bottom: 2px;
    color: var(--smwf-ink, #111);
}

.smwf-help {
    margin: 10px 0 0;
    color: var(--smwf-ink-soft, rgba(0, 0, 0, .62));
    line-height: 1.45;
    font-size: 0.95rem;
}

/* ======================================================
   3) Header (Launch Blue Tint + separators)
   ====================================================== */

.smwf-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--smwf-shell-bg);
    border-bottom: 1px solid var(--smwf-shell-line);
}

.smwf-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.smwf-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.smwf-header__brand-mark {
    width: 34px;
    height: 34px;
    border-radius: var(--smwf-radius-sm);
    background: rgba(199, 75, 28, .12);
    /* brand hint, not dominant */
    display: inline-block;
}

.smwf-header__brand-name {
    font-weight: 800;
    letter-spacing: .25px;
    color: var(--smwf-shell-fg);
}

.smwf-header__nav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.smwf-header__link {
    text-decoration: none;
    font-weight: 650;
    color: var(--smwf-shell-fg);
    padding: 8px 10px;
    border-radius: var(--smwf-radius-sm);
    text-underline-offset: 3px;
}

.smwf-header__link:hover {
    background: rgba(40, 114, 250, 0.08);
    color: var(--smwf-shell-link-hover);
    text-decoration: underline;
}

/* Responsive header */
@media (max-width: 820px) {
    .smwf-header__inner {
        gap: 12px;
    }

    .smwf-header__nav {
        gap: 8px;
    }

    .smwf-header__link {
        padding: 8px 8px;
    }
}

@media (max-width: 640px) {
    .smwf-header__brand-name {
        display: none;
    }

    .smwf-header__inner {
        padding: 10px 12px;
    }

    .smwf-header__nav {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 420px) {
    .smwf-header__link {
        font-size: 14px;
    }
}

/* ======================================================
   4) Buttons (Single source of truth)
   - IMPORTANT: Your file previously had multiple .smwf-btn defs.
   ====================================================== */

.smwf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid rgba(0, 0, 0, .12);
    cursor: pointer;
    text-decoration: none !important;
    color: var(--smwf-shell-fg);
    background: #fff;
    transition: transform .06s ease, box-shadow .2s ease, filter .15s ease;
}

.smwf-btn:active {
    transform: translateY(1px);
}

.smwf-btn--lg {
    width: 100%;
    padding: 14px 18px;
    font-size: 1.05rem;
}

/* Launch CTA primary = BLUE */
.smwf-btn--primary {
    background: var(--smwf-blue);
    border-color: var(--smwf-blue);
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(40, 114, 250, .22);
}

.smwf-btn--primary:hover {
    filter: brightness(.96);
}

/* Secondary light */
.smwf-btn--light {
    background: #fff;
    color: var(--smwf-shell-fg) !important;
    border-color: rgba(0, 0, 0, .14);
}

/* Donate variant for header/footer links if you use it */
.smwf-btn--donate {
    background: var(--smwf-blue);
    border-color: var(--smwf-blue);
    color: #fff !important;
}

.smwf-btn--donate:hover {
    filter: brightness(.96);
}

/* ======================================================
   5) Donate Hero
   ====================================================== */

.smwf-donate-hero {
    padding: 26px 0 18px;
    background: linear-gradient(180deg, rgba(40, 114, 250, 0.06), #fff);
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.smwf-donate-hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.smwf-donate-hero__content {
    display: grid;
    gap: 10px;
    align-content: start;
}

.smwf-donate-hero__cta {
    margin-top: 10px;
}

.smwf-donate-hero__aside {
    display: grid;
    align-content: start;
}

.smwf-donate-hero__aside:empty {
    display: none;
}

.smwf-donate-hero__kicker {
    text-transform: uppercase;
    letter-spacing: .03em;
    font-weight: 800;
    font-size: .78rem;
    color: var(--smwf-ink-soft, rgba(0, 0, 0, .62));
}

.smwf-donate-hero__title {
    font-size: clamp(1.8rem, 3.8vw, 2.4rem);
    line-height: 1.15;
    margin: 6px 0;
}

.smwf-donate-hero__subtitle {
    color: var(--smwf-ink-soft, rgba(0, 0, 0, .62));
    line-height: 1.55;
    max-width: 56ch;
}

.smwf-donate-hero__scroll a {
    width: 100%;
}

/* ======================================================
   6) Cards + Sections (Steps + Impact)
   ====================================================== */

.smwf-donate-impact {
    padding: 26px 0 8px;
}

.smwf-donate-steps {
    padding: 22px 0 36px;
}

.smwf-donate-steps__inner {
    display: grid;
    gap: 18px;
}

.smwf-step {
    background: var(--smwf-surface, #fff);
    border-radius: var(--smwf-radius);
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: var(--smwf-shadow, 0 10px 22px rgba(0, 0, 0, .06));
    padding: 18px;
}

.smwf-step__kicker {
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .04em;
    color: var(--smwf-ink-soft, rgba(0, 0, 0, .62));
}

.smwf-step__title {
    font-size: 1.25rem;
    margin: 4px 0 6px;
}

.smwf-step__subtitle {
    color: var(--smwf-ink-soft, rgba(0, 0, 0, .62));
}

.smwf-step__body {
    margin-top: 12px;
}

.smwf-donate-header {
    margin-bottom: 12px;
    max-width: 720px;
}

.smwf-donate-header .smwf-step__title {
    font-size: clamp(1.4rem, 3.2vw, 1.8rem);
    line-height: 1.2;
    margin: 4px 0 6px;
}

.smwf-donate-header .smwf-step__subtitle {
    color: var(--smwf-ink-soft, rgba(0, 0, 0, .62));
    line-height: 1.55;
    max-width: 60ch;
}

/* Impact cards */
.smwf-impact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.smwf-impact__card {
    background: var(--smwf-surface, #fff);
    border-radius: var(--smwf-radius);
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: var(--smwf-shadow, 0 10px 22px rgba(0, 0, 0, .06));
    padding: 16px;
}

.smwf-impact__title {
    font-weight: 800;
    margin-bottom: 6px;
}

.smwf-impact__text {
    color: var(--smwf-ink-soft, rgba(0, 0, 0, .62));
    line-height: 1.55;
}

/* ======================================================
   Card normalization (keeps the same card look site-wide)
   ====================================================== */
.smwf-step,
.smwf-impact__card,
.smwf-faq,
.smwf-securepay-hero__inner,
.smwf-thank-you__inner {
    border-radius: var(--smwf-radius);
    border: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
    box-shadow: var(--smwf-shadow, 0 10px 22px rgba(0, 0, 0, .06));
}

/* ======================================================
   7) Amount Selector (single definition)
   ====================================================== */

.smwf-amount {
    margin-top: 10px;
}

.smwf-amount__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

.smwf-amount-option {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .14);
    font-weight: 900;
    letter-spacing: .01em;
    cursor: pointer;
    transition: transform .06s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease, filter .15s ease;
}

.smwf-amount-option:hover {
    border-color: rgba(0, 0, 0, .22);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}

.smwf-amount-option.is-active {
    background: rgba(40, 114, 250, 0.10);
    border-color: rgba(40, 114, 250, 0.55);
    box-shadow: 0 10px 22px rgba(40, 114, 250, .12);
    transform: translateY(-1px);
}

.smwf-amount-custom {
    grid-column: 1 / -1;
    background: rgba(40, 114, 250, 0.06);
    border-radius: 14px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, .08);
}

.smwf-amount-custom .smwf-label {
    font-size: 0.92rem;
    font-weight: 900;
    margin: 0 0 8px;
    color: var(--smwf-ink, #111);
}

.smwf-amount__note {
    margin-top: 10px;
}

@media (min-width: 860px) {
    .smwf-amount__options {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }

    .smwf-amount-option {
        min-height: 46px;
    }

    .smwf-amount-custom {
        padding: 14px;
    }
}

/* ======================================================
   8) Frequency + Form
   ====================================================== */

.smwf-radio {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .14);
    padding: 12px;
}

.smwf-label {
    font-weight: 700;
    margin-bottom: 6px;
}

.smwf-input,
.smwf-textarea {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .16);
    background: #fff;
}

.smwf-input:focus,
.smwf-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 114, 250, .18);
    border-color: rgba(40, 114, 250, .55);
}

.smwf-form {
    display: grid;
    gap: 14px;
}

.smwf-form .smwf-grid {
    gap: 12px;
}

@media (min-width: 860px) {
    .smwf-form .smwf-grid--2 {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
}

.smwf-form__actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

/* Live summary */
.smwf-gift-summary {
    background: rgba(40, 114, 250, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(40, 114, 250, 0.20);
    padding: 12px;
    font-weight: 800;
}

/* Hide duplicate legends (keep accessibility) */
.smwf-step .smwf-legend {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ======================================================
   9) Trust Strip (donation page)
   ====================================================== */

.smwf-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(40, 114, 250, 0.06);
    border: 1px solid rgba(0, 0, 0, .08);
    color: var(--smwf-ink, #111);
    font-weight: 750;
    font-size: 0.92rem;
}

.smwf-trust-strip>span {
    display: inline-flex;
    align-items: center;
}

.smwf-trust-strip>span:not(:last-child)::after {
    content: "•";
    color: var(--smwf-shell-muted);
    margin-left: 10px;
}

/* ======================================================
   10) Errors & Validation
   ====================================================== */

.smwf-required {
    color: var(--smwf-blue);
    font-weight: 900;
    margin-left: 4px;
}

.smwf-field.is-invalid .smwf-label {
    color: rgba(40, 114, 250, .95);
}

.smwf-field.is-invalid .smwf-input,
.smwf-field.is-invalid .smwf-textarea {
    border-color: rgba(40, 114, 250, .55);
    box-shadow: 0 0 0 3px rgba(40, 114, 250, .16);
}

.smwf-field-error {
    margin-top: 6px;
    font-size: 0.9rem;
    color: rgba(40, 114, 250, .95);
}

/* Woo notices */
.woocommerce-notices-wrapper,
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    margin: 14px 0 18px;
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    border-radius: var(--smwf-radius);
    padding: 14px 14px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .06);
    border: 1px solid rgba(0, 0, 0, .08);
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    background: rgba(40, 114, 250, 0.06);
    border-color: rgba(40, 114, 250, 0.18);
    color: var(--smwf-ink, #111);
}

.woocommerce-error a,
.woocommerce-message a,
.woocommerce-info a {
    color: var(--smwf-blue);
    font-weight: 800;
    text-decoration: none;
}

.woocommerce-error a:hover,
.woocommerce-message a:hover,
.woocommerce-info a:hover {
    text-decoration: underline;
}

/* ======================================================
   11) Sticky Mobile CTA (optional)
   ====================================================== */

.smwf-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, .10);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .10);
}

.smwf-sticky-cta__inner {
    width: min(1100px, calc(100% - 12px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: center;
}

.smwf-sticky-cta__summary {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-weight: 900;
    color: var(--smwf-ink, #111);
}

.smwf-sticky-cta__amount {
    font-size: 1.05rem;
}

.smwf-sticky-cta__freq,
.smwf-sticky-cta__sep {
    font-weight: 800;
    color: var(--smwf-shell-muted);
}

.smwf-sticky-cta__btn {
    width: 100%;
    padding: 12px 14px;
}

/* Donate page bottom padding so content isn’t hidden behind sticky bar */
.smwf-donate-page {
    padding-bottom: 84px;
}

@media (min-width: 860px) {
    .smwf-sticky-cta {
        display: none;
    }

    .smwf-donate-page {
        padding-bottom: 0;
    }
}

/* ======================================================
   12) Thank You Page
   ====================================================== */

.smwf-thank-you {
    padding: 36px 0;
    background: linear-gradient(180deg, #fff, rgba(40, 114, 250, 0.04));
}

.smwf-thank-you__inner {
    background: #fff;
    border-radius: var(--smwf-radius);
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .06);
    padding: 20px;
}

/* Thank-you content block alignment helpers */
.smwf-donate-section--thank-you {
    padding-top: clamp(3rem, 6vw, 6rem);
    padding-bottom: clamp(3rem, 6vw, 6rem);
}

.smwf-donate-header--center {
    text-align: center;
    max-width: 72ch;
    margin-left: auto;
    margin-right: auto;
}

.smwf-donate-body {
    max-width: 72ch;
    margin: 0 auto;
    margin-top: clamp(1.25rem, 3vw, 2rem);
}

.smwf-donate-divider {
    border: 0;
    height: 1px;
    background: rgba(0, 0, 0, .10);
    margin: clamp(1.75rem, 4vw, 2.75rem) auto;
    max-width: 1100px;
}

.smwf-donate-next-steps {
    max-width: 72ch;
    margin: 0 auto;
}

/* Share row */
.smwf-share-card {
    max-width: 72ch;
    margin: clamp(1.75rem, 4vw, 2.75rem) auto 0;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: var(--smwf-radius);
    background: rgba(40, 114, 250, 0.06);
}

.smwf-share-title {
    margin: 0 0 0.35rem 0;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.2;
}

.smwf-share-subtitle {
    margin: 0;
    opacity: 0.9;
}

.smwf-share-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.smwf-share-actions .smwf-btn {
    min-width: 140px;
}

.smwf-share-status {
    margin: 0.75rem 0 0 0;
    font-size: 0.95rem;
    opacity: 0.85;
    min-height: 1.2em;
}

@media (max-width: 640px) {
    .smwf-share-actions .smwf-btn {
        width: 100%;
        min-width: 0;
    }
}

/* Receipt / compliance footer (thank you) */
.smwf-donate-footer--thank-you {
    max-width: 72ch;
    margin: clamp(2rem, 4.5vw, 3rem) auto 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, .10);
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ======================================================
   13) Priority Program (forward-compatible)
   - Kept, cleaned, and not duplicated
   ====================================================== */

.smwf-program-selection {
    margin-top: 14px;
}

.smwf-priority-toggle {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: 12px;
    background: #fff;
}

.smwf-priority-toggle input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.smwf-priority-toggle__content {
    flex: 1 1 auto;
    min-width: 0;
}

.smwf-priority-toggle__title {
    display: block;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 4px;
}

.smwf-priority-toggle__desc {
    margin: 0;
    line-height: 1.45;
    opacity: 0.92;
}

.smwf-priority-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    background: rgba(40, 114, 250, 0.06);
}

.smwf-priority-card__media {
    width: 96px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, .06);
}

.smwf-priority-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.smwf-priority-card__media img[src=""],
.smwf-priority-card__media img:not([src]) {
    display: none;
}

@media (max-width: 520px) {
    .smwf-priority-card {
        grid-template-columns: 1fr;
    }

    .smwf-priority-card__media {
        width: 100%;
        height: 160px;
    }
}

/* ======================================================
   14) Footer (Launch Blue Tint + separators + 3-col)
   ====================================================== */

.smwf-footer {
    background: var(--smwf-shell-bg);
    color: var(--smwf-shell-fg);
    border-top: 1px solid var(--smwf-shell-line);
}

.smwf-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px;
}

.smwf-footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--smwf-shell-line);
}

.smwf-footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.smwf-footer__brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(199, 75, 28, .12);
}

.smwf-footer__brand-name {
    font-weight: 800;
}

.smwf-footer__brand-tagline {
    font-size: 14px;
    color: var(--smwf-shell-muted);
}

.smwf-footer__cta {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 3-column grid */
.smwf-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: 24px 0;
}

.smwf-footer__title {
    font-weight: 800;
    margin-bottom: 10px;
}

.smwf-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.smwf-footer__list li {
    margin: 8px 0;
}

.smwf-footer__list a {
    color: var(--smwf-shell-link);
    text-decoration: none;
    text-underline-offset: 3px;
}

.smwf-footer__list a:hover {
    color: var(--smwf-shell-link-hover);
    text-decoration: underline;
}

.smwf-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--smwf-shell-line);
}

.smwf-footer__small {
    font-size: 13px;
    color: var(--smwf-shell-muted);
}

@media (max-width: 820px) {
    .smwf-footer__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .smwf-footer__grid {
        grid-template-columns: 1fr;
    }

    .smwf-footer__bottom {
        flex-direction: column;
    }
}

/* ======================================================
   15) Secure Payment Hero + Steps (checkout)
   ====================================================== */

.smwf-securepay-hero {
    margin: 18px 0 18px;
}

.smwf-securepay-hero__inner {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    padding: 18px 18px;
    max-width: 980px;
}

.smwf-securepay-hero__kicker {
    margin: 10px 0 6px;
    font-weight: 800;
    letter-spacing: .02em;
    font-size: 12px;
    opacity: .75;
    text-transform: uppercase;
}

.smwf-securepay-hero__title {
    margin: 0 0 8px;
    font-size: clamp(24px, 3.2vw, 34px);
    line-height: 1.1;
}

.smwf-securepay-hero__subtitle {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.45;
    opacity: .88;
    max-width: 70ch;
}

.smwf-securepay-hero__note {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.45;
    opacity: .85;
}

/* Trust strip (checkout) */
.smwf-truststrip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, .08);
    background: rgba(40, 114, 250, 0.06);
    border-radius: 999px;
    padding: 10px 12px;
    font-size: 13px;
}

.smwf-truststrip .smwf-dot {
    opacity: .5;
}

/* Steps (2-step progress) */
.smwf-steps {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.smwf-steps__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 13px;
    opacity: .72;
}

.smwf-steps__item.is-current {
    opacity: 1;
}

.smwf-steps__item.is-complete {
    opacity: .95;
}

.smwf-steps__badge {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 900;
    border: 2px solid rgba(0, 0, 0, .22);
}

.smwf-steps__item.is-complete .smwf-steps__badge {
    border-color: rgba(124, 138, 77, .75);
}

.smwf-steps__item.is-current .smwf-steps__badge {
    border-color: rgba(40, 114, 250, .85);
}

.smwf-steps__divider {
    flex: 1;
    height: 2px;
    background: rgba(0, 0, 0, .10);
    border-radius: 2px;
    min-width: 18px;
}

@media (max-width: 640px) {
    .smwf-securepay-hero__inner {
        padding: 14px 14px;
    }

    .smwf-steps {
        gap: 8px;
    }

    .smwf-truststrip {
        border-radius: 14px;
        gap: 8px;
    }
}

/* ======================================================
   16) Small extras (FAQ, receipt contact)
   ====================================================== */

.smwf-faq {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    background: #fff;
}

.smwf-faq h3 {
    margin: 0 0 10px;
}

.smwf-faq__item+.smwf-faq__item {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.smwf-faq__item h4 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.smwf-faq__item p {
    margin: 0;
    opacity: .9;
}

.smwf-receipt-card__contact {
    margin-top: 14px;
}

.smwf-receipt-card__contact-note {
    margin: 8px 0 0;
    opacity: .8;
    font-size: .95em;
}

/* ======================================================
   17) Hide page title spacing if you use the class hook
   ====================================================== */

.smwf-no-title .ct-page-title,
.smwf-no-title .page-header,
.smwf-no-title .entry-header {
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* =========================================
   SMWF About (Donate System-aligned)
========================================= */

/* =========================================
   SMWF About (Donate System-aligned) — REVISED
   Goal: About hero + sections follow the same layout rhythm
========================================= */

/* ======================================================
   SMWF About — Stacked Layout (Donate Hub aligned)
   Copy/Paste Patch
   - Uses the same stacked-card rhythm as “Where your gift goes”
   - Desktop stays STACKED (no multi-column grids)
   ====================================================== */

/* Scope About vars locally (do NOT use :root for About tokens) */
.smwf-about {
    --smwf-about-max: var(--smwf-stack-max);
}

/* Constrain About page content to the stacked column */
.smwf-about .smwf-donate-header.smwf-about-hero,
.smwf-about .smwf-about-section__head,
.smwf-about .smwf-about-accordion,
.smwf-about .smwf-about-grid,
.smwf-about .smwf-about-video,
.smwf-about .smwf-about-bottom-cta {
    max-width: var(--smwf-about-max);
    margin-left: auto;
    margin-right: auto;
}

/* HERO alignment + rhythm */
.smwf-about .smwf-donate-header.smwf-about-hero {
    margin-bottom: 22px;
    text-align: left;
}

.smwf-about .smwf-donate-title {
    margin: 6px 0 10px;
    letter-spacing: -0.02em;
}

.smwf-about .smwf-donate-subtitle {
    max-width: 64ch;
    margin: 0;
    line-height: 1.55;
    color: var(--smwf-ink-soft, rgba(0, 0, 0, .62));
}

.smwf-about .smwf-about-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    justify-content: flex-start;
}

/* Mobile: allow centered hero */
@media (max-width: 899px) {
    .smwf-about .smwf-donate-header.smwf-about-hero {
        text-align: center;
        margin-bottom: 18px;
    }

    .smwf-about .smwf-donate-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .smwf-about .smwf-about-hero__cta {
        justify-content: center;
    }
}

/* SECTION rhythm (stacked) */
.smwf-about .smwf-about-section {
    margin-top: 34px;
}

.smwf-about .smwf-about-section__head {
    margin-bottom: 14px;
}

.smwf-about .smwf-about-h2 {
    margin: 0 0 8px;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.smwf-about .smwf-about-lead {
    margin: 0;
    line-height: 1.5;
    color: var(--smwf-ink-soft, rgba(0, 0, 0, .62));
}

/* Accordion (mobile) — matches donate cards */
.smwf-about .smwf-about-accordion {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.smwf-about .smwf-about-acc {
    border-radius: var(--smwf-radius, 14px);
    border: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
    box-shadow: var(--smwf-shadow, 0 10px 22px rgba(0, 0, 0, .06));
    overflow: hidden;
}

.smwf-about .smwf-about-acc__summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.smwf-about .smwf-about-acc__summary::-webkit-details-marker {
    display: none;
}

.smwf-about .smwf-about-acc__title {
    display: block;
    font-size: 16px;
    letter-spacing: -0.01em;
}

.smwf-about .smwf-about-acc__body {
    padding: 0 14px 14px;
    line-height: 1.55;
    opacity: 0.95;
}

/* Accordion icon */
.smwf-about .smwf-about-acc__icon {
    width: 12px;
    height: 12px;
    position: relative;
    flex: 0 0 12px;
}

.smwf-about .smwf-about-acc__icon::before,
.smwf-about .smwf-about-acc__icon::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    background: currentColor;
    border-radius: 1px;
}

.smwf-about .smwf-about-acc__icon::before {
    width: 12px;
    height: 2px;
}

.smwf-about .smwf-about-acc__icon::after {
    width: 2px;
    height: 12px;
}

.smwf-about .smwf-about-acc[open] .smwf-about-acc__icon::after {
    display: none;
}

/* Desktop: STACKED cards (1 column) */
.smwf-about .smwf-about-grid {
    display: none;
    margin-top: 14px;
    gap: 16px;
}

@media (min-width: 900px) {
    .smwf-about .smwf-about-accordion {
        display: none;
    }

    .smwf-about .smwf-about-grid {
        display: grid;
        grid-template-columns: 1fr;
        /* stacked */
    }
}

/* About cards (match donate card surface) */
.smwf-about .smwf-about-card,
.smwf-about .smwf-about-video,
.smwf-about .smwf-about-cta-card {
    border-radius: var(--smwf-radius, 14px);
    border: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
    box-shadow: var(--smwf-shadow, 0 10px 22px rgba(0, 0, 0, .06));
}

.smwf-about .smwf-about-card {
    padding: 18px;
}

.smwf-about .smwf-about-video {
    padding: 12px;
}

.smwf-about .smwf-about-cta-card {
    padding: 18px;
}

/* Card headings + copy */
.smwf-about .smwf-about-h3 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.smwf-about .smwf-about-card p,
.smwf-about .smwf-about-cta-card p {
    margin: 0;
    line-height: 1.55;
    color: var(--smwf-ink-soft, rgba(0, 0, 0, .62));
}

/* Video embed stays responsive */
.smwf-video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 14px;
    overflow: hidden;
}

.smwf-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* =========================================================
   SMWF Legal Pages (Terms, Privacy, Policies)
   - Mobile-first
   - Reuses smwf-donate-container width system
========================================================= */

.smwf-legal {
    padding: clamp(24px, 4vw, 48px) 0;
}

/*.smwf-legal__container {
    /* uses .smwf-donate-container already; keep as a hook 
}
*/

.smwf-legal__header {
    text-align: left;
    margin-bottom: 18px;
}

.smwf-legal__kicker {
    margin: 0 0 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
    opacity: 0.9;
}

.smwf-legal__title {
    margin: 0 0 10px;
    line-height: 1.12;
    letter-spacing: -0.02em;
    font-size: clamp(28px, 4vw, 40px);
}

.smwf-legal__subtitle {
    margin: 0 0 12px;
    max-width: 70ch;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
}

.smwf-legal__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    opacity: 0.9;
}

.smwf-legal__meta-sep {
    opacity: 0.6;
}

/* TOC */
.smwf-legal__toc {
    margin: 18px 0 22px;
    padding: 14px 14px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(0, 0, 0, 0.02);
}

.smwf-legal__toc-title {
    margin: 0 0 10px;
    font-weight: 700;
    font-size: 14px;
}

.smwf-legal__toc-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.smwf-legal__toc-list a {
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.smwf-legal__toc-list a:hover,
.smwf-legal__toc-list a:focus-visible {
    border-bottom-color: currentColor;
}

/* Body cards */
.smwf-legal__body {
    display: grid;
    gap: 14px;
}

.smwf-legal__card {
    padding: 16px 14px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(255, 255, 255, 0.75);
    scroll-margin-top: 100px;
    /* helps when jumping to anchors */
}

.smwf-legal__h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.smwf-legal__card p {
    margin: 0 0 10px;
    line-height: 1.65;
}

.smwf-legal__card p:last-child {
    margin-bottom: 0;
}

.smwf-legal__list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

/* Callout */
.smwf-legal__callout {
    margin-top: 12px;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.03);
}

.smwf-legal__callout-title {
    margin: 0 0 6px;
    font-weight: 700;
    font-size: 14px;
}

.smwf-legal__callout-body {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Footer CTA */
.smwf-legal__footer {
    margin-top: 22px;
}

.smwf-legal__footer-card {
    display: grid;
    gap: 14px;
    padding: 16px 14px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(0, 0, 0, 0.02);
    align-items: center;
}

.smwf-legal__footer-title {
    margin: 0 0 6px;
    font-weight: 800;
    font-size: 16px;
}

.smwf-legal__footer-text {
    margin: 0;
    line-height: 1.6;
    opacity: 0.95;
}

.smwf-legal__footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Desktop refinements */
@media (min-width: 900px) {
    .smwf-legal__toc-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .smwf-legal__card {
        padding: 18px 18px;
    }

    .smwf-legal__footer-card {
        grid-template-columns: 1.2fr 0.8fr;
        padding: 18px 18px;
    }

    .smwf-legal__footer-actions {
        justify-content: flex-end;
    }
}