/**
 * Custom Card Payment Styles
 */

.wc-credit-card-form {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin: 15px 0;
}

.wc-credit-card-form .form-row {
    margin-bottom: 15px;
}

.wc-credit-card-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.wc-credit-card-form .required {
    color: #e74c3c;
}

.wc-credit-card-form input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.wc-credit-card-form input[type="text"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0, 124, 186, 0.3);
}

.wc-credit-card-form .form-row-first,
.wc-credit-card-form .form-row-last {
    width: 48%;
    float: left;
}

.wc-credit-card-form .form-row-last {
    float: right;
}

.wc-credit-card-form .form-row-wide {
    width: 100%;
    clear: both;
}

.wc-credit-card-form .clear {
    clear: both;
}

/* Card number formatting */
.wc-credit-card-form-card-number {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

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

/* Payment method selection styling */
.wc_payment_method.payment_method_custom_card_payment {
    border: 2px solid #007cba;
    border-radius: 5px;
    margin-bottom: 10px;
}

.wc_payment_method.payment_method_custom_card_payment label {
    font-weight: bold;
    color: #007cba;
}

/* Success message styling */
.woocommerce-message {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}
