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

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

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

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

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

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


:host {
  display: flex;
  flex-direction: column;
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));
}

.chat-input {
  position: relative;
  margin: var(--dyte-space-2, 8px);
  z-index: 10;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  border-radius: var(--dyte-border-radius-md, 8px);
  border: var(--dyte-border-width-sm, 1px) solid rgb(var(--dyte-colors-background-600, 60 60 60));
}

textarea {
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-background-900, 26 26 26) / var(--tw-bg-opacity));
  box-sizing: border-box;
  padding: var(--dyte-space-3, 12px);
  color: rgb(var(--dyte-colors-text-1000, 255 255 255));
}

textarea::-moz-placeholder {
  color: rgb(var(--dyte-colors-text-1000, 255 255 255));
}

textarea::placeholder {
  color: rgb(var(--dyte-colors-text-1000, 255 255 255));
}

textarea {
  border-top-left-radius: var(--dyte-border-radius-md, 8px);
  border-top-right-radius: var(--dyte-border-radius-md, 8px);
  font-family: var(--dyte-font-family, sans-serif);
  outline: 2px solid transparent;
  outline-offset: 2px;
  resize: none;
  overflow-y: auto;
  border-width: var(--dyte-border-width-none, 0);
  border-style: none;
  min-height: 60px;
  font-size: 14px;
}

.chat-buttons {
  border-bottom-right-radius: var(--dyte-border-radius-md, 8px);
  border-bottom-left-radius: var(--dyte-border-radius-md, 8px);
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-background-900, 26 26 26) / var(--tw-bg-opacity));
  display: flex;
  height: var(--dyte-space-8, 32px);
  align-items: center;
  justify-content: space-between;
  padding-left: var(--dyte-space-3, 12px);
  padding-right: var(--dyte-space-3, 12px);
  padding-top: var(--dyte-space-2, 8px);
  padding-bottom: var(--dyte-space-2, 8px);
}

.chat-buttons .left dyte-button {
  margin-right: var(--dyte-space-1, 4px);
}

.chat-buttons .left dyte-button dyte-icon {
  height: var(--dyte-space-5, 20px);
  width: var(--dyte-space-5, 20px);
}

.chat-buttons .right {
  z-index: 10;
}

.chat-buttons .right .edit-buttons {
  display: flex;
  gap: var(--dyte-space-2, 8px);
}

.chat-buttons > div {
  display: flex;
  align-items: center;
}

dyte-emoji-picker {
  z-index: 0;
  position: absolute;
  bottom: var(--dyte-space-32, 128px);
  border-top: var(--dyte-border-width-sm, 1px) solid rgb(var(--dyte-colors-background-600, 60 60 60));
  animation: 0.3s slide-up ease;
}

@keyframes slide-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0%);
  }
}

.member-list {
  margin: var(--dyte-space-0, 0px);
  margin-top: var(--dyte-space-1, 4px);
  max-height: var(--dyte-space-28, 112px);
  min-width: var(--dyte-space-40, 160px);
  max-width: var(--dyte-space-64, 256px);
  padding: var(--dyte-space-0, 0px);
  position: absolute;
  bottom: var(--dyte-space-28, 112px);
  list-style-type: none;
  overflow-y: auto;
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-background-900, 26 26 26) / var(--tw-bg-opacity));
  border-radius: var(--dyte-border-radius-sm, 4px);
  --tw-border-spacing-x: var(--dyte-space-2, 8px);
  --tw-border-spacing-y: var(--dyte-space-2, 8px);
  border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y);
  border-style: solid;
  border-color: rgba(var(--dyte-colors-brand-300, 73 124 253) / 0.5);
}

.member-list .member {
  display: flex;
  align-items: center;
  gap: var(--dyte-space-1, 4px);
  padding: var(--dyte-space-2, 8px);
  padding-right: var(--dyte-space-4, 16px);
  cursor: pointer;
}

.member-list .member dyte-avatar {
  flex-shrink: 0;
  height: var(--dyte-space-5, 20px);
  width: var(--dyte-space-5, 20px);
  font-size: 14px;
  color: rgb(var(--dyte-colors-text-on-brand-1000, var(--dyte-colors-text-1000, 255 255 255)));
}

.member-list .member span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-list .member:hover, 
    .member-list .member.selected {
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-brand-700, 2 70 253) / var(--tw-bg-opacity));
  color: rgb(var(--dyte-colors-text-on-brand-1000, var(--dyte-colors-text-1000, 255 255 255)));
}

.suggested-replies {
  margin: var(--dyte-space-0, 0px);
  padding: var(--dyte-space-3, 12px);
  display: flex;
  flex-wrap: nowrap;
  gap: var(--dyte-space-2, 8px);
  list-style-type: none;
  overflow-x: auto;
}

.suggested-replies dyte-tooltip {
  flex-shrink: 0;
}

.suggested-replies li {
  padding: var(--dyte-space-2, 8px);
  border-radius: var(--dyte-border-radius-md, 8px);
  background-color: rgba(var(--dyte-colors-brand-300, 73 124 253) / 0.75);
  color: rgb(var(--dyte-colors-text-on-brand-1000, var(--dyte-colors-text-1000, 255 255 255)));
  cursor: pointer;
}

.suggested-replies li:hover {
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-brand-300, 73 124 253) / var(--tw-bg-opacity));
}

.preview-overlay {
  position: absolute;
  top: var(--dyte-space-0, 0px);
  right: var(--dyte-space-0, 0px);
  bottom: var(--dyte-space-0, 0px);
  left: var(--dyte-space-0, 0px);
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-background-800, 30 30 30) / var(--tw-bg-opacity));
  border-radius: var(--dyte-border-radius-md, 8px);
}

.file-preview {
  position: absolute;
  top: var(--dyte-space-4, 16px);
  left: var(--dyte-space-4, 16px);
  max-width: -moz-fit-content;
  max-width: fit-content;
  max-height: var(--dyte-space-20, 80px);
}

.file-preview:hover dyte-tooltip {
  display: block;
}

.file-preview dyte-tooltip {
  position: absolute;
  top: calc(var(--dyte-space-1, 4px) * -1);
  left: calc(var(--dyte-space-1, 4px) * -1);
  display: none;
  margin-left: calc(var(--dyte-space-1, 4px) * -1);
  margin-top: calc(var(--dyte-space-1, 4px) * -1);
}

.file-preview dyte-button {
  display: flex;
  height: var(--dyte-space-4, 16px);
  width: var(--dyte-space-4, 16px);
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-background-600, 60 60 60) / var(--tw-bg-opacity));
    border: 1px solid rgb(var(--dyte-colors-text-1000, 255 255 255));
}

.file-preview dyte-icon {
  height: var(--dyte-space-3, 12px);
  width: var(--dyte-space-3, 12px);
  color: rgb(var(--dyte-colors-text-1000, 255 255 255));
}
.preview-image {
  height: var(--dyte-space-16, 64px);
  width: var(--dyte-space-16, 64px);
  -o-object-fit: cover;
     object-fit: cover;
  max-height: 100%;
  max-width: 100%;
  overflow: clip;
  border-radius: var(--dyte-border-radius-md, 8px);
}

.preview-file {
  padding-left: var(--dyte-space-3, 12px);
  padding-right: var(--dyte-space-3, 12px);
  padding-top: var(--dyte-space-2, 8px);
  padding-bottom: var(--dyte-space-2, 8px);
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-background-700, 44 44 44) / var(--tw-bg-opacity));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: var(--dyte-border-radius-md, 8px);
  max-width: 200px;
}

@keyframes scroll-text {
  0% {
    transform: translateX(0%);
  }
  70% {
    transform: translateX(-100%);
  }
  80% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(0%);
  }
}
