﻿.chat-wrapper {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 2000;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.chat-box {
    width: 350px;
    display: none; /* hidden by default */
    margin-top: 10px;
}


#chatMessages {
    height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: #f5f5f5;
}

.message {
    display: flex;
    margin: 5px 0;
    max-width: 98%;
}

    .message.sent {
        justify-content: flex-end;
        margin-left: auto;
    }

    .message.received {
        justify-content: flex-start;
        margin-right: auto;
    }

    .message .bubble {
        padding: 8px 12px;
        border-radius: 15px;
        font-size: 12px;
        position: relative;
        word-wrap: break-word;
    }

    .message.sent .bubble {
        background: #d4f8c4; /* WhatsApp green */
        border-bottom-right-radius: 0;
    }

    .message.received .bubble {
        background: #eaeaea;
        border-bottom-left-radius: 0;
    }

.meta {
    font-size: 11px;
    color: gray;
    text-align: right;
    margin-top: 3px;
}

.status {
    font-size: 11px;
    margin-left: 4px;
}

    /*.status::after {
        content: "✓";*/ /* fallback */
    /*}*/

    .status:contains("✓") {
        color: gray;
    }

    .status:contains("✓✓") {
        color: #34b7f1; /* blue double check like WhatsApp */
    }

.table-warning {
    background-color: #fff3cd !important;
}
