/* ============================================================
   NMI Collect.js Payment Section Styles
   ============================================================ */

/* Payment section wrapper */
#nmiPaymentSection {
    padding: 20px 0;
}

#nmiPaymentSection .checkout-title h2 {
    margin-bottom: 15px;
}

/* Payment wrapper */
.nmi-payment-wrapper {
    max-width: 500px;
    margin: 0 auto;
    padding: 25px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Order summary */
.nmi-order-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.nmi-order-summary p {
    margin: 5px 0;
    font-size: 15px;
    color: #555;
}

.nmi-order-summary strong {
    color: #222;
    font-size: 16px;
}

/* Field labels */
#nmiPaymentSection .form-sec-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}

/* Collect.js iframe containers */
.nmi-field-container {
    min-height: 44px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.nmi-field-container iframe {
    width: 100% !important;
    height: 44px !important;
}

/* Pay button */
.nmi-pay-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nmi-pay-btn:hover {
    background: #218838;
}

.nmi-pay-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Cancel button */
.nmi-cancel-btn {
    display: block;
    width: 100%;
    padding: 10px 20px;
    background: transparent;
    color: #666;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nmi-cancel-btn:hover {
    background: #f8f9fa;
    color: #333;
    border-color: #999;
}

/* Error message */
.nmi-payment-error {
    background: #f8d7da;
    color: #842029;
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    border: 1px solid #f5c2c7;
}

/* Secure badge */
.nmi-payment-wrapper::after {
    content: '🔒 Secured by NMI';
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #999;
}

/* Responsive */
@media (max-width: 600px) {
    .nmi-payment-wrapper {
        padding: 15px;
        margin: 0 10px;
    }
    
    .nmi-pay-btn {
        font-size: 16px;
        padding: 12px 15px;
    }
}
