body .whatsapp-chat {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 9999999 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    pointer-events: auto !important;
}



.whatsapp-button {
    cursor: pointer;
    transition: all 0.3s ease;
    animation: whatsapp-float 3s ease-in-out infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    animation-play-state: paused;
}

.whatsapp-button img {
    object-fit: contain;
}

@keyframes whatsapp-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.whatsapp-popup {
    position: absolute !important;
    bottom: 80px !important;
    right: 0 !important;
    width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    display: none !important;
    transition: all 0.3s ease;
    z-index: 9999999 !important;
}

.whatsapp-popup.active {
    display: block !important;
}

.whatsapp-header {
    background: var(--header-color);
    color: white;
    padding: 16px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agent-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-name {
    font-weight: 600;
    font-size: 16px;
}

.agent-status {
    font-size: 12px;
    opacity: 0.9;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.close-btn:hover {
    background: rgba(255,255,255,0.1);
}

.whatsapp-body {
    padding: 20px;
    min-height: 120px;
    background: #f0f0f0;
}

.message-bubble {
    background: white;
    padding: 12px 16px;
    border-radius: 18px 18px 18px 4px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    line-height: 1.4;
}

.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    text-align: right;
}

.whatsapp-footer {
    padding: 16px;
    display: flex;
    gap: 8px;
    border-top: 1px solid #eee;
    border-radius: 0 0 12px 12px;
}

.whatsapp-footer input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 16px;
    outline: none;
    font-size: 14px;
}

.whatsapp-footer input:focus {
    border-color: var(--header-color);
}

.whatsapp-footer button {
    width: 40px;
    height: 40px;
    background: var(--header-color);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.whatsapp-footer button:hover {
    background: #128C7E;
}

@media (max-width: 480px) {
    .whatsapp-popup {
        width: 300px;
    }
    

}