.chart-board {
    position: fixed;
    bottom: 20px;
    right: 0;
    border-radius: 15px;
    z-index: 9999;
}

body:has(.inline-cms-toolbar) .chart-board {
    bottom: 80px;
}

.chart-board .card-header {
    border-bottom: 1px solid #f7f7f7cc;
}

.chart-board .card-header h6 {
    margin: 0;
    padding: 0;
    font-size: 16px;
}

.chart-board .card {
    display: flex;
    flex-direction: column;
    width: 450px;
    box-shadow: rgba(17, 17, 26, 0.1) 0px 0px 16px;
    background-color: #ffffff;
    right: 20px;
}

.chart-board .card-footer textarea {
    height: 50px;
    border: 1px solid #dbdbdb;
    outline: none;
    padding: 5px;
    border-radius: 5px;
    padding-right: 45px;
}

.chart-board .card-footer textarea:focus {
    border: 1px solid rgb(var(--primary-color, 0, 123, 255));
}

.chart-board .card-footer .chat-message-box {
    position: relative;
}

.chart-board .card-footer .chat-message-box button {
    position: absolute;
    right: 5px;
    top: 7px;
    background-color: rgb(var(--primary-color, 0, 123, 255));
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
}

.chart-board .card .card-body {
    height: 500px;
    overflow-y: auto;
    padding: 0 15px !important;
}

.chart-board .card .card-footer {
    border-top: none;
    background: none;
    border-top: 1px solid #f7f7f7cc;
}

.chart-board .card-header .chart-board-img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    border: 1px solid #e9e9e9;
    padding: 6px;
}

.chart-board .card-header .chart-board-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.chart-board .chat-messages {
    padding: 10px 0;
}

.chart-board .chat-messages .sent {
    max-width: 80%;
    margin-left: auto;
    background-color: rgb(var(--primary-color, 0, 123, 255), 0.05);
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 10px;
    text-align: left;
    width: max-content;
}

.chart-board .chat-messages .sent p {
    margin: 0;
    padding: 0;
}

.chart-board .chat-messages .received p {
    margin: 0;
    padding: 0;
}

.chart-board .chat-messages .received {
    text-align: left;
    max-width: 80%;
    background-color: #f5f5f5;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 10px;
    width: max-content;
}

.chart-board-close {
    height: 28px;
    width: 28px;
    line-height: 25px;
    text-align: center;
    border-radius: 50%;
    background-color: #ffffff;
    color: rgb(var(--primary-color, 0, 123, 255));
    border: 1px solid rgb(var(--primary-color, 0, 123, 255));
    transition: 0.3s;
}

.chart-board-close:hover {
    background-color: rgb(var(--primary-color, 0, 123, 255));
    color: #ffffff;
}

.chart-board .card .card-body::-webkit-scrollbar-track {
    background: #ffffff;
    border-radius: 10px;
}

.chart-board .card .card-body::-webkit-scrollbar-thumb {
    background: rgb(var(--primary-color, 0, 123, 255));
    border-radius: 10px;
}

.chart-board .card .card-body::-webkit-scrollbar-thumb:hover {
    background: rgb(var(--primary-color, 0, 123, 255));

}

.support-board-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.support-board-img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: rgba(17, 17, 26, 0.1) 0px 0px 16px;
    padding: 4px;
    position: absolute;
    right: 20px;
    bottom: 0;
}

.support-board-img i {
    position: absolute;
    right: -7px;
    top: -7px;
    background-color: rgb(var(--primary-color, 0, 123, 255));
    color: #ffffff;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    cursor: pointer;
}

.support-board-img i:hover {
    background-color: rgb(var(--primary-color, 0, 123, 255), 0.8);
}

@media (max-width: 991px) {
    .chart-board {
        bottom: 65px;
    }

    .has-navbar-vertical-aside .chart-board {
        bottom: 20px !important;
    }

    .chart-board .card {
        width: 420px;
    }

    .chart-board .card .card-body {
        height: 450px;
    }
}

@media (max-width: 767px) {
    .chart-board {
        width: 100%;
    }

    .chart-board .card {
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
    }
}

.chart-board .card-footer .error {
    background: rgb(217 80 80);
    color: #ffffff;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 10px;
    font-size: 12px;
    margin-bottom: 10px;
    padding: 8px;
}

.chart-board .suggested-message span {
    font-size: 14px;
    background: #e7e7e7;
    padding: 2px 10px;
    border-radius: 5px;
    cursor: pointer;
    line-height: 27px;
}

.chatbot-message-text-class {
    white-space: pre-line;
}

.chart-board .typing-indicator {
    display: inline-flex;
    align-items: center;
    background-color: #ededed;
    padding: 18px 20px 9px 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    max-width: 70px;
}

.chart-board .typing-indicator span {
    height: 5px;
    width: 5px;
    background-color: #676666;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: bounce 1.3s infinite ease-in-out;
}


.chart-board .typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.chart-board .typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

.chart-board .chat-spinner {
    color: #c2c1c1 !important;
    background: #fafafa;
    width: max-content;
    margin: 0 auto;
    border-radius: 50%;
    height: 30px;
    width: 30px;
    line-height: 30px;
    margin-top: 5px;
}
