.chat-head-button {
    position: fixed;
    bottom: 80px;
    right: 10px;
    background-color: #FE5D26;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
}

.chat-window {
    position: fixed;
    bottom: 150px;
    right: 20px;
    width: 350px;
    height: 450px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: none; /* Hidden by default */
    flex-direction: column;
    z-index: 999;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background-color: #FE5D26;
    color: white;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.chat-input-container {
    display: flex;
    padding: 10px;
}

.chat-input-container input {
    flex-grow: 1;
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 5px;
}

.chat-input-container button {
    margin-left: 10px;
    background-color: #FE5D26;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
}

/* Container for messages, enabling flexbox for alignment */
.chat-messages {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    border-bottom: 1px solid #eee;
    display: flex; /* Makes the chat container a flexbox */
    flex-direction: column; /* Stacks messages vertically */
    gap: 10px; /* Adds space between message bubbles */
}

/* Base styling for all message bubbles */
.message-bubble {
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 80%;
    word-wrap: break-word; /* Prevents long words from overflowing */
}

/* Styling for messages sent by the user (customer) */
.message-bubble.sent {
    background-color: #FE5D26; /* A nice blue color */
    color: white;
    align-self: flex-end; /* Pushes the bubble to the right side */
    border-bottom-right-radius: 4px; /* A small detail for a professional look */
}

/* Styling for messages received from the admin */
.message-bubble.received {
    background-color: #e5e7eb; /* A light gray color */
    color: #333;
    align-self: flex-start; /* Pushes the bubble to the left side */
    border-bottom-left-radius: 4px; /* A small detail for a professional look */
}