#chat-widget-root {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 1050;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}
#chat-widget-root > * {
  pointer-events: auto;
}

.chat-tabs-bar {
  position: fixed;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 2px;
  padding: 0 8px;
  z-index: 1051;
}

.chat-tab-item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 41px;
  padding: 6px 12px;
  background: var(--bs-paper-bg, #fff);
  border: 1px solid var(--bs-border-color, #e0e0e0);
  border-bottom: none;
  border-radius: 0.5rem 0.5rem 0 0;
  cursor: pointer;
  font-size: 0.8125rem;
  max-width: 180px;
  white-space: nowrap;
  transition: background-color 0.15s;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}
.chat-tab-item:hover {
  background-color: var(--bs-body-bg, #f5f5f5);
}
.chat-tab-item.active {
  background-color: var(--bs-primary);
  color: #fff;
  border-color: var(--bs-primary);
}
.chat-tab-item.active .chat-tab-name {
  color: #fff;
}
.chat-tab-item.active .chat-tab-icon {
  background: rgba(255, 255, 255, 0.2);
}

.chat-tab-new {
  padding: 6px 10px;
  min-height: 41px;
}

.chat-tab-name {
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  max-width: 100px;
}

.chat-tab-badge {
  background: var(--bs-danger);
  color: #fff;
  font-size: 0.625rem;
  border-radius: 50%;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.chat-tab-close {
  opacity: 0.6;
  transition: opacity 0.15s;
}
.chat-tab-close:hover {
  opacity: 1;
}

.chat-presence-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.chat-presence-dot.presence-ONLINE {
  background-color: #28c76f;
}
.chat-presence-dot.presence-AWAY {
  background-color: #ff9f43;
}
.chat-presence-dot.presence-OFFLINE {
  background-color: #a8aaae;
}

.chat-tab-avatar,
.chat-contact-avatar {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.chat-presence-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--bs-paper-bg, #fff);
  box-sizing: content-box;
}
.chat-presence-indicator.presence-ONLINE {
  background-color: #28c76f;
}
.chat-presence-indicator.presence-AWAY {
  background-color: #ff9f43;
}
.chat-presence-indicator.presence-OFFLINE {
  background-color: #a8aaae;
}
.chat-presence-indicator.chat-presence-indicator-sm {
  width: 7px;
  height: 7px;
  border-width: 1.5px;
  bottom: -1px;
  right: -1px;
}

.chat-tab-status {
  position: relative;
  gap: 4px;
}

.chat-status-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: var(--bs-paper-bg, #fff);
  border: 1px solid var(--bs-border-color, #e0e0e0);
  border-radius: 0.5rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
  padding: 0.25rem 0;
  min-width: 160px;
  z-index: 1060;
  margin-bottom: 4px;
}

.chat-status-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.8125rem;
  transition: background-color 0.15s;
}
.chat-status-option:hover {
  background-color: var(--bs-body-bg, #f5f5f5);
}

.chat-tab-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--bs-body-bg, #f0f0f0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-window {
  position: fixed;
  bottom: 46px;
  width: 340px;
  max-height: 450px;
  background: var(--bs-paper-bg, #fff);
  border-radius: 0.75rem 0.75rem 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1050;
  animation: chatWindowSlideUp 0.15s ease-out;
}

.chat-contacts-window {
  right: 8px;
  width: 320px;
  max-height: 480px;
}

@keyframes chatWindowSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.chat-window-header {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--bs-border-color, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bs-paper-bg, #fff);
  flex-shrink: 0;
}
.chat-window-header h6 {
  margin: 0;
  font-size: 0.875rem;
}

.chat-window-search {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--bs-border-color, #f0f0f0);
  flex-shrink: 0;
}

.chat-window-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  min-height: 200px;
  max-height: 320px;
}

.chat-window-emoji {
  border-top: 1px solid var(--bs-border-color, #e0e0e0);
  padding: 0.5rem;
  background: var(--bs-paper-bg, #fff);
  flex-shrink: 0;
  max-height: 160px;
  overflow-y: auto;
}

.chat-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1px;
}

.chat-emoji-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.1s, transform 0.1s;
}
.chat-emoji-item:hover {
  background-color: var(--bs-body-bg, #f5f5f5);
  transform: scale(1.2);
}

.chat-typing-indicator {
  padding: 0.125rem 0.75rem;
  font-size: 0.625rem;
  color: var(--bs-secondary-color, #999);
  font-style: italic;
  flex-shrink: 0;
}

.chat-typing-dots span {
  animation: typingBounce 1.4s infinite ease-in-out;
  display: inline-block;
  font-weight: bold;
  font-size: 1rem;
  line-height: 0;
}
.chat-typing-dots span:nth-child(1) {
  animation-delay: 0s;
}
.chat-typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.chat-typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-4px);
  }
}
.chat-window-footer {
  padding: 0.375rem 0.5rem;
  border-top: 1px solid var(--bs-border-color, #e0e0e0);
  display: flex;
  align-items: flex-end;
  gap: 0.375rem;
  background: var(--bs-paper-bg, #fff);
  flex-shrink: 0;
}

.chat-autogrow {
  font-size: 0.8125rem;
  resize: none;
  min-height: 32px;
  max-height: 100px;
  overflow-y: auto;
  line-height: 1.4;
  padding: 0.25rem 0.5rem;
}

.chat-send-btn {
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  border-radius: 50%;
  flex-shrink: 0;
}

.chat-contact-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.15s;
}
.chat-contact-item:hover {
  background-color: var(--bs-body-bg, #f5f5f5);
}

.chat-contact-detail {
  flex: 1;
  min-width: 0;
  font-size: 0.8125rem;
}
.chat-contact-detail .fw-semibold {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-msg {
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.chat-msg.own {
  align-items: flex-end;
}
.chat-msg.own .chat-msg-bubble {
  background-color: var(--bs-primary);
  color: #fff;
  border-bottom-right-radius: 0.25rem;
}
.chat-msg.own .chat-msg-time {
  text-align: right;
}

.chat-msg-sender {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--bs-primary);
  margin-bottom: 1px;
  padding-left: 2px;
}

.chat-msg-bubble {
  max-width: 85%;
  padding: 0.375rem 0.625rem;
  border-radius: 1rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  word-break: break-word;
}

.chat-msg:not(.own) .chat-msg-bubble {
  background-color: var(--bs-body-bg, #f0f0f0);
  border-bottom-left-radius: 0.25rem;
}

.chat-msg-time {
  font-size: 0.625rem;
  color: var(--bs-secondary-color, #999);
  margin-top: 1px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.chat-read-indicator {
  display: inline-flex;
  align-items: center;
  color: var(--bs-secondary-color, #999);
}
.chat-read-indicator i {
  color: inherit !important;
}
.chat-read-indicator.read {
  color: var(--bs-primary, #7367f0) !important;
}

@media (max-width: 768px) {
  .chat-window {
    width: calc(100vw - 16px);
    right: 8px !important;
  }
  .chat-contacts-window {
    width: calc(100vw - 16px);
  }
  .chat-tabs-bar {
    max-width: 100vw;
    overflow-x: auto;
  }
  .chat-tab-name {
    display: none;
  }
}

/*# sourceMappingURL=up6Module.app.chatWidget.css.map */
