:root {
  --chat-width: 340px;
  --chat-height: 50vh;
}
#chat-entry-container {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 1001;
  display: flex;
  flex-direction: row-reverse;
  align-items: end;
}

#chat-entry-container .chat-entry {
  cursor: pointer;
  border-radius: 100%;
  width: 50px;
  height: 50px;
  border: var(--normal-button-border);
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-items: center;
  text-align: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 30px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position-y: 9px;
}

.number-notification {
  color: white;
  font-weight: bold;
}

.chatbox-container {
  position: absolute;
  right: 60px;
  display: flex;
  bottom: 0px;
}
.chatbox {
  margin-left: 10px;
  border-radius: 10px 10px 0 0;
  box-shadow: 0px 0px 30px #00000040;
  width: var(--chat-width);
  background-color: white;
  height: var(--chat-height) ;
}

.chatbox-container .chat-user-select-container {
  width: calc(var(--chat-width) - 2px);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px;
}

.tool-container {
  display: flex;
  align-items: center;
}

.collapse-chat-button {
  font-size: 22px;
  line-height: 0.5;
  margin-right: 5px;
  cursor: pointer;
}

.expand-chat-button {
  width: 15px;
  cursor: pointer;
}
.chat-entry-list {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.chat-entry-list .chat-entry {
  box-shadow: 0px 3px 6px #00000066;
}

.chatbox .conversation-board {
  height: 200px;
}

.chatbox .chatboard-mention-container {
  padding: 10px;
}

.chatbox .chat-content {
  height: calc(var(--chat-height) - 40px);
  display: flex;
  flex-direction: column;
}

.in-active-entry-container, .hidden-chat-entry-container {
  position: relative;
}

.remove-chat-button {
  visibility: hidden;
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--main-text-color);
  color: white;
  border-radius: 50%;
  z-index: 100;
  width: 15px;
  height: 15px;
  display: wflex;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.in-active-entry-container:hover .remove-chat-button {
  visibility: visible;
}

.hidden-chat-entry-label {
  z-index: 10;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: white;
  font-size: 20px;
  cursor: pointer;
  border-radius: 100%;
  background-color: #02020280;
}


.hidden-option-container {
  display: flex;
  justify-content: space-between;
  height: 30px;
  padding: 5px;
  padding-left: 10px;
}

.hidden-option-container:hover {
  background-color: var(--hover-normal-button-background);
  color: var(--hover-normal-button-color);
}

.hidden-option-container:hover .hidden-option-remove-btn {
  visibility: visible;
}

.hidden-option-remove-btn img {
  width: 15px;
}

.hidden-option-remove-btn {
  visibility: hidden;
  cursor: pointer;
  margin-left: 10px;
}

.hidden-chat-list .ant-popover-arrow  {
  display: none !important;
}


.chatbox .chat-header {
  height: 40px;
  padding: 10px;
  border-bottom: 1px solid var(--main-border-color);
}

.chatbox .expand-chat-button {
  width: 16px;
  height: 16px;
}
.chatbox .close-chat-button {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.chat-vertical-divider {
  height: 30px;
  border-left: 1px solid var(--main-border-color);
  margin-left: 9px;
  margin-right: 5px;
}

.tool-container .expand-chat-button {
  margin-left: 10px; 
}

.chatbox .chat-content div.editor-board {
  min-height: auto !important;
}

.chatbox .chat-content .chatboard-mention-container > div:first-child,
.chatbox .chat-content .chatboard-mention-container > div:first-child > div:first-child,
.chatbox .chat-content div.editor-board textarea {
  height: 60px !important;
}
.chatbox  .attachment-button {
  height: 25px;
}
.chatbox .send-message-button {
  width: 45px;
  height: 25px;
}
.chatbox .chatboard-mention-container {
  border-top: 1px solid var(--main-border-color);
}

.chatbox .chat-message-container {
}
div[data-module="mini-app-chat"] div.chat-message-row.self div.chat-message-wrapper {
  max-width: calc(100% - 10px);
}

.chat-message-row.self .chat-message-wrapper {
  max-width: 50%;
}

.chat-message-row .chat-message-wrapper {
  max-width: 50%;
}

.chatbox .chat-message-row .chat-message-wrapper {
  min-width: 50%;
  max-width: calc(100% - 10px);
}

.title-chat-message {
  margin-right: 10px;
}