.donation-content .crm-option-label-pair.highlight label,
.donation-content .crm-option-label-pair label {
    border: 1px solid #ccc;
    background: #fafafa;
    letter-spacing: 2px;
    padding: 12px;
    display: block;
}
.donation-content input[type="radio"] {
    appearance: none;
    position: absolute;
    visibility: hidden;
}
.donation-content .crm-option-label-pair.highlight label,
.donation-content .price-set-option-content:hover label,
#crm-container.crm-public .other_amount-content input:focus,
#crm-container.crm-public .other_amount-content input.crm.form-text.valid {
    background: #BF162E;
    color: #fff;
    border-color: #BF162E;
}
#crm-container.crm-public .crm-contribution-main-form-block .price-set-row .highlight .crm-price-amount-label,
#crm-container.crm-public .crm-contribution-main-form-block .price-set-row .price-set-option-content:hover .crm-price-amount-amount,
#crm-container.crm-public .crm-contribution-main-form-block .price-set-row .price-set-option-content:hover .crm-price-amount-label {
    color:#fff !important;
}
#priceset-div input.crm-form-radio + label,
#priceset-div input.crm-form-checkbox + label {
    margin-left: 0;
}
#priceset-div div.crm-container .crm-form-radio+label,
#priceset-div div.crm-container .crm-form-checkbox+label {
    padding-left: 0;
}
.crm-public-form-item input.crm-form-radio + label {
    margin:0 10px;
}
.select2-container .select2-choice {
    height: auto;
    width: 100%;
    padding: 12px !important;
    margin: 6px 0 4px;
    border: 1px solid #808080;
    background: #fafafa;
    color: #000;
    font-family: sans-serif;
    font-size: 12px;
    line-height: normal;
    box-sizing: border-box;
    border-radius: 2px;
}
.crm-container input.crm-form-text,
#crm-container.crm-public input[type="text"],
#crm-container.crm-public input[type="email"],
#crm-container.crm-public select {
    width: 100%;
    padding: 12px !important;
    margin: 6px 0 4px;
    border: 1px solid #808080;
    background: #fafafa;
    color: black;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    line-height: normal;
    box-sizing: border-box;
    border-radius: 2px;
    height:auto;
}
.btn-primary,
.crm-container .crm-submit-buttons .btn-primary,
.crm-container button.default,
.crm-container #crm-submit-buttons.crm-submit-buttons input.crm-form-submit:not(.cancel),
.crm-container .crm-submit-buttons .crm-button input.crm-form-submit:not(.cancel),
.crm-container .crm-button.crm-i-button input.crm-form-submit {
    color: #fff;
    background-color: #BF162E;
    border-color: #BF162E;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    border-radius: 0;
    padding: 9px 15px;
    text-shadow: none;
    font-size: 18px;
}
/* fix contribution submit button focus */
.crm-container .crm-submit-buttons input.btn-primary:active,
.crm-container .crm-submit-buttons input.btn-primary:hover,
.crm-container .crm-submit-buttons input.btn-primary:focus {
    background-color: #BF162E;
    border-color: #BF162E;
}
.crm-container .crm-button {
    text-shadow: none;
    background: none;
    border: none;
}
.btn-primary:hover {
    opacity: .8;
}

.crm-container #priceset-div .donation-content,
#crm-container.crm-public .other_amount-section .content.other_amount-content input {
    display: flex;
    flex-flow: row wrap;
    margin: 0;
    align-items: center;
    justify-content: space-between;
    align-content: center;
    text-align: center;
}
.donation-content .price-set-row,
#crm-container.crm-public .content.donation-content .crm-section.other_amount-section {
    width: 33%;
    width: calc(1/3*100% - (1 - 1/3) * 10px);
}
.crm-contribution-main-form-block .donation-content .price-set-row .price-set-option-content {
    padding: 0 !important;
    line-height: normal !important;
    border-radius: 0 !important;
    border: none !important;
    width: 100% !important;
}
#priceset div.crm-container .crm-form-radio+label,
#priceset div.crm-container .crm-form-checkbox+label {
    padding-left: 0;
    border: 1px solid #808080;
    background: #fafafa;
    width: 100%;
    display: block;
    margin: 0;
    padding:12px;
}
.crm-contribution-main-form-block .donation-content .price-set-row .price-set-option-content.highlight {
    border:none;
}

.select2-container .select2-choice .select2-arrow { background:none; border: none;}

.billing_name_address-group legend { display:none !important;}
@media screen and (min-width: 768px) {
    #crm-container .crm-section .label {
        float: none !important;
        width: 100% !important;
        text-align: left !important;
    }
    #crm-container.crm-public .crm-section .content, 
    #crm-container .crm-section .content {
        margin-left:0 !important;
    }
    .billing_mode-section {
        display: flex;
        flex-wrap: wrap;
    }

    .credit_card_type-section,
    .credit_card_number-section {
        width: 100%;
    }
    .cvv2-section { width:33.3333% }
    .crm-container .cvv2-icon { 
        width:70px;
        padding-left: 5px;
    }
    .cvv2-section .content,
    .credit_card_exp_date-section .content {
        display:flex;
        align-items: center;
     }
    .credit_card_exp_date-section { width:66.66666%; }
    .credit_card_exp_date-section label { padding-left:20px; }
    .credit_card_exp_date-section #credit_card_exp_date_m {
        margin-left:20px !important;
        margin-right: 20px !important;
     }
}
div.crm-container form .select2-container {
    width: 100% !important;
}

/* Reduce padding between CC fields and "add a note" */
#crm-container.crm-public .credit_card_info-section {
    margin-bottom: 0;
}

/* mitigate weird bug with empty divs, taking space on mobile */
#crm-container.crm-public .credit_card_info-section > .crm-section {
    margin: 0;
}

@media screen and (max-width:590px) {
    .donation-content .price-set-row,
    #crm-container.crm-public .content.donation-content .crm-section.other_amount-section {
        width: 50%;
        padding: 5px;
    }
}

.crm-section.is_recur-section .content {
    font-size: 0 !important;
    padding: 0 !important;
    margin-bottom: 40px;
}

.crm-section.is_recur-section .content input[type="checkbox"] {
    -webkit-appearance: none;
    background-color: #fafafa; /* gray */
    background-color: #BF162E; /* red */
    border: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05);
    padding: 9px;
    border-radius: 3px;
    display: inline-block;
    width: 100%;
    height: 48px;
    margin-top: 0;
}
.crm-section.is_recur-section .content input[type="checkbox"]:active,
.crm-section.is_recur-section .content input[type="checkbox"]:checked:active,
.crm-section.is_recur-section .content input[type="checkbox"]:checked,
.crm-section.is_recur-section .content input[type="checkbox"]:hover {
    border: 1px solid #BF162E;
    background:#BF162E;
}
.crm-section.is_recur-section .content input[type="checkbox"]:checked{
    background-color: #BF162E; /* dark gray background when checked */
}
.crm-section.is_recur-section .content input[type="checkbox"]:disabled:not(:checked),
.crm-section.is_recur-section .content input[type="checkbox"]:disabled:checked{
    box-shadow: none;
    border-color: #bbb;
    background-color: #d9d9d9;
}
.crm-section.is_recur-section .content input[type="checkbox"]:active + label,
.crm-section.is_recur-section .content input[type="checkbox"]:checked:active + label,
.crm-section.is_recur-section .content input[type="checkbox"]:checked + label,
.crm-section.is_recur-section .content input[type="checkbox"]:hover + label {
    color:#fff;
}
.crm-section.is_recur-section #recurHelp {
    font-size: 14px;
    position: absolute;
}
.crm-section.is_recur-section input.crm-form-checkbox + label {
    margin: 0;
    position: absolute;
    top: 13px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 20px;
    width: 100%;
    font-weight: bold;
    text-align: center;
    line-height: 1;
    letter-spacing: 2px;
}

@media only screen and (max-width: 640px) {
    .page-header {
        font-size: 26px;
    }
    #intro_text h1 {
        font-size: 20px;
    }
}

/* mobile updates (?) */
@media screen and (max-width:620px) {
    .crm-container input[type="radio"] {
        color: #808080;
        width: 15px;
        margin-top: -3px;
        height: 15px;
        border: 1px solid #333;
        border-radius:50%;
    }
}

/* Other Amount input=type field, hide the spinners */
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
input[type=number] {
  -moz-appearance: textfield !important;
}

/* fix width of state and country drop-down select boxes that are not constrained by parent divs */
.crm-container.crm-public .select2-container * { box-sizing: border-box; }

/* add space above "gift amount" */
form #priceset .donation-section .label { margin-top: 2.0988em; }

/* Start customizations to 'Other Amount' field */
/* Set the width of the input box for 'Other Amount' on the main donation page. */
.page-civicrm-contribute .other_amount-section .other_amount-content input {
    background-color: #fafafa;
    margin-top: 0px;
    border-color: rgb(153, 153, 153);
}
#crm-container.crm-public .content.donation-content .crm-section.other_amount-section {
    margin: 0;
}
.other_amount-content label  {
    visibility: hidden;
} 
#crm-container.crm-public .other_amount-section .content.other_amount-content {
    width: 100%;
    padding-top: 0;
    margin-bottom: 10px;
}
#crm-container.crm-public .other_amount-section .content.other_amount-content input {
    border-color: #ccc;
    text-align: center;
    font-weight: bold;
}
.other_amount-content input::placeholder {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: bold;
    text-align: center;
    color: black;
}
.other_amount-content input:focus::placeholder {
    color: #fafafa;
}
#crm-container.crm-public .other_amount-section .content.other_amount-content input:focus,
#crm-container.crm-public .other_amount-section .content.other_amount-content input:not(:focus).valid {
    background-color: #BF162E;
    color: #fafafa;
}

/* Change the color and shape of the radio buttons One-Time/Monthly */
#priceset-div .is_recur_radio-section .radiobuttons-form-radios-as-buttons #crm-radio-is_recur_radio-wrapper.crm-radio-wrapper.selected {
    background-color: #BF162E;
}
    
.CRM_Contribute_Form_Contribution_Main #priceset-div .is_recur_radio-section .radiobuttons-form-radios-as-buttons #crm-radio-is_recur_radio-wrapper.crm-radio-wrapper {
    border-radius: 0px;
}

#amount_sum_label {
    text-transform: uppercase;
    color: rgb(87, 87, 87);
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    letter-spacing: 2px;

}

#pricevalue {
    border-top: 1px dashed #cccccc;
    margin-top: 10px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    padding-bottom: 10px;
}

label[for="billing-payment-block"] {
    letter-spacing: 2px !important;
    padding-bottom: 10px;
    color: rgb(87, 87, 87);
}

#crm-payment-js-billing-form-container {
    border-top: 1px dashed #ccc;
    padding-top: 20px;
}

@media (min-width: 600px) {
  .radiobuttons-form-radios-as-buttons #crm-radio-payment_processor_id-wrapper {
    width: 390px !important;
  }
}
