﻿/*Braintree Styles*/
.hosted-field {
    height: 50px;
    box-sizing: border-box;
    padding: 12px;
    width: 100%;
    display: inline-block;
    box-shadow: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #dddddd;
    line-height: 0px;
    background: #fcfcfc;
    margin-bottom: 12px;
    background: #fff;
    background-size: 200% 100%;
    background-position: right bottom;
    transition: all 300ms ease-in-out;
}

.hosted-fields--label {
    font-family: OpenSansRegular, "Open Sans", Helvetica, Arial, sans-serif;
    font-size: 15px;
    display: block;
    margin-bottom: 6px;
}

.button-container {
    display: block;
    text-align: center;
}

.button {
    cursor: pointer;
    font-weight: 500;
    line-height: inherit;
    position: relative;
    text-decoration: none;
    text-align: center;
    border-style: solid;
    border-width: 1px;
    border-radius: 3px;
    -webkit-appearance: none;
    -moz-appearance: none;
    display: inline-block;
}

.button--small {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.button--red {
    outline: none;
    background-color: #DE3831;
    border-color: #DE3831;
    color: white;
    transition: all 200ms ease;
}

.button--green:hover {
    background-color: #8bdda8;
    color: white;
}

.braintree-hosted-fields-focused {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) inset, 0 0 5px #006EA5;
    outline: medium none;
    background-position: left bottom;
}

.braintree-hosted-fields-invalid {
    border: 1px solid #dddddd;
}

/*#cvv {
    width: 125px;
}*/

#cardForm {
    max-width: 350px;
}

#postal-code {
    width: 175px;
}

#postwrap {
    float: right;
}

#three {
    width: 100%;
}

#cvvwrap {
    float: left;
}

/*------------------------*/
input#paypal {
    margin: 8px;
}

fieldset.paymentType input {
    display: block;
    width: auto;
    clear: left;
}

input.card_number, input.card_cvv {
    height: 35px;
}

fieldset.paymentType label {
    width: 50%;
    float: left;
    background-color: #fff;
    padding: 10px;
    /*min-height: 65px;*/
    display: inline-block; /*for IE 11 image click*/
}

    fieldset.paymentType label:hover, fieldset.paymentType label:checked, fieldset.paymentType input:checked + label, fieldset.paymentType label {
        background-color: #fff;
        border-color: #fff;
    }

        fieldset.paymentType label.selected {
            background-color: #fff;
            border-color: #ea890d;
            border-width: 2px;
            border-style: solid;
            border-radius: 10px;
        }

fieldset.expiration {
    clear: both;
}

fieldset.paymentType label img {
    display: inline-block;
    pointer-events: none; /*for IE 11 image click*/
}

@media only screen and (max-width:400px) {
    #cardForm {
        padding: 0;
    }
}

@media all and (max-width: 649px) {
    fieldset.paymentType label {
        /*clear: both;*/
        min-height: auto;
        width: 100%;
    }

    fieldset.expiration {
        margin: 10px 0;
    }

    /*input#paypal {
        margin: 7px 8px;
    }*/

    input#venmoButton {
        width: 100%;
        height: auto;
        /*min-height: 35px;*/
    }

    div#paypal-Button {
        width: 100%;
        /*height: 35px;*/
    }

    input#creditPayment {
        width: 100%;
        height: auto;
    }

    fieldset.paymentType .donate_form_payment label {
        display: block;
    }
}

    #creditPayment, #paypal, #venmoButton {
        display: inline-block;
    }

    #creditPaymentLabel, #paypalLabel, #venmoButton {
        display: flex;
        align-items: center;
    }

    /*#btSubmitButton {
        background: #DE3831;
        padding: 15px 25px;
        font-size: 15px;
        display: inline-block;
        color: #fff;
        text-transform: uppercase;
        font-weight: bold;
        -webkit-appearance: none;
        cursor: pointer;
    }*/

    /*#expiration-month {
        float: left;
        width: 48%;
        margin-right: 10px;
    }

    #expiration-year {
        float: left;
        width: 48%;
    }*/


    /*Apple Pay Styles*/
    #applePayButton2 {
        /*width: 169px;*/
        width: 95.5%;
        min-height: 45px;
        float: left;
        display: flex;
        align-items: center;
        margin-left: 10px;
    }

    @supports (-webkit-appearance: -apple-pay-button) {
        .apple-pay-button {
            display: inline-block;
            -webkit-appearance: -apple-pay-button;
            margin: 0 0 0 15px;
            height: 38px;
            float: right;
            font-size: 13px;
            padding: 9px 25px;
            cursor: pointer;
        }

        .apple-pay-button-2 {
            display: inline-block;
            -webkit-appearance: -apple-pay-button;
            /*margin: 0 0 0 15px;*/
            /*height: 38px;*/
            height: 40px;
            width: 169px;
            /*float: left;*/
            /*font-size: 13px;*/
            /*padding: 9px 25px;*/
            cursor: pointer;
        }

        .apple-pay-button-black {
            -apple-pay-button-style: black;
        }

        .apple-pay-button-white {
            -apple-pay-button-style: white;
        }

        .apple-pay-button-white-with-line {
            -apple-pay-button-style: white-outline;
        }

        @media screen and (max-width: 675px) {
            .apple-pay-button {
                display: block;
                width: 100%;
                text-align: center;
                margin: 10px 0;
            }

            .apple-pay-button-2 {
                display: block;
                width: 100%;
                text-align: center;
                margin: 10px 0;
            }
        }
    }

    @supports not (-webkit-appearance: -apple-pay-button) {
        .apple-pay-button {
            display: inline-block;
            background-size: 100% 60%;
            background-repeat: no-repeat;
            background-position: 50% 50%;
            border-radius: 5px;
            padding: 0px;
            box-sizing: border-box;
            min-width: 200px;
            min-height: 32px;
            max-height: 64px;
            cursor: pointer;
        }

        .apple-pay-button-black {
            background-image: -webkit-named-image(apple-pay-logo-white);
            background-color: black;
        }

        .apple-pay-button-white {
            background-image: -webkit-named-image(apple-pay-logo-black);
            background-color: white;
        }

        .apple-pay-button-white-with-line {
            background-image: -webkit-named-image(apple-pay-logo-black);
            background-color: white;
            border: .5px solid black;
        }
    }

    #overlay_review {
        position: absolute !important;
        height: 100%;
        width: 100%;
    }

    #overlay_review {
        -webkit-transform: translateY(-1000%);
        transform: translateY(-1000%);
        -webkit-transition-property: -webkit-transform;
        transition-duration: 0.5s;
    }

        #overlay_review.show-overlay {
            display: block !important;
            -webkit-transform: translateY(0%);
            transform: translateY(0%);
        }

    #overlay_review {
        pointer-events: none;
    }
