/* ---------------------------------------------------------------------------
 * Pay-an-Invoice frontend (v1.9.0 — Teamwork 17735931)
 * Styles for the customer-amount + reference-fields form rendered on the
 * single-product page for the three Pay-an-Invoice products.
 * ------------------------------------------------------------------------- */

.mu-pay-invoice-form {
    margin: 1.5em 0;
    padding: 1em 1.25em;
    background: #f8f9fa;
    border-left: 4px solid var(--mu-accent, #0066a4);
    border-radius: 4px;
}

.mu-pay-invoice-form p {
    margin: 0 0 .75em 0;
}

.mu-pay-invoice-form label {
    display: block;
    font-weight: 600;
    margin-bottom: .25em;
}

.mu-pay-invoice-form label .required {
    color: #c0392b;
    font-weight: 700;
    margin-left: 2px;
}

.mu-pay-invoice-form input[type="number"],
.mu-pay-invoice-form input[type="text"],
.mu-pay-invoice-form input[type="email"],
.mu-pay-invoice-form textarea {
    width: 100%;
    max-width: 520px;
    padding: .55em .75em;
    border: 1px solid #ccd0d4;
    border-radius: 3px;
    font-size: 15px;
    line-height: 1.4;
    box-sizing: border-box;
}

.mu-pay-invoice-form input[type="number"] {
    max-width: 220px;
    font-variant-numeric: tabular-nums;
}

.mu-pay-invoice-form textarea {
    min-height: 80px;
    resize: vertical;
}

.mu-pay-invoice-form input:focus,
.mu-pay-invoice-form textarea:focus {
    outline: 2px solid var(--mu-accent, #0066a4);
    outline-offset: 1px;
    border-color: var(--mu-accent, #0066a4);
}

/* The container is pre-inserted by the JS so submit-time error rendering is
   a simple .html(...) call. Hidden by default; the JS adds .has-errors when
   there's something to show. Belt-and-braces: also collapse when :empty so
   any future code path that wipes the contents leaves a clean page. */
.mu-pay-invoice-errors {
    display: none;
    margin: 1em 0;
    padding: .75em 1em;
    background: #ffebee;
    border-left: 4px solid #c0392b;
    border-radius: 3px;
    color: #c0392b;
}

.mu-pay-invoice-errors.has-errors:not(:empty) {
    display: block;
}

.mu-pay-invoice-errors ul {
    margin: 0;
    padding-left: 1.25em;
}
