// ------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
// #region Imports
import { css } from '../../../../../Dom/Css';
// #endregion
/**
 * @public
 */
export function chatMessageElementJoyStyle() {
    return css `
:host {
  --chat-message-background-color: var(--joy-scheme-background);
  --chat-message-border-color: var(--joy-scheme-highlight);
  --chat-message-border-radius: var(--joy-layout-radius);
  --chat-message-border-style: solid;
  --chat-message-border-width: var(--joy-layout-thickness);
  --chat-message-font-family: var(--joy-font-family);
  --chat-message-font-letter-spacing: var(--joy-typography-body1-letter-spacing);
  --chat-message-font-line-height: var(--joy-typography-body1-line-height);
  --chat-message-font-size: var(--joy-typography-body1-font-size);
  --chat-message-font-text-decoration: var(--joy-typography-body1-text-decoration);
  --chat-message-font-text-transform: var(--joy-typography-body1-text-transform);
  --chat-message-font-weight: var(--joy-typography-body1-font-weight);
  --chat-message-foreground-color: var(--joy-scheme-foreground);
  --chat-message-gap: var(--joy-layout-space);
  --chat-message-padding-bottom: var(--joy-layout-space);
  --chat-message-padding-left: calc(var(--joy-layout-space) * 2);
  --chat-message-padding-right: calc(var(--joy-layout-space) * 2);
  --chat-message-padding-top: var(--joy-layout-space);
  --chat-message-shadow: 0;
  --chat-message-transition-duration: var(--joy-duration-short);
  --chat-message-transition-mode: ease;
  --chat-message-transition-property: all;
  --chat-message-translate: unset;
  --chat-message-white-space: 44px;
}

@media screen and (prefers-reduced-motion: reduce) {
  :host {
    transition-duration: .01ms;
  }
}

:host {
  box-sizing: border-box;
  display: block;
  position: relative;
}

:host *, :host :before, :host :after {
  box-sizing: border-box;
  background-repeat: no-repeat;
}

:host :before, :host :after {
  text-decoration: inherit;
  vertical-align: inherit;
}

:host([hidden]) {
  display: none !important;
}

:host {
  margin-left: var(--chat-message-white-space);
  margin-right: initial;
  content-visibility: auto;
}

:host [part="root"] {
  gap: var(--chat-message-gap);
}

:host [part="root"] [part="content"] {
  justify-content: center;
  align-items: flex-end;
  gap: calc(var(--chat-message-gap) / 2);
  flex-direction: column;
  display: flex;
}

:host [part="root"] [part="content"] [part="message"] {
  border-width: var(--chat-message-border-width);
  border-radius: var(--chat-message-border-radius);
  border-style: var(--chat-message-border-style);
  background-color: var(--chat-message-background-color);
  border-color: var(--chat-message-border-color);
  color: var(--chat-message-foreground-color);
  box-shadow: var(--chat-message-shadow);
  padding-top: var(--chat-message-padding-top);
  padding-right: var(--chat-message-padding-right);
  padding-bottom: var(--chat-message-padding-bottom);
  padding-left: var(--chat-message-padding-left);
  gap: calc(var(--chat-message-gap) / 2);
  transition-duration: var(--chat-message-transition-duration);
  transition-timing-function: var(--chat-message-transition-mode);
  transition-property: var(--chat-message-transition-property);
  font-family: var(--chat-message-font-family);
  font-size: var(--chat-message-font-size);
  line-height: var(--chat-message-font-line-height);
  font-weight: var(--chat-message-font-weight);
  letter-spacing: var(--chat-message-font-letter-spacing);
  -webkit-text-decoration: var(--chat-message-font-text-decoration);
  text-decoration: var(--chat-message-font-text-decoration);
  text-transform: var(--chat-message-font-text-transform);
  border-top-right-radius: 0;
  flex-direction: column;
  display: flex;
}

:host [part="root"] [part="content"] [part="message"] [part="header"] {
  gap: var(--chat-message-gap);
  justify-content: space-between;
  align-items: center;
  display: flex;
}

:host [part="root"] [part="content"] [part="message"] [part="content"] [part="text"] {
  word-break: break-word;
}

:host [part="root"] [part="content"] [part="message"] [part="content"] [part="busy"] {
  gap: calc(var(--chat-message-gap) / 2);
  align-items: center;
  display: flex;
}

:host [part="root"] [part="content"] [part="message"] [part="content"] [part="busy"] [part="dot"] {
  animation: 1.2s ease-out infinite wave;
}

:host [part="root"] [part="content"] [part="message"] [part="content"] [part="busy"] [part="dot"]:nth-child(2) {
  animation-delay: -1s;
}

:host [part="root"] [part="content"] [part="message"] [part="content"] [part="busy"] [part="dot"]:nth-child(3) {
  animation-delay: -.8s;
}

:host [part="reactions"] {
  height: 0;
  display: flex;
  position: relative;
}

:host([reply]) {
  margin-left: initial;
  margin-right: var(--chat-message-white-space);
}

:host([reply]) [part="root"] [part="content"] {
  align-items: flex-start;
}

:host([reply]) [part="root"] [part="content"] [part="message"] {
  border-top-right-radius: var(--chat-message-border-radius);
  border-top-left-radius: 0;
}

@keyframes wave {
  0%, 60%, 100% {
    transform: initial;
  }

  30% {
    transform: translateY(-4px);
  }
}

:host [part="author"] {
  font-family: var(--joy-typography-caption-font-family);
  font-size: var(--joy-typography-caption-font-size);
  line-height: var(--joy-typography-caption-line-height);
  font-weight: var(--joy-typography-caption-font-weight);
  -webkit-text-decoration: var(--joy-typography-caption-text-decoration);
  text-decoration: var(--joy-typography-caption-text-decoration);
  text-transform: var(--joy-typography-caption-text-transform);
  letter-spacing: var(--joy-typography-caption-letter-spacing);
}

:host [part="at"] {
  --text-foreground-color: var(--joy-scheme-middlelight);
  font-family: var(--joy-typography-caption-font-family);
  font-size: var(--joy-typography-caption-font-size);
  line-height: var(--joy-typography-caption-line-height);
  font-weight: var(--joy-typography-caption-font-weight);
  -webkit-text-decoration: var(--joy-typography-caption-text-decoration);
  text-decoration: var(--joy-typography-caption-text-decoration);
  text-transform: var(--joy-typography-caption-text-transform);
  letter-spacing: var(--joy-typography-caption-letter-spacing);
}

    `;
}
//# sourceMappingURL=ChatMessageElement.Joy.js.map