/* Nizva Price Protection - Frontend Styles */

.nizva-login-required {
    color: #d63638;
    font-weight: 600;
}

.nizva-login-message,
.nizva-verification-pending,
.nizva-verification-rejected,
.nizva-verification-required {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

.nizva-verification-pending {
    background: #d1ecf1;
    border-color: #0c5460;
}

.nizva-verification-rejected {
    background: #f8d7da;
    border-color: #721c24;
}

.nizva-verification-required {
    background: #d1ecf1;
    border-color: #0c5460;
}

/* Verification Form Styles */
.nizva-verification-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.nizva-verification-form-wrapper {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nizva-verification-form-wrapper h1 {
    margin-top: 0;
    color: #333;
    text-align: center;
}

.nizva-form-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.nizva-form-group {
    margin-bottom: 20px;
}

.nizva-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.nizva-form-group .required {
    color: #d63638;
}

.nizva-form-group input[type="text"],
.nizva-form-group input[type="tel"],
.nizva-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.nizva-form-group input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.nizva-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.nizva-form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.nizva-submit-button {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.nizva-submit-button:hover {
    background: #135e96;
}

.nizva-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Loading Overlay */
.nizva-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nizva-loading-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
}

.nizva-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.nizva-loading-content p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

/* Success Message */
.nizva-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    margin-top: 20px;
}

/* Customer Dashboard Styles */
.nizva-customer-verification {
    padding: 20px;
}

.nizva-menu-icon {
    margin-left: 5px;
    font-size: 16px;
    vertical-align: middle;
}

.nizva-verification-status h3 {
    margin-top: 0;
}

.nizva-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.nizva-status-pending {
    background: #fff3cd;
    color: #856404;
}

.nizva-status-approved {
    background: #d4edda;
    color: #155724;
}

.nizva-status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.nizva-verification-details {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.nizva-verification-details th,
.nizva-verification-details td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.nizva-verification-details th {
    font-weight: 600;
    width: 150px;
    color: #333;
}

.nizva-verification-message {
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.nizva-message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.nizva-message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.nizva-message-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Image Preview */
#nizva-image-preview {
    margin-top: 15px;
}

#nizva-preview-img {
    max-width: 150px;
    max-height: 150px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    object-fit: cover;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .nizva-verification-container {
        padding: 10px;
    }
    
    .nizva-verification-form-wrapper {
        padding: 20px;
    }
    
    #nizva-preview-img {
        max-width: 120px;
        max-height: 120px;
    }
    
}


