:host {
  line-height: initial;
  font-family: var(--rtk-font-family, sans-serif);

  font-feature-settings: normal;
  font-variation-settings: normal;
}

p {
  margin: var(--rtk-space-0, 0px);
  padding: var(--rtk-space-0, 0px);
}

.scrollbar {
  /* For Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))
    var(--rtk-scrollbar-background, transparent);
}

/* For WebKit */
.scrollbar::-webkit-scrollbar {
  height: var(--rtk-space-1\.5, 6px);
  width: var(--rtk-space-1\.5, 6px);
  border-radius: 9999px;
  background-color: var(--rtk-scrollbar-background, transparent);
}

.scrollbar::-webkit-scrollbar-thumb {
  border-radius: 9999px;
  background-color: var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)));
}


:host {
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  font-size: 14px;
  position: relative;
  box-sizing: border-box;
  color: rgb(var(--rtk-colors-text-1000, 255 255 255));
}

h3 {
  margin: var(--rtk-space-0, 0px);
  display: flex;
  height: var(--rtk-space-12, 48px);
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 400;
  color: rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));
  text-align: center;
}

#dropzone {
  position: absolute;
  top: var(--rtk-space-0, 0px);
  right: var(--rtk-space-0, 0px);
  bottom: var(--rtk-space-0, 0px);
  left: var(--rtk-space-0, 0px);
  z-index: 10;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  --tw-bg-opacity: 1;
  background-color: rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));
  color: rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64));
}

#dropzone.active {
  display: flex;
  animation: 0.2s slide-up ease-in;
}

rtk-chat-messages-ui,
rtk-chat-messages-ui-paginated {
  flex: 1 0 0;
}

rtk-chat-composer-view {
  margin: var(--rtk-space-2, 8px);
}

.chat-container {
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: row;
  container-type: size;
  container-name: chatcontainer;
}

@container chatcontainer (height < 360px) {
}

.chat {
  box-sizing: border-box;
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
}

.banner {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.view-chats-btn {
  margin-top: var(--rtk-space-4, 16px);
}

.selector-container {
  z-index: 50;
  width: 100%;
  max-width: var(--rtk-space-80, 320px);
  border-right: var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));
}

.selector-container.hide {
  display: none;
}

.mobile-close-btn {
  display: none;
}

.selector-container.mobile {
  height: 100%;
  width: 100%;
  max-width: 100%;
  position: absolute;
  top: var(--rtk-space-0, 0px);
  right: var(--rtk-space-0, 0px);
  bottom: var(--rtk-space-0, 0px);
  left: var(--rtk-space-0, 0px);
  background-color: rgba(var(--rtk-colors-background-1000, 8 8 8) / 0.6);
  display: flex;
}

.selector-container.mobile .mobile-close-btn {
  margin-top: var(--rtk-space-4, 16px);
  margin-bottom: var(--rtk-space-4, 16px);
  margin-left: var(--rtk-space-6, 24px);
  margin-right: var(--rtk-space-6, 24px);
  display: block;
}

.pinned-messages {
  position: relative;
  display: flex;
  flex-direction: column;
}

.pinned-messages-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rtk-space-2, 8px);
  padding: var(--rtk-space-4, 16px);
  --tw-bg-opacity: 1;
  background-color: rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));
  font-size: 14px;
  cursor: pointer;
}

.pinned-messages-header div {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--rtk-space-2, 8px);
}

.pinned-messages-header rtk-icon {
  height: var(--rtk-space-3, 12px);
  width: var(--rtk-space-3, 12px);
}

.pinned-messages-content {
  --tw-border-opacity: 1;
  border-color: rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));
  --tw-bg-opacity: 1;
  background-color: rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));
  position: absolute;
  left: var(--rtk-space-0, 0px);
  top: 100%;
  z-index: 50;
  max-height: 30vh;
  width: 100%;
  overflow: auto;
}

.pinned-message {
  display: flex;
  cursor: pointer;
  flex-direction: row;
  align-items: center;
  gap: var(--rtk-space-2, 8px);
  --tw-border-opacity: 1;
  border-color: rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));
  padding: var(--rtk-space-4, 16px);
  border-bottom-width: var(--rtk-border-width-sm, 1px);
  border-right-width: var(--rtk-border-width-none, 0);
  border-left-width: var(--rtk-border-width-none, 0);
  border-top-width: var(--rtk-border-width-none, 0);
  border-style: solid;
}

.pinned-message-avatar {
  height: var(--rtk-space-6, 24px) !important;
  width: var(--rtk-space-6, 24px) !important;
}

@keyframes swipe-in {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}
