: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 {
  max-width: var(--rtk-space-96, 384px);
}
.message-wrapper {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: var(--rtk-space-2, 8px);
}
.message-wrapper.incoming {
  flex-direction: row;
}
.message {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.incoming .message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.header {
  margin-top: var(--rtk-space-1, 4px);
  margin-bottom: var(--rtk-space-1, 4px);
  align-self: flex-end;
  color: rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));
  font-size: 12px;
  font-weight: 600;
}
.incoming .header {
  align-self: flex-start;
}

.body {
  display: flex;
  flex-direction: column;
  min-width: var(--rtk-space-24, 96px);
  font-family: var(--rtk-font-family, sans-serif);
  color: rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));
  font-size: 14px;
  line-height: 1.375;
  position: relative;
}

.bubble {
  max-width: 90%;
  padding: var(--rtk-space-2, 8px);
  border-width: 1px;
  border-style: solid;
  --tw-border-opacity: 1;
  border-color: rgba(var(--rtk-colors-brand-600, 13 81 253) / var(--tw-border-opacity));
  --tw-bg-opacity: 1;
  background-color: rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));
  color: rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));
  border-radius: var(--rtk-border-radius-md, 8px);
  line-height: 1;
}

.incoming .bubble {
  --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-800, 30 30 30) / var(--tw-bg-opacity));
  color: rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));
}

.metadata {
  margin-top: var(--rtk-space-1, 4px);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--rtk-space-1, 4px);
  align-self: flex-end;
  font-size: 11px;
  color: rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));
}

.incoming .metadata {
  margin-top: var(--rtk-space-1, 4px);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--rtk-space-1, 4px);
  align-self: flex-end;
  font-size: 11px;
  color: rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76));
}
.metadata-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--rtk-space-1, 4px);
}

.avatar {
  display: none;
}

rtk-menu {
  position: absolute;
  right: var(--rtk-space-1, 4px);
  top: var(--rtk-space-1, 4px);
  border-radius: var(--rtk-border-radius-lg, 12px);
}

rtk-menu rtk-icon {
  height: var(--rtk-space-4, 16px);
  width: var(--rtk-space-4, 16px);
  cursor: pointer;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  border-width: 1px;
  border-style: solid;
  --tw-border-opacity: 1;
  border-color: rgba(var(--rtk-colors-brand-600, 13 81 253) / var(--tw-border-opacity));
  --tw-bg-opacity: 1;
  background-color: rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-bg-opacity));
  padding: var(--rtk-space-1, 4px);
  border-radius: var(--rtk-border-radius-md, 8px);
  border-width: var(--rtk-border-width-none, 0);
  border-style: none;
}

.actions rtk-icon {
  height: var(--rtk-space-4, 16px);
  width: var(--rtk-space-4, 16px);
  color: rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));
}

.incoming rtk-avatar {
  --tw-bg-opacity: 1;
  background-color: rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));
  color: rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));
}

.incoming .actions {
  --tw-border-opacity: 1;
  border-color: rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-border-opacity));
  --tw-bg-opacity: 1;
  background-color: rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));
}

@media (min-width: 400px) {
  .avatar {
    display: flex;
    width: var(--rtk-space-6, 24px);
  }

    .avatar rtk-avatar {
    height: var(--rtk-space-6, 24px);
    width: var(--rtk-space-6, 24px);
    font-size: 10px;
    overflow: clip;
    border-radius: 9999px;
  }
}

@media (hover: hover) {
  rtk-menu {
    visibility: hidden;
  }
      .body:hover rtk-menu {
    visibility: visible;
  }
}
