#chatToggle {
    background-color: #fff;
    border: 2px solid #000;
    color: #000;
    font-size: 18px;
    font-weight: 400;
    outline: none;
    box-shadow: none;
    transition: all 0.5ms ease-in-out;
}

#chatToggle:hover {
    background-color: #C1D72E;
    border-color: #C1D72E;
    color: #fff;
}

.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-popup {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    height: 500px;
    z-index: 1111;
    display: none;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.chat-header {
    padding: 15px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom: 1px solid #dee2e6;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.agent-status {
    font-size: 12px;
    color: #28a745;
    padding: 1px 4px;
    border-radius: 999px;
    background-color: #fff;
}

.chat-messages {
    height: 350px;
    overflow-y: auto;
    padding: 15px;
}

.message {
    margin-bottom: 20px;
    max-width: 80%;
}

.message-container {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.message-container.sent {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.message-content {
    display: flex;
    flex-direction: column;
}

.message-username {
    font-size: 12px;
    margin-bottom: 2px;
}

.message-text {
    padding: 10px 15px;
    border-radius: 15px;
}

.message-received .message-text {
    background: #f1f0f0;
}

.message-sent .message-text {
    background: #f1f0f0;
    color: black;
}

.chat-input {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: white;
    border-top: 1px solid #dee2e6;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

@media (max-width: 480px) {
    .chat-popup {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .chat-messages {
        height: 80%;
    }
    
}