@import url('evolutis-ai-chatbot-variables.css');
@import url('evolutis-ai-chatbot-fonts.css');

#evo_aichat_chatbot_container h1,
#evo_aichat_chatbot_container h2,
#evo_aichat_chatbot_container h3,
#evo_aichat_chatbot_container h4,
#evo_aichat_chatbot_container h5,
#evo_aichat_chatbot_container h6,
#evo_aichat_chatbot_container_page h1,
#evo_aichat_chatbot_container_page h2,
#evo_aichat_chatbot_container_page h3,
#evo_aichat_chatbot_container_page h4,
#evo_aichat_chatbot_container_page h5,
#evo_aichat_chatbot_container_page h6 {
    font-family: var(--primary-font);
    color: var(--text-color-ai-message);
    padding: 0;
    margin: 0.75rem 0;
}

#evo_aichat_chatbot_container h1,
#evo_aichat_chatbot_container_page h1 {
    font-size: 22px;
    font-weight: 600;
}

#evo_aichat_chatbot_container h2,
#evo_aichat_chatbot_container_page h2 {
    font-size: 20px;
    font-weight: 600;
}

#evo_aichat_chatbot_container h3,
#evo_aichat_chatbot_container_page h3 {
    font-size: 18px;
    font-weight: 600;
}

#evo_aichat_chatbot_container h4,
#evo_aichat_chatbot_container_page h4 {
    font-size: 16px;
    font-weight: 500;
}

#evo_aichat_chatbot_container h5,
#evo_aichat_chatbot_container_page h5 {
    font-size: 16px;
}

#evo_aichat_chatbot_container h6,
#evo_aichat_chatbot_container_page h6 {
    font-size: 16px;
}

#evo_aichat_chatbot_container ol,
#evo_aichat_chatbot_container ul,
#evo_aichat_chatbot_container_page ol,
#evo_aichat_chatbot_container_page ul {
    padding: 0 0 0.25rem 1.5rem;
    margin: 0;
}

#evo_aichat_chatbot_container strong,
#evo_aichat_chatbot_container_page strong {
    font-family: var(--primary-font);
    font-weight: 600;
}

#evo_aichat_chatbot_container a,
#evo_aichat_chatbot_container_page a {
    color: var(--text-color-ai-message);
    font-family: var(--primary-font);
}

#evo_aichat_chatbot_container p,
#evo_aichat_chatbot_container_page p {
    font-family: var(--primary-font);
    font-size: 14px;
}

#evo_aichat_chatbot_container span,
#evo_aichat_chatbot_container_page span {
    font-family: var(--primary-font);
}

#evo_aichat_chatbot_container li,
#evo_aichat_chatbot_container_page li {
    font-family: var(--primary-font);
}

#evo_aichat_chatbot_container input[type="text"],
#evo_aichat_chatbot_container_page input[type="text"] {
    background-color: var(--background-input-color);
    color: var(--text-input-color);
    font-family:var(--primary-font);
    font-size: 14px;
    border: none;
    border-radius: 0;
    padding: 0 0.5rem 0 0;
    margin: 0;
}

#evo_aichat_chatbot_button {
    background-color: var(--background-color-button);
    color: var(--text-color-header);
    position: fixed;
    right: 35px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    border-radius: 9999px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: ease-in-out 0.3s;
    z-index: 149;
}

#evo_aichat_chatbot_container {
    font-family: var(--primary-font);
    position: fixed;
    right: 20px;
    bottom: 30px;
    height: 400px;
    display: grid;
    grid-template-rows: 1fr 5fr 1fr;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    z-index: 150;
    transition: ease-in-out 0.5s;
}

#evo_aichat_chatbot_container_page {
    font-family: var(--primary-font);
    height: 700px;
    display: grid;
    grid-template-rows: 1fr 10fr 1fr;
    border-radius: 10px;
}

.evo_aichat_show_button {
    transform: unset;
}

.evo_aichat_hide_right_button {
    transform: translateX(250%);
}

.evo_aichat_hide_left_button {
    transform: translateX(-250%);
}

.evo_aichat_show_container {
    transform: unset;
}

.evo_aichat_hide_container {
    transform: translateY(150%);
}

.evo_aichat_chatbot_header {
    background-color: var(--background-color-header);
    color: var(--text-color-header);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    border-radius: 10px 10px 0 0;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

#evo_aichat_chatbot_container .evo_aichat_header_title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

#evo_aichat_chatbot_container .evo_aichat_header_title p {
    font-size: 16px !important;
    margin: 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

#evo_aichat_chatbot_messages_container,
#evo_aichat_chatbot_messages_container_page {
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    overflow-y: scroll;
}

.evolutis_aichat_pro_message_user_container {
    display: flex;
    flex-direction: column;
    align-items: end;
    margin: 0.5rem 1rem;
}

.evolutis_aichat_pro_message_user_container span {
    color: var(--icon-color);
    font-size: 12px;
    margin-right: 0.3rem;
}

.evolutis_aichat_pro_message_user {
    background-color: var(--background-color-user-message);
    color: var(--text-color-user-message);
    font-size: 14px;
    padding: 0.5rem 0.75rem;
    margin: 0.5rem 0;
    border-radius: 10px 10px 0 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

.evolutis_aichat_pro_message_user p {
    margin: 0;
}

.evolutis_aichat_pro_message_assistant_container {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin: 0.5rem 1rem;
}

.evolutis_aichat_pro_message_assistant_container > span:first-child {
    color: var(--icon-color);
    font-size: 12px;
    margin-left: 0.3rem;
}

.evolutis_aichat_pro_message_assistant_container > span:first-child::before {
    font-family: var(--icon-123elec-font);
    content: '\f123';
    font-size: 2rem;
    background-color: #000;
    background-image: linear-gradient(to right bottom, #1f5b97 0%, rgba(31, 91, 151, 0) 100%);
    color: #fff;
    border-radius: .5rem;
    margin-bottom: .5rem;
    margin-right: 0.35rem;
}

.evolutis_aichat_pro_message_assistant {
    background-color: var(--background-color-ai-message);
    color: var(--text-color-ai-message);
    font-size: 14px;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-radius: 10px 10px 10px 0;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.075);
}

.evolutis_aichat_pro_message_assistant p {
    padding: 0 0.25rem;
    margin: 0;
}

.evo_aichat_loader_dot {
    background-color: var(--text-color-ai-message);
    width: 7px;
    height: 7px;
    display: inline-block;
    margin: 0 0.1rem;
    border-radius: 50%;
    animation: bounce 0.6s infinite alternate;
}

.evo_aichat_loader_dot:nth-child(1) {
    animation-delay: 0s;
}

.evo_aichat_loader_dot:nth-child(2) {
    animation-delay: 0.2s;
}

.evo_aichat_loader_dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-6px);
    }
}

.evo_aichat_chatbot_input {
    background-color: var(--background-input-color);
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border-radius: 0 0 10px 10px;
    box-shadow: 0px -5px 10px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.evo_aichat_chatbot_input input {
    background-color: var(--background-input-color);
    color: var(--text-input-color);
    font-family: var(--primary-font);
    width: 100%;
    padding-right: 0.5rem;
    border: none;
    outline: none;
}

.evo_aichat_chatbot_input input::placeholder {
    font-family: var(--primary-font);
    color: var(--icon-color);
}

.evo_aichat_icon_chatbot,
.evo_aichat_icon_close {
    display: flex;
    justify-content: center;
    align-items: center;
}

.evo_aichat_icon_close {
    cursor: pointer;
}

.evo_aichat_icon_send {
    color: var(--icon-color);
}

.evo_aichat_icon_send_active,
.evo_aichat_icon_stop {
    color: var(--primary-color);
    cursor: pointer;
}

.evo_aichat_icon_hide {
    display: none;
}

.evo_aichat_icon_show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.evo_aichat_icon_chatbot::before {
    font-family: var(--icon-123elec-font);
    content: '\f130';
    font-size: 27px;
}

.evo_aichat_icon_close::before {
    font-family: var(--icons-font);
    content: '\e803';
    font-size: 20px;
}

.evo_aichat_icon_send::before {
    font-family: var(--icons-font);
    content: '\e802';
    font-size: 20px;
}

.evo_aichat_icon_stop::before {
    font-family: var(--icons-font);
    content: '\e804';
    font-size: 20px;
}

@media screen and (min-width: 576px) {
    #evo_aichat_chatbot_container {
        right: 35px;
        width: 300px;
        height: 500px;
        grid-template-rows: 1fr 6fr 1fr;
        margin: 0;
    }
}

@media screen and (min-width: 768px) {
    #evo_aichat_chatbot_container {
        width: 400px;
        height: 550px;
        grid-template-rows: 1fr 7fr 1fr;
    }
}

@media screen and (min-width: 992px) {
    #evo_aichat_chatbot_container {
        width: 450px;
        height: 600px;
        grid-template-rows: 1fr 8fr 1fr;
    }
}