/* NMI Payment Gateway - Credit Card Field Styling */

#wc-robust_nmi_gateway-cc-form {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-top: 15px;
}

#wc-robust_nmi_gateway-cc-form .form-row {
    margin-bottom: 20px;
}

#wc-robust_nmi_gateway-cc-form label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

#wc-robust_nmi_gateway-cc-form .form-row-wide {
    width: 100%;
}

#wc-robust_nmi_gateway-cc-form .form-row-first,
#wc-robust_nmi_gateway-cc-form .form-row-last {
    width: 47%;
    display: inline-block;
    vertical-align: top;
}

#wc-robust_nmi_gateway-cc-form .form-row-last {
    float: right;
}

/* Collect.js Field Styling */
#wc-robust_nmi_gateway-cc-form #nmi-ccnumber,
#wc-robust_nmi_gateway-cc-form #nmi-ccexp,
#wc-robust_nmi_gateway-cc-form #nmi-cvv {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
}

/* Target Collect.js rendered inputs */
#wc-robust_nmi_gateway-cc-form #nmi-ccnumber input,
#wc-robust_nmi_gateway-cc-form #nmi-ccexp input,
#wc-robust_nmi_gateway-cc-form #nmi-cvv input {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
}

#wc-robust_nmi_gateway-cc-form #nmi-ccnumber input:focus,
#wc-robust_nmi_gateway-cc-form #nmi-ccexp input:focus,
#wc-robust_nmi_gateway-cc-form #nmi-cvv input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Card Number Specific */
#wc-robust_nmi_gateway-cc-form #nmi-ccnumber,
#wc-robust_nmi_gateway-cc-form #nmi-ccnumber input {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    letter-spacing: 1px;
}

/* Expiry and CVV */
#wc-robust_nmi_gateway-cc-form #nmi-ccexp {
    text-align: center;
}

#wc-robust_nmi_gateway-cc-form #nmi-cvv {
    text-align: center;
    letter-spacing: 3px;
}

/* Placeholder Styling */
#wc-robust_nmi_gateway-cc-form input::placeholder {
    color: #999;
    font-style: italic;
}

/* Error State */
#wc-robust_nmi_gateway-cc-form .woocommerce-error,
#wc-robust_nmi_gateway-cc-form .woocommerce-invalid-required-field {
    border-color: #e2401c !important;
}

#wc-robust_nmi_gateway-cc-form .woocommerce-error:focus {
    box-shadow: 0 0 0 3px rgba(226, 64, 28, 0.1) !important;
}

/* Success State */
#wc-robust_nmi_gateway-cc-form .woocommerce-validated {
    border-color: #46b450 !important;
}

/* Card Icon */
#wc-robust_nmi_gateway-cc-form .nmi-card-brand {
    float: right;
    margin-top: -35px;
    margin-right: 10px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    #wc-robust_nmi_gateway-cc-form .form-row-first,
    #wc-robust_nmi_gateway-cc-form .form-row-last {
        width: 100%;
        float: none;
        margin-bottom: 15px;
    }
}

/* Loading State */
#wc-robust_nmi_gateway-cc-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Clear Float */
#wc-robust_nmi_gateway-cc-form .clear {
    clear: both;
}

