﻿


.chat-container {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

    /* Hide scrollbar for Chrome, Safari and Opera */
    .chat-container::-webkit-scrollbar {
        display: none;
    }

/* Hide scrollbar for IE, Edge and Firefox */
.chat-container {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.chat-box {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    margin: auto;
    width: 80%;
}

.chat-box::-webkit-scrollbar {
    display: none;
}

.chat-box {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.chat-box pre {
    overflow: auto;
}

.message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}


.message.received {
    flex-direction: row;
}

.message.sent {
    flex-direction: row-reverse;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.bb-typing-icon {
    width: 46px;
}

.message-content {
    max-width: 70%;
    padding: 0px 15px;
    border-radius: 20px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    font-family: Nunito Sans;
    font-size: clamp(0.875rem, 0.839rem + 0.229vi, 1.125rem);
    font-weight: 400;
    line-height: 28px;
    display: inline-block;
}

.bb-bot-chat-received-message .message-content {
    min-width: 40%;
}

.message-content {
    padding-top: 7px;
}

.my-message-content {
    white-space: pre-wrap;
}

.limit-exceeded-message {
    color: red;
    font-weight: var(--bold-font-weight)
}

/*.message.received .message-content {
    margin-left: 10px;
    padding-left: clamp(1rem, -0.5135rem + 28.8867vw, 4rem);
}
*/
.message.sent .message-content {
    margin-right: 10px;
}


.message-icons {
    margin-top: clamp(0.3rem, 0.3em + 2vw, 2rem);
}

.message-icons img {
    width: 20px;
}

.chat-actions {
    max-width: 20px;
    margin: 0 0.5%;
    cursor: pointer;
}

[data-title]:hover:after {
    opacity: 1;
    transition: all 0.1s ease 0.5s;
    visibility: visible;
}

[data-title]:after {
    content: attr(data-title);
    background-color: black;
    color: white;
    font-size: 14px;
    position: absolute;
    padding: 0px 12px 0px 12px;
    bottom: -2.2em;
    left: -70%;
    white-space: nowrap;
    opacity: 0;
    border-radius: 8px;
    z-index: 99999;
    visibility: hidden;
}

[data-title] {
    position: relative;
}

.message-footer-input {
    display: flex;
    align-items: center;
    padding: 3%;
    box-shadow: 0px -4px 10px 0px rgba(208, 208, 208, 0.25);
}

.message-input {
    background: var(--Primary-Light, rgba(247, 249, 251, 1));
    width: 75%;
    border-radius: 16px;
    margin: auto;
    padding: 3px;
    display: flex;
    align-items: center;
}

.bb-stop-icon {
    width: 20px;
    height: 20px;
}

.bb-send-icon {
    width: 20px;
    height: 20px;
}

.message-input textarea {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    background: var(--Primary-Light, rgba(247, 249, 251, 1));
    width: 90%;
    resize: none;
    max-height: 320px;
}

    .message-input button {
        background: none;
        border: none;
        font-size: 20px;
        margin-right: 10px;
        cursor: pointer;
    }

        .message-input button:focus {
            outline: none;
        }

        .message-input button:disabled {
            pointer-events: none;
            cursor: default;
        }

.send-message-action-buttons {
    vertical-align: middle;
    cursor: pointer;
}

.send-button:disabled .bb-send-icon {
    display: block;
}
.send-button:disabled .bb-send-icon-enabled,
.send-button .bb-send-icon {
    display: none;
}
.send-button .bb-send-icon-enabled {
    display: block;
}

.gif-looking-chat-wizard {
    display: flex;
    align-items: center;
    margin: auto;
    margin-bottom: 20px;
}

.chat-hidden-actions{
    display: none;
}


.message-content > p:first-of-type, h1:first-of-type, h2:first-of-type, h3:first-of-type, h4:first-of-type, 
h5:first-of-type, h6:first-of-type {
    margin-top: unset !important;
}



.bb-chat-contain-full-width{
    max-width: 100%;
}


@media screen and (max-width: 700px) {
    .message-input {
        width: 100%;
    }

    .chat-box {
        width: 100%;
        padding: 12px;
        overflow-x: hidden;
    }

    .message-content {
        max-width: 95%;
        padding-left: 0;
        padding-right: 0;
    }
    .message.sent {
        padding-left: 20%;
    }
}


@media screen and (max-width: 500px) {
    .message-input button {
        margin-right: 3px;
    }
    .message-input textarea,
    .message-input textarea:focus {
        font-size: 16px !important
    }
    .bb-bot-chat-received-message .message-content {
        min-width: 80%; 
    }
}
