: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)));
}


.message-wrapper {
  display: flex;
  flex-direction: row-reverse;
  gap: var(--dyte-space-2, 8px);
}


.message-wrapper.incoming {
  flex-direction: row;
}
.message {
  display: flex;
  flex-direction: column;
}
.header {
  margin-bottom: var(--dyte-space-1, 4px);
  align-self: flex-end;
  color: rgb(var(--dyte-colors-text-900, 255 255 255 / 0.88));
  font-size: 14px;
  font-weight: 600;
}

.incoming .header {
  align-self: flex-start;
}

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

.body .metadata {
  margin-top: var(--dyte-space-2, 8px);
  align-self: flex-end;
  font-size: 10px;
}

.bubble {
  max-width: var(--dyte-space-96, 384px);
  padding: var(--dyte-space-2, 8px);
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-brand-300, 73 124 253) / var(--tw-bg-opacity));
  color: rgb(var(--dyte-colors-text-on-brand-1000, var(--dyte-colors-text-1000, 255 255 255)));
  border-radius: var(--dyte-border-radius-md, 8px);
}

.incoming .bubble {
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-background-800, 30 30 30) / var(--tw-bg-opacity));
  color: rgb(var(--dyte-colors-text-900, 255 255 255 / 0.88));
}

.avatar {
  display: none;
}

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

dyte-menu dyte-icon {
  height: var(--dyte-space-4, 16px);
  width: var(--dyte-space-4, 16px);
  cursor: pointer;
}
.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: var(--dyte-space-2, 8px);
  padding-bottom: var(--dyte-space-2, 8px);
  padding-top: var(--dyte-space-1, 4px);
  padding-right: var(--dyte-space-1, 4px);
  border-radius: var(--dyte-border-radius-md, 8px);
  border-width: var(--dyte-border-width-none, 0);
  border-style: none;
  background: radial-gradient(
    at top right,
    rgb(var(--dyte-colors-brand-300, 73 124 253)) 60%,
    rgba(255, 255, 255, 0) 80%
  );
}
.actions dyte-icon {
  height: var(--dyte-space-4, 16px);
  width: var(--dyte-space-4, 16px);
  color: rgb(var(--dyte-colors-text-on-brand-1000, var(--dyte-colors-text-1000, 255 255 255)));
}
.incoming .actions {
    background: radial-gradient(
      at top right,
      rgb(var(--dyte-colors-background-800, 30 30 30)) 60%,
      rgba(255, 255, 255, 0) 80%
    );
  }
.incoming .actions dyte-icon {
  color: rgb(var(--dyte-colors-text-900, 255 255 255 / 0.88));
}
.incoming dyte-avatar {
  --tw-bg-opacity: 1;
  background-color: rgba(var(--dyte-colors-background-600, 60 60 60) / var(--tw-bg-opacity));
  color: rgb(var(--dyte-colors-text-900, 255 255 255 / 0.88));
}

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

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

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