/* ChatBox styles start  */

.ays-assistant-chatbox {
    width: 100%;
}

.ays-assistant-chatbox .ays-assistant-chatbox-closed-view {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    cursor: pointer;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    margin-bottom: 10px;
}

.ays-assistant-chatbox .ays-assistant-closed-icon-container {
    width: 70px;
    height: 70px;
}

.ays-assistant-chatbox .ays-assistant-closed-icon-container img {
    width: 100%;
    height: 100%;
    max-width: unset;
    object-fit: cover;
}

.ays-assistant-chatbox .ays-assistant-chatbox-closed-view:hover {
    transform: scale(1.05);
    transition: 0.3s;
}

.ays-assistant-chatbox .ays-assistant-chatbox-main-container {
    width: 28%;
    height: 55%;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 999999;
    /* margin-right: 20px;
    margin-bottom: 20px; */
    margin: 0 20px 20px 20px;
}

.ays-assistant-chatbox-maximized-bg {
    width: 100%;
    height: 100%;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 99999;
    background-color: #00000080;
}

div.ays-assistant-chatbox>div.ays-assistant-chatbox-main-container.ays-assistant-chatbox-main-container-maximized-view {
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    width: calc(100% - 100px) !important;
    height: calc(100vh - 250px) !important;
    box-shadow: 0px 0px 20px 5px #747474;
    border-radius: 11px;
    overflow: hidden;
    transform: unset !important;
    max-width: 1300px;
}

.ays-assistant-chatbox-disabled-scroll-body {
    height: 100%;
    overflow-y: hidden;
}

.ays-assistant-chatbox div.ays-assistant-chatbox-main-container-maximized-view .ays-assistant-chatbox-header-row {
    cursor: default;
}

@media (min-width: 1500px) {
    .ays-assistant-chatbox .ays-assistant-chatbox-main-container {
        width: 25%;
    }
}

@media (min-width: 601px) and (max-width: 1000px) {
    .ays-assistant-chatbox .ays-assistant-chatbox-main-container {
        width: 50%;
    }
}

@media (max-width: 600px) {
    .ays-assistant-chatbox .ays-assistant-chatbox-main-container {
        width: 95%;
        margin-left: 10px;
    }
}

.ays-assistant-chatbox .ays-assistant-chatbox-logo {
    display: flex;
    justify-content: flex-end;
    cursor: pointer;
}
.ays-assistant-chatbox .ays-assistant-chatbox-logo img.ays-assistant-chatbox-close-bttn {
    width: 20px;
    height: 20px;
}
.ays-assistant-chatbox .ays-assistant-chatbox-logo img.ays-assistant-chatbox-resize-bttn {
    width: 18px;
    height: 18px;
    margin-right: 5px;
}

.ays-assistant-chatbox .ays-assistant-chatbox-main-chat-box {
    width: 100%;
    background-color: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    border-radius: 10px;
    overflow: hidden;
}

.ays-assistant-chatbox .ays-assistant-chatbox-header-row {
    cursor: move;
    padding: 13px;
    background-color: #4e426d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 1px 2px 0px #808080;
}

.ays-assistant-chatbox .ays-assistant-header-row-logo-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.ays-assistant-chatbox .ays-assistant-header-row-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 5px;
}
.ays-assistant-chatbox img.ays-assistant-header-row-logo-image {
    width: 100%;
    height: 100%;
    max-width: unset;
    object-fit: cover;
}

.ays-assistant-chatbox p.ays-assistant-chatbox-header-text {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.ays-assistant-chatbox .ays-assistant-chatbox-messages-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 10px;
    overflow-y: auto;
    position: relative;
    border: 1px solid #d9d9d9;
    border-top: none;
}

.ays-assistant-chatbox .ays-assistant-chatbox-input-box {
    width: 100%;
    height: 60px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    border: 1px solid #d9d9d9;
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.ays-assistant-chatbox input#ays-assistant-chatbox-prompt {
    width: 100%;
    /* border-radius: 0; */
    border: none !important;
    padding: 10px 10px 10px 20px;
    border-radius: 0 0 10px 10px;
}

.ays-assistant-chatbox input#ays-assistant-chatbox-prompt:focus {
    border: none;
    outline: none;
    box-shadow: none;
}

.ays-assistant-chatbox button.ays-assistant-chatbox-send-button {
    cursor: pointer;
    border: none;
    background-color: #4e426d50;
    margin-right: 10px;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 0;
    border-radius: 11px;
    padding: 6px;
    box-sizing: border-box;
}

.ays-assistant-chatbox button.ays-assistant-chatbox-send-button:disabled {
    cursor: context-menu;
    background-color: #4e426d50;
}

.ays-assistant-chatbox .ays-assistant-chatbox-error-message-box {
    color: #af0000;
}

.ays-assistant-chatbox .ays-assistant-chatbox-user-message-box {
    width: fit-content;
    max-width: 80%;
    margin-left: auto;
    margin-bottom: 7px;
    color: #ffffff;
    background-color: #4e426d;
    padding: 10px;
    border-radius: 10px 10px 0 10px;
    word-break: break-word;
    font-size: 16px;
}

.ays-assistant-chatbox .ays-assistant-chatbox-ai-message-box {
    width: fit-content;
    max-width: 80%;
    margin-right: auto;
    margin-bottom: 7px;
    background-color: #d3d3d3;
    color: #000000;
    padding: 10px;
    border-radius: 0 10px 10px 10px;
    word-break: break-word;
    /* position: relative; */
    white-space: pre-wrap;
}

.ays-assistant-chatbox .ays-assistant-chatbox-ai-message-buttons {
    /* position: absolute;
    bottom: 0;
    right: -45px; */
    display: flex;
    gap: 7px;
    justify-content: flex-end;
    margin-top: 5px;
}

.ays-assistant-chatbox .ays-assistant-chatbox-ai-message-copy,
.ays-assistant-chatbox .ays-assistant-chatbox-ai-message-tts {
    width: 18px;
    fill: #444444;
    cursor: pointer;
}

.ays-assistant-chatbox .ays-assistant-chatbox-loading-box {
    width: 35px;
    height: 20px;
    background-color: #d3d3d3;
    padding: 5px 0;
    border-radius: 20px 20px 20px 0;
    line-height: 0;
    position: absolute;
    bottom: 10;
    left: 10;
}

/* Loader animation start */

.ays-assistant-chatbox .ays-assistant-chatbox-loader-ball-2 {
    width: 100%;
    height: 100%;
    border-radius: 100%;
    position: relative;
    margin: 0 auto;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.ays-assistant-chatbox .ays-assistant-chatbox-loader-ball-2 > div {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 100%;
    background-color: #585858;
}

.ays-assistant-chatbox .ays-assistant-chatbox-loader-ball-2 > div:nth-child(1) {
    animation: anm-bl-2-bounce 1s ease-in-out infinite;
}

.ays-assistant-chatbox .ays-assistant-chatbox-loader-ball-2 > div:nth-child(2) {
    animation: anm-bl-2-bounce 1s ease-in-out 0.33s infinite;
}

.ays-assistant-chatbox .ays-assistant-chatbox-loader-ball-2 > div:nth-child(3) {
    animation: anm-bl-2-bounce 1s ease-in-out 0.66s infinite;
}

@keyframes anm-bl-2-bounce {
    0%, 75%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-5px);
    }
}

/* Loader animation end */


/* Dark theme start */

.ays-assistant-chatbox[colmode="dark"] .ays-assistant-chatbox-main-chat-box {
    background-color: #343541;
}
.ays-assistant-chatbox[colmode="dark"] .ays-assistant-chatbox-loading-box {
    background-color: #4b4d56;
}
.ays-assistant-chatbox[colmode="dark"] .ays-assistant-chatbox-loading-box .ays-assistant-chatbox-loader-ball-2 > div {
    background-color: #636a84;
}
.ays-assistant-chatbox[colmode="dark"] .ays-assistant-chatbox-user-message-box {
    background-color: #37547e00;
    color: #f1f1f1;
    border: 1px solid #f1f1f1;
}
.ays-assistant-chatbox[colmode="dark"] .ays-assistant-chatbox-ai-message-box {
    background-color: #4b4d56;
    color: #ffffff;
}
.ays-assistant-chatbox[colmode="dark"] .ays-assistant-chatbox-ai-message-copy svg,
.ays-assistant-chatbox[colmode="dark"] .ays-assistant-chatbox-ai-message-tts svg {
    fill: #c1c1c1;
}
.ays-assistant-chatbox[colmode="dark"] .ays-assistant-chatbox-input-box {
    background-color: #4b4d56;
}
.ays-assistant-chatbox[colmode="dark"] .ays-assistant-chatbox-input-box input[type="text"] {
    background-color: #4b4d56;
    color: #f1f1f1;
}
.ays-assistant-chatbox[colmode="dark"] input#ays-assistant-chatbox-prompt::placeholder {
    color: #f1f1f1;
}

.ays-assistant-chatbox[colmode="dark"] input#ays-assistant-chatbox-prompt:-webkit-autofill,
.ays-assistant-chatbox[colmode="dark"] input#ays-assistant-chatbox-prompt:-webkit-autofill:hover, 
.ays-assistant-chatbox[colmode="dark"] input#ays-assistant-chatbox-prompt:-webkit-autofill:focus, 
.ays-assistant-chatbox[colmode="dark"] input#ays-assistant-chatbox-prompt:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px #4B4D56 inset !important;
}
/*Change text in autofill textbox*/
.ays-assistant-chatbox[colmode="dark"] input#ays-assistant-chatbox-prompt:-webkit-autofill{
    -webkit-text-fill-color: #f1f1f1 !important;
}


/* Dark theme end */

/* ChatBox styles end  */
