.conversation-bottom-actions__input {
  border-radius: 30px;
  box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.1);
  border: 0;
  font-size: 14px;
  font-family: 'Muli', sans-serif;
  padding: 8px 40px 8px 16px;
  width: 100%;
  resize: none;
  outline: none;
  color: #454545;
}

.conversation-bottom-actions__send-button {
  position: absolute;
  top: 50%;
  transform: translateY(-55%);
  right: 15px;
  background: transparent;
  border: 0;
  height: 100%;
  padding-left: 0;
  padding-right: 12px;
}

.conversation-bottom-actions__send-button__icon {
  width: 24px;
  height: 24px;
}

.active-conversations {
  text-align: right;
  color: #454545;
  font-size: 16px;
  margin: 16px 0;
  font-family: 'Muli', sans-serif;
  color: #ffffff;
}

.message-form-textarea-container {
  position: relative;
}

#messages-desktop {
  position: relative;
  margin-top: -200px;
}

.conversation {
  font-family: 'Muli', sans-serif;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: block;
  padding: 12px 24px;
  color: #727272;
  overflow: hidden;
  position: relative;
  display: flex;
}

.conversation__message-container {
  display: flex;
}

.conversation__top-container {
  display: flex;
  align-items: baseline;
  margin-bottom: 4px;
}

.conversation__top-container .online-status {
  flex: 0 0 8px;
}

.conversation .info {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.conversation.active {
  background: #F3F3F3;
}

.conversation > img {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 16px;
}

.conversation .latest {
  display: block;
  position: relative;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.conversation .latest i {
  color: #D44491;
  font-size: 10px;
  margin-right: 3px;
}
.conversation .name {
  font-weight: bold;
  font-size: 16px;
  color: #454545;
  margin-left: 8px;
  flex: 1;
  margin-right: 8px;
}

.conversation time {
  font-size: 12px;
}

.messages-room {
  display: none;
  position: absolute;
  background-color: white;
  padding: 0;
  top: 0;
  left: -15px;
  right: -15px;
  bottom: 0;
  z-index: 2;
  flex-direction: column;
}

.messages-room-heading {
  min-height: 58px;
  flex-shrink: 0;
  padding: 8px 16px;
  z-index: 1;
  font-family: 'Muli', sans-serif;
  position: relative;
  border-bottom: 1px solid #EBEBEB;
  border-left: 1px solid #EBEBEB;
}

.user-info {
  display: flex;
  align-items: center;
}

.messages-room-heading .online-status {
  margin-right: 4px;
}

.chat-header__back-button {
  color: #D44491;
  padding: 19px 16px;
  border: 0;
  background: transparent;
  margin-right: 4px;
}

.chat-header__username-link {
  color: #D44491;
  font-size: 16px;
}

.chat-header__extra-info {
  font-size: 14px;
  color: #727272;
  margin-left: 16px;
}

.messages-room-content {
  overflow-y: auto;
  background: #F9F9F9;
  padding: 24px;
  height: 100%;
}

.messages-room-content.loading {
  background: #F9F9F9 url(/img/loading.gif) center no-repeat;
  opacity: 1;
}

.chat-form {
  padding: 12px 24px;
  background: #F3F3F3;
}

.messages-form-flirt-container {
  padding: 0;
}

.messages-form-flirt-container .btn {
  border: none;
  background: transparent;
  color: #D44491;
}

.messages-form-flirt-container .kd-gifts-select-container .dropdown-menu {
  right: 0;
  left: auto;
}

.messages-form-flirt-container .btn i,
.messages-form-flirt-container .btn span {
  font-size: 15px;
  line-height: 25px;
  margin: 0;
}

.messages-form-flirt-container .btn span.glyphicons {
  display: none;
}
.messages-form-flirt-container .btn span.glyphicons-ok {
  color: #117711;
}
.messages-form-flirt-container .btn span.glyphicons-remove {
  color: #aa2222;
}

@media (min-width: 768px) {
  .messages-room {
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
  }
}



/* old content */
/* Hide footer */
.message_show .footer, .message_show .footer-container {
  display: none;
}

/** Global **/

.conversation .unread-count {
  align-self: flex-end;
  margin-bottom: 4px;
  margin-left: 8px;
}

.conversation .unread-number, .message-nav .unread-number {
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  font-size: 14px;
  background: #D44491;
  color: #FFF;
  border-radius: 20px;
  position: relative;
  font-weight: bold;
}

.message-nav .unread-number {
  background-color: #fff;
  color: #993366;
}

/* force loading animation at the center of the button */
.messages-actions .btn.loading,
.chat.btn.loading {
  background-position: center;
  -webkit-transition: none;
  -moz-transition: none;
  -ms-transition: none;
  transition: none;
}

.message-sent.speech-bubble {
  margin: 15px 0 0 0;
  padding: 10px;
}

.message-sent.speech-bubble::after,
.older-msg-notification.speech-bubble::after{
  display: none;
} 

.chat-form-error {
  color: red;
}

/** Start chat with **/
#startChatWith #message {
  height: 150px;
  min-width: 300px;
}
#startChatWith .hasFlirt #message {
  height: auto;
}
#startChatWith .speech-bubble {
  margin: 25px 0 15px;
  padding: 10px;
}
#startChatWith .speech-bubble::after {
  display: none;
}
@media (max-width: 767px) {
  #messages-desktop {
    margin-top: -250px;
  }

  .conversation {
    padding: 12px 12px;
  }

  .conversation > img {
    margin-right: 12px;
  }

  .messages-room {
    padding: 0;
  }

  .messages-room-heading {
    padding: 0;
  }

  .chat-form {
    padding: 12px 16px;
  }

  .active-conversations {
    display: none;
  }

  .messages-room-content {
    padding: 16px;
  }
  #startChatWith #message {
    min-width: 100%;
    max-height: 75px;
  }
  #startChatWith .speech-bubble {
    font-size: 12px;
    line-height: 1.2;
  }
}

#startChatWith .chat-flirt-select, #startChatWith .chat-gift-select {
  margin-bottom: 0;
}
#startChatWith .chat-flirt-select > a, #startChatWith .chat-gift-select > a {
  min-width: 26px;
  height: 36px;
  line-height: 36px;
}
#startChatWith .chat-flirt-selected > img {
  display: block;
  margin-top: 6px;
}
#startChatWith .chat-flirt-selected > .name {
  display: none;
}
#startChatWith input.btn {
  padding-top: 14px;
  padding-bottom: 14px;
  float: right;
}
#startChatWith .caret,
#startChatWith .icon-caret-up {
  display: none;
}

#startChatWith .chat-gift-select {
  display: none;
}
.close-chat {
  text-align:center;
  margin-top: 20px;
}

