@import "fonts.css";

.chat {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 450px;
}

.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: #0b0b0b;
  margin: 0;
}

.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: 16px;
  background-color: #fff;
  border-radius: 6px;
}

.chat__window {
  flex: 1;
  width: 100%;
}

.chat__window__message-container {
  margin: 1rem;
  padding: 10px;
}

.chat__window__message-message {
  display: flex;
  flex-direction: column;
  border-radius: 6px;
}

.chat__window__name {
  color: #707c97;
  font-size: 14px;
  line-height: 16px;
  font-family: "CheilRomanOTF-Medium";
}

.chat__window__name:after {
  content: ":";
}

.chat__window__message {
  color: #707c97;
  font-size: 12px;
  line-height: 16px;
  font-family: "CheilRomanOTF-Medium";
  word-break: break-word;
}

.chat__window__message-ally {
  display: flex;
  flex-direction: column;
}

.chat__window__top-message {
  color: #fff;
  font-size: 10px;
  line-height: 14px;
  font-weight: bold;
  font-family: "CheilRomanOTF-Medium";
}

.chat__window__replied-message {
  color: gray;
  font-size: 12px;
  line-height: 13px;
  font-style: italic;
  font-family: "CheilRomanOTF-Medium";
  background-color: #fff;
  margin: 2px 0 4px 0;
  padding: 5px;
  border-radius: 6px;
}

.chat__window__message__white {
  color: #fff;
}

.chat__bottom-container {
  width: 100%;
  height: 4rem;
  display: flex;
}

.chat__input-container {
  position: relative;
  display: none;
  width: 100%;
  height: 100%;
}

.chat__input-container__input {
  width: 100%;
  flex: 1;
  height: 100%;
  padding: 2rem 5rem 1rem 1rem;
  border: none;
  border-top: 1px solid #b7bdcb;
  overflow: hidden;
  resize: none;
  line-height: 1.7rem;
  font-size: 1.5rem;
  touch-action: none;
}

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: 0;
  top: 1.8rem;
  height: 2rem;
  width: 2rem;
  border: 0;
  cursor: pointer;
  display: flex;
  background-color: transparent;
}

.chat__input-container__face {
  position: absolute;
  right: 2.5rem;
  top: 1.8rem;
  height: 2rem;
  width: 2rem;
  cursor: pointer;
}

.chat__smileys-container {
  position: relative;
  width: 100%;
  height: 110px;
  display: none;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 5px;
  background-color: #fff;
}

.chat__smileys-container::after {
  content: "";
  flex: auto;
}

.chat__smileys-container__smiley {
  border-radius: 3px;
  padding: 1px;
}
.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: 260px;
  max-height: 320px;
  padding: 24px 0;
  border-radius: 6px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  display: none;
  background-color: #fff;
}

.login-form__close-icon {
  width: 20px;
  height: 20px;
  position: absolute;
  right: 16px;
  top: 16px;
  cursor: pointer;
}

.chat__login-form__title {
  font-family: "CheilRomanOTF-Bold";
  width: 80%;
}

.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: 0 0 2px 0;
}

.chat__login-form__input {
  color: #707c97;
  font-family: "CheilRomanOTF-Regular";
  height: 3rem;
  padding-left: 8px;
  border-radius: 3px;
  border: solid 0.5px #707c97;
  background: #fff;
  touch-action: none;
  margin-bottom: 5px;
}

.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: 32px;
  border-radius: 4px;
  background: #fff;
  color: #fff;
  font-family: "CheilRomanOTF-Regular";
  font-size: 14px;
  line-height: 14px;
  cursor: pointer;
  width: 60%;
  margin: 16px 0 0 0;
  padding: 1rem 0;
  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);
}

@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;
  }
}
