#MainLayout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 800px) {
    #MainLayout {
        grid-template-columns: 1fr;
    }
}



#FundsContainer, 
#FundsContainer > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    transition: all 1s;
}

.fund_card {
    padding: 0.5rem 1rem;
    display: grid;
    grid-template-columns: 50px 1fr;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    background-color: var(--wa-form-control-background-color);
    border-color: var(--wa-form-control-border-color);
    border-radius: var(--wa-form-control-border-radius);
    border-style: var(--wa-form-control-border-style);
    border-width: var(--wa-form-control-border-width);
}

input[type='radio']:disabled + .fund_card {
    cursor: not-allowed !important;
    opacity: 0.5;
}

.fund_card .image_wrapper {
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    overflow: hidden;
    margin: 0 auto;
    grid-row: span 2;
    align-self: center;
}

.fund_card img {
    height: 100%;
}

.fund_card .title {
    font-family: var(--serif);
    font-size: 1.5rem;
}

input[name='fund'] {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.collapseable-radio-group:not(.closed) [type='radio']:checked + .fund_card {
    border-color: var(--wa-form-control-activated-color);
    background-color: var(--wa-color-brand-fill-quiet);
}

input[type='radio']:hover:not(:disabled) + .fund_card,
input[type='radio']:focus:not(:disabled) + .fund_card {
    background-color: color-mix(in srgb, var(--wa-color-surface-default) 95%, var(--wa-color-mix-hover));
}

.fund_card_wrapper {
    display: relative;
}

.section_wrapper {
    border: 1px solid rgb(230, 230, 230);
    border-radius: 5px;
}

.section_wrapper .section_header {
    padding: 1rem 1rem 0 1rem;
}

.section_wrapper .section_header h4 {
    margin: 0;
    font-weight: bold;
}

.section_wrapper .section_content {
    padding: 0.5rem 1rem 1rem 1rem;
}




#AmountSection.open .summary,
#FrequencySection.open .summary {
    display: none !important;
}

#AmountSection.closed .active,
#FrequencySection.closed .active {
    display: none !important;
}

.collapseable-radio-group.closed .collapseable-radio-button:has(input:not(:checked)) {
    display: none;
}


.error_message {
    color: red;
    font-size: 0.8rem;
    font-weight: bold;
}

#DonationForm:not(.show_error_messages) .error_message, 
#DonationForm.show_error_messages .error_message:empty {
    display: none;
}




.hidden {
    display: none;
}




#EmailAddress::part(label) {
    font-weight: normal;
    margin-bottom: 0.25rem;
}

#EmailAddress {
    margin-top: 0.75rem;
    margin-right: 8px;
}

#EmailAddress[aria-valid="false"] {
    color: #df1b41;
    border-color: #df1b41;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.03), 0px 3px 6px rgba(0, 0, 0, 0.02), 0 0 0 1px #df1b41;
}

.email_address_error {
    margin-top: 0.25rem;
    color: #df1b41;
    font-size: 0.93rem;
}