/* Floating WhatsApp Icon */
#whatsapp-icon {
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    position: fixed;
}
#whatsapp-icon .notification-bubble {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#whatsapp-chat {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ddd;
    font-family: Arial, sans-serif;
}

.chat-header {
    background: #075E54;
    color: white;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    flex-direction: column; /* Stack elements vertically */
    align-items: flex-start; /* Align text to the left */
    position: relative;
}

.business-name {
    font-weight: bold;
    font-size: 14px;
}

.status {
    font-size: 12px;
    color: #cfcfcf;
    display: block;
}

.close-btn {
    position: absolute; /* Position absolutely within the header */
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: white;
}

.chat-body {
    padding: 10px;
    background: url('https://i.imgur.com/m1aFGsf.jpg');
    background-size: cover;
    height: 150px;
    overflow-y: auto;
}

.message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
}

.message.received {
    background: #E1FFC7;
    color: #000;
    border-top-left-radius: 0;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-footer {
    text-align: center;
    padding: 10px;
    background: #fff;
    border-top: 1px solid #eee;
}

.chat-footer button {
    background: #25D366;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

.chat-footer button:hover {
    background: #20bc5b;
}
