* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-variant: normal;
    -webkit-font-smoothing: antialiased;
    color: #6b7c93;

    background-color: #f7f8f9;

    box-sizing: border-box;
}

.logo img {
    width: 150px;
}

.logo h1 {
    float: right;
    font-size: 28px;
}

code {
    padding: 3px 6px;

    font-family: 'Source Code Pro', monospace;
    font-weight: 500;
    color: #333333;

    background-color: #e6ebf1;
}

a > code {
    color: #0099E5;
}

.wrapper {
    height: 100%;
    max-width: 600px;
    width: 90%;

    margin: 50px auto;
}

form {
    padding: 30px 0;

    transition-property: opacity, transform;
    transition-duration: 0.35s;
    transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

.form-row {
    width: 100%;
    margin-top: 20px;
}

.form-row:first-child {
    margin-top: 0;
}

.form-row.inline {
    display: -ms-flexbox;
    display: flex;
}

.form-row.inline .col {
    width: 100%;
}

.form-row.inline .col:not(:last-child) {
    margin-right: 20px;
}

@media only screen and (max-width : 450px) {
    .form-row.inline {
        display: block;
        width: 100%;
        margin-top: 20px;
    }

    .form-row.inline .col:not(:last-child) {
        margin-bottom: 20px;
    }
}

label {
    display: block;
    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 500;
}

input,
select {
    width: 100%;
    outline: none;
}

input::placeholder,
select:invalid {
    color: #aab7c4 !important;
}

select [disabled],
select:disabled,
select:invalid {
    color: #aab7c4 !important;
}


@-webkit-keyframes autofill {
    to {
        background: #fefde5;
        color: #32325d;
    }
}

input:-webkit-autofill,
select:-webkit-autofill {
    -webkit-animation-name: autofill;
    -webkit-animation-fill-mode: both;
}

button,
a.button {
    display: inline-block;

    width: 100%;

    margin-top: 20px;

    font-size: 15px;
    font-weight: 600;
    line-height: 40px;
    letter-spacing: 0.025em;
    text-decoration: none;
    white-space: nowrap;
    text-align: center;

    background: #32325d;
    color: #fff;

    border: none;
    outline: none;
    border-radius: 4px;

    box-shadow: 0 4px 6px rgba(50, 50, 93, .11), 0 1px 3px rgba(0, 0, 0, .08);
    -webkit-transition:  all 150ms ease;
    transition:  all 150ms ease;
}

button:hover,
a.button {
    background-color: #43458b;

    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, .10), 0 3px 6px rgba(0, 0, 0, .08);
}

#error-message {
    margin-top: 12px;

    text-align: center;
    color: #fa755a;
}

#error-message.visible, #bank-name.visible {
    opacity: 1;
    transform: translateY(0);
}

#mandate {
    margin-top: 30px;
    font-size: 14px;
    text-align: justify;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(1turn);
    }
}

.wrapper.submitting form,
.wrapper.submitted form {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.wrapper.submitting .success,
.wrapper.submitted .success {
    pointer-events: all;
}

.wrapper.submitting .success .icon {
    opacity: 1;
}

.wrapper.submitted .success > * {
    opacity: 1;
    transform: none !important;
}

.wrapper.submitted .success > :nth-child(2) {
    transition-delay: 0.1s;
}

.wrapper.submitted .success > :nth-child(3) {
    transition-delay: 0.2s;
}

.wrapper.submitted .success > :nth-child(4) {
    transition-delay: 0.3s;
}

.wrapper.submitted .success .icon .border,
.wrapper.submitted .success .icon .checkmark {
    opacity: 1;
    stroke-dashoffset: 0 !important;
}

.success {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    padding: 10px;

    text-align: center;

    pointer-events: none;
    overflow: hidden;
    background-color: #f7f8f9;
    font-weight: bold;
}

.success.error {
    color: #fa755a;
}

/**
* The CSS shown here will not be introduced in the Quickstart guide, but
* shows how you can use CSS to style your Element's container.
*/
input,
.StripeElement,
select {
    -moz-appearance: none;
    -webkit-appearance: none;
    height: 40px;
    padding: 10px 12px;
    font-size: 16px;
    color: #32325d;
    background-color: white;
    border: 1px solid transparent;
    border-radius: 4px;

    box-shadow: 0 1px 3px 0 #e6ebf1;
    -webkit-transition: box-shadow 150ms ease;
    transition: box-shadow 150ms ease;
}

select::-ms-expand {
    display: none;
}

select {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%2332325d'><polygon points='0,0 100,0 50,50'/></svg>") no-repeat;
    background-size: 12px;
    background-position: calc(100% - 16px) 16px;
    background-repeat: no-repeat;
    background-color: white;
}

input:focus,
.StripeElement--focus,
select:focus {
    box-shadow: 0 1px 3px 0 #cfd7df;
}

.StripeElement--invalid {
    border-color: #fa755a;
}

.StripeElement--webkit-autofill {
    background-color: #fefde5 !important;
}

.ElementsApp, .ElementsApp .InputElement {
    color: #32325d;
    line-height: 18px;
    font-family: "Helvetica Neue", Helvetica, sans-serif;
    font-size: 16px;
    height: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.mt-2 {
    margin-top: 2rem;
}
