﻿body {
    margin: 0px;
    font-family: var(--app-theme-font);
}


#ceApp-container {
    margin-right: auto;
    margin-left: auto;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

@media (min-width: 576px) {

    #ceApp-container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {

    #ceApp-container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {

    #ceApp-container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {

    #ceApp-container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {

    #ceApp-container {
        max-width: 1320px;
    }
}

#ceApp {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

@media (max-width: 500px) {

    #ceApp {
        padding: 0px;
        width: 100%;
    }
}

#logoContainer {
    background: white;
    padding: 20px;
    text-align: center;
}

#orgLogo {
    max-width: 250px;
    vertical-align: middle;
    max-height: 85px;
}

#appContainer {
    background-color: var(--app-theme-primary-color);
    margin-top: 40px;
    padding: 48px;
    margin-left: auto;
    margin-right: auto;
}

.ce-forms input[type="text"], .ce-forms select,
#formLoginModal input[type="text"] {
    width: 100%;
    line-height: 24px;
    font-size: 16px;
    font-weight: 400;
    padding: 6px 12px;
    border: 1px solid var(--app-theme-input-border-color);
    background-color: #fff;
    box-sizing: border-box;
    border-radius: 5px;
}

.ce-forms select {
    height: 38px;
}

.ce-formSections,
#formLoginModal .ce-formLoginContainer {
    border: 0px;
}

    .ce-formSections legend {
        color: var(--app-theme-legend-font-color);
        margin-bottom: 8px;
        margin-top: 12px;
        padding: 0;
        font-size: 24px;
        font-weight: 600;
        text-align: left;
    }

.ce-formRows {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.ce-formFieldContainers,
.ce-formLoginRow {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
    width: 100%;
}

.ce-formFieldWrappers,
.ce-formLoginFieldWrapper {
    display: flex;
    gap: 5px;
    align-items: center;
}

.ce-amountAskStringButtonContainers {
    width: 100%;
}


#amountAskStringsContainer .ce-radioButtonLists {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    justify-content: center;
}


    #amountAskStringsContainer .ce-radioButtonLists > span {
        flex: 0 0 calc(25% - 16px);
    }

    #tributeRecipientToggleRow .ce-radioButtonLists label,
    #amountAskStringsContainer .ce-radioButtonLists label,
    .ce-radioButtonLists.isPaymentType_id label,
    .ce-radioButtonLists.ce-recurringFrequency label {
        border: none;
        border-radius: 10px;
        color: var(--app-theme-button-font-color);
        background: white;
        box-shadow: 0 0 5px rgba(51,63,69,.25);
        padding: 14px 16px;
        font-size: 28px;
        font-weight: 600;
        display: block;
        cursor: pointer;
        text-align: center;
    }

    #tributeRecipientToggleRow .ce-radioButtonLists input,
    #amountAskStringsContainer .ce-radioButtonLists input,
    .ce-radioButtonLists.isPaymentType_id input,
    .ce-radioButtonLists.ce-recurringFrequency input {
        display: none;
    }

        #tributeRecipientToggleRow .ce-radioButtonLists input[type="radio"]:checked + label,
        #tributeRecipientToggleRow .ce-radioButtonLists input[type="radio"]:hover + label,
        #amountAskStringsContainer .ce-radioButtonLists input[type="radio"]:checked + label,
        #amountAskStringsContainer .ce-radioButtonLists input[type="radio"]:hover + label,
        .ce-radioButtonLists.isPaymentType_id input[type="radio"]:checked + label,
        .ce-radioButtonLists.isPaymentType_id input[type="radio"]:hover + label,
        .ce-radioButtonLists.ce-recurringFrequency input[type="radio"]:checked + label,
        .ce-radioButtonLists.ce-recurringFrequency input[type="radio"]:hover + label,
        .ce-forms input[type="text"].ce-amounts:hover {
            color: var(--app-theme-button-font-color) !important;
            background-color: var(--app-theme-button-color) !important;
        }

#tributeRecipientToggleRow .ce-radioButtonLists,
.ce-radioButtonLists.isPaymentType_id {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    justify-content: center;
}

    #tributeRecipientToggleRow .ce-radioButtonLists > span,
    .ce-radioButtonLists.isPaymentType_id > div {
        flex: 1 1 auto;
        display: block;
    }

    #tributeRecipientToggleRow .ce-radioButtonLists label,
    .ce-radioButtonLists.isPaymentType_id label {
        padding: 15px 20px;
        font-size: 14px;
        gap: 10px !important;
        justify-content: center;
    }

.ce-radioButtonLists.ce-recurringFrequency {
    width: 100%;
    justify-content: center;
    gap: 0px;
}

    .ce-radioButtonLists.ce-recurringFrequency label {
        padding: 15px 20px;
        font-size: 16px;
        font-weight: bold;
        border-radius: 0px;
        line-height: 24px;
    }

    .ce-radioButtonLists.ce-recurringFrequency div:first-child input[type="radio"] + label {
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
    }

    .ce-radioButtonLists.ce-recurringFrequency div:last-child input[type="radio"] + label {
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
    }

.ce-formRows:has(.ce-recurringFrequency) {
    margin-bottom: 30px;
}

.ce-formSections:has(.ce-recurringFrequency) .ce-formSectionLegends {
    font-size: 40px;
    font-weight: 600;
    line-height: 48px;
    margin-bottom: 50px;
    text-align: center;
}

.ce-forms fieldset:first-of-type {
    margin-top: 20px;
}

.ceFormFooterButtonContainers {
    text-align: center;
}

.ce-forms input[type="text"].ce-amounts {
    margin: 0 8px;
    padding: 14px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 28px;
    text-align: center;
    color: var(--app-theme-button-font-color);
}

.ce-formRows:has(.ce-amounts) {
    display: block;
}

.ce-formFieldCurrencyPrefixes {
    display: none;
}

.ce-dropDownLists.ce-currencies {
    margin: 12px 8px 0px 8px;
}

/*override border color on inputs for error*/
.error {
    border-color: #e84c3d !important;
    color: #e84c3d !important;
}

.ce-freeGiftItemImagesContainers img {
    max-width: 250px;
}

#contactAddressSingleLineEntryRowShowDetailsLink {
    background: none !important;
    border: none;
    padding: 0 !important;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 400;
    font-size: 16px;
    margin-top: 12px;
    text-transform: capitalize;
    color: #037bc0;
}

    #contactAddressSingleLineEntryRowShowDetailsLink:hover {
        color: #294066; 
    }

    .ce-singleLineAddressFieldWrappers {
        flex-wrap: wrap;
    }