:root {
    --main-bg: #FFFFFF;
    --text-color: #000000;
    --link-hover: rgba(38, 50, 56, .06);
    --webkit-scrollbar-thumb: rgba(0, 0, 0, .15);
    --webkit-scrollbar-thumb-sidebar: rgba(0, 0, 0, .15);
    --chat-bottom-line: #e9ecef;
    --link-color: #006eff;
}

#nc_chat_input { 
    font-size: 15px;
    min-height: 37px !important;
}

#nc_chat_input::placeholder { 
    font-size: 15px;
   font-weight: 300;
    color: #aab2ba; 
}



.nc-chat {
    display: flex;
    flex-flow: column;
    height: 100%;
}
.box-container {
    display: contents;
}
#chat_holder {
    flex-grow: 1;
    z-index: 3;
}

#chat_main {
    height: 100%;
}

.nc-chat .content {
    flex: 1 1 auto;
    overflow-y: auto;
}
.chat_main {
    height: 0px;
    width: 380px;
    border-radius: 10px;
    position: fixed;
    background-color: rgba(235, 235, 235, 0.8);
    backdrop-filter: blur(16px);
    bottom: -20px;
    right: 20px;
    box-shadow: 0 0 3px rgb(0 0 0 / 10%), 0 5px 50px rgb(0 0 0 / 20%);
    font-size: 14px;
    z-index: 99;
}
.hide-caret:after {
    display: none;
  }
  .nc-btn {
    padding: .75rem;
    cursor: pointer;
}  
.chat_name {
    margin-left: 8px;
    font-weight: 600;
}

.chat_table {
    height: 100%;
    width: 100%;
}


.chat_table td {
    border:0px;
    padding: 0px;
}

.chat_head {
    height: 54px;
    line-height: 54px;
    padding:16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-color: #fff;
}


.chat_head img {
    height: 32px;
    width: 32px;
}
.chat_body {
    padding: 8px;
    font-size: 13px;
    /*background: #eee; *//* #2c82c9 */ /* #F1F0F3 */ /* #f8f9fa */ /* #e5ddd5 */
}
.chat_bg {
    background: url('images/icon-pattern.jpg'); /* #2c82c9 */ /* #F1F0F3 */ /* #f8f9fa */
}

.chat_table_head {
    height: 54px;
}
.chat_table_message {
    height: 64px;
    background-color: #fff;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.chat_message_input {
    border-top: 1px solid #f1f1f1;
    height: 64px;
    width: 100%;
    padding: 0px 16px;

}

.chat_input {
    border: 0px;
    outline: none;
    width: 100%;
    font-size: 14px;
}

.chat_input:focus {
    border: 0px;
    outline: none;
}

.bot_send_btn {
    background-color: transparent;
    border: 0px;
    padding:0px;
    margin:0px;
}
.bot_send_btn:focus {
    outline: none;
}

.inactive {
    opacity: 0.3;
}

@media (max-width: 575.9px) {
    .chat_main {
    /*height: calc(100% - 48px);*/
    width: 100%;
    bottom: 0px;
    right: 0px;
    border-radius: 0px;
    }

    .chat_head, .chat_table_message {
        border-radius: 0px;
    }

}

.message_holder {
    margin-bottom: 6px;
}

.chat_message {
    padding: 8px;
    
    /*border-radius: 5px;  
    width: 75%; */ 
    /*box-shadow: 0.5px 1px 0.5px rgb(0 0 0 / 14%);*/
}


.message_from_bot {
    float: left;

    /*
    color: #000000;
    background-color: #FFFFFF;*/

    background-color: var(--message_bot_bg);
    color: var(--message_bot_text);


    border-radius: 5px 5px 5px 0;

}

.message_from_me {
    
    float: right;
    color: #000000;
    background-color: #deeffd;
    border-radius: 5px 5px 0 5px;
}



.message_from_arrow {
    width: 8px;
    height: 8px;
    /*position: absolute;*/
    box-shadow: 0px 1px 0.5px rgb(0 0 0 / 14%);
}

.arrow_from_bot {
    background: url('images/from_bot_bottom2.png');
    margin-left:0px;
} 

.arrow_from_me {
    background: url('images/from_me_bottom2.png');
    /*right:0;
    margin-right:9px;*/
} 



.chat_message_body {
    width: 100%;
    font-size: 13px;
}

.chat_message_date {
    width: 0px;
    vertical-align: bottom;
    
}

.message_from_bot .chat_message_date {
    color: #6c757d;
}


.message_from_me .chat_message_body a {
    text-decoration: none;
}

.message_from_me .chat_message_body a:hover {
    text-decoration: underline;
}

.message_from_me .chat_message_date {
    color: #6c757d;
}

.date_holder {
    margin-bottom: -5px;
    font-size: 12px;    
}

#chat_body .ps__rail-y {
    top: 54px !important;
}

.bot_block {
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    border-radius: 50%;
    background-color: #0271b9;
    box-shadow: 0 0 3px rgb(0 0 0 / 10%), 0 0 10px rgb(0 0 0 / 30%);
    z-index: 99;
}

.bot_block:hover {
    box-shadow: 0 0 3px rgb(0 0 0 / 20%), 0 0 10px rgb(0 0 0 / 50%);
    opacity: 0.95;
} 


.chat_message {
    /*box-shadow: 0 1px 2px var(--color-default-shadow);*/
	border-radius: 1rem !important;
    padding: .75rem .85rem;
}

  .own .svg-appendix {
    left: auto;
    right: -0.551rem;
    --border-bottom-right-radius: 0;
  
  }
  
  .own .svg-appendix .corner {
    fill: var(--bg-chat-me) !important;
  }
  
  .new_messages_holder  {
    padding-right: .5rem;
    bottom: -33px;
    right: -17px;
  }
  
  textarea#nc_chat_input {
    resize: none;
  }
  .px28, .svg28 svg {
    width: 28px !important;
    height: 28px !important;
}  
.px42, .svg42 svg {
    min-width: 42px !important;
    min-height: 42px !important;
    width: 42px !important;
    height: 42px !important;
}  

.nc-btn {
    padding: .75rem;
  }
  .nc-chat .footer {
    /*background: transparent;*/
    padding: 0rem;

    
  }

  .nb_warning {
    padding: .35rem;
    z-index: 999;
    box-shadow: 3px  3px 3px  3px #fff;

    /*background-color: #f8f9fa;
    border-top: 1px solid var(--chat-bottom-line);*/
  }

  .subtitle {
    font-size: 1.15rem;
  }
  
  .chat_bottom_container {
    z-index: 3;
    
    /*-webkit-box-shadow: 0px 0px .5rem 0px rgba(0, 0, 0, .15);
    -moz-box-shadow: 0px 0px .5rem 0px rgba(0, 0, 0, .15);
    box-shadow: 0px 0px .5rem 0px rgba(0, 0, 0, .15);*/
    padding: 12px;
    border-top: 1px solid var(--chat-bottom-line);
    margin: 0px !important;
}
.copyright_link span, .copyright_link svg {
    /*color: #aab2ba;
    color: #989898;*/
    color: #707070;
    
    transition: 300ms;
}
.copyright_link:hover span, .copyright_link:hover svg {
    color: var(--cnvs-themecolor)!important;
    transition: 300ms;
}


.chat_bottom_container.profile {
    border: 0px;
    background-color: #F4F4F4;
}

.btn-link-my {
    color: #bbbbbb;
}

.btn-link-my2 {
    color: #111;
}


.btn-link-my:hover, .btn-link-my2:hover {
    color:#1a73e8;

}

#horizontal_widget_holder {
    font-size: 15px;
    font-weight: 300;
    white-space: nowrap;
    color: #fff;
}


.px36  {
    width: 36px;
    height: 36px;
}

.mw-750 {
    max-width: 750px;
}

#send_btn svg {
    fill:#c7c7c7;
}

#send_btn.active svg {
    fill:var(--message_btn_bg); /* #231f20 */
    cursor: pointer;
}


.mw-500 {
    max-width: 500px;
}

#nc_chat_input {
    border: 0px !important;
    background: transparent;
    margin: auto;
    height: 38px; overflow-y: hidden;
}
#nc_chat_input:focus {
    border: 0px !important;
    background-color: var(--main-bg);
    background: transparent;
    outline: none !important;
    box-shadow: none;
}

.chat_message_text a:not(.btn-link):not(.text-decoration-underline):not(.more-link) {
    color: var(--link-color);
    text-decoration: underline !important;
}


.chat_message_text a:not(.btn-link):not(.text-decoration-underline):not(.more-link):hover {
    color: red !important;
    text-decoration: none !important;
}


.nc-chat .header.dark {
    box-shadow: 0 0 3px rgba(0, 0, 0, .2), 0 -1px 10px rgba(0, 0, 0, .2);
}
.chat_bot {


    background-color: var(--message_bot_bg);
    color: var(--message_bot_text);


    box-shadow: rgba(0, 0, 0, 0.15) 0px 0.6px 0.54px -1.33px, rgba(0, 0, 0, 0.13) 0px 2.29px 2.06px -2.67px, rgba(0, 0, 0, 0.04) 0px 10px 9px -4px;


}


.chat_message_text p:last-child {
    margin: 0px;
}

.chatbot_avatar {
    margin-right: 8px;
    display: flex
;
    align-items: center;
}

.sidebar_link_avatar {
    margin-right: .75rem;
}

.sidebar_link:hover, .sidebar_link:active, .sidebar_link:focus, .nc-btn:hover, .sidebar_link.sdb_active {
    color: var(--text-color);
    background-color: var(--link-hover);
    transition: 100ms;
}

.nc-chat  .header, .nc-chat .footer {
    width: 100%;
    max-width: 750px;
}

.generated_image {
    width: 100%;
}

.img-holder {
    width: 100%;
    max-width: 500px !important;

}

.chat_me {
    /*background-color: #F3F3F3;*/
    
    background-color: var(--message_user_bg);
    color: var(--message_user_text);
    max-width: 80%;
}


.btn-image-download {
    display: none;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
    margin-top: 10px;
    margin-right: 10px;
    padding: .5rem .75rem;
    /*border: 1px #ffffff solid;*/
    transition: 200ms;
  }
  
  .btn-image-download:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #111 !important;
  }
  
  .img-holder, .img-holder:hover {
    transition: 200ms;
  }
  
  .img-holder:hover .btn-image-download { 
    display: block;
    transition: 200ms;
  }

  #bg_holder{
    position: absolute;
    z-index: 9;
  }