@charset "utf-8";
.livechat-container {
  max-width: 800px;
  min-height: 640px;
  max-height: 640px;
  margin: 0 auto;
  background: #393939;
  border: 1px solid #474747;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.livechat-header {
  flex-shrink: 0;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #474747;
}
.livechat-header h2 {
  margin: 0;
  font-size: 18px;
  color: #adadad;
  font-weight: 600;
}
.livechat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.livechat-messages .chat {
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
}
.livechat-messages .chat .chat-header {
  margin-bottom: 4px;
}
.livechat-messages .chat .chat-header .nickname {
  font-size: 12px;
  color: #999999;
}
.livechat-messages .chat .chat-content {
  border-radius: 6px;
  line-height: 1.4;
  word-wrap: break-word;
  font-size: 14px;
  color: #fff;
  width: fit-content;
}
.livechat-messages .chat.other-chat {
  align-items: flex-start;
}
.livechat-messages .chat:last-child {
  margin-bottom: 0;
}
.livechat-messages .no-messages {
  text-align: center;
  color: #999999;
  font-style: italic;
  padding: 32px 0;
  font-size: 14px;
}
.livechat-messages::-webkit-scrollbar {
  width: 8px;
}
.livechat-messages::-webkit-scrollbar-track {
  background: rgba(71,71,71,0.3);
  border-radius: 6px;
}
.livechat-messages::-webkit-scrollbar-thumb {
  background: #5c5c5c;
  border-radius: 6px;
}
.livechat-messages::-webkit-scrollbar-thumb:hover {
  background: #707070;
}
.livechat-input {
  flex-shrink: 0;
  padding: 8px;
  border-top: 1px solid #474747;
  background-color: #333;
}
.livechat-input .chat-form {
  display: flex;
  gap: 8px;
}
.livechat-input .chat-form #messageInput {
  flex: 1;
  padding: 8px;
  border: 1px solid #5c5c5c;
  border-radius: 6px;
  font-size: 14px;
  color: #fff;
}
.livechat-input .chat-form #messageInput:focus {
  outline: none;
  border-color: #7daaf0;
  box-shadow: 0 0 0 2px rgba(125,170,240,0.25);
}
.livechat-input .chat-form #messageInput::placeholder {
  color: #858585;
}
.livechat-input .char-counter {
  font-size: 11px;
  padding: 0 4px;
  color: #999999;
  display: none;
}
.login-required {
  padding: 32px;
  text-align: center;
}
.login-required .login-message h3 {
  margin: 0 0 16px 0;
  color: #fff;
  font-size: 18px;
}
.login-required .login-message p {
  margin: 0 0 24px 0;
  color: #999999;
  font-size: 14px;
}
.login-required .login-message .login-btn {
  display: inline-block;
  padding: 8px 24px;
  background: #424953;
  color: #7daaf0;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.login-required .login-message .login-btn:hover {
  background: #5892ec;
  text-decoration: none;
  color: #fff;
}
.permission-required {
  padding: 32px;
  text-align: center;
}
.permission-required .permission-message h3 {
  margin: 0 0 16px 0;
  color: #fff;
  font-size: 18px;
}
.permission-required .permission-message p {
  margin: 0 0 24px 0;
  color: #999999;
  font-size: 14px;
}
.permission-required .permission-message .login-btn {
  display: inline-block;
  padding: 8px 24px;
  background: #424953;
  color: #7daaf0;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.permission-required .permission-message .login-btn:hover {
  background: #5892ec;
  text-decoration: none;
  color: #fff;
}
.room-closed {
  padding: 32px;
  text-align: center;
  margin: auto 0;
}
.room-closed .closed-message h3 {
  color: #707070;
  font-size: 16px;
}
.livechat-widget {
  position: relative;
  height: 100%;
}
.message-input {
  flex: 1;
  padding: 8px 16px;
  border: 1px solid #5c5c5c;
  border-radius: 6px;
  font-size: 14px;
  background: #333;
  color: #fff;
}
.message-input:focus {
  outline: none;
  border-color: #7daaf0;
  box-shadow: 0 0 0 2px rgba(125,170,240,0.25);
}
.message-input::placeholder {
  color: #858585;
}
.send-btn {
  padding: 8px;
  background: #424953;
  color: #7daaf0;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 60px;
}
.send-btn:hover {
  background: #5892ec;
}
.send-btn:disabled {
  background: rgba(133,133,133,0.4);
  cursor: not-allowed;
}

