
/* WooCommerce Firebase OTP - Main Styles */
.wcfb-otp-form-wrapper {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.wcfb-login-title {
    text-align: center;
    color: #2c3338;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.wcfb-otp-form-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wcfb-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.wcfb-input:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.25);
}

.wcfb-button {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wcfb-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.wcfb-primary {
    background-color: #007cba;
    color: white;
}

.wcfb-primary:hover:not(:disabled) {
    background-color: #006ba1;
}

.wcfb-success {
    background-color: #4CAF50;
    color: white;
}

.wcfb-success:hover:not(:disabled) {
    background-color: #3e8e41;
}

.wcfb-link {
    background: none;
    color: #007cba;
    text-decoration: underline;
    padding: 0;
}

.wcfb-link:hover {
    color: #006ba1;
}

#wcfb-recaptcha-container {
    margin: 1rem 0;
    min-height: 78px;
    display: flex;
    justify-content: center;
}

.wcfb-status-message {
    padding: 12px;
    margin: 1rem 0;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.wcfb-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
    display: block !important;
}

.wcfb-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    display: block !important;
}

.wcfb-info {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
    display: block !important;
}

.wcfb-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.wcfb-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: wcfb-spin 1s linear infinite;
}

@keyframes wcfb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wcfb-otp-verification {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.wcfb-register-note {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 480px) {
    .wcfb-otp-form-wrapper {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .wcfb-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .wcfb-button {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Compatibility Overrides */
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation {
    float: none;
    width: 100%;
}

.woocommerce-account .entry-content .woocommerce {
    max-width: 100% !important;
    padding: 0 !important;
}



.wcfb-recaptcha {
    min-height: 78px;
    display: block !important; /* Force display */
    overflow: hidden; /* Prevent layout shift */
}

/* Firebase reCAPTCHA iframe fix */
.firebase-recaptcha iframe {
    margin: 0 auto;
    display: block !important;
    transform: scale(0.95); /* Adjust if needed */
}