/* START CHATBOT STYLES */


#chatbot-icon:hover {
    transform: scale(1.1)
}

.chatbot-container {
    display: flex;
    height: 100%;
    background-image: url("../images/chatbot/background.png");
    background-size: cover;
    border: 3px solid var(--black);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, .1);
    z-index: 101;
}

.ui-handle {
    pointer-events: none;
}

.ui-handle::after {
    content: '';
    position: absolute;
    top: 0px;
    left: 40px;
    width: 19px;
    height: 52px;
    pointer-events: none;
    background: url('data:image/svg+xml;utf8,<svg width="32" height="52" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 H32 Q0,0 0,36 Z" fill="rgb(0,0,0)"/><rect x="0" y="0" width="32" height="52" fill="white" fill-opacity="0" /></svg>');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.ui-handle::before {
    content: '';
    position: absolute;
    top: 45px;
    left: 0;
    width: 32px;
    height: 29px;
    pointer-events: none;
    background: url('data:image/svg+xml;utf8,<svg width="32" height="52" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 H28 Q1,1 0,52 Z" fill="rgb(0,0,0)"/><rect x="0" y="0" width="32" height="52" fill="white" fill-opacity="0" /></svg>');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.chatSendBtn {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
}

.resize-handle {
    cursor: grab;
}

.chatbot-header {
    display: flex;
}

.chatbot-messages {
    display: flex;
    /* Firefox */
        -ms-overflow-style: none;
    /* Internet Explorer 10+ */
    &::-webkit-scrollbar {
        /* WebKit */
        width: 1px;
        /* Chrome/Safari/Webkit */
    }
}

.waiting-page {
    display: flex;
}

/* JS classes */
.user-message {
    align-self: flex-end;
    background-color: #262626;
    color: var(--white);
    padding: 10px 15px;
    border-radius: 10px 0 10px 10px;
    max-width: 75%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, .1);
    word-wrap: break-word;
    font-size: 14px
}

.user-message-container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.ai-message-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.ai-avatar-container,
.user-avatar-container {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: #262626;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-avatar-container {
    margin-right: 5px;
}

.user-avatar-container {
    margin-left: 5px;
}

.ai-avatar,
.user-avatar {
    height: 15px;
    width: 15px;
    display: flex;
}


.ai-message {
    align-self: flex-start;
    background-color: #f3f3f3;
    color: #333;
    padding: 10px 15px;
    border-radius: 0 10px 10px 10px;
    max-width: 80%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, .1);
    word-wrap: break-word;
    font-size: 14px
}

.ai-message p {
    margin: 0 !important;
    line-height: 1.6
}

.ai-message img {
    width: 30px;
    height: 30px;
    border-radius: 50%
}

.ai-message ul {
    padding-top: 10px;
    padding-left: 0 !important
}

.ai-message li {
    line-height: 1.5;
    margin-bottom: 8px
}

.typing-loader {
    align-self: flex-start;
    background-color: var(--bg_gray5);
    color: var(--black);
    padding: 10px 15px;
    border-radius: 7px 7px 0;
    max-width: 75%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, .1);
    font-size: 14px;
    display: flex;
    gap: 5px;
    align-items: center
}

.typing-loader:after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #0073aa;
    animation: typing 1s infinite
}
/* //JS Css close */

.inputButtonHead {
    display: flex;
}


.chatbot-send:hover{
    background-color: #525252;
    transition: background-color .3s ease-in-out;
}

.chatbot-formsend:disabled {
    opacity: 0.6;
    pointer-events: none;
}

@keyframes slideUp {
    from {
        transform: translateY(200px)
    }

    to {
        transform: translateY(0)
    }
}

.chatbot-messages::-webkit-scrollbar {
    width: 4px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background-color: var(--black);
    border-radius: 10px;
    transition: background-color .3s ease;
}

.chatbot-messages::-webkit-scrollbar-track {
    background-color: var(--white);
    border-radius: 10px
}

@keyframes typing {
    0% {
        transform: scale(0)
    }

    50% {
        transform: scale(1)
    }

    100% {
        transform: scale(0);
    }
}

.ChatForm {
    display: flex;
    border-top: 1px solid var(--black);
}

.ChatForm input {
    all: unset;
    border: 1px solid var(--gray);
    height: 35px;
    border-radius: 8px;
    padding: 0 10px;
    box-sizing: border-box;
    transition: all .2s ease;
    background-color: var(--white);
    font-size: 14px;
}

.ChatForm input::placeholder {
    font-size: 13px;
    color: #9CACCB;
}

.ChatForm input:hover,
.ChatForm input:focus {
    border: 1px solid var(--blue);
}

.chatbot-message-container {
    display: flex;
}

.chatbot-message-header {
    display: flex;
}

