/* WhatsApp Chat Widget Styles */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.whatsapp-widget[data-position="left"] {
    right: auto;
    left: 30px;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.whatsapp-button img {
    width: 36px;
    height: 36px;
}

.whatsapp-chat-box {
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    position: absolute;
    bottom: 70px;
    right: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.whatsapp-widget[data-position="left"] .whatsapp-chat-box {
    right: auto;
    left: 0;
    transform-origin: bottom left;
}

.whatsapp-widget.active .whatsapp-chat-box {
    transform: scale(1);
    opacity: 1;
}

.chat-header {
    background-color: #075E54;
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
}

.chat-header img {
    width: 36px;
    height: 36px;
    margin-right: 12px;
}

.chat-header-text h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-header-text p {
    margin: 4px 0 0;
    font-size: 12px;
    opacity: 0.8;
}

.chat-body {
    padding: 16px;
    background-color: #f5f5f5;
    height: 200px;
    overflow-y: auto;
}

.chat-message {
    background-color: white;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    max-width: 80%;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-footer {
    padding: 12px;
    background-color: white;
    display: flex;
    border-top: 1px solid #eee;
}

.start-chat-btn {
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.start-chat-btn:hover {
    background-color: #128C7E;
}

@media (max-width: 480px) {
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-chat-box {
        width: 280px;
    }
}