/* WhatsApp Floating Widget Premium */
.wa-widget-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99990;
    font-family: var(--font-sans, system-ui, sans-serif);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.wa-message-bubble {
    background: #fff;
    padding: 12px 18px;
    border-radius: 12px 12px 0 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    max-width: 250px;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    visibility: hidden;
    position: relative;
    cursor: pointer;
}

.wa-message-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 12px 0 0;
    border-color: #fff transparent transparent transparent;
}

.wa-message-bubble.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.wa-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 20px;
}

.wa-dot {
    width: 6px;
    height: 6px;
    background: #cbd5e1;
    border-radius: 50%;
    animation: waTyping 1.4s infinite ease-in-out both;
}

.wa-dot:nth-child(1) { animation-delay: -0.32s; }
.wa-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes waTyping {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.wa-text {
    display: none;
    color: #1e293b;
    font-size: 0.9rem;
    line-height: 1.4;
}

.wa-text-top-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #0f172a;
    font-size: 0.85rem;
}

.wa-avatar {
    width: 20px;
    height: 20px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.wa-btn {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    text-decoration: none;
}

.wa-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.wa-btn svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Notification Badge */
.wa-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #fff;
    opacity: 0;
    transition: opacity 0.3s;
}

.wa-badge.show {
    opacity: 1;
}

@media (max-width: 768px) {
    .wa-widget-container {
        bottom: 20px;
        right: 20px;
    }
    .wa-btn {
        width: 55px;
        height: 55px;
    }
    .wa-btn svg {
        width: 28px;
        height: 28px;
    }
}

/* WhatsApp Bubble Close Button */
.wa-bubble-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 10;
}
.wa-bubble-close:hover {
    color: #475569;
    background: #f1f5f9;
}

