/* Nets Easy Gateway Frontend Styles */

.nets-easy-settings-form {
    max-width: 600px;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
}

.nets-easy-settings-form h3 {
    margin-top: 0;
    color: #333;
}

.nets-easy-form-group {
    margin-bottom: 15px;
}

.nets-easy-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.nets-easy-form-group input,
.nets-easy-form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.nets-easy-form-group input:focus,
.nets-easy-form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.nets-easy-submit-btn {
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.nets-easy-submit-btn:hover {
    background: #005a87;
}

.nets-easy-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.nets-easy-payment-toggle {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.nets-easy-payment-toggle input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.nets-easy-payment-toggle label {
    font-weight: bold;
    color: #555;
}

.nets-easy-message {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    font-weight: bold;
}

.nets-easy-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.nets-easy-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.nets-easy-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.nets-easy-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.nets-easy-loading.show {
    display: block;
}

.nets-easy-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: nets-easy-spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes nets-easy-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.nets-easy-seller-info {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.nets-easy-seller-info h4 {
    margin-top: 0;
    color: #0066cc;
}

.nets-easy-seller-info p {
    margin: 5px 0;
    color: #333;
}

.nets-easy-payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.nets-easy-payment-method {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nets-easy-payment-method:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nets-easy-payment-method.selected {
    border-color: #0073aa;
    background: #f0f8ff;
}

.nets-easy-payment-method input[type="radio"] {
    margin-right: 8px;
}

.nets-easy-payment-method label {
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

/* Responsive design */
@media (max-width: 768px) {
    .nets-easy-settings-form {
        margin: 10px;
        padding: 15px;
    }
    
    .nets-easy-payment-methods {
        flex-direction: column;
    }
    
    .nets-easy-payment-method {
        width: 100%;
    }
}

/* Admin styles */
.nets-easy-admin-settings {
    background: white;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin: 20px 0;
}

.nets-easy-admin-settings h2 {
    margin-top: 0;
    color: #23282d;
}

.nets-easy-admin-settings .form-table th {
    width: 200px;
    padding: 20px 10px 20px 0;
    vertical-align: top;
}

.nets-easy-admin-settings .form-table td {
    padding: 15px 10px;
    vertical-align: top;
}

.nets-easy-admin-settings .form-table input[type="text"],
.nets-easy-admin-settings .form-table input[type="password"],
.nets-easy-admin-settings .form-table select {
    width: 100%;
    max-width: 400px;
}

.nets-easy-admin-settings .description {
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

/* Payment gateway icon */
.payment_method_nets_easy img {
    max-height: 32px;
    vertical-align: middle;
    margin-right: 5px;
}

/* Checkout page styles */
.woocommerce-checkout .payment_method_nets_easy {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
}

.woocommerce-checkout .payment_method_nets_easy label {
    font-weight: bold;
    color: #495057;
}

.woocommerce-checkout .payment_method_nets_easy .payment_box {
    background: white;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 15px;
    margin-top: 10px;
}

.woocommerce-checkout .payment_method_nets_easy .payment_box p {
    margin: 0;
    color: #6c757d;
}
