.ced-chatbox {
    z-index: 9999;
    position: fixed;
    bottom: 0;
    right: 100px;
    width: 300px;
    height: 400px;
    background-color: #fff;
    font-family: 'Lato', sans-serif;
    -webkit-transition: all 600ms cubic-bezier(0.19, 1, 0.22, 1);
    transition: all 600ms cubic-bezier(0.19, 1, 0.22, 1);
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
}
.ced-chatbox-close {
    bottom: -400px;
}
.ced-chatbox .form-control:focus {
    border-color: #1f2836;
}
.ced_chatbox_title,
.ced_chatbox_body {
    border-bottom: none;
}
.ced_chatbox_title {
    min-height: 50px;
    padding-right: 10px;
    background-color: #1f2836;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    cursor: pointer;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
}
.ced_chatbox_title h5 {
    height: 50px;
    margin: 0 0 0 15px;
    line-height: 50px;
    position: relative;
    padding-left: 20px;

    -webkit-flex-grow: 1;
    flex-grow: 1;
}
.ced_chatbox_title h5 a {
    text-transform: capitalize;
    color: #fff;
    max-width: 195px;
    display: inline-block;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ced_chatbox_title h5:before {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 6px;

    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}
.ced_chat_active h5:before {
    background: #4CAF50;
}
.ced_chat_inactive h5:before {
    background: #af4c61;
}
.ced_chatbox_title_tray,
.ced_chatbox_title_close {
    width: 24px;
    height: 24px;
    outline: 0;
    border: none;
    background-color: transparent;
    opacity: 0.5;
    cursor: pointer;
    -webkit-transition: opacity 200ms;
    transition: opacity 200ms;
}
.ced_chatbox_title_tray:hover,
.ced_chatbox_title_close:hover {
    opacity: 1;
}
.ced_chatbox_title_tray span {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-bottom: 2px solid #fff
}
.ced_chatbox_title_close svg {
    vertical-align: middle;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.2px;
}
.ced_chatbox_body,
.ced_chatbox_credentials {
    padding: 15px;
    border-top: 0;
    background-color: #f5f5f5;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;

    -webkit-flex-grow: 1;
    flex-grow: 1;
}
.ced_chatbox_credentials {
    display: none;
}
.ced_chatbox_credentials .form-control {
    -webkit-box-shadow: none;
    box-shadow: none;
}
.ced_chatbox_body {
    overflow-y: auto;
}
.ced_chatbox_body_message {
    position: relative;
}
.ced_chatbox_body_message p {
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    -webkit-box-shadow: 1px 1px rgba(100, 100, 100, 0.1);
    box-shadow: 1px 1px rgba(100, 100, 100, 0.1);
}
.ced_chatbox_body_message img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 2px solid #fcfcfc;
    position: absolute;
    top: 15px;
}
.ced-chatbox-body-message-center p {
    text-align: center;
    color: #0c5460;
    padding: 5px;
    background: #d1ecf1;
}
.ced-chatbox-body-message-left p {
    margin-left: 15px;
    padding-left: 30px;
    text-align: left;
}
.ced-chatbox-body-message-left img {
    left: -5px;
}
.ced-chatbox-body-message-right p {
    margin-right: 15px;
    padding-right: 30px;
    text-align: right;
}
.ced-chatbox-body-message-right img {
    right: -5px;
}
.ced_chatbox_message {
    padding: 15px;
    flex: 0 0 86%;
    outline: 0;
    resize: none;
    border: none;
    font-size: 15px;
    border: 1px solid #ddd;
    border-bottom: none;
    background-color: #fefefe;
    height: auto !important;
}
.ced-chatbox-empty {
    height: 262px;
}
.ced-chatbox-empty.ced-chatbox-tray {
    bottom: -212px;
}
.ced-chatbox-tray {
    bottom: -350px;
}
.ced-chatbox-empty.ced-chatbox-close {
    bottom: -262px;
}
.ced-chatbox-empty .ced_chatbox_body,
.ced-chatbox-empty .chat_textbox_area,
.ced-chatbox-empty .ced_chatbox_message {
    display: none;
}
.ced-chatbox-empty .ced_chatbox_credentials {
    display: block;
}
/* css for textarea */
.chat_textbox_area form{
    display: inline-flex;
    display: -webkit-inline-flex;
    width: 100%;
}
.chat_textbox_area .chat_textbox_btn{
    background-color: #fff;
    flex: 0 0 10%;
}

.ced_chatbox_body_span_right,
.ced_chatbox_body_span_left{
    color: #909090;
    display: block;
    font-size: 10px;
    text-align: right;
    padding-right: 15px;
}
.ced_chatbox_body_info_right,.ced_chatbox_body_info_left{
    display: flex;
    justify-content: space-between;
    padding: 3px 0 10px 0;
}

.ced_chatbox_body_message.ced-chatbox-body-message-right p {
    background-color: #dbecf5;
}
.ced_chatbox_body_message.ced-chatbox-body-message-center .ced-chatbox-date-span{
    color: #989797;
    font-size: 10px;
    margin: 5px 0 16px 0;
    text-align: center;
    position: relative;
    display: block;
}
.ced_chatbox_body_message.ced-chatbox-body-message-center .ced-chatbox-date-span:before{
    content: "";
    position: absolute;
    width: 90px;
    height: 1px;
    top: 7px;
    right: 10px;
    background: #989797;
}
.ced_chatbox_body_message.ced-chatbox-body-message-center .ced-chatbox-date-span.dd:before{
    right: -2px;
    width: 70px;
}
.ced_chatbox_body_message.ced-chatbox-body-message-center .ced-chatbox-date-span.dd:after{
    width: 70px;
}
.ced_chatbox_body_message.ced-chatbox-body-message-center .ced-chatbox-date-span:after{
    content: "";
    position: absolute;
    width: 100px;
    height: 1px;
    top: 7px;
    left: 0;
    background: #989797;
}
@media screen and (max-width: 767px){
    .ced-chatbox ,.seller-chat{
        /*display: none;*/
    }
}