.chat-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  /* top: 64%; */
  margin: 0 1rem;
  margin-bottom: 1rem;
  font-size: smaller;
}
@media (max-width: 799px) {
  .chat-header {
    display: none;
  }
  .chat-container {
    top: -40px;
    bottom: 20px;
    display: none;
  }
  .chat-container.maximized {
    display: block;
  }
}
@media (min-width: 800px) {
  .chat-container.minimized {
    height: 1rem;
    /* top: auto; */
  }
  .chat-container.minimized form {
    bottom: auto;
  }
  .chat-container.maximized {
    top: 72px;
  }
}
.chat-header {
  align-items: center;
  background-color: #1f1f1f;
  justify-content: center;
  align-items: center;
  color: white;
  position: absolute;
  top: 0;
  width: 100%;
  height: 2rem;
  overflow: hidden;
}
.chat-header span {
  display: inline-block;
  vertical-align: middle;
  line-height: 40px;
  padding: 0 0.5rem;
  font-size: initial;
}
.chat-header .menu .button {
  background-color: transparent;
}
.chat-messages {
  padding: 2.5rem 1rem 3rem 1rem;
  overflow: auto;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  background-color: #3a393a;
  color: white;
  border-radius: 0.5rem;
}
.chat-message {
  word-wrap: break-word;
  position: relative;
}
.chat-message .timestamp {
  font-size: xx-small;
}
.chat-message .origin {
  font-weight: bold;
  padding: 0.25rem 0 0 0.25rem;
}
.chat-message .payload {
  position: relative;
  margin: 0.5rem 1rem 0.5rem 1rem;
  padding: 0.5rem 1rem;
}

.chat-message video,
.chat-message iframe,
.chat-message img {
  max-width: 100%;
  margin: 2px 0;
}
.chat-form {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 0.5rem 0.5rem 0.5rem;
  background-color: white;
  border-radius: 5px;
}
.chat-form input {
  color: white !important;
  display: block;
  border: 1px solid white;
  padding: 8px;
  padding-left: 3rem;
  margin: 0;
  width: 100%;
  font-size: inherit;
  line-height: initial;
  box-sizing: border-box;
  background-color: transparent;
  border-radius: 5px;
}
.chat-form input:focus {
  outline: 0;
}

.chat-fullscreen {
  top: 0;
  bottom: 0;
  position: fixed;
  z-index: 1000;
}
.payload-sender {
  background-color: white;
  color: #1f1f1f;
  border-radius: 2rem 0 2rem 2rem;
}
.payload-sender::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  right: -1rem;
  width: 1rem;
  height: 1rem;
  clip-path: polygon(100% 0%, 0% 100%, 100% 100%);
  background-color: white;
  transform: rotate(180deg);
}
.payload-other {
  background-color: #1f1f1f;
  color: #ffffff;
  border-radius: 0 2rem 2rem 2rem;
}
.payload-other::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: -1rem;
  width: 1rem;
  height: 1rem;
  clip-path: polygon(100% 0%, 0% 100%, 100% 100%);
  background-color: #1f1f1f;
  transform: rotate(270deg);
}
.sender {
  text-align: right;
}

.other {
  text-align: left;
}
#chat-field {
  margin: 0 !important;
  background-color: #3a393a !important;
}

#send-message-container {
  background-color: #fbb03a;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  position: absolute;
  left: 0.25rem;
  top: 0.25rem;
}
#send-message {
  padding: 0.5rem;
  transform: rotate(180deg);
  color: white;
  /* position: absolute; */
  top: 0;
  left: 0;
  font-size: 2rem;
  cursor: pointer;
}
#send-message img {
  width: 1.5rem;
  transform: rotate(180deg);
}
.resize-handle {
  cursor: grab;
}
