/* WhatsApp Widget Styles */
.whatsapp-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: none; /* Hidden by default */
    flex-direction: column;
    align-items: flex-end;
    /* font-family: inherit; Use site font */
}

.whatsapp-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 300px;
    overflow: hidden;
    margin-bottom: 10px;
    animation: slideInUp 0.3s ease-out;
}

.whatsapp-header {
    background-color: #25D366;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.whatsapp-header-title {
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-close-btn {
    background: rgba(0,0,0,0.1);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.whatsapp-close-btn:hover {
    background: rgba(0,0,0,0.2);
}

.whatsapp-body {
    padding: 20px;
    background-color: #f0f2f5; /* Light grey background */
    min-height: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.whatsapp-message {
    background: white;
    padding: 10px 15px;
    border-radius: 0 15px 15px 15px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-size: 14px;
    color: #333;
    position: relative;
    max-width: 80%;
    align-self: flex-start;
}

.whatsapp-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 10px solid white;
    border-left: 10px solid transparent;
}

.whatsapp-footer {
    padding: 10px;
    display: flex;
    justify-content: flex-end;
}

.whatsapp-chat-btn {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.whatsapp-chat-btn:hover {
    transform: scale(1.05);
    color: white;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
