/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
section#expisoft-payments {
    width: 100%;
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
}

section#expisoft-payments h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

div#expisoft-test-banner {
    position: absolute;
    top: 3rem;
    right: -3.25rem;
    background-color: #f39c12;
    padding: .5rem 4rem;
    transform: rotate(45deg);
    z-index: 1200;
    box-shadow: 0 0 1rem 0 rgba(187, 187, 187, .1);
}

div#expisoft-test-banner p {
    font-size: .7rem;
    line-height: 1;
    text-transform: uppercase;
    text-align: center;
    margin: 0 !important;
}

form#expisoft-create-order {
    width: calc(100% - 2rem);
    max-width: 25rem;
    padding: 0;
    margin: 0 auto;
}

form#expisoft-create-order.hidden {
    display: none;
}

form#expisoft-create-order.checkout {
    padding-bottom: 2rem;
    border-bottom: 1px solid #bbb;
}

form#expisoft-create-order.checkout button#checkout-button {
    display: none;
}

form#expisoft-create-order div.form-row {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

form#expisoft-create-order div.form-col {
    display: flex;
    flex-flow: column wrap;
    align-items: stretch;
    justify-content: flex-start;
}

form#expisoft-create-order div.form-col label {
    display: flex;
    width: 100%;
    height: auto;
    margin: 0;
    position: relative;
}

form#expisoft-create-order div.form-col span {
    display: inline-block;
    position: absolute;
    top: calc(50% - .5rem);
    left: .875rem;
    z-index: 1100;
    font-size: 1rem;
    line-height: 1rem;
    color: #bbb;
    transition: top .2s ease-in-out, font-size .2s ease-in-out;
}

form#expisoft-create-order div.form-col input {
    width: 100%;
    height: 3.125rem;
    border: none;
    border-radius: 0;
    border: 1px solid #bbb;
    padding: 1rem .875rem 0 .875rem;
    font-size: .9rem;
}

form#expisoft-create-order div.form-col input:disabled {
    cursor: auto;
    color: #8e8e8e;
}

form#expisoft-create-order div.form-col input#paymentRef {
    border-radius: .813rem .813rem 0 0;
}

form#expisoft-create-order div.form-col input#paymentEmail {
    margin-top: -1px;
}

form#expisoft-create-order div.form-col input#paymentNum {
    margin-top: -1px;
}

form#expisoft-create-order div.form-col input#paymentSum {
    margin-top: -1px;
    border-radius: 0 0 .813rem .813rem;
}

form#expisoft-create-order div.form-col input:focus {
    border: solid 1px rgba(0,125,187,.85);
    background-color: rgba(0,125,187,.03);
    z-index: 1000;
}

form#expisoft-create-order div.form-col input:focus ~ span,
form#expisoft-create-order div.form-col input.focus ~ span {
    top: .4rem;
    font-size: .6rem;
}

form#expisoft-create-order button#checkout-button {
    width: 100%;
    background-color: #2b6a94;
    height: 3.125rem;
    border-radius: .625rem;
    letter-spacing: 0;
    font-size: 1rem;
    margin-top: 2rem;
    transition: background-color .2s ease-in-out;
}

form#expisoft-create-order button#checkout-button:hover {
    background-color: #235B80;
}

@media screen and (min-width: 768px) {
    section#expisoft-payments {
        padding: 4rem 0;
    }

    section#expisoft-payments h2 {
        font-size: 2rem;
    }

    form#expisoft-create-order div.form-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    form#expisoft-create-order div.form-col:first-child {
        grid-column: span 2 / span 2;
    }

    form#expisoft-create-order div.form-col input#paymentNum {
        border-radius: 0 0 0 .813rem;
    }

    form#expisoft-create-order div.form-col input#paymentSum {
        border-radius: 0 0 .813rem 0;
        width: calc(100% + 1px);
        margin-left: -1px;
    }
}

/* Checkout */
div#expisoft-checkout.hidden {
    display: none;
}

div#expisoft-checkout iframe#nets-checkout-iframe {
    min-height: unset;
}

/* Payment completed */
div#expisoft-checkout-complete.hidden {
    display: none;
}

div#expisoft-checkout-complete {
    display: block;
    width: 100%;
    max-width: 25rem;
    padding: 1rem;
    margin: 0 auto;
    text-align: center;
}

div#expisoft-checkout-complete p {
    margin: 0 !important;
}

@media screen and (min-width: 768px) {
    div#expisoft-checkout-complete {
        padding: 0;
    }
}