:root {
    --chat-text: #222;
    --chat-toolbar-bg: #26247b;
    --chat-toolbar-text: #ffffff;
    --chat-message-area-bg:#f3f4f8;
    --chat-user-bg: #ffffff;
    --chat-user-text: #222222;
    --chat-user-active-bg: #f3f4f8;
    --chat-user-active-text: #222222;
    --chat-sent-bg: #29ade5;
    --chat-sent-text: #ffffff;
    --chat-sent-time: #ffffff;
    --chat-recieved-bg: #26247b;
    --chat-recieved-text: #ffffff;
    --chat-recieved-time: #ffffff;
    --chat-input-area-bg: #f3f4f9;
    --chat-input-bg: #ffffff;
    --chat-input-text: #444444;
    --chat-input-placeholder: #cccccc;
    --chat-button-bg: #319adb;
    --chat-button-text: #ffffff;
    --chat-button-hover-bg: #26247b;
    --chat-unread-bg: #3299e0;
    --chat-unread-text: #ffffff;
}

.vexpo-chat{
    color: var(--chat-text);
    box-shadow: -1px -1px 2px 0 rgba(0,0,0,.15);
    border-radius: 7px 7px 0 0px;
    overflow: hidden;
}
.vexpo-chat .scrollable{
    overflow-y: auto;
}
.vexpo-chat .scrollable::-webkit-scrollbar {
    width: 4px;
  }
.vexpo-chat .scrollable::-webkit-scrollbar-thumb {
    background-color: var(--chat-text);
    border-radius: 2px;
}

.vexpo-chat-wrapper{
    margin: 0;
}

.vexpo-chat-bar{
    background-color: var(--chat-toolbar-bg);
    color: var(--chat-toolbar-text);
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    border-radius: 5px;
}
.vexpo-chat-wrapper.open .vexpo-chat-bar{
    border-radius: 0px;
}
.vexpo-chat-toggle{
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    display: flex;
    font-size: 22px;
    cursor: pointer;
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    transition: linear 0.25s all;
    -webkit-transition: linear 0.25s all;
    -moz-transition: linear 0.25s all;
}
.vexpo-chat-wrapper.open .vexpo-chat-toggle,
.vexpo-chat-toggle.open{
    transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
}
.vexpo-chat-title {
    font-size: 22px;
    font-weight: 500;
    padding: 12px 15px;
}
.vexpo-chat-user-message{
    clear: both;
    margin: 0;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    min-height: 0px;
    height: 0;
    visibility: hidden;
    background-color: var(--chat-message-area-bg);
    overflow: hidden;
    transition: linear 0.25s all;
    -webkit-transition: linear 0.25s all;
    -moz-transition: linear 0.25s all;
    opacity: 0;
}
.vexpo-chat-wrapper.open .vexpo-chat-user-message,
.vexpo-chat-user-message.open{
    min-height: 500px;
    height: 500px;
    visibility: visible;
    opacity: 1;
}

.vexpo-chat-messages{
    padding: 0;
    position: relative;
    width: 100%;
    -ms-flex: 0 0 60%;
    flex: 0 0 60%;
    max-width: 60%;
}
.vexpo-chat-users {
    padding: 0;
    background-color: var(--chat-user-bg);
    position: relative;
    width: 100%;
    -ms-flex: 0 0 40%;
    flex: 0 0 40%;
    max-width: 40%;
    max-height: 500px;
    border-right: 1px solid rgba(0,0,0,.07);
}
.chat-user {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    color: var(--chat-user-text);
    position: relative;
    border-bottom: 1px solid var(--chat-user-active-bg);
}
.chat-user.active{
    cursor: default;
    background-color: var(--chat-user-active-bg);
    color: var(--chat-user-active-text);
}
.chat-user-avtar {
    width: 36px;
    margin-right: 10px;
    border-radius: 50%;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.15);
    position: relative;
}
.chat-user-avtar img{
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.chat-user-status{
    position: absolute;
    bottom: 0;
    right: 0;
}
.chat-user-status.online::after{
    content: " ";
    background-color: #1eec4d;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.15);
    width: 8px;
    height: 8px;
    display: block;
    border-radius: 50%;
}
.visit-user-status{
    display: inline-block;
    margin-left: 8px;
}
.visit-user-status.online::after{
    content: " ";
    background-color: #1eec4d;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.15);
    width: 8px;
    height: 8px;
    display: block;
    border-radius: 50%;
}

.chat-user-name {
    font-size: 14px;
    font-weight: 600;
}
.chat-unread-count span {
    display: block;
    color: var(--chat-unread-text);
    background-color: var(--chat-unread-bg);
    padding: 5px 2px;
    border-radius: 20px;
    font-size: 8px;
    line-height: 1;
    text-align: center;
    width: 18px;
    height: 18px;
    position: absolute;
    top: -6px;
    right: -6px;
}

.vexpo-chat-messages{
    background-color: var(--chat-message-area-bg);
}
.chat-message-wrapper{
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#chat-message-list{
    padding: 0px 15px;
    flex: auto;
    max-height: 430px;
    overflow: auto;
}

.chat-message-input-wrapper{
    background-color: var(--chat-input-area-bg);
    flex: 0 0 auto;
    height: 66px;
    padding: 10px 5px;
}

.chat-message {
    margin: 5px 0;
}
.chat-message.recieved{
    text-align: left;
}
.chat-message.sent{
    text-align: right;
}
.chat-message.info {
    text-align: center;
    margin: 10px 0;
}
.chat-message .chat-message-content{
    clear: both;
    display: inline-block;
    border-radius: 5px;
    min-width: 100px;
    max-width: 85%;
    position: relative;
    padding: 7px 10px;
    text-align: left;
    font-size: 13px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.15);
}
.chat-message.recieved .chat-message-content{
    background-color: var(--chat-recieved-bg);
    color: var(--chat-recieved-text);
}
.chat-message.recieved .chat-message-content:after {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
    left: -10px;
    right: auto;
    top: 0px;
    bottom: auto;
    border: 10px solid;
    border-color: var(--chat-recieved-bg) transparent transparent transparent;
}

.chat-message.sent .chat-message-content{
    background-color: var(--chat-sent-bg);
    color: var(--chat-sent-text);
}
.chat-message.sent .chat-message-content:after {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
    right: -10px;
    left: auto;
    bottom: 0px;
    top: auto;
    border: 10px solid;
    border-color: transparent transparent var(--chat-sent-bg) transparent;
}
.chat-message.info .chat-message-content{
    background-color: #ffffff;
    color: var(--chat-text);
    text-align: center;
}
.chat-message.info.clickable .chat-message-content{
    cursor: pointer;
}

.chat-message-time{
    font-size: 8px;
    margin-top: 3px;
    text-align: right;
}
.chat-message.recieved .chat-message-time{
    color: var(--chat-sent-time);
}
.chat-message.sent .chat-message-time{
    color: var(--chat-sent-time);
}

.chat-message.info .chat-message-time{
    text-align: center;
    margin-top: 0;
}


.chat-message-input-group {
    display: flex;
}
.chat-message-input-box {
    width: 100%;
    max-width: calc(100% - 46px);
    padding: 0 5px;
}
.chat-message-input-group {
    background: #ffffff;
    border-radius: 46px;
    padding: 2px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.15);
}
.chat-message-input {
    width: 100% !important;
    background-color: var(--chat-input-bg);
    color: var(--chat-input-text);
    height: 46px !important;
    border-radius: 46px;
    outline: none;
    border: none;
    padding: 5px 15px;
    margin-bottom: -4px;
    font-size: 13px;
    line-height: 1.5;
}
.chat-message-send-box {
    width: 46px;
    height: 46px;
}
.chat-message-button{
    background-color: var(--chat-button-bg);
    color: var(--chat-button-text);
    border: none;
    border-radius: 46px;
    width: 100%;
    height: 100%;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.15);
}
.chat-message-button:hover{
    background-color: var(--chat-button-hover-bg);
    color: var(--chat-button-text);
}

.expo-chat-stick{
    width: 100%;
    max-width: 500px;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 99;
}
.expo-chat-stick{
    max-width: 200px;
    bottom: 10px;
    right: 15px;
    transition-delay: 0.25s;
    -webkit-transition-delay: 0.25s;
    -moz-transition-delay: 0.25s;
    transition: linear 0.25s all;
    -webkit-transition: linear 0.25s all;
    -moz-transition: linear 0.25s all;
}
.expo-chat-stick.expanded{
    max-width: 500px;
    bottom: 10px;
    right: 15px;
    transition-delay: 0s;
    -webkit-transition-delay: 0s;
    -moz-transition-delay: 0s;
}


.exh-call-ringing {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 99;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.26)
}
.exh-ringing-block {
    background: #ffffff;
    padding: 25px;
    min-width: 300px;
    border: 1px solid #f5f5f5;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.15);
    -moz-box-shadow: 0 1px 2px 0 rgba(0,0,0,.15);
    -webkit-box-shadow: 0 1px 2px 0 rgba(0,0,0,.15);
}
.exh-caller-name {
    font-size: 18px;
    text-transform: capitalize;
    font-weight: 600;
    margin-bottom: 15px;
}
.exh-call-action {
    display: flex;
    align-items: center;
    justify-content: center;
}
.exh-call-action-button {
    background: #dddddd;
    margin: 10px;
    cursor: pointer;
    width: 42px;
    height: 42px;
    align-items: center;
    display: flex;
    justify-content: center;
    border-radius: 42px;
    font-size: 16px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.15);
    -moz-box-shadow: 0 1px 2px 0 rgba(0,0,0,.15);
    -webkit-box-shadow: 0 1px 2px 0 rgba(0,0,0,.15);
}
.exh-call-action-button.exh-accept {
    background: #1eec4d;
    color: #ffffff;
}
.exh-call-action-button.exh-reject {
    background: #e41515;
    color: #ffffff;
}

.chat-video-call-icon .video-call-btn {
    display: block;
    padding: 7px 5px;
    font-size: 12px;
    line-height: 1;
    text-align: center;
    width: 24px;
    height: 24px;
    position: absolute;
    top: 16px;
    right: 4px;
    z-index: 1;
    cursor: pointer;
    color: var(--chat-button-bg);
}
.chat-video-call-icon .video-call-btn:hover{
    color: var(--chat-button-hover-bg);
}


.header-right-list .messages-count{
    position: absolute;
    right: -8px;
    top: 0px;
    background: #ff0000;
    color: #fff;
    font-size: 8px;
    width: 15px;
    height: 15px;
    text-align: center;
    border-radius: 12px;
    padding: 2px 0;
}
.messages-count {
    font-weight: 600;
}
.messages-count.hidden{
    visibility: hidden;
    opacity: 0;
}
.vexpo-chat-bar .messages-count {
    position: static;
    display: inline-block;
    width: auto;
    height: auto;
    background: var(--chat-toolbar-text);
    color: var(--chat-toolbar-bg);
    font-size: 10px;
    padding: 4px 6px;
    vertical-align: middle;
    margin-left: 12px;
    margin-top: -2px;
    border-radius: 30px;
    min-width: 23px;
    text-align: center;
}



/* ---------------------------- CSS NOTE ------------------------------ */
.notes-wrapper {
    height: 75vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
}
.notes-wrapper .note-list {
    height: calc(100% - 60px);
    padding: 0px 15px;
    flex: auto;
    max-height: calc(100% - 60px);
    overflow: auto;
    overflow-y: auto;
}
.notes-wrapper .note-list::-webkit-scrollbar {
    width: 4px;
}
.notes-wrapper .note-list::-webkit-scrollbar-thumb {
    background-color: var(--chat-text);
    border-radius: 2px;
}
.notes-wrapper .note-add {
    flex: 0 0 auto;
    height: 70px;
    padding: 12px 15px;
    background: var(--chat-input-area-bg);
    box-shadow: 0 -1px 2px 0 rgba(0,0,0,.15);
}
.notes-wrapper .note-form {
    display: flex;
    align-items: center;
}
.notes-wrapper .note-input-con {
    width: 100%;
    max-width: calc(100% - 90px);
    padding: 0 5px;
}
.notes-wrapper .note-input-field {
    width: 100% !important;
    height: 46px !important;
    border-radius: 46px;
    outline: none;
    border: none;
    padding: 5px 15px;
    margin-bottom: -4px;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.15);
}
.notes-wrapper .note-submit-con {
    width: 90px;
}
.notes-wrapper .note-submit-button {
    background-color: var(--chat-button-bg);
    color: var(--chat-button-text);
    border: none;
    width: 100%;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.15);
    height: 47px;
    border-radius: 32px;
    outline: none;
}
.notes-wrapper .note-submit-buttons:hover{
    background-color: var(--chat-button-hover-bg);
    color: var(--chat-button-text);
}
.notes-wrapper .note-list-row {
    margin: 5px 0;
    padding: 7px 0;
    border-bottom: 1px solid #ddd;
}
.notes-wrapper .note-date {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 3px;
    color: #4c4c4c;
}
.notes-wrapper .note-conetent {
    font-size: 15px;
}

.modal-loader {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 1;
    background: rgba(255,255,255,0.7);
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
}


/* -------------------------------- */
.leave-message-form {
    padding: 20px;
}
.leave-message-info{
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}
.leave-message-label{
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}
#leave-message-message{
    width: 100% !important;
}