.whatsapp-widget {
    position: fixed;
    z-index: 2147483647;
    /* Max z-index */
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto !important;
    max-width: fit-content;
}

.whatsapp-widget .whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    /* Background removed to show SVG logo */
    background-color: #00E676;
    border-radius: 50%;

    /* Added padding to reduce inner icon size */
    padding: 10px;

    /* box-shadow: 2px 2px 6px rgba(0,0,0,0.4); Use drop-shadow on SVG instead if needed */
    color: white;
    font-size: 30px;
}

.whatsapp-widget .whatsapp-button svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.4));
}

.whatsapp-widget:hover .whatsapp-button {
    transform: scale(1.1);
}

.whatsapp-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding: 0;
}

.whatsapp-chat-window {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    overflow: hidden;
    font-family: sans-serif;
}

.whatsapp-chat-header {
    background: #075e54;
    color: white;
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.whatsapp-chat-close {
    cursor: pointer;
}

.whatsapp-chat-body {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.whatsapp-agent {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
}

.whatsapp-agent:hover {
    background-color: #f5f5f5;
}

.whatsapp-agent-avatar {
    position: relative;
    margin-right: 10px;
}

.whatsapp-agent img {
    display: block;
    /* Removes extra space */
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.whatsapp-agent-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background-color: #00E676;
    /* WhatsApp Green */
    border: 2px solid white;
    border-radius: 50%;
}

.whatsapp-agent-info {
    display: flex;
    flex-direction: column;
}

.whatsapp-agent-name {
    font-weight: bold;
}

.whatsapp-agent-dept {
    font-size: 0.8em;
    color: #666;
}

/* Positions */
/* Positions */
.whatsapp-pos-bottom-right {
    bottom: 60px;
    right: 5px;
}

.whatsapp-pos-bottom-left {
    bottom: 20px;
    left: 20px;
}

.whatsapp-pos-top-right {
    top: 20px;
    right: 20px;
}

.whatsapp-pos-top-left {
    top: 20px;
    left: 20px;
}

/* Ensure widget doesn't block clicks */
.whatsapp-widget {
    width: auto !important;
    max-width: fit-content;
}