﻿.kg-chat-view {
    position: absolute;
    background: #d9d8d6;
    background: rgba(255, 255, 255, 0.9);
    box-shadow:0 0 20px 5px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    width: 322px;
    animation: fade-in 0.4s ease;
}

.kg-chat__bottom-panel {
    position: relative;
    height: 15px;
}

.kg-chat__button-send {
    float: left;
    background-color: #F54047;
    background-image: url(/images/icons/send-message.png);
    background-repeat: no-repeat;
    background-position: center;
    width: 46px;
    height: 46px;
    color: white;
    border: none;    
    border-radius: 0 2px 2px 0;
    font-family: verdana;
    outline: none;
    cursor: pointer;
}

.kg-chat__button-send:hover {
   background-color: #E83F46; 
}

.kg-chat__button-send:active {
   background-color: #DB3B42;
}

.kg-chat__message-input {
    float: left;
    font-size: 12px;
    overflow: hidden;
    border-top: 1px solid #C0CAD5;
    border-left: 1px solid #C0CAD5;
    border-bottom: 1px solid #C0CAD5;
    border-radius: 2px 0 0 2px;    
    width: calc(100% - 47px);
    min-height: 46px;
    line-height: 150%;
    word-wrap: break-word;
    max-width: calc(100% - 47px);
    max-height: 44px;
    outline: none;
    padding: 12px;
    box-sizing: border-box;
}

.kg-chat__message-input-no-active {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.65);
}

.kg-chat__message-item-left-info {
    display: inline-block;
    width: 32px;
}

.kg-chat__content {
    height: 300px;
    overflow-y: auto;
}

.kg-chat__message-item-user-image {
    height: 32px;
    width: 32px;
}

.kg-chat__message-item-content {
    display: inline-block;
    width: calc(100% - 42px);
    margin-left: 10px;
}

.kg-chat__message-item-info {
    display: inline-block;
    width: 110px;
}

.kg-chat__message-item-name {
    font-weight: bold;
    color: #2B587A;
    text-decoration: none;
    word-wrap: break-word;
    line-height: 150%;
    font-size: 11px;
    text-align: left;
    direction: ltr;
    font-family: tahoma, arial, verdana, sans-serif, Lucida Sans;
    -webkit-font-smoothing: subpixel-antialiased;
}

.kg-chat__message-item-message {
    word-wrap: break-word;
    line-height: 150%;
    font-size: 11px;
    text-align: left;
    direction: ltr;
    color: #000000;
    font-family: tahoma, arial, verdana, sans-serif, Lucida Sans;
    font-weight: normal;
    -webkit-font-smoothing: subpixel-antialiased;
}

.kg-chat__message-item-date {
    color: #999;
    text-decoration: none;
    font-size: 11px;
    text-align: left;
    direction: ltr;
    line-height: 1.182;
    font-weight: normal;
    -webkit-font-smoothing: subpixel-antialiased; 
}
.kg-chat__controls {
    padding: 8px;
    background: white;
    border-radius: 0 0 5px 5px;
}
.kg-chat__controls:after {
    clear: both;
    content: "";
    display: table;
}

.kg-chat-view__header {    
    position: relative;    
    background: white;
    box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 5px 5px 0 0;
    height: 52px;
}

.kg-chat-view__header:after {    
    clear: both;
    content: "";
    display: table;
}

.kg-chat-view__header-image-container {
    float: left;
}

.kg-chat-view__header-text-container {
    float: left;
    margin-left: 10px;
    height: 48px;
}

.kg-chat-view__header-close-button-container {
    float: right;
}

.kg-chat-view__header-image {
    width: 48px;
    height: 48px;
    background-image: url('/images/icons/experts.png');
    background-size: 100%;
    background-color: #429ED1;
}

.kg-chat-view__header-text-label {
    margin-top: 10px;
}

.kg-chat-view__header-text-description {
    font-size: smaller;
}

.kg-chat-view__header-close-button {
    border: none;    
    height: 16px;
    width: 16px;
    margin-top: 5px;
    margin-right: 5px;    
    cursor: pointer;
    background: url(/components/instance/close-form.png) no-repeat;
    background-size: 16px 16px;
}
.kg-chat-view_movable-view {
    width: 92%;
    height: 100%;
}