@media only screen and (max-width : 540px) 
{
  .chat-sidebar
  {
    display: none !important;
  }
  
  .chat-popup
  {
    display: none !important;
  }
}

.chat-sidebar
{
  width: 200px;
  position: fixed;
  height: 100%;
  right: 0px;
  top: 0px;
  padding-top: 10px;
  padding-bottom: 10px;
  border: 1px solid rgba(29, 49, 91, .3);
}

.sidebar-name 
{
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 4px;
  font-size: 12px;
}

.sidebar-name span
{
  padding-left: 5px;
}

.sidebar-name a
{
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.sidebar-name:hover
{
  background-color:#e1e2e5;
}

.sidebar-name img
{
  width: 32px;
  height: 32px;
  vertical-align:middle;
}

.popup-box
{
  display: none;
  position: fixed;
  bottom: 0px;
  right: 220px;
  height: 250px;
  background-color: rgb(237, 239, 244);
  width: 250px;
  border: 1px solid rgba(29, 49, 91, .3);
  z-index: 101;
}

.popup-box .popup-head
{
  background-color: #AF0091;
  padding: 5px;
  color: white;
  font-weight: bold;
  font-size: 14px;
  clear: both;
}

.popup-box .popup-head .popup-head-left
{
  float: left;
}

.popup-box .popup-head .popup-head-right
{
  float: right;
  opacity: 0.5;
}

.popup-box .popup-head .popup-head-right a
{
  text-decoration: none;
  color: inherit;
}

.popup-box .popup-messages
{
  height: 100%;
  overflow-y: scroll;
  padding: 5px 5px 56px 5px;
}

.popup-box .popup-input
{
  position: absolute;
  left: 0;
  right: 0;
  border: 1px solid #6d84b4;
  display: block;
  bottom: 0;
  height: 22px;
  /*padding: 20px;*/
  margin-top: 1px;
  background-color: #FFF;
  /*padding: 5px;*/
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.popup-box .popup-input input
{
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 2px 2px 2px 2px;
  border: 0;
  color: #000;
}

span.user {
	font-weight: bold;
	color: #0000FF;
}
span.bot {
	font-weight: bold;
	color: #FF0000;
}

.popup-box .popup-head a {
  color: #fff;
}

.popup-box a {
  color: #0000FF;
  text-decoration: underline;
}