/**
 * WhatsApp Inquiry Plugin - Frontend Base Styles
 * Version: 2.0.0
 * Description: Core frontend styles - buttons, messages, loading states, and utilities
 * Prefix: .wainq-* (WhatsApp Inquiry)
 * 
 * Additional stylesheets:
 * - whatsapp-inquiry-popup.css (Popup modal and inquiry forms)
 * - whatsapp-inquiry-widget.css (Floating widgets and cart button)
 * - whatsapp-inquiry-sidebar.css (Sidebar cart panel)
 */

/* ============================================
   WHATSAPP BUTTONS
   ============================================ */

/* WhatsApp Order Button (Product Pages) */
/* Only color styling - let theme handle sizing, borders, padding, etc. */
.wainq-order-btn {
    background: #25D366 !important;
    color: white !important;
    transition: all 0.3s ease !important;
}

.wainq-order-btn:hover {
    background: #128C7E !important;
    color: white !important;
}

/* WhatsApp Checkout Button */
/* Only color styling - let theme handle sizing, borders, padding, etc. */
.wainq-checkout-btn {
    background: #25D366 !important;
    color: white !important;
    transition: all 0.3s ease !important;
}

.wainq-checkout-btn:hover {
    background: #128C7E !important;
    color: white !important;
}

/* ============================================
   MESSAGES & NOTIFICATIONS
   ============================================ */

.wainq-message {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.wainq-message.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.wainq-message.success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.wainq-notification {
    position: fixed;
    bottom: -100px;
    right: 20px;
    background: #25D366;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    transition: bottom 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.wainq-notification.show {
    bottom: 20px;
}

/* ============================================
   LOADING STATE
   ============================================ */

.wainq-loading {
    text-align: center;
    padding: 40px 20px;
}

.wainq-loading::after {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 4px solid #25D366;
    border-radius: 50%;
    border-top-color: transparent;
    animation: wainqSpin 0.8s linear infinite;
}

@keyframes wainqSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.wainq-hidden {
    display: none !important;
}

.wainq-visible {
    display: block !important;
}

/* Mobile Only Display */
@media (min-width: 769px) {
    body.wainq-mobile-only .wainq-order-btn,
    body.wainq-mobile-only .wainq-checkout-btn {
        display: none !important;
    }
}

/* Remove conflicts with other floating widgets */
.floating-wpp {
    display: none !important;
}

/* End of Frontend Base Styles */
