#moneris_secure_background {
    position: fixed;
    background: black;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 99998;
    opacity: 0.8;
    border: none;
}

#moneris_secure {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 70vh;
    background: white;
    z-index: 99999;
}

@media only screen and (max-width: 768px) {
    #moneris_secure {
        transform: translate(0%, 0%);
        top: 285px;
        left: 20px;
        width: 90vw;
        height: 90vh;
    }
}
/* --------------------------------------------------------------------------
 * Sandbox banner
 *
 * Replaces a solid red block that shouted at the customer without telling
 * them much. Still unmistakably a warning, but legible, and it now carries the
 * penny-simulator picker for shop managers.
 * ----------------------------------------------------------------------- */

.moneris-testmode {
    margin: 12px 0 16px;
    padding: 14px 16px;
    font-size: 90%;
    line-height: 1.55;
    color: #4a1010;
    background: #fdf3f3;
    border: 1px solid #e6b3b3;
    border-left: 4px solid #af0000;
    border-radius: 3px;
}

.moneris-testmode p {
    margin: 0 0 8px;
}

.moneris-testmode p:last-child {
    margin-bottom: 0;
}

.moneris-testmode__lead strong {
    letter-spacing: 0.06em;
}

.moneris-testmode__cards code {
    padding: 1px 5px;
    margin-right: 4px;
    font-size: 95%;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.moneris-testmode__sim {
    padding-top: 10px;
    border-top: 1px solid #eccaca;
}

.moneris-testmode__sim label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.moneris-testmode__sim select {
    width: 100%;
    max-width: 420px;
    padding: 5px 8px;
}

.moneris-testmode__hint {
    display: block;
    margin-top: 5px;
    font-size: 90%;
    opacity: 0.85;
}

.moneris-testmode__links a {
    margin-right: 14px;
    color: #8a1c1c;
}

/* Direct card entry: WooCommerce's own form, given room to breathe. */

.moneris-direct-card .form-row {
    padding: 3px 0;
}

.moneris-direct-card .wc-credit-card-form-card-number,
.moneris-direct-card .wc-credit-card-form-card-expiry,
.moneris-direct-card .wc-credit-card-form-card-cvc {
    font-size: 1.05em;
    padding: 8px 10px;
}

/* Apple Pay: Safari draws the button itself from these properties, so there is
   no artwork to ship. The fallback border/background only shows on a browser
   that understands neither, which is a browser Apple Pay is not offered on. */

.moneris-applepay-button {
    display: block;
    width: 100%;
    min-height: 40px;
    border: 1px solid #000;
    border-radius: 4px;
    background: #000;
    cursor: pointer;
    -webkit-appearance: -apple-pay-button;
    -apple-pay-button-type: buy;
    -apple-pay-button-style: black;
}

.wc-moneris-simplistics-wallet,
.wc-moneris-simplistics-konek {
    padding: 6px 0;
}

.wc-moneris-simplistics-konek .wc-block-components-validation-error {
    margin-top: 8px;
}
