﻿
/**
 * store.css
 * Stripe Payments Demo. Created by Romain Huet (@romainhuet).
 */

body.checkout {
    background: white !important;
}

/* Overall Container */

#main {
    width: 100%;
    height: 100vh;
    text-align: center;
    transition: width 0.3s ease-in-out;
}

    #main.checkout:not(.success):not(.error) {
        width: calc(100% - 450px);
    }

/* Header */

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    height: 80px;
    background: #fff url(/images/logo.svg) center center no-repeat;
    border-bottom: 1px solid #f3f3ff;
}

    header a.shop,
    header a.github {
        margin: 30px;
        font-size: 13px;
        font-weight: 500;
        color: #666ee8;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        text-decoration: none;
    }

    header a.github {
        padding-left: 20px;
        background: url(/images/github.svg) left center no-repeat;
    }

    header a:hover {
        text-decoration: underline;
    }

/* Checkout */

#checkout {
    max-width: 480px;
    margin: 0 auto;
    padding: 30px 0;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s linear 0.5s;
}

#main.checkout #checkout {
    visibility: visible;
    opacity: 1;
}

section {
    display: flex;
    flex-direction: column;
    position: relative;
    text-align: left;
}

h1 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 500;
}

h2 {
    margin: 15px 0;
    color: #32325d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 13px;
    font-weight: 500;
}

/* Payment Request */

#payment-request {
    visibility: hidden;
    opacity: 0;
    min-height: 100px;
    padding: 20px 0;
    transition: visibility 0s, opacity 0.3s ease-in;
}

    #payment-request.visible {
        visibility: visible;
        opacity: 1;
    }

#payment-form {
    margin: 0 -30px;
    padding: 20px 30px 30px;
    border-radius: 4px;
    border: 1px solid #e8e8fb;
}

/* Form */

fieldset {
    margin-bottom: 5px;
    background: #fff;
    /*box-shadow: 0 1px 3px 0 rgba(50, 50, 93, 0.15), 0 4px 6px 0 rgba(112, 157, 199, 0.15);*/
    border-radius: 4px;
    border: none;
  
}

    fieldset span {
        color: black;
    }

    fieldset label {
        position: relative;
        display: flex;
        flex-direction: row;
        height: 42px;
        padding: 10px 0;
        align-items: center;
        justify-content: center;
        font-weight: 400;
    }

        fieldset label:not(:last-child) {
            border-bottom: 1px solid black;
        }

        fieldset label.state {
            display: inline-flex;
            width: 75%;
        }

    fieldset:not(.with-state) label.state {
        display: none;
    }

    fieldset label.zip {
    }

    fieldset:not(.with-state) label.zip {
        width: 100%;
    }

    fieldset label span {
        min-width: 125px;
        /*padding: 0 15px;*/
        text-align: right;
    }

    fieldset .redirect label span {
        width: 100%;
        text-align: center;
    }

.field {
    flex: 1;
    padding: 0 15px;
    background: transparent;
    font-weight: 400;
    color: #31325f;
    outline: none;
    cursor: text;
}

    .field::-webkit-input-placeholder {
        color: #aab7c4;
    }

    .field::-moz-placeholder {
        color: #aab7c4;
    }

    .field:-ms-input-placeholder {
        color: #aab7c4;
    }

fieldset .select::after {
    content: '';
    position: absolute;
    width: 9px;
    height: 5px;
    right: 20px;
    top: 50%;
    margin-top: -2px;
    background-image: url(/images/dropdown.svg);
    pointer-events: none;
}


fieldset input {
    flex: 1;
    border-style: none !important;
    background: none !important;
    outline: none;
    color: #313b3f;
}

::-webkit-input-placeholder {
    color: #cfd7e0;
}

::-moz-placeholder {
    color: #cfd7e0;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #cfd7e0;
}

input:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: #666ee8;
    transition: background-color 100000000s;
    -webkit-animation: 1ms void-animation-out 1s;
}

.StripeElement--webkit-autofill {
    background: transparent !important;
}

#card-element {
    margin-top: -1px;
}

#ideal-bank-element {
    padding: 0;
}

button.checkout {
    display: block;
    background: dimgray;
    color: #fff;
    margin-top: 10px;
    border-radius: 4px;
    border: 0;
    font-weight: 700;
    width: 100%;
    height: 40px;
    outline: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

    button.checkout:focus {
        background: black;
    }

    button.checkout:hover {
        transform: translateY(-1px);
    }

    button.checkout:active {
        background: black;
    }



/* Payment Methods */

.payment-info {
    display: none;
    height: 30px;
    padding-top:5px;
}

    .payment-info:not(.card) {
        margin-bottom: 0px;
    }

    .payment-info.ideal {
        margin-bottom: 10px;
    }

    #payment-methods.visible,
    .payment-info.visible {
        display: block;
    }

    .payment-info.card.visible,
    .payment-info.sepa_debit.visible {
        text-align: center;
    }

    .payment-info p.notice {
        font-size: 14px;
        color: #8898aa;
        text-align: left;
    }

.element-errors {
    display: inline-flex;
    height: 20px;
    margin: 15px auto 0;
    padding-left: 20px;
    color: #e25950;
    opacity: 0;
    transform: translateY(10px);
    transition-property: opacity, transform;
    transition-duration: 0.35s;
    transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
    background: url(/images/error.svg) center left no-repeat;
    background-size: 15px 15px;
}

    .element-errors.visible {
        opacity: 1;
        transform: none;
    }
