/*
 * Dona fund chooser — parish-centred presentation.
 * Payment destinations and fund behaviour remain settings-driven.
 */
.parish-donate-funds-shortcode #donate-now.section {
    padding-top: clamp(2rem, 3.5vw, 3rem);
    padding-bottom: clamp(1.15rem, 2vw, 1.6rem);
}

.parish-donate-funds-shortcode .donation-card--funds {
    max-width: 980px;
    margin-inline: auto;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    overflow: visible;
}

.parish-donate-funds-shortcode .donation-card--funds > .card-content {
    padding: 0 1rem;
}

.parish-donate-funds-shortcode .donation-card--funds .section-title {
    max-width: 720px;
    margin: 0 auto .65rem;
    color: var(--midnight, #0f2a4c);
    font-size: clamp(1.9rem, 2.7vw, 2.35rem);
    line-height: 1.1;
    letter-spacing: -.012em;
}

.parish-donate-funds-shortcode .donation-card--funds .section-title::after {
    width: 46px;
    height: 2px;
    margin-top: .7rem;
}

.parish-donate-funds-shortcode .donation-funds-intro {
    max-width: 650px;
    margin: 0 auto 1.7rem;
    color: var(--muted, #6b7280);
    font-size: 1rem;
    line-height: 1.65;
    text-align: center;
}

.parish-donate-funds-shortcode .donation-fund-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 880px;
    margin-inline: auto;
}

.parish-donate-funds-shortcode .donation-fund-square {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    min-width: 0;
    min-height: 132px;
    padding: 1rem 1.15rem;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: start;
    gap: .9rem;
    overflow: hidden;
    border: 1px solid rgba(15, 42, 76, .09);
    border-radius: 14px;
    background: #ffffff;
    color: var(--midnight, #0f2a4c);
    text-align: left;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    box-shadow: 0 8px 26px rgba(15, 42, 76, .055);
    transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}

.parish-donate-funds-shortcode .donation-fund-square::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gold, #c7a34b);
    opacity: .42;
}

@media (hover: hover) and (pointer: fine) {
    .parish-donate-funds-shortcode .donation-fund-square:hover {
        border-color: rgba(199, 163, 75, .42);
        background: #fffdf8;
        box-shadow: 0 14px 30px rgba(15, 42, 76, .095);
    }
}

.parish-donate-funds-shortcode .donation-fund-square:focus-visible {
    outline: 3px solid rgba(199, 163, 75, .38);
    outline-offset: 3px;
    border-color: var(--gold, #c7a34b);
}

.parish-donate-funds-shortcode .donation-fund-icon-badge {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(199, 163, 75, .42);
    border-radius: 50%;
    background: #fffdf8;
    color: var(--midnight, #0f2a4c);
}

.parish-donate-funds-shortcode .donation-fund-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 1.65rem;
}

.parish-donate-funds-shortcode .donation-fund-icon--svg,
.parish-donate-funds-shortcode .donation-fund-icon--svg svg {
    width: 24px;
    height: 24px;
}

.parish-donate-funds-shortcode .donation-fund-icon--svg svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.parish-donate-funds-shortcode .donation-fund-icon--priest-svg,
.parish-donate-funds-shortcode .donation-fund-icon--priest-svg svg {
    width: 24px;
    height: 24px;
}

.parish-donate-funds-shortcode .donation-fund-icon--priest-svg svg {
    display: block;
}

.parish-donate-funds-shortcode .donation-fund-icon--illustrated-svg,
.parish-donate-funds-shortcode .donation-fund-icon--illustrated-svg svg {
    width: 30px;
    height: 30px;
}

.parish-donate-funds-shortcode .donation-fund-icon--illustrated-svg svg {
    display: block;
}

.parish-donate-funds-shortcode .donation-fund-icon--colour {
    font-size: 1.72rem;
    filter: saturate(.9);
}

.parish-donate-funds-shortcode .donation-fund-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.parish-donate-funds-shortcode .donation-fund-label {
    display: block;
    margin: .05rem 0 .4rem;
    color: var(--midnight, #0f2a4c);
    font-weight: 750;
    font-size: 1.02rem;
    line-height: 1.28;
}

.parish-donate-funds-shortcode .donation-fund-description {
    display: block;
    max-width: 28rem;
    color: var(--muted, #6b7280);
    font-size: .9rem;
    line-height: 1.5;
}

.parish-donate-funds-shortcode .donation-fund-cta {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: auto;
    padding-top: .6rem;
    color: var(--midnight, #0f2a4c);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: none;
}

.parish-donate-funds-shortcode .donation-fund-cta span {
    color: var(--gold, #c7a34b);
    font-size: 1rem;
    transition: transform .18s ease;
}

@media (hover: hover) and (pointer: fine) {
    .parish-donate-funds-shortcode .donation-fund-square:hover .donation-fund-cta span {
        transform: translateX(3px);
    }
}

.parish-donate-funds-shortcode .donation-qr-wrap {
    max-width: 760px;
    margin: 1.1rem auto 0;
    padding-top: .85rem;
    border-top: 1px solid rgba(15, 42, 76, .12);
}

.parish-donate-funds-shortcode .donation-qr-intro {
    margin-bottom: .55rem;
    text-align: center;
}

.parish-donate-funds-shortcode .donation-qr-intro p {
    margin: 0;
}

.parish-donate-funds-shortcode .donation-qr-kicker {
    margin-bottom: .16rem !important;
    color: var(--midnight, #0f2a4c);
    font-family: inherit;
    font-size: .9rem;
    font-weight: 750;
}

.parish-donate-funds-shortcode .donation-qr-intro p:not(.donation-qr-kicker) {
    color: var(--muted, #6b7280);
    font-size: .88rem;
    line-height: 1.4;
}

.parish-donate-funds-shortcode .donation-qr-block {
    max-width: 520px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: .95rem;
    padding: .72rem .85rem;
    border: 1px solid rgba(15, 42, 76, .09);
    border-radius: 12px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 4px 14px rgba(15, 42, 76, .03);
}

.parish-donate-funds-shortcode .donation-qr-block img {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    padding: 5px;
    object-fit: contain;
    background: #fff;
    border: 1px solid rgba(15, 42, 76, .09);
    border-radius: 8px;
}

.parish-donate-funds-shortcode .donation-qr-block-text {
    min-width: 0;
}

.parish-donate-funds-shortcode .donation-qr-block-heading {
    margin: 0 0 .12rem;
    color: var(--midnight, #0f2a4c);
    font-family: inherit;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: none;
}

.parish-donate-funds-shortcode .donation-qr-block-text p:not(.donation-qr-block-heading) {
    margin: 0;
    color: var(--muted, #6b7280);
    font-size: .84rem;
    line-height: 1.4;
}

@media (max-width: 760px) {
    .parish-donate-funds-shortcode .donation-fund-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .parish-donate-funds-shortcode .donation-fund-square {
        min-height: 132px;
    }
}

@media (max-width: 600px) {
    .parish-donate-funds-shortcode #donate-now.section {
        padding-top: 1.65rem;
        padding-bottom: 1.4rem;
    }

    .parish-donate-funds-shortcode .donation-card--funds > .card-content {
        padding: 0 .35rem;
    }

    .parish-donate-funds-shortcode .donation-card--funds .section-title {
        max-width: 20rem;
        font-size: clamp(1.75rem, 7vw, 2.1rem);
    }

    .parish-donate-funds-shortcode .donation-funds-intro {
        margin-bottom: 1.45rem;
        padding-inline: .15rem;
        font-size: .92rem;
        line-height: 1.55;
    }

    .parish-donate-funds-shortcode .donation-fund-grid {
        gap: 10px;
    }

    .parish-donate-funds-shortcode .donation-fund-square {
        min-height: 122px;
        padding: .9rem;
        grid-template-columns: 48px minmax(0, 1fr);
        gap: .8rem;
        border-radius: 12px;
    }

    .parish-donate-funds-shortcode .donation-fund-icon-badge {
        width: 48px;
        height: 48px;
    }

    .parish-donate-funds-shortcode .donation-fund-icon--svg,
    .parish-donate-funds-shortcode .donation-fund-icon--svg svg {
        width: 23px;
        height: 23px;
    }

    .parish-donate-funds-shortcode .donation-fund-label {
        margin-bottom: .25rem;
        font-size: .98rem;
    }

    .parish-donate-funds-shortcode .donation-fund-description {
        font-size: .84rem;
        line-height: 1.42;
    }

    .parish-donate-funds-shortcode .donation-fund-cta {
        padding-top: .55rem;
        font-size: .7rem;
    }

    .parish-donate-funds-shortcode .donation-qr-wrap {
        margin-top: 1rem;
        padding-top: .85rem;
    }

    .parish-donate-funds-shortcode .donation-qr-block {
        gap: .7rem;
        padding: .65rem;
    }

    .parish-donate-funds-shortcode .donation-qr-block img {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }
}

html[data-accessibility-contrast="high"] .parish-donate-funds-shortcode .donation-fund-square,
html[data-accessibility-contrast="high"] .parish-donate-funds-shortcode .donation-qr-block {
    border-color: currentColor;
    box-shadow: none;
}

/* Secondary giving methods: deliberately quieter than the Dona fund chooser. */
.parish-donate-funds-shortcode .donation-other-ways {
    max-width: 880px;
    margin: 1.45rem auto .35rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(15, 42, 76, .12);
}

.parish-donate-funds-shortcode .donation-other-ways-title {
    margin: 0 0 .3rem;
    color: var(--midnight, #0f2a4c);
    font-size: 1.18rem;
    line-height: 1.3;
    text-align: center;
}

.parish-donate-funds-shortcode .donation-other-ways-intro {
    max-width: 620px;
    margin: 0 auto 1rem;
    color: var(--muted, #6b7280);
    font-size: .88rem;
    line-height: 1.5;
    text-align: center;
}

.parish-donate-funds-shortcode .donation-other-ways-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.parish-donate-funds-shortcode .donation-other-way-card {
    padding: 1rem 1.05rem;
    border: 1px solid rgba(15, 42, 76, .09);
    border-radius: 12px;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 4px 14px rgba(15, 42, 76, .025);
}

.parish-donate-funds-shortcode .donation-other-way-card h4 {
    margin: 0 0 .35rem;
    color: var(--midnight, #0f2a4c);
    font-size: 1rem;
    line-height: 1.3;
}

.parish-donate-funds-shortcode .donation-other-way-card > p {
    margin: 0 0 .75rem;
    color: var(--muted, #6b7280);
    font-size: .84rem;
    line-height: 1.5;
}

.parish-donate-funds-shortcode .donation-bank-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem .9rem;
    margin: 0 0 .75rem;
}

.parish-donate-funds-shortcode .donation-bank-summary div { min-width: 0; }
.parish-donate-funds-shortcode .donation-bank-summary dt {
    margin: 0 0 .08rem;
    color: var(--muted, #6b7280);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .035em;
}
.parish-donate-funds-shortcode .donation-bank-summary dd {
    margin: 0;
    color: var(--midnight, #0f2a4c);
    font-size: .82rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.parish-donate-funds-shortcode .donation-other-way-action {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--midnight, #0f2a4c);
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.parish-donate-funds-shortcode .donation-other-way-action span { color: var(--gold, #c7a34b); }
.parish-donate-funds-shortcode .donation-other-way-action:hover,
.parish-donate-funds-shortcode .donation-other-way-action:focus-visible { text-decoration: underline; }
.parish-donate-funds-shortcode .donation-other-way-secondary {
    margin-left: .8rem;
    color: var(--muted, #6b7280);
    font-size: .76rem;
    text-underline-offset: 2px;
}

@media (max-width: 680px) {
    .parish-donate-funds-shortcode .donation-other-ways {
        margin-top: 1.15rem;
        padding-top: 1rem;
    }
    .parish-donate-funds-shortcode .donation-other-ways-grid { grid-template-columns: 1fr; }
    .parish-donate-funds-shortcode .donation-bank-summary { grid-template-columns: 1fr 1fr; }
}

/* Donation impact section — quieter explanatory companion to the fund chooser. */
.parish-donate-funds-shortcode .donation-impact-section {
    padding-top: clamp(.35rem, 1vw, .6rem);
    padding-bottom: clamp(2.6rem, 4vw, 3.7rem);
}

.parish-donate-funds-shortcode .donation-impact-section .section-title {
    margin-bottom: .5rem;
    color: var(--midnight, #0f2a4c);
    font-size: clamp(1.85rem, 2.6vw, 2.3rem);
    line-height: 1.12;
}

.parish-donate-funds-shortcode .donation-impact-section .section-title::after {
    width: 46px;
    height: 2px;
    margin-top: .65rem;
}

.parish-donate-funds-shortcode .donation-impact-intro {
    max-width: 620px;
    margin: 0 auto 1.55rem;
    color: var(--muted, #6b7280);
    font-size: .96rem;
    line-height: 1.6;
    text-align: center;
}

.parish-donate-funds-shortcode .donation-impact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
    max-width: 1080px;
    margin-inline: auto;
}

.parish-donate-funds-shortcode .donation-impact-card {
    min-width: 0;
    padding: .1rem .6rem;
    text-align: center;
}

.parish-donate-funds-shortcode .donation-impact-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto .6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(199, 163, 75, .52);
    border-radius: 50%;
    background: #fffdf7;
    color: var(--midnight, #0f2a4c);
    font-size: 1.25rem;
}

.parish-donate-funds-shortcode .donation-impact-icon-svg,
.parish-donate-funds-shortcode .donation-impact-icon-svg svg {
    width: 22px;
    height: 22px;
}

.parish-donate-funds-shortcode .donation-impact-icon-svg svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.parish-donate-funds-shortcode .donation-impact-icon-colour {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.22rem;
    line-height: 1;
    filter: saturate(.9);
}

.parish-donate-funds-shortcode .donation-impact-card h3 {
    margin: 0 0 .38rem;
    color: var(--midnight, #0f2a4c);
    font-size: 1rem;
    line-height: 1.28;
}

.parish-donate-funds-shortcode .donation-impact-card p {
    max-width: 16rem;
    margin: 0 auto;
    color: var(--muted, #6b7280);
    font-size: .87rem;
    line-height: 1.52;
}

@media (max-width: 820px) {
    .parish-donate-funds-shortcode .donation-impact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.4rem 1rem;
        max-width: 650px;
    }

    .parish-donate-funds-shortcode .donation-impact-card {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    .parish-donate-funds-shortcode .donation-impact-section {
        padding-top: .85rem;
        padding-bottom: 2.35rem;
    }

    .parish-donate-funds-shortcode .donation-impact-intro {
        margin-bottom: 1.2rem;
        padding-inline: .75rem;
        font-size: .9rem;
    }

    .parish-donate-funds-shortcode .donation-impact-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .parish-donate-funds-shortcode .donation-impact-card {
        grid-column: auto;
        max-width: 21rem;
        margin-inline: auto;
        padding-inline: .45rem;
    }
}

html[data-accessibility-contrast="high"] .parish-donate-funds-shortcode .donation-impact-icon {
    border-color: currentColor;
    background: transparent;
}
