/* WhatsApp Widget Styles */
.whatsapp-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
}

.whatsapp-tooltip {
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-tooltip-text {
    background: #FFFFFF;
    padding: 8px 14px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 13px;
    color: #333;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    line-height: 1.3;
}

.whatsapp-widget:not(.is-open):hover .whatsapp-tooltip-text {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

/* Chat Box */
.whatsapp-chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
}

.whatsapp-widget.is-open .whatsapp-chat-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    background-color: #095e54;
    /* WhatsApp dark green */
    color: white;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.chat-header-icon {
    font-size: 24px;
}

.chat-header-text {
    flex: 1;
}

.chat-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.chat-subtitle {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.4;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    opacity: 0.8;
}

.chat-close:hover {
    opacity: 1;
}

.chat-body {
    padding: 20px;
    background-color: #f0f2f5;
}

.chat-contact {
    display: flex;
    align-items: center;
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    /* Subtle shadow */
    transition: background-color 0.2s;
    border-left: 4px solid #25D366;
}

.chat-contact:hover {
    background-color: #f9f9f9;
}

.contact-avatar {
    position: relative;
    margin-right: 12px;
}

.contact-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.contact-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background-color: #25D366;
    border-radius: 50%;
    border: 2px solid white;
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-weight: 700;
    font-size: 15px;
    color: #111;
}

.contact-role {
    font-size: 12px;
    color: #666;
}

.contact-icon {
    color: #25D366;
    font-size: 24px;
}