﻿#chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-family: Arial, sans-serif;
}

#chat-button {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 1000;
    background-color: var(--EcocertMarketingGreen) !important; /* Green color, change as needed */
    color: white !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 10px 20px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

    #chat-button:hover {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
        transform: translateY(-2px); /* Slight lift effect */
    }

.swal2-chat-popup {
    max-width: 600px !important;
    max-height: 800px !important;
    width: 95% !important;
    height: 95% !important;
}

.swal2-chat-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    background-color: #f1f1f1;
    padding: 10px;
    border-radius: 5px;
    min-height:200px;
    max-height: 308px;
    margin: 0 0 5px 0;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 14px;
}

    .chat-message strong {
        color: #007bff;
        margin-right: 5px;
        flex-shrink: 0;
        text-align: right;
        width:71px

    }

    .chat-message .message-content {
        flex-grow: 1;
        word-break: break-word;
        text-align: left
    }

.swal2-textarea {
    margin: 0 !important;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    font-size: 14px;
    width: 98%;
    height: 67px !important;
}

.btn.swal2-chat-send {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.typing-dots-container {
    display: flex;
    align-items: center;
    justify-content: start;
    width: 50px; /* Width to accommodate the typing dots */
    margin-left: 5px; /* Space between the text and the dots */
    height: 1em; /* Height to match the line height of the text */
    transform: translateY(-4px); /* Move the container up by 4px */
}

.typing-dots {
    font-size: 30px; /* Size of the dots */
    color: #000; /* Color of the dots */
    line-height: 1; /* Ensuring the line height is consistent */
}

    .typing-dots::after {
        content: '';
        display: inline-block; /* Inline-block for proper alignment */
        animation: typing 2s steps(3, end) infinite;
    }

@keyframes typing {
    0% {
        content: '.';
    }

    33% {
        content: '..';
    }

    66% {
        content: '...';
    }
}

.unread-indicator {
    position: absolute;
    top: -5px; /* Adjust as needed */
    right: -5px; /* Adjust as needed */
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 20px; /* Adjust as needed */
    height: 20px; /* Adjust as needed */
    text-align: center;
    line-height: 20px; /* Adjust to match height for vertical centering */
    font-size: 12px; /* Adjust as needed */
    font-weight: bold;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.chat-disclaimer {
    font-size: 11px;
    color: #666;
    text-align: left;
    font-style: italic;
    padding: 5px 45px 27px 46px;
}

    .chat-disclaimer a {
        color: #3071a9;
        text-decoration: none;
    }

        .chat-disclaimer a:hover {
            text-decoration: underline;
        }