@import "fonts.css";

.chat {
  position: relative;
  display: none;
  flex-direction: column;
  height: 450px;
  visibility: visible;
}

.chat.show {
  display: flex !important;
}

.chat__top {
  height: 36px;
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.chat__top__title {
  font-size: 18px;
  line-height: 18px;
  font-weight: bold;
  font-family: CheilRomanOTF-Bold;
  color: #FFF;
  margin: 0;
}
.chat.light .chat__top__title {
  color: #0b0b0b;
}

.chat__top__icon {
  height: 24px;
  width: 24px;
  cursor: pointer;
}

.chat__container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  overflow: hidden;
  width: 100%;
  padding: 10px;
  background-color: rgba(27, 28, 34, 1);
  border-radius: 6px;
  position: relative;
}
.chat.light .chat__container {
  background-color: rgba(255, 255, 255, 1);
}

.chat__window {
  width: 100%;
  list-style-type: none;
  padding-left: 0;
  flex: 1;
}

.chat__window__message-container {
  margin: 10px;
  padding: 10px;
  background-color: rgba(36, 37, 43, 1);
  border-radius: 6px;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
}

.chat.light .chat__window__message-container {
  background: #FAFAFA;
}

.chat__window__message-message {
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  color: rgba(187, 208, 255, 1);
}

.chat__window__name {
  color: rgba(187, 208, 255, 1);
  font-size: 14px;
  line-height: 16px;
  font-family: CheilRomanOTF-Regular;
}

.chat.light .chat__window__message, .chat.light .chat__window__name {
  color: #707c97;
}

.chat__window__name:after {
  content: ":";
}

.chat__window__message {
  color: rgba(187, 208, 255, 1);
  font-size: 12px;
  line-height: 16px;
  font-family: CheilRomanOTF-Regular;
  word-break: break-word;
}

.chat__window__message-ally {
  display: flex;
  flex-direction: column;
}

.chat.light .chat__window__message-ally {
  background: linear-gradient(#d8a0fe, #7683d9);
}

.chat__window__top-message {
  color: #fff;
  font-size: 10px;
  line-height: 14px;
  font-weight: bold;
  font-family: CheilRomanOTF-Regular;
}

.chat__window__replied-message {
  color: gray;
  font-size: 12px;
  line-height: 13px;
  font-style: italic;
  font-family: CheilRomanOTF-Regular;
  background-color: #fff;
  margin: 2px 0 4px 0;
  padding: 5px;
  border-radius: 6px;
}

.chat__window__message__white {
  color: #fff;
}
.chat.light .chat__window__message__white {
  color: #fff;
}

.chat__bottom-container {
  width: 100%;
  height: auto;
  display: flex;
  min-height: 40px;
}

.chat__input-container {
  position: relative;
  display: none;
  width: 100%;
  height: 100%;
}

.chat__input-container__input {
  width: 100%;
  flex: 1;
  min-height: 36px;
  padding: 12px 60px 12px 10px;
  border: none;
  border-top: 1px solid #b7bdcb;
  overflow: hidden;
  resize: none;
  line-height: 18px;
  font-size: 16px;
  touch-action: none;
  background-color: rgba(36, 37, 43, 1);
  color: rgba(187, 208, 255, 1);
}
.chat.light .chat__input-container__input {
  background-color: #fdfbfd;
  color: #707c97;
}

textarea:focus {
  outline: none;
}

.chat__input-container__input::placeholder {
  color: #707c97;
}

.chat__input-container__input::-webkit-input-placeholder {
  font-size: 16px;
}

.chat__input-container__input-button {
  position: absolute;
  right: 4px;
  bottom: 8px;
  height: 24px;
  width: 24px;
  border: 0;
  cursor: pointer;
  display: flex;
  background-color: transparent;
}

.chat__input-container__face {
  position: absolute;
  right: 34px;
  bottom: 8px;
  height: 24px;
  width: 24px;
  cursor: pointer;
}

.gestures-container {
  display: none;
  width: 100%;
  height: 120px;
  background: #FFFFFF;
  border-radius: 6px;
  flex-direction: row;
  padding: 5px;
}

.gestures-container .gestures-container-menu {
  height: 100%;
  width: 20%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.gestures-container .gestures-container-menu .gestures-container-menu-item {
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  border-top: 1px solid #CCC;
}
.gestures-container .gestures-container-menu .gestures-container-menu-item :nth-child(1) { border-top: none; }
.gestures-container .gestures-container-menu .gestures-container-menu-item.face {
  background-image: url("../assets/images/icon-menu-face.svg");
  background-size: 100% auto;
}
.gestures-container .gestures-container-menu .gestures-container-menu-item.face.active {
  background-image: url("../assets/images/icon-menu-face-active.svg");
}

.gestures-container-content {
  height: 100%;
  width: 80%;
  overflow-y: auto;
  overflow-x: hidden;
}
.gestures-container-content .gestures-container-content-item { display: none; }
.gestures-container-content .gestures-container-content-item.active { display: flex; }
.chat__smileys-container {
  position: relative;
  width: 100%;
  height: 110px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 5px;
  background: rgba(36, 37, 43, 1);
}
.chat.light .chat__smileys-container {
  background: rgba(255, 255, 255, 1);
}

.chat__smileys-container::after {
  content: "";
  flex: auto;
}

.chat__smileys-container__smiley {
  border-radius: 3px;
  padding: 1px;
  font-size: 24px;
}
.chat__smileys-container__smiley:hover {
  background-color: #707c97;
  cursor: pointer;
}

.chat__login-form {
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  width: 90%;
  max-width: 360px;
  height: auto;
  max-height: 350px;
  padding: 24px 0;
  border-radius: 6px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  display: none;
  background-color: #1c1d23;
  z-index: 2;
}
.chat.light .chat__login-form {
  background-color: #fdfbfd;
}

.login-form__close-icon {
  width: 20px;
  height: 20px;
  position: absolute;
  right: 16px;
  top: 16px;
  cursor: pointer;
  background: #6424bc;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
}
.chat.light .login-form__close-icon {
  background: none;
  border: 1px solid #000000;
}

.chat__login-form__title {
  font-size: 24px;
  line-height: 26px;
  font-family: CheilRomanOTF-Bold;
  width: 80%;
  color: #FFFFFF;
  text-align: center;
}
.chat.light .chat__login-form__title {
  color: #000000;
}

.chat__login-form-info-container {
  display: flex;
  flex-direction: column;
  width: 80%;
}

.chat__login-form__label {
  font-size: 14px;
  line-height: 14px;
  color: #707c97;
  font-family: CheilRomanOTF-Light;
  margin: 10px 0 5px 0;
}

.chat__login-form__input {
  color: #707c97;
  font-family: CheilRomanOTF-Regular;
  height: auto;
  padding: 10px;
  border-radius: 6px;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border: 0 solid #707c97;
  background: #25262c;
  touch-action: none;
  margin-bottom: 5px;
}
.chat.light .chat__login-form__input {
  border: 1px solid #707c97;
  background: #FFFFFF;
}

.chat__login-form__input[type='checkbox'] {
  vertical-align: middle;
  height: auto;
  margin: 0 5px;
}

.chat__login-form__input::placeholder {
  color: #707c97;
  font-family: CheilRomanOTF-Light;
}

.chat__login-form__input::-webkit-input-placeholder {
  font-size: 16px;
}

.chat__td-form__label {
  vertical-align: middle;
  margin: 0 5px;
  max-width: 150px;
}

.chat__login-form__button {
  height: auto;
  border-radius: 4px;
  background: linear-gradient(to left, #6b12dd 30%, #3f28df 80%);
  color: #fff;
  font-family: CheilRomanOTF-Regular;
  font-size: 14px;
  line-height: 16px;
  cursor: pointer;
  width: auto;
  margin: 16px 0 0 0;
  padding: 15px 30px 12px;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.chat__login-form__terms {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80%;
}
.chat__login-form__checkbox {
  margin: 0 !important;
}
.chat__login-form__terms-text {
  margin-left: 5px;
  font-size: 1.5rem;
  line-height: 1.5rem;
  cursor: pointer;
  text-decoration: underline;
}

.chat__login-button {
  color: #fff;
  font-family: CheilRomanOTF-Regular;
  font-size: 14px;
  line-height: 14px;
  margin: auto;
  width: 50%;
  height: 100%;
  cursor: pointer;
  border-radius: 6px;
  border: none;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  background: linear-gradient(to left, #6b12dd 30%, #3f28df 80%);
}

@media only screen and (max-width: 991px) {
  .chat__top {
    display: none;
  }

  .chat__login-button {
    top: 0;
    bottom: unset;
  }

  .chat__login-form {
    top: 2rem;
    bottom: unset;
  }

  .chat__container {
    justify-content: unset;
  }
}
