.btn-chat {
    position: fixed;
    right: 70px;
	bottom: -5px;
	z-index:50;
}
/*.btn-chat-on{
    display: block !important;
}*/

.popup-box {
   background-color: #ffffff;
    border: 1px solid #000;
    bottom: 0;
    display: none;
    height: 415px;
    position: fixed;
    right: 70px;
    width: 100%;
	max-width: 300px;
	z-index:10000;
}
/*.popup-box-on {
    display: block !important;
}*/
.popup-box .popup-head {
    background-color: #353535;
    clear: both;
    color: #fff;
    display: inline-table;
    font-size: 16px;
    padding: 7px 10px;
    width: 100%;
     font-family: "kanit";
}
.popup-box .popup-head .popup-head-right {
    margin: 5px 0px 0;
}
.popup-head-left img {
    border: 1px solid #7b7b7b;
    border-radius: 50%;
    width: 44px;
}
.popup-messages-footer textarea {
    border: 1px solid #b2b2b2 !important;
    height: 35px !important;
    border: medium none;
    width: 100% !important;
}
.popup-messages-footer {
    background: #fff none repeat scroll 0 0;
    bottom: 0;
    position: absolute;
    width: 100%;
}
.popup-messages-footer .btn-footer {
    overflow: hidden;
    padding: 2px 5px 10px 6px;
    width: 100%;
}
.simple_round {
    background: #d1d1d1 none repeat scroll 0 0;
    border-radius: 50%;
    color: #4b4b4b !important;
    height: 21px;
    padding: 0 0 0 1px;
    width: 21px;
}
@media only screen and (max-height:  375px) {
.popup-box .popup-messages {
    background: #f2f2f2 none repeat scroll 0 0;
    height: 250px !important;
    overflow: auto;
}
	.popup-box {
   background-color: #ffffff;
    border: 1px solid #000;
    bottom: 0;
    display: none;
    height: 315px;
    position: fixed;
    right: 70px;
    width: 100%;
	max-width: 300px;
	z-index:100;
}
}
.popup-box .popup-messages {
    background: #f2f2f2 none repeat scroll 0 0;
    height: 310px;
    overflow: auto;
    padding-bottom: 60px;
}

.direct-chat-messages {
    overflow: auto;
    padding: 10px;
    transform: translate(0px, 0px);
    
}
.popup-messages .chat-box-single-line {
    border-bottom: 1px solid #a4c6b5;
    height: 12px;
    margin: 7px 0 20px;
    position: relative;
    text-align: center;
}
.popup-messages abbr.timestamp {
    background: #f9a02b none repeat scroll 0 0;
    color: #fff;
    padding: 0 11px;
}
.popup-head-right .btn-group {
    display: inline-flex;
	margin: 0 8px 0 0;
	vertical-align: top !important;
}
.chat-header-button {
    background: transparent none repeat scroll 0 0;
    border: 1px solid #353535;
    border-radius: 50%;
    font-size: 14px;
    height: 30px;
    width: 30px;
}
.popup-head-right .btn-group .dropdown-menu {
    border: medium none;
    min-width: 122px;
	padding: 0;
}
.popup-head-right .btn-group .dropdown-menu li a {
    font-size: 12px;
    padding: 3px 10px;
	color: #303030;
}

.popup-messages abbr.timestamp {
    background: #f2f2f2  none repeat scroll 0 0;
    color: #ba9745;
    padding: 0 11px;
}
.popup-messages .chat-box-single-line {
    border-bottom: 1px solid #ba9745;
    height: 12px;
    margin: 7px 0 20px;
    position: relative;
    text-align: center;
}
.popup-messages .direct-chat-messages {
    height: auto;
}
.popup-messages .direct-chat-text .direct-chat-text-right {
    background: #dfece7 none repeat scroll 0 0;
    border: 1px solid #dfece7;
    border-radius: 2px;
    color: #1f2121;
}

.popup-messages .direct-chat-timestamp {
    color: #ba9745;
    opacity: 0.6;
}

.popup-messages .direct-chat-name {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 0 0px !important;
	color: #ba9745;
	opacity: 0.9;
}
.popup-messages .direct-chat-info {
    display: block;
    font-size: 12px;
    margin-bottom: 0;
}
.popup-messages  .big-round {
    margin: -9px 0 0 !important;
}
.popup-messages  .direct-chat-img {
    border: 1px solid #fff;
	background: #f9a02b  none repeat scroll 0 0;
    border-radius: 50%;
    float: left;
    height: 40px;
    margin: -21px 0 0;
    width: 40px;
}
.direct-chat-reply-name {
    color: #fff;
    font-size: 15px;
    margin: 0 0 0 10px;
    opacity: 0.9;
}

.direct-chat-img-reply-small
{
    border: 1px solid #fff;
    border-radius: 50%;
    float: left;
    height: 20px;
    margin: 0 8px;
    width: 20px;
	background:#f9a02b;
}

.popup-messages .direct-chat-msg {
    margin-bottom: 10px;
    position: relative;
}

.popup-messages .doted-border::after {
	background: transparent none repeat scroll 0 0 !important;
    border-right: 2px dotted #fff !important;
	bottom: 0;
    content: "";
    left: 17px;
    margin: 0;
    position: absolute;
    top: 0;
    width: 2px;
	 display: inline;
	  z-index: -2;
}

.popup-messages .direct-chat-msg::after {
}

/* Text Left */
.direct-chat-text::after, .direct-chat-text::before {
   
    border-color: transparent #dfece7 transparent transparent;
    
}
.direct-chat-text::after, .direct-chat-text::before {
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    border-color: transparent #d2d6de transparent transparent;
    border-image: none;
    border-style: solid;
    border-width: medium;
    content: " ";
    height: 0;
    pointer-events: none;
    position: absolute;
    right: 100%;
    top: 15px;
    width: 0;
}
.direct-chat-text::after {
    border-width: 5px;
    margin-top: -5px;
}
.popup-messages .direct-chat-text {
    background: #e7e8ea none repeat scroll 0 0;
    border: 1px solid #dfece7;
    border-radius: 2px;
    color: #1f2121;
}
.direct-chat-text {
    background: #d2d6de none repeat scroll 0 0;
    border: 1px solid #d2d6de;
    border-radius: 5px;
    color: #444;
    margin: 5px 50px 0 0px;
    padding: 5px 10px;
    position: relative;
}
.file-msg {
    width: fit-content !important;
    background-color: white !important;
    border-radius: 10px;
    border: none;
}

.file-msg h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.file-msg a {
  color: #36475A;
}

.file-msg span {
  font-size: 12px;
  color: #86868B;
  text-transform: uppercase;
}

.file-msg .square {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: #0A4C9A;
}

.file-msg .square i {
  color: white;
}


.direct-chat-text.file-msg::after, .direct-chat-text.file-msg::before {
    border: none;
}

/* Text Right */
.direct-chat-text-right::after, .direct-chat-text-right::before {
   
    border-color: transparent transparent transparent  #dfece7;
    
}
.direct-chat-text-right::after, .direct-chat-text-right::before {
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    border-color: transparent transparent transparent  #d2d6de;
    border-image: none;
    border-style: solid;
    border-width: medium;
    content: " ";
    height: 0;
    pointer-events: none;
    position: absolute;
    left: 100%;
    top: 15px;
    width: 0;
}
.direct-chat-text-right::after {
    border-width: 5px;
    margin-top: -5px;
}
.popup-messages .direct-chat-text-right {
    background: #e7e8ea none repeat scroll 0 0;
    border: 1px solid #dfece7;
    border-radius: 2px;
    color: #1f2121;
}
.direct-chat-text-right {
    background: #d2d6de none repeat scroll 0 0;
    border: 1px solid #d2d6de;
    border-radius: 5px;
    color: #444;
    margin: 5px 0 0 50px;
    padding: 5px 10px;
    position: relative;
}
#small-chat .badge {
  display: inline-block;
  min-width: 10px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  background-color: #777;
  border-radius: 10px;
}
#small-chat .badge {
  background-color: #d1dade;
  color: #5e5e5e;
  font-family: 'Open Sans';
  font-size: 11px;
  font-weight: 600;
  padding-bottom: 4px;
  padding-left: 6px;
  padding-right: 6px;
  text-shadow: none;
}

#small-chat .badge-warning {
  background-color: #f39c12;
  color: #FFFFFF;
}

#small-chat {
	position: fixed;
	bottom: 10px;
	right: 60px;
	z-index: 100;
}
#small-chat .badge {
	position: absolute;
	top: -3px;
	right: -4px;
}
.open-small-chat {
	height: 38px;
	width: 38px;
	display: block;
	background: #353535;
	padding: 9px 8px;
	text-align: center;
	color: #fff;
	border-radius: 50%;
}

.open-small-chat:hover {
	color: white;
}
@media(min-width:1200px){
	.open-small-chat {
		height: 55px !important;
		width: 55px !important;
		display: block;
		background: #353535;
		padding: 15px 8px !important;
		text-align: center;
		color: #fff;
		border-radius: 50%;
	}
	#small-chat .badge {
    font-family: 'Open Sans';
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 4px;
    padding-left: 8px;
    padding-right: 8px;
    text-shadow: none;
}
}
