﻿.form-checkout {
    max-width: 600px;
    padding: 19px 29px 29px;
    margin: 0 auto 20px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
    -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

    .form-checkout .form-checkout-heading,
    .form-checkout .checkbox {
        margin-bottom: 10px;
    }

    .form-checkout input[type="text"],
    .form-checkout input[type="password"] {
        font-size: 16px;
        height: auto;
        margin-bottom: 15px;
        padding: 7px 9px;
    }

.vcenter {
    display: inline-block;
    vertical-align: middle;
    float: none;
}

.crop-pp {
    overflow: hidden;
}

    .crop-pp img {
        margin: 0px 0px 0px -55px;
    }

/* Checkout styling */
#cardForm {
    height: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

/*--------------------
PANEL FORM
--------------------*/
.panel {
    background: #FFF;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 2px 0 rgba(0, 0, 0, 0.12);
}

.panel__header {
    /* background: #3F51B5;
  color: #FFF;*/
    background: #f3f3f3;
}

.panel__header,
.panel__footer {
    padding: 1em 2em;
}

.panel__footer {
    background: #f3f3f3;
}

.panel__content {
    padding: 1em 2em;
    overflow: hidden;
}

.textfield--float-label {
    width: 50%;
    float: left;
    display: inline-block;
}

.hosted-field--label {
    -webkit-transform: translateY(0.4em);
    transform: translateY(0.4em);
    font-size: 1.125em;
    line-height: 32px;
    -webkit-transition: all .15s ease-out;
    transition: all .15s ease-out;
    display: block;
    width: 100%;
    font-weight: 400;
    overflow: hidden;
    margin-bottom: 0.5em;
}

    .hosted-field--label.label-float, .hosted-field--label.filled, .hosted-field--label.invalid {
        height: 33px;
        margin-bottom: -1px;
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
        font-size: 12px;
        line-height: 15px;
        text-overflow: ellipsis;
        color: #2196F3;
        -webkit-transition: all 0.15s ease-out;
        transition: all 0.15s ease-out;
    }

    .hosted-field--label.filled {
        color: rgba(0, 0, 0, 0.54);
    }

    .hosted-field--label.invalid {
        color: #F44336;
    }

span.icon {
    position: relative;
    top: 0.2em;
    margin-right: 0.2em;
}

svg {
    fill: #333;
}

.hosted-field {
    height: 32px;
    margin-bottom: 1em;
    display: block;
    background-color: transparent;
    color: rgba(0, 0, 0, 0.87);
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.26);
    outline: 0;
    width: 100%;
    font-size: 16px;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    position: relative;
}

.pay-button {
    background: #428bca;
    border: #357ebd;
    color: #fff;
    margin: 0 auto;
    border: 0;
    border-radius: 3px;
    padding: 1em 3em;
    font-size: 1em;
    text-transform: uppercase;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 2px rgba(0, 0, 0, 0.2);
}

/*--------------------
BT HOSTED FIELDS SPECIFIC 
--------------------*/
.braintree-hosted-fields-focused {
    border-bottom: 2px solid #3F51B5;
    -webkit-transition: all 200ms ease;
    transition: all 200ms ease;
}

.braintree-hosted-fields-invalid {
    border-bottom: 2px solid #E91E63;
    -webkit-transition: all 200ms ease;
    transition: all 200ms ease;
}
/*---------------------
BT 3DS SPECIFIC
---------------------*/
#modal {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    height: 100vh;
    width: 100vw;
    z-index: 100;
}

.bt-modal-frame {
    height: 480px;
    width: 440px;
    margin: auto;
    background-color: #eee;
    z-index: 2;
    border-radius: 6px;
}

.bt-modal-body {
    height: 400px;
    margin: 0 20px;
    background-color: white;
    border: 1px solid lightgray;
}

.bt-modal-header, .bt-modal-footer {
    height: 40px;
    text-align: center;
    line-height: 40px;
}

.bt-mask {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: black;
    opacity: 0.8;
}
/*---------------------
Media Queries
----------------------*/
@media (max-width: 600px) {
    html {
        overflow: auto;
    }

    #cardForm {
        height: auto;
        margin: 2em;
        font-size: 13px;
    }

    .panel {
        width: 100%;
    }

    .textfield--float-label {
        width: 100%;
        float: none;
        display: inline-block;
    }

    .pay-button {
        width: 100%;
    }
}
