.chattext {
  font-family: verdana;
  font-weight: normal;
  font-size: 100%;
  padding: 3px;
  margin: 2px 5px 0px 5px;
  border: 2px solid #323232;
  color: #ffffff;
  background: #323232;
  width: 220px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
}

.btn-submit-chat {
  margin: 2px 5px 0px 5px;
  cursor: pointer;
  font-family: verdana;
  font-size: 100%;
  padding: 5px;
  border: 2px solid #434343;
  color: #ffffff;
  background: #323232;
  width: 220px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
}

#chatscreen {
  font-family: verdana;
  font-weight: normal;
  font-size: 100%;
  width: 230px;
  height: 370px;
  overflow: scroll;
  -ms-overflow-x: hidden;
  overflow-x: hidden;
}

div::-webkit-scrollbar {
  width: 10px;
}

div::-webkit-scrollbar-track {
  background-color: #434343;
}

div::-webkit-scrollbar-thumb {
  background-color: #cccccc;
}

div::-webkit-scrollbar-thumb:hover {
  background-color: #323232;
}

.chat_messages {
  padding: 0;
  margin-right: 40px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  -ms-word-break: break-all;
  word-break: break-word;
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
  font-size: 10px;
  text-align: left;
  white-space: pre-wrap;
}

.chat_messages a,
.chat_messages a:hover {
  text-decoration: none;
}

.chat-message {
  text-align: left;
}

.chat-message-author {
  font-size: 10px;
  text-decoration: none;
}

.chat-message-time {
  display: none;
}

.chat-empty,
.chat-loading,
.chat-error {
  padding: 4px;
  font:
    normal 10px/1.3 Verdana,
    Arial,
    sans-serif;
  text-align: left;
}

.chat-error {
  color: #ff8d83;
}

.chat-popup-button {
  margin-left: 5px;
  padding: 0;
  color: #d4cc47;
  background: none;
  border: 0;
  font-size: 13px;
  cursor: pointer;
}

.chat-page {
  min-height: 100vh;
  margin: 0;
  padding: 16px;
  color: #fff;
  background: #031216;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

.chat-page *,
.chat-page *::before,
.chat-page *::after {
  box-sizing: border-box;
}

.chat-page-shell {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.chat-page .chat-widget {
  padding: 15px;
  background: #202020;
  border: 1px solid #444b53;
  border-radius: 9px;
}

.chat-page .chat-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 20px;
}

.chat-page .chat-icon-button {
  width: 32px;
  height: 32px;
  color: #fff;
  background: #30343a;
  border: 1px solid #59606a;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
}

.chat-page .chattext {
  width: 100%;
  min-height: 86px;
  margin: 0;
  padding: 9px;
  resize: vertical;
  box-sizing: border-box;
}

.chat-page .chat-widget-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
}

.chat-page .btn-submit-chat {
  width: auto;
  min-height: 36px;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid #59606a;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.chat-page .btn-submit-chat {
  color: #fff;
  background: #16732e;
  border-color: #259443;
}

.chat-page .chat-online {
  margin-top: 9px;
  padding: 8px;
  background: #17191c;
  border: 1px solid #3d434a;
  border-radius: 7px 7px 0 0;
  font-size: 12px;
}

.chat-page .chat-online > span {
  display: block;
  margin-bottom: 3px;
  font-weight: bold;
}

.chat-page .chat-online a {
  text-decoration: none;
}

.chat-page .chat-screen {
  width: 100%;
  height: calc(100vh - 290px);
  min-height: 350px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #111315;
  border: 1px solid #3d434a;
  border-top: 0;
  border-radius: 0 0 7px 7px;
}

.chat-page .chat-message {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-page .chat-message-author,
.chat-page .chat_messages {
  margin: 0;
  font-size: 13px;
}

.chat-page .chat-message-time {
  display: block;
  margin-top: 3px;
  color: #89939f;
  font-size: 10px;
}

@media (max-width: 600px) {
  .chat-page {
    padding: 8px;
  }

  .chat-page .chat-widget {
    padding: 10px;
  }

  .chat-page .chat-screen {
    height: calc(100vh - 275px);
    min-height: 300px;
  }
}
