#chat {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  margin-bottom: 0;
  max-width: 40em;
  height: 100%;
}
#chat #vich-c {
  display: none;
  text-align: center;
  padding-left: 4em;
  max-width: 20em;
}
#chat #vich-c .status-ready,
#chat #vich-c .status-call {
  margin-top: 2em;
  display: none;
}
#chat #vich-c #vid-thumb {
  margin-top: 2em;
  margin-bottom: 2em;
}
#chat #vich-c #vid-thumb video {
  width: 10em;
  border-radius: .4em;
}
#chat #vich-c #vid-box {
  position: absolute;
  left: 2em;
  top: 2em;
  bottom: 2em;
}
#chat #vich-c #vid-box video {
  border-radius: .4em;
}
#chat.isInApp div.right.dropdown {
  display: none;
}
#chat.isInApp #chat-win {
  margin-top: 0;
  height: 100%;
}
#chat #chat-win {
  width: 100%;
  display: flex;
  flex-flow: column;
  margin-top: 4em;
  height: calc(100% - 4em);
  background-color: #fff;
}
#chat #chat-win header {
  display: block;
}
#chat #chat-win header > div {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  padding: .5em;
}
#chat #chat-win header > div .online-c {
  margin-right: 1em;
}
#chat #chat-win header > div h2 {
  margin: 0;
}
#chat #chat-win header > div h2 a {
  text-decoration: none;
  color: rgba(0, 0, 0, 0.87);
}
#chat #chat-win header > div .likes {
  margin-top: -0.5em;
}
#chat #chat-win header > div .likes .like {
  opacity: .8;
  font-size: 80%;
}
#chat #chat-win header > div .likes .like:not(:first-child) {
  margin-left: 1em;
}
#chat #chat-win header > div .likes .like .icon {
  font-size: 80%;
}
#chat #chat-win .msgs {
  flex: 1 1 auto;
  overflow-y: scroll;
  overflow-x: hidden;
  position: relative;
  margin-top: 0;
  margin-bottom: 0;
  padding: .5em;
  background: rgba(0, 0, 0, 0.02);
}
#chat #chat-win .msgs li.top-gradient {
  position: absolute;
  top: 0;
  height: 2em;
  background-color: #fff;
}
#chat #chat-win .msgs .msg {
  display: inline-block;
  margin-bottom: 1em;
  max-width: 20em;
}
#chat #chat-win .msgs .msg .msg-inner {
  padding: .7em;
  border-radius: .5em;
}
#chat #chat-win .msgs .msg .msg-inner.msg-sex-1 {
  background: #b1d7e2;
}
#chat #chat-win .msgs .msg .msg-inner.msg-sex-2 {
  background: #f6c7d5;
}
#chat #chat-win .msgs .msg .msg-inner .author {
  font-weight: bold;
  margin-bottom: .5em;
}
#chat #chat-win .msgs .msg .msg-inner .text img.smiley {
  width: 1.1em;
}
#chat #chat-win .msgs .msg .msg-inner video {
  width: 100%;
  max-width: 320px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0.1em rgba(0, 0, 0, 0.5);
}
#chat #chat-win .msgs .msg .created {
  text-align: right;
  font-size: 65%;
  color: rgba(0, 0, 0, 0.4);
}
#chat #chat-win .msgs .msg-me {
  float: right;
}
#chat #chat-win .msgs .clear {
  clear: right;
}
#chat #chat-win .input {
  width: 100%;
  padding: .5em;
  background: rgba(0, 0, 0, 0.05);
}
#chat #chat-win .input table {
  width: 100%;
}
#chat #chat-win .input table td:first-child {
  width: 1%;
  display: none;
}
#chat #chat-win .input table td:last-child {
  width: 1%;
  padding-left: .5em;
  white-space: nowrap;
}
#chat #chat-win .input #smileys {
  position: absolute;
  bottom: 3em;
  visibility: hidden;
  background: #fff;
  border-radius: .5em;
  box-shadow: 0 0 1em rgba(0, 0, 0, 0.1);
  padding: 1em;
  opacity: 0;
}
#chat #chat-win .input #smileys.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(-0.2em);
  transition: all .1s linear;
}
#chat #chat-win .input #smileys button {
  background: rgba(0, 0, 0, 0);
  font-size: 120%;
  padding: .1em;
  margin: .3em .2em;
  color: #000;
}
#chat #chat-win .input #smileys button:hover {
  background: rgba(0, 0, 0, 0.1);
}
#chat #chat-win .input #smileys button img {
  width: 1.2em;
}
#chat #chat-win .input [name=text] {
  width: 100%;
  min-height: 3em;
  max-height: 10em;
  overflow-y: auto !important;
}
#chat #chat-win .input ._loading {
  display: none;
}
#chat #chat-win .input ._cantWriteToUser {
  margin-bottom: .5em;
}
#chat #chat-win .input ._cantWriteToUser ._coupon {
  border-bottom: 1px dashed #AD5554;
  color: inherit;
  text-decoration: none;
}
#chat #chat-win .input ._cantWriteToUser .button {
  padding: .5em;
}
#record2-modal {
  width: 23em;
  text-align: center;
  left: 0;
  right: 0;
  margin: auto;
}
#record2-modal .rec {
  display: none;
}
#record2-modal .rec audio {
  display: block;
  margin: auto;
  margin-bottom: 1em;
}
#record2-modal .rec audio.hidden {
  visibility: hidden;
}
#record2-modal video {
  width: 100%;
  max-width: 320px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0.1em rgba(0, 0, 0, 0.5);
}
@media screen and (max-width: 900px) {
  #chat #chat-win {
    margin-top: 3em;
    height: calc(100% - 3em);
  }
  #chat #chat-win header .likes {
    margin-top: -0.5em;
  }
}
