/* Midwest Payments — QuickBooks: checkout card form + blocked notice. */

.mwa-qb-card-form {
    margin-top: 8px;
}

.mwa-qb-card-form .mwa-qb-row {
    margin-bottom: 10px;
}

.mwa-qb-card-form .mwa-qb-cols {
    display: flex;
    gap: 10px;
}

.mwa-qb-card-form .mwa-qb-col {
    flex: 1 1 0;
}

.mwa-qb-card-form .mwa-qb-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #555;
    margin-bottom: 4px;
}

.mwa-qb-card-form .mwa-qb-input {
    width: 100%;
    padding: 12px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.4;
    background: #fff;
    box-sizing: border-box;
}

.mwa-qb-card-form .mwa-qb-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.18);
}

.mwa-qb-card-form .mwa-qb-error {
    color: #b91c1c;
    font-size: 13px;
    min-height: 18px;
    margin-top: 4px;
}

/* Shared layout for both warning and blocked notices: icon + content side-by-side. */
.mwa-qb-blocked,
.mwa-qb-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 12px 0;
    line-height: 1.5;
    font-size: 14px;
}

.mwa-qb-blocked .mwa-qb-notice-icon,
.mwa-qb-warning .mwa-qb-notice-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 1px;
}

.mwa-qb-blocked .mwa-qb-notice-body,
.mwa-qb-warning .mwa-qb-notice-body {
    flex: 1 1 auto;
}

.mwa-qb-blocked strong,
.mwa-qb-warning strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    letter-spacing: 0;
    text-transform: none;
}

.mwa-qb-blocked p,
.mwa-qb-warning p {
    margin: 0;
}

/* Blocked (error) — light red background, dark red border + text. */
.mwa-qb-blocked {
    background: #fde2e4;
    color: #7f1d1d;
    border: 1px solid #b91c1c;
}
.mwa-qb-blocked strong { color: #7f1d1d; }
.mwa-qb-blocked p { color: #7f1d1d; }
.mwa-qb-blocked .mwa-qb-notice-icon { color: #b91c1c; }

/* Warning (caution) — light yellow background, amber border + text. */
.mwa-qb-warning {
    background: #fef9c3;
    color: #78350f;
    border: 1px solid #ca8a04;
}
.mwa-qb-warning strong { color: #78350f; }
.mwa-qb-warning p { color: #78350f; }
.mwa-qb-warning .mwa-qb-notice-icon { color: #b45309; }

/* When the customer is blocked AND has QB selected (set as a body class by JS),
   disable Place Order so they can't keep retrying. We don't hide the gateway
   itself any more — the red notice replaces the card form inside
   payment_fields() so the customer can still see what's locked out. */
body.mwa-qb-place-order-locked #place_order,
body.mwa-qb-place-order-locked button.wc-block-components-checkout-place-order-button {
    pointer-events: none;
    opacity: 0.4;
    cursor: not-allowed;
}
