/* Firebase OTP Verification Styles */

.firebase-otp-section {
    background: #1a1a1a;
    border: 2px solid #ff5722;
    border-radius: 50px;
    padding: 30px;
    margin: 30px 0;
}

.otp-section-title {
    color: #ff5722 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    margin-bottom: 25px !important;
    text-align: center;
}

.otp-phone-wrapper,
.otp-verify-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 20px;
}

.otp-phone-field,
.otp-code-field {
    flex: 1;
}

.otp-phone-field input,
.otp-code-field input {
    background: #2a2a2a !important;
    border: 2px solid #ff5722 !important;
    border-radius: 50px !important;
    color: #ffffff !important;
    padding: 15px 20px !important;
    font-size: 16px !important;
    width: 100% !important;
    transition: all 0.3s ease;
}

.otp-phone-field input:focus,
.otp-code-field input:focus {
    border-color: #ff7043 !important;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.2) !important;
    outline: none !important;
}

.otp-phone-field label,
.otp-code-field label {
    color: #ffd54f !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-bottom: 8px !important;
}

.otp-send-btn,
.otp-verify-btn {
    background: #ff5722 !important;
    border: none !important;
    border-radius: 50px !important;
    color: #000000 !important;
    padding: 15px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    height: fit-content;
    margin-bottom: 0 !important;
}

.otp-send-btn:hover,
.otp-verify-btn:hover {
    background: #ff7043 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4) !important;
}

.otp-send-btn:disabled,
.otp-verify-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    transform: none !important;
}

.otp-verified-btn {
    background: #4caf50 !important;
    color: #ffffff !important;
}

.otp-verified-btn:hover {
    background: #66bb6a !important;
}

#recaptcha-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
/* Firebase OTP Verification Styles - Version 1.2 */

.firebase-otp-section {
    background: #1a1a1a;
    border: 2px solid #ff5722;
    border-radius: 50px;
    padding: 30px;
    margin: 30px 0;
}

.otp-section-title {
    color: #ff5722 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    margin-bottom: 25px !important;
    text-align: center;
}

/* Info Message Box */
.otp-info-message {
    background: rgba(255, 215, 79, 0.1);
    border-left: 4px solid #ffd54f;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 50px;
}

.otp-info-message p {
    margin: 0 !important;
    line-height: 1.6;
    font-size: 14px !important;
}

/* Phone Display Container */
.otp-phone-display {
    position: relative;
    margin-bottom: 20px;
}

.otp-phone-display label {
    color: #ffd54f !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-bottom: 8px !important;
    display: block;
}

/* Phone Number Display Box */
#billing-phone-display {
    background: #2a2a2a !important;
    border: 2px solid #ff5722 !important;
    border-radius: 50px !important;
    color: #ffffff !important;
    padding: 15px 20px !important;
    font-size: 16px !important;
    width: 100% !important;
    min-height: 50px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    box-sizing: border-box;
}

/* OTP Verify Wrapper */
.otp-verify-wrapper {
    display: block;
    margin-bottom: 20px;
}

/* OTP Code Field */
.otp-code-field {
    margin-bottom: 15px !important;
}

.otp-code-field input {
    background: #2a2a2a !important;
    border: 2px solid #ff5722 !important;
    border-radius: 50px !important;
    color: #ffffff !important;
    padding: 15px 20px !important;
    font-size: 16px !important;
    width: 100% !important;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.otp-code-field input:focus {
    border-color: #ff7043 !important;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.2) !important;
    outline: none !important;
}

.otp-code-field label {
    color: #ffd54f !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-bottom: 8px !important;
}

/* Buttons */
.otp-send-btn,
.otp-verify-btn {
    background: #ff5722 !important;
    border: none !important;
    border-radius: 50px !important;
    color: #000000 !important;
    padding: 15px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    height: fit-content;
    margin-bottom: 0 !important;
    width: 100%;
    display: block;
}

.otp-send-btn:hover,
.otp-verify-btn:hover {
    background: #ff7043 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4) !important;
}

.otp-send-btn:disabled,
.otp-verify-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    transform: none !important;
}

.otp-verified-btn {
    background: #4caf50 !important;
    color: #ffffff !important;
}

.otp-verified-btn:hover {
    background: #66bb6a !important;
}

/* reCAPTCHA Container */
#recaptcha-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Make billing phone readonly when verified */
#billing_phone[readonly] {
    background: #333 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .firebase-otp-section {
        padding: 20px;
    }
    
    .otp-section-title {
        font-size: 18px !important;
    }
    
    .otp-send-btn,
    .otp-verify-btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
    
    #billing-phone-display {
        font-size: 14px !important;
        padding: 12px 15px !important;
    }
    
    .otp-info-message {
        padding: 10px 12px;
    }
}

/* WooCommerce Message Styles */
.woocommerce-message {
    background: #4caf50 !important;
    color: #ffffff !important;
    border-left: 4px solid #2e7d32 !important;
    padding: 15px 20px !important;
    margin-bottom: 20px !important;
    border-radius: 50px;
}

.woocommerce-error {
    background: #f44336 !important;
    color: #ffffff !important;
    border-left: 4px solid #c62828 !important;
    padding: 15px 20px !important;
    margin-bottom: 20px !important;
    border-radius: 50px;
}

/* Place Order Button */
.woocommerce-checkout button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: #666 !important;
}

/* Animation for slide down */
.otp-verify-wrapper {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.otp-send-btn:disabled,
.otp-verify-btn:disabled {
    position: relative;
}

/* Focus States for Accessibility */
.otp-send-btn:focus,
.otp-verify-btn:focus,
.otp-code-field input:focus {
    outline: 2px solid #ff7043;
    outline-offset: 2px;
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}