/* WhatsApp Chat Widget Styles */
.whatsapp-widget {
    position: fixed;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.whatsapp-bottom-right {
    bottom: 20px;
    right: 20px;
}

.whatsapp-bottom-left {
    bottom: 20px;
    left: 20px;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.whatsapp-button img {
    animation: whatsapp-float 3s ease-in-out infinite;
}

.whatsapp-button:hover img {
    transform: scale(1.1);
    animation-play-state: paused;
}

@keyframes whatsapp-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.whatsapp-small .whatsapp-button {
    width: 50px;
    height: 50px;
}

.whatsapp-large .whatsapp-button {
    width: 70px;
    height: 70px;
}

.whatsapp-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.whatsapp-bottom-left .whatsapp-chat-window {
    right: auto;
    left: 0;
}

.whatsapp-header {
    background: var(--whatsapp-color);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.whatsapp-agent-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.whatsapp-agent-name {
    font-weight: 600;
    font-size: 14px;
}

.whatsapp-status {
    font-size: 12px;
    opacity: 0.9;
}

.whatsapp-close {
    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;
}

.whatsapp-messages {
    flex: 1;
    padding: 20px;
    background: #e5ddd5;
    overflow-y: auto;
}

.whatsapp-message {
    background: white;
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    max-width: 80%;
    position: relative;
}

.whatsapp-message-content {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.whatsapp-message-time {
    font-size: 11px;
    color: #999;
    text-align: right;
}

.whatsapp-input {
    padding: 15px;
    background: white;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #eee;
}

.whatsapp-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
}

.whatsapp-send-btn {
    width: 40px;
    height: 40px;
    background: var(--whatsapp-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.whatsapp-send-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .whatsapp-hide-mobile {
        display: none !important;
    }
    
    .whatsapp-chat-window {
        width: 300px;
        height: 400px;
    }
}

@media (min-width: 769px) {
    .whatsapp-hide-desktop {
        display: none !important;
    }
}