*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    /*padding: 1rem;*/
    background-color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

#payment-form {
    max-width: 31.5rem;
    margin: 0 auto;
}

iframe {
    width: 100%;
}

.one-liner {
    display: flex;
    flex-direction: column;
}

#pay-button {
    border: none;
    border-radius: 3px;
    color: #fff;
    font-weight: 500;
    height: 40px;
    width: 100%;
    background-color: #13395e;
    box-shadow: 0 1px 3px 0 rgba(19, 57, 94, 0.4);
}

#pay-button:active {
    background-color: #0b2a49;
    box-shadow: 0 1px 3px 0 rgba(19, 57, 94, 0.4);
}

#pay-button:hover {
    background-color: #15406b;
    box-shadow: 0 2px 5px 0 rgba(19, 57, 94, 0.4);
}

#pay-button:disabled {
    background-color: #697887;
    box-shadow: none;
}

#pay-button:not(:disabled) {
    cursor: pointer;
}

.card-frame {
    border: solid 1px #13395e;
    border-radius: 3px;
    width: 100%;
    margin-bottom: 8px;
    height: 40px;
    box-shadow: 0 1px 3px 0 rgba(19, 57, 94, 0.2);
}

.card-frame.frame--rendered {
    opacity: 1; /* Prevents iFrame rendering issue */

    /* Reminder: consider removal of 'rendered' */
    /* event passing to Merchant page */
}

.card-frame.frame--rendered.frame--focus {
    border: solid 1px #13395e;
    box-shadow: 0 2px 5px 0 rgba(19, 57, 94, 0.15);
}

.card-frame.frame--rendered.frame--invalid {
    border: solid 1px #d96830;
    box-shadow: 0 2px 5px 0 rgba(217, 104, 48, 0.15);
}

.error-message {
    color: #c9501c;
    font-size: 0.9rem;
    margin: 8px 0 0 1px;
    font-weight: 300;
}

.success-payment-message {
    color: #13395e;
    line-height: 1.4;
}
.token {
    color: #b35e14;
    font-size: 0.9rem;
    font-family: monospace;
}

@media screen and (min-width: 31rem) {
    .one-liner {
        flex-direction: row;
    }

    .card-frame {
        width: 318px;
        margin-bottom: 0;
    }

    #pay-button {
        width: 175px;
        margin-left: 8px;
    }
}
