/* WhatsApp OTP Styling - Enhanced */
.wotp-login-container {
    margin: 10px 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #eef0f2;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.wotp-auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 10px;
}

.wotp-auth-tab {
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    color: #4b5563;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.wotp-auth-tab.active {
    background: #25D366;
    color: white;
}

.wotp-auth-tab:hover:not(.active) {
    background: #f3f4f6;
}

/* Default fields are shown/hidden via JS now, but ensure container is flexible */
.wotp-method-content {
    display: none;
}

.wotp-method-content.active {
    display: block;
}

.wotp-separator {
    display: none !important;
}

.wotp-separator::before,
.wotp-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.wotp-separator:not(:empty)::before {
    margin-right: .75em;
}

.wotp-separator:not(:empty)::after {
    margin-left: .75em;
}

.wotp-input-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 10px;
    align-items: stretch;
}

.wotp-input-group input#wotp_login_phone {
    flex: 1 !important;
    min-width: 150px;
    height: 45px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    padding: 0 15px !important;
    font-size: 14px !important;
}

#wotp_send_otp_btn {
    background: #25D366 !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 0 20px !important;
    height: 45px !important;
    cursor: pointer;
    font-weight: 600 !important;
    white-space: nowrap;
    transition: all 0.3s ease;
}

#wotp_send_otp_btn:hover {
    background: #20b858 !important;
    transform: translateY(-1px);
}

#wotp_send_otp_btn:disabled {
    background: #a0aec0 !important;
    cursor: not-allowed;
}

.wotp-otp-field {
    margin-top: 15px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure WooCommerce compatibility */
.woocommerce-form-login .wotp-login-container,
.woocommerce-form-register .wotp-phone-row {
    clear: both;
}