/* WhatsApp Chat Widget Styling */
.whatsapp-chat-widget {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 1000;
    font-family: 'Arial', sans-serif;
}

.whatsapp-chat-button {
    background-color: #13C656;
    border-radius: 50%;
    width: 60px; /* Kept at 60px for visibility, per previous feedback */
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.whatsapp-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    background-color: #11b04c;
}

.whatsapp-chat-button:active {
    transform: scale(0.95);
}

.whatsapp-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.whatsapp-chat-button:hover .whatsapp-icon {
    transform: rotate(360deg);
}

.whatsapp-chat-popup {
    display: none;
    background-color: white;
    border-radius: 6px;
    width: 280px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    position: absolute;
    bottom: 75px;
    right: 0;
    transform: translateY(8px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.whatsapp-chat-popup.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.whatsapp-chat-header {
    background-color: #01805E;
    border-radius: 6px 6px 0 0;
    padding: 8px;
    color: white;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

.whatsapp-chat-header:hover {
    background-color: #016b50;
}

.whatsapp-brand-logo {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.whatsapp-chat-header:hover .whatsapp-brand-logo {
    transform: rotate(10deg);
}

.whatsapp-brand-text {
    flex: 1;
    overflow: hidden;
    line-height: 1.2; /* Reduced line height for tighter text spacing */
}

.whatsapp-brand-name {
    font-weight: bold;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px; /* Reduced from default to tighten spacing */
}

.whatsapp-brand-subtitle {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px; /* Reduced to bring subtitles closer */
}

.whatsapp-chat-body {
    padding: 8px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.whatsapp-chat-body p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #333;
    animation: fadeIn 0.5s ease;
}

.whatsapp-chat-footer {
    padding: 8px;
    background-color: white;
    border-radius: 0 0 6px 6px;
    text-align: center;
}

.whatsapp-start-chat {
    background-color: #13C656;
    color: white;
    padding: 8px 18px;
    border-radius: 18px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    font-size: 13px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-start-chat:hover {
    background-color: #11b04c;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.whatsapp-start-chat:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Animation for text fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .whatsapp-chat-popup {
        width: 240px;
    }
    .whatsapp-chat-button {
        width: 50px;
        height: 50px;
    }
    .whatsapp-icon {
        width: 35px;
        height: 35px;
    }
    .whatsapp-brand-logo {
        width: 32px;
        height: 32px;
    }
    .whatsapp-brand-name {
        font-size: 14px;
    }
    .whatsapp-brand-subtitle {
        font-size: 9px;
        margin-bottom: 1px; /* Even tighter on mobile */
    }
}