/*---------------------------------------------------------------*/
/*----------------------------- Admin ---------------------------*/
/*---------------------------------------------------------------*/

.kuad-chatbot-chats-item-chatLog { color: #fff; }

.kuad-chatbot-chats-item-chatLog-chatmsg-bot,
.kuad-chatbot-chats-item-chatLog-chatmsg-user,
.kuad-chatbot-chats-item-chatLog-chatmsg-new  {
    padding: 10px;
    background-color: transparent;
    margin-bottom: 10px;
    position: relative;
    color: #666666;
}

.kuad-chatbot-chats-item-chatLog-chatmsg-user { background-color: transparent; }

.kuad-chatbot-chats-item-chatLog-chatmsg-new { background-color: rgb(37, 0, 202); }

.kuad-chatbot-chats-item-chatLog-chat-text  {
    margin-top: 15px;
    border-radius: 25px;
    background-color: #F7F7F7;
    padding: 15px 25px;
    border: 2px solid #CAC8D2;
}

.kuad-chatbot-chats-item-chatLog-chatmsg-bot .kuad-chatbot-chats-item-chatLog-chat-text  {
    border-color: #EEEEEE;
}

.kuad-chatbot-chats-item-chatLog-chat-time  {
    position: absolute;
    right: 10px;
    top: 10px;
}

/*---------------------------------------------------------------*/
/*---------------------------- Public ---------------------------*/
/*---------------------------------------------------------------*/
#kuad-chatbot-public {
    z-index: 9990;
    position: fixed;
    top: 0;
    left: 0;
}

body.has-modal-open #kuad-chatbot-public,
body.is-menu-open #kuad-chatbot-public,
.has-modal-open #kuad-chatbot-public,
.is-menu-open #kuad-chatbot-public { display: none !important; }

.kuad-chatbot-public-wrapper  {
    position: fixed;
    top: 0;
    left: 0;
}

.kuad-chatbot-public-wrapper-button-show  {
    position: fixed;
    right: 8px;
    bottom: 8px;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
}

.kuad-chatbot-public-wrapper-button-show-icon  {
    background-size: contain;
    width: 100%;
    height: 100%;
    display: inline-block;
    border-radius: 100px;
}

.kuad-chatbot-public-wrapper-button-show-alert-message  {
    background-color: #fff;
    position: absolute;
    right: 70px;
    bottom: 30px;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    width: max-content;
    box-shadow: 0px 2px 18px 0px rgb(0 0 0 / 30%);
    opacity: 1;
    transform: scale(1);
    transition: all 1s;
    color: #333 !important;
}

.kuad-chatbot-public-wrapper-button-show-alert-message-hide  {
    opacity: 0;
    right: -250%;
    bottom: 0px;
    transform: scale(0);
}

.kuad-chatbot-public-wrapper-container  {
    width: 95%;
    max-width: 360px;
    background: #F2F2F2;
    display: none;
    flex-direction: column;
    position: fixed;
    right: 25px;
    bottom: 100px;
    box-sizing: border-box;
    border-radius: 14px;
    border: none;
    height: 540px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.kuad-chatbot-public-wrapper-container[style*="block"] { display: flex !important; }

.kuad-chatbot-public-wrapper-header  {
    background: #FFFFFF;
    color: #fff;
    padding: 10px 20px;
    box-sizing: border-box;
    border-radius: 14px 14px 0 0;
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: 0px 2px 8px rgba(183, 187, 191, 0.5);
    height: 64px;
    min-height: 64px;
    max-height: 64px;
    flex: 0 0 64px;
    z-index: 2;
}

.kuad-chatbot-public-wrapper-header-bot-name  {
    color: #353535 !important;
    font-weight: 600;
    font-size: 15px;
}

.kuad-chatbot-public-wrapper-header-bot-status { color: #666666 !important; font-size: 9px; }

.kuad-chatbot-public-wrapper-header-bot-status:before  {
    content: "";
    width: 8px;
    height: 8px;
    background: #579F52;
    position: relative;
    right: 0;
    display: inline-block;
    border-radius: 50px;
    margin-right: 5px;
}

.kuad-chatbot-public-wrapper-header-bot-avatar  {
    background: url(../images/bot_avatar.png) no-repeat;
    background-size: contain;
    width: 55px;
    min-width: 55px;
    height: 55px;
    min-height: 55px;
    display: inline-block;
}

.kuad-chatbot-public-wrapper-header-button-close,
.kuad-chatbot-public-contact-us-popup-close-button  {
    background: url(../images/chatbot_icon_close.png) no-repeat;
    background-size: contain;
    position: absolute;
    width: 16px;
    height: 16px;
    right: 20px;
    top: 50%;
    cursor: pointer;
    font-size: 20px;
    transform: translateY(-50%);
}

.kuad-chatbot-public-wrapper-content  {
    padding: 20px 10px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    height: calc(100% - 64px - 58px - 36px);
}

.kuad-chatbot-public-wrapper-content-chat-a,
.kuad-chatbot-public-wrapper-content-chat-b  {
    background-color: #2A1B4A;
    border-radius: 15px;
    margin-bottom: 25px;
    padding: 15px 20px;
    width: auto;
    min-width: 75px;
    display: inline-block;
    position: relative;
}

.kuad-chatbot-public-wrapper-content-chat-a  {
    margin-right: 35px;
    margin-left: 35px;
    border-radius: 0 15px 15px 15px;
    float: left;
    clear: both;
}

.kuad-chatbot-public-wrapper-content-chat-a:before  {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
    left: -17px;
    right: auto;
    top: 0;
    bottom: auto;
    border: 12px solid;
    border-color: #2A194C #2A194C transparent transparent;
}

.kuad-chatbot-public-wrapper-content-chat-b  {
    background-color: #DCDCDC;
    margin-right: 35px;
    margin-left: 35px;
    float: right;
    clear: both;
    border-radius: 15px 0 15px 15px;
}

.kuad-chatbot-public-wrapper-content-chat-b:before  {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
    left: auto;
    right: -20px;
    top: 0;
    bottom: auto;
    border: 12px solid;
    border-color: #DCDCDC transparent transparent #DCDCDC;
}

.kuad-chatbot-public-wrapper-content-chat-name  {
    color: #ffffff;
    display: none;
    margin-bottom: 5px;
    font-weight: bold;
    word-break: break-all;
}

.kuad-chatbot-public-wrapper-content-chat-text { color: #ffffff !important; word-break: break-word; }

.kuad-chatbot-public-wrapper-content-chat-button  {
    width: auto;
    height: 40px;
    margin: 0 35px 20px 35px;
    padding: 0 15px;
    background: #CB507F;
    color: #ffffff !important;
    line-height: 40px;
    font-weight: 700;
    border-radius: 15px;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    clear: both;
}

.kuad-chatbot-public-wrapper-content-chat-b .kuad-chatbot-public-wrapper-content-chat-name  {
    text-align: right;
}

.kuad-chatbot-public-wrapper-content-chat-b .kuad-chatbot-public-wrapper-content-chat-text  {
    text-align: right;
    color: #000000 !important;
}

.kuad-chatbot-public-wrapper-content-chat-typing  {
    font-size: 25px;
    text-align: right;
    display: block;
    clear: both;
    color: #333 !important;
}

.kuad-chatbot-public-wrapper-chat-input  {
    background: #FFFFFF;
    padding: 9px 16px;
    box-sizing: border-box;
    position: relative;
    height: 58px;
    min-height: 58px;
    max-height: 58px;
    display: flex;
    align-items: center;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    flex: 0 0 58px;
    z-index: 2;
}

#kuad-chatbot-public .kuad-chatbot-public-wrapper-chat-input input,
#kuad-chatbot-public .kuad-chatbot-public-wrapper-chat-input input[type="text"],
#kuad-chatbot-public .kuad-chatbot-public-wrapper-chat-input .kuad-chatbot-public-input  {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    line-height: 40px !important;
    margin: 0 !important;
    padding: 0 42px 0 16px !important;
    background: #F3F4F6 !important;
    background-color: #F3F4F6 !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 20px !important;
    color: #1F2937 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#kuad-chatbot-public .kuad-chatbot-public-wrapper-chat-input input::placeholder,
#kuad-chatbot-public .kuad-chatbot-public-wrapper-chat-input .kuad-chatbot-public-input::placeholder  {
    color: #9CA3AF !important;
    font-weight: 400 !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #9CA3AF !important;
}

#kuad-chatbot-public .kuad-chatbot-public-wrapper-chat-input input:focus,
#kuad-chatbot-public .kuad-chatbot-public-wrapper-chat-input .kuad-chatbot-public-input:focus  {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    border-color: #CB507F !important;
    color: #111827 !important;
    box-shadow: 0 0 0 2px rgba(203, 80, 127, 0.2) !important;
}

#kuad-chatbot-public .kuad-chatbot-public-wrapper-chat-input-send  {
    background: url(../images/chatbot_icon_send.png) no-repeat center center;
    background-size: 16px 16px;
    width: 32px;
    height: 32px;
    display: block;
    box-shadow: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 2;
    transition: transform 0.15s ease, opacity 0.15s ease;
    opacity: 0.8;
}

#kuad-chatbot-public .kuad-chatbot-public-wrapper-chat-input-send:hover  {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.kuad-chatbot-public-wrapper-footer  {
    padding: 0 10px;
    box-sizing: border-box;
    text-align: center;
    background: #FAFAFA;
    color: #9CA3AF !important;
    font-weight: 600;
    font-size: 11px;
    line-height: 36px;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 0 0 36px;
    z-index: 2;
}

.kuad-chatbot-public-wrapper-footer-kuadsystem  {
    color: #D65489 !important;
    font-weight: 700;
    font-size: 12px;
    display: inline-block;
    text-decoration: none;
    transition: color 0.2s ease;
}

.kuad-chatbot-public-wrapper-footer-kuadsystem:hover,
.kuad-chatbot-public-wrapper-footer-kuadsystem:focus { color: #A3285B !important; text-decoration: underline; }

/* Conversation rate */
.kuad-chatbot-public-conversation-rate-popup,
.kuad-chatbot-public-conversation-end-popup,
.kuad-chatbot-public-contact-us-popup  {
    background-color: rgba(0,0,0,0.25);
    z-index: 10;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.kuad-chatbot-public-conversation-rate-popup-container,
.kuad-chatbot-public-conversation-end-popup-container,
.kuad-chatbot-public-contact-us-popup-container   {
    background-color: #ffffff;
    border-radius: 10px;
    width: 300px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    box-sizing: border-box;
    color: #333 !important;
    font-size: 14px;
}

.kuad-chatbot-public-conversation-rate-popup-container .ks-text-align-center,
.kuad-chatbot-public-contact-us-popup-container .ks-text-align-center,
.kuad-chatbot-public-contact-us-popup-container .kuad-chatbot-public-contact-us-popup-web-cliente,
.kuad-chatbot-public-conversation-end-popup-container div { color: #333 !important; }

.kuad-chatbot-public-rate-bad,
.kuad-chatbot-public-rate-regular,
.kuad-chatbot-public-rate-good  {
    background: url(../images/chatbot_icon_send.png) no-repeat;
    background-size: contain;
    width: 49px;
    height: 49px;
    display: inline-block;
    cursor: pointer;
    margin: 0 5px;
}

.kuad-chatbot-public-rate-bad { background: url(../images/chatbot_review_bad.png) no-repeat; }

.kuad-chatbot-public-rate-bad-selected { background: url(../images/chatbot_review_bad_hover.png) no-repeat; }

.kuad-chatbot-public-rate-regular { background: url(../images/chatbot_review_soso.png) no-repeat; }

.kuad-chatbot-public-rate-regular-selected { background: url(../images/chatbot_review_soso_hover.png) no-repeat; }

.kuad-chatbot-public-rate-good { background: url(../images/chatbot_review_good.png) no-repeat; }

.kuad-chatbot-public-rate-good-selected { background: url(../images/chatbot_review_good_hover.png) no-repeat; }

#kuad-chatbot-public .kuad-chatbot-public-conversation-rate-popup textarea,
#kuad-chatbot-public textarea.kuad-chatbot-public-textarea  {
    padding: 10px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    resize: none !important;
    background: #FFFFFF !important;
    color: #1F2937 !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    min-height: 80px !important;
    outline: none !important;
}

#kuad-chatbot-public .kuad-chatbot-public-conversation-rate-popup textarea:focus,
#kuad-chatbot-public textarea.kuad-chatbot-public-textarea:focus  {
    border-color: #CB507F !important;
    box-shadow: 0 0 0 2px rgba(203, 80, 127, 0.2) !important;
}

.kuad-chatbot-public-conversation-rate-popup-send-button,
.kuad-chatbot-public-conversation-end-popup-close-button,
.kuad-chatbot-public-contact-us-popup-button  {
    width: 90px;
    height: 30px;
    margin: 0 auto;
    background: #CB507F;
    color: #ffffff !important;
    line-height: 30px;
    font-weight: 700;
    border-radius: 15px;
    cursor: pointer;
    text-align: center;
}

.kuad-chatbot-public-conversation-rate-popup-send-button:hover,
.kuad-chatbot-public-conversation-end-popup-close-button:hover,
.kuad-chatbot-public-contact-us-popup-button:hover { color: #F0F2F8 !important; }

/* Conversation End */
.kuad-chatbot-public-conversation-end-popup-container { height: 180px; width: 305px; }

.kuad-chatbot-public-conversation-end-popup-container .kuad-chatbot-public-wrapper-header-button-close  {
    top: 15px;
    right: 7px;
    transition: none;
}

.kuad-chatbot-public-conversation-end-popup-close-button { width: 115px; }

/* Contact Us */
.kuad-chatbot-public-contact-us-popup-container  {
    width: 285px;
    height: auto;
    padding: 40px 20px 20px 20px;
}

.kuad-chatbot-public-contact-us-popup-close-button  {
    right: 20px;
    top: 20px;
    transform: none;
}

.kuad-chatbot-public-contact-us-popup-web-cliente { display: inline; }

.kuad-chatbot-public-contact-us-popup-kuadsystem  {
    color: #E35787 !important;
    font-weight: 700;
    display: inline;
}

.kuad-chatbot-public-contact-us-popup-button  {
    margin: 0 auto;
    display: block;
    width: 115px;
}

.kuad-chatbot-public-contact-us-popup-show { cursor: pointer; }

/*---- Low Desktop ----*/
@media only screen and (max-width: 1366px) {
    .kuad-chatbot-public-wrapper-container {
        height: 500px;
    }
}

/*- Mobile -*/
@media only screen and (max-width: 1280px) {
    .kuad-chatbot-public-wrapper-button-show {
        right: 0px;
        bottom: 0px;
    }
}

/*---- Mobile ----*/
@media only screen and (max-width: 720px) {
    .kuad-chatbot-public-wrapper-header {
        height: 60px;
        min-height: 60px;
        border-radius: 0;
    }

    .kuad-chatbot-public-wrapper-container {
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        right: 0;
        border-radius: 0;
    }

    .kuad-chatbot-public-wrapper-content {
        height: calc(100% - 60px - 58px - 36px);
    }

    .kuad-chatbot-public-wrapper-button-show-alert-message,
    .kuad-chatbot-public-wrapper-button-show-alert-message-hide {
        display: none !important;
    }
}
