.chat {
  width: 20vw;
  position: fixed;
  z-index: 9000;
  right: 0;
  bottom: 0;
  font-size: 1rem;
  transform: translateY(50vh);
  transition: transform 300ms ease-out,
              box-shadow 300ms ease-out;
}

.chat--open {
  transform: translateY(0);
  box-shadow: 0 0 30px 0 rgba(0, 0, 0, .2);
}

.chat__head {
  width: 100%;
  background-color: #D29723;
  padding: .5vh 1vw;
  display: flex;
  align-items: center;
  border-top-left-radius: .5em;
  cursor: pointer;
}

.chat__head__icon {
  width: 1vw;
}

.chat__head__text {
  font-size: 1.2em;
  font-weight: 300;
  color: #FFF;
  padding: 0 1vw;
  margin: 0 auto;
}

.chat__body {
  width: 100%;
  max-width: 100%;
  height: 50vh;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat__top {
  width: 100%;
  color: #FFF;
  background-color: #D29723;
  padding: 1.5vh 0;
  line-height: 1.5em;
  text-align: center;
}

.chat__connected {
  font-size: .8em;
  font-weight: 300;
}

.chat__hello {
  font-size: 1.2em;
}

.chat__messages__container {
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2vh 1vw;
  overflow: auto;
}

.chat__message {
  width: max-content;
  max-width: 70%;
  font-size: .8em;
  line-height: 1.5em;
  padding: 1vh;
  background-color: #fff;
  border-radius: .5em;
  word-break: break-all;
}

.chat__message img {
  width: 2vw;
}

.chat__message:not(:last-child) {
  margin-bottom: 2vh;
}

.chat__message--us {
  box-shadow: 0 0 30px 0 rgba(0, 0, 0, .1);
  border-bottom-left-radius: 0;
}

.chat__message--user {
  align-self: flex-end;
  background-color: rgba(210, 151, 35, .4);
  border-bottom-right-radius: 0;
}

.chat__input {
  max-width: 100%;
  width: 100%;
  padding: 1vh 1vw;
  background-color: #F6F6F6;
  display: flex;
  align-items: center;
  position: relative;
}

.chat__input__emojis {
  width: 100%;
  height: 100%;
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 100;
  background-color: #F6F6F6;
  display: none;
  grid-template-columns: repeat(7, 1fr);
  padding: 1vh 1vw;
  column-gap: 1vw;
  border-bottom: 1px solid #DDD;
}
.chat__input__emojis--open {
  display: grid;
}

.chat__input__emojis__item {
  cursor: pointer;
}

.chat__input__emojis__item img {
  width: 100%;
}
.chat__input__input {
  width: 100%;
  margin: 0 1vw;
  border: none;
  border-radius: .5em;
  padding: 1vh 1vw;
  font-family: inherit;
  font-size: 1em;
}

.chat__input__input:focus {
  outline: none;
}

.chat__input__icon {
  width: 1vw;
  cursor: pointer;
}


@media only screen and (max-width: 1366px) {
  .chat {
    font-size: 0.71rem;
  }
}

@media only screen and (max-width: 1280px) {
  .chat {
    font-size: 0.66rem;
  }
}

@media only screen and (max-width: 1024px) {
  .chat {
    font-size: 0.53rem;
  }
}