/* ═══════════════════════════════════════════════════════════════════
   THE CHECKOUT — one dress for MonerisCheckout wherever it opens
   (pricing.html for a subscription, the app's Account modal for a gift).
   Moved verbatim out of css/pricing.css 2026-09-29 (FEAT-002): the app
   never loaded that sheet, so the checkout had no dress inside the app.
   ═══════════════════════════════════════════════════════════════════ */

.moneris-overlay {
    position: fixed;
    inset: 0;
    /* Above the Account modal (10500) — a gift opens from inside it (2026-09-29).
       Was 10000 on the pricing page, where nothing else stands. */
    z-index: 10800;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.moneris-modal {
    background: #fff;
    border-radius: 1rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.moneris-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.moneris-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.moneris-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.25rem;
}

.moneris-close:hover { color: #0f172a; }

.moneris-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.moneris-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

.moneris-req {
    color: #dc2626;
}

/* Secure card section */
.moneris-secure-section {
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
    background: #f8fafc;
}

.moneris-secure-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.75rem;
}

.moneris-iframe-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
}

.moneris-iframe-wrap iframe {
    width: 100%;
    height: 195px;
    border: none;
}

.moneris-secure-note {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Form groups */
.moneris-form-group {
    margin-bottom: 0.75rem;
}

.moneris-form-group input,
.moneris-form-group select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    color: #0f172a;
    box-sizing: border-box;
    font-family: inherit;
    background: #fff;
}

.moneris-form-group input:focus,
.moneris-form-group select:focus {
    outline: none;
    border-color: #6b3fa0;
    box-shadow: 0 0 0 2px rgba(107, 63, 160, 0.15);
}

.moneris-form-row {
    display: flex;
    gap: 0.75rem;
}

.moneris-billing-header {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    margin: 1rem 0 0.75rem;
}

/* Tax summary */
.moneris-tax-summary {
    border-top: 1px solid #e2e8f0;
    margin-top: 1rem;
    padding-top: 0.75rem;
}

.moneris-tax-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #475569;
    padding: 0.2rem 0;
}

.moneris-tax-total {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 0.35rem;
    padding-top: 0.35rem;
}

.moneris-status {
    font-size: 0.85rem;
    color: #475569;
    min-height: 1.2em;
}

.moneris-status-error { color: #dc2626; }
.moneris-status-success { color: #16a34a; }

.moneris-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.moneris-btn-cancel {
    padding: 0.6rem 1.25rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #fff;
    color: #475569;
    font-size: 0.9rem;
    cursor: pointer;
}

.moneris-btn-cancel:hover { background: #f8fafc; }

.moneris-btn-submit {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.moneris-btn-submit:hover { opacity: 0.9; }
.moneris-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.moneris-test-badge {
    position: absolute;
    top: 8px;
    right: 60px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    letter-spacing: 0.5px;
}

