// ------------------------------------------------------------------------------
// <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 chatMessageElementMemphisStyle() {
    return css `
:host {
  --chat-message-background-color: var(--memphis-scheme-background);
  --chat-message-border-color: var(--memphis-scheme-highlight);
  --chat-message-border-radius: var(--memphis-layout-radius);
  --chat-message-border-style: solid;
  --chat-message-border-width: var(--memphis-layout-thickness);
  --chat-message-font-family: var(--memphis-font-family);
  --chat-message-font-letter-spacing: var(--memphis-typography-body1-letter-spacing);
  --chat-message-font-line-height: var(--memphis-typography-body1-line-height);
  --chat-message-font-size: var(--memphis-typography-body1-font-size);
  --chat-message-font-text-decoration: var(--memphis-typography-body1-text-decoration);
  --chat-message-font-text-transform: var(--memphis-typography-body1-text-transform);
  --chat-message-font-weight: var(--memphis-typography-body1-font-weight);
  --chat-message-foreground-color: var(--memphis-scheme-foreground);
  --chat-message-gap: var(--memphis-layout-space);
  --chat-message-padding-bottom: var(--memphis-layout-space);
  --chat-message-padding-left: calc(var(--memphis-layout-space) * 2);
  --chat-message-padding-right: calc(var(--memphis-layout-space) * 2);
  --chat-message-padding-top: var(--memphis-layout-space);
  --chat-message-shadow: var(--memphis-elevation-light-offset-x-1) var(--memphis-elevation-light-offset-y-1) var(--memphis-elevation-light-blur-1) var(--memphis-elevation-light-spread-1) var(--memphis-elevation-light-color-1);
  --chat-message-shadow-blur: var(--memphis-elevation-light-blur-1);
  --chat-message-shadow-color: var(--memphis-elevation-light-color-1);
  --chat-message-shadow-offset-x: var(--memphis-elevation-light-offset-x-1);
  --chat-message-shadow-offset-y: var(--memphis-elevation-light-offset-y-1);
  --chat-message-shadow-spread: var(--memphis-elevation-light-spread-1);
  --chat-message-transition-duration: var(--memphis-duration-short);
  --chat-message-transition-mode: ease;
  --chat-message-transition-property: all;
  --chat-message-translate: none;
  --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;
}

:host [part="root"] {
  justify-content: flex-end;
  align-items: flex-start;
  gap: var(--chat-message-gap);
  flex-direction: row-reverse;
  display: flex;
}

:host [part="root"] [part="message-area"] {
  justify-content: center;
  align-items: flex-end;
  gap: calc(var(--chat-message-gap) / 2);
  flex-direction: column;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  display: flex;
}

:host [part="root"] [part="message-area"] [part="message-stack"] {
  flex-direction: column;
  align-items: flex-end;
  width: max-content;
  min-width: 0;
  max-width: 100%;
  display: flex;
}

:host [part="root"] [part="message-area"] [part="message-stack"] [part="message-line"] {
  justify-content: flex-end;
  align-items: flex-start;
  gap: calc(var(--chat-message-gap) / 2);
  box-sizing: border-box;
  flex-direction: row;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  position: relative;
}

:host [part="root"] [part="message-area"] [part="message-stack"] [part="message-line"] [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);
  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);
  box-shadow: var(--chat-message-shadow-offset-x) var(--chat-message-shadow-offset-y) var(--chat-message-shadow-blur) var(--chat-message-shadow-spread) var(--chat-message-shadow-color);
  box-sizing: border-box;
  border-top-right-radius: 0;
  flex-direction: column;
  flex: auto;
  min-width: 0;
  max-width: 100%;
  display: flex;
}

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

:host [part="root"] [part="message-area"] [part="message-stack"] [part="message-line"] [part="message"] [part="message-body"] [part="text"] {
  word-break: break-word;
}

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

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

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

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

:host [part="root"] [part="message-area"] [part="message-stack"] [part="message-line"] [part="message-after"] {
  flex-shrink: 0;
  align-items: flex-start;
  display: flex;
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: calc(100% + var(--chat-message-gap) / 2);
}

:host [part="root"] [part="message-area"] [part="message-stack"] [part="message-line"] [part="message-after"][hidden] {
  display: none;
}

:host [part="root"] [part="message-area"] [part="message-stack"] [part="footer"] {
  contain: inline-size;
  box-sizing: border-box;
  justify-content: flex-start;
  align-items: flex-end;
  gap: var(--chat-message-gap);
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  overflow: visible;
}

:host [part="root"] [part="message-area"] [part="message-stack"] [part="footer"] [part="actions"] {
  gap: calc(var(--chat-message-gap) / 2);
  box-sizing: border-box;
  flex-flow: wrap;
  order: 2;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
}

:host [part="root"] [part="message-area"] [part="message-stack"] [part="footer"] [part="actions"] ::slotted(*) {
  min-width: 0;
  max-width: 100%;
}

:host [part="root"] [part="message-area"] [part="message-stack"] [part="footer"] [part="reactions"] {
  gap: calc(var(--chat-message-gap) / 2);
  min-width: 0;
  max-width: 100%;
  margin-top: calc(var(--chat-message-gap) * -1.5);
  flex-flow: wrap;
  order: 1;
  justify-content: flex-end;
  align-items: center;
  display: flex;
}

:host [part="root"] [part="message-area"] [part="message-stack"] [part="footer"] [part="actions"][hidden], :host [part="root"] [part="message-area"] [part="message-stack"] [part="footer"] [part="reactions"][hidden], :host [part="root"] [part="message-area"] [part="message-stack"] [part="footer"][hidden] {
  display: none;
}

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

:host([reply]) [part="root"] {
  flex-direction: row;
  justify-content: flex-start;
}

:host([reply]) [part="root"] [part="message-area"], :host([reply]) [part="root"] [part="message-area"] [part="message-stack"] {
  align-items: flex-start;
}

:host([reply]) [part="root"] [part="message-area"] [part="message-stack"] [part="message-line"] {
  justify-content: flex-start;
}

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

:host([reply]) [part="root"] [part="message-area"] [part="message-stack"] [part="footer"] {
  align-items: flex-start;
}

:host([reply]) [part="root"] [part="message-area"] [part="message-stack"] [part="footer"] [part="actions"], :host([reply]) [part="root"] [part="message-area"] [part="message-stack"] [part="footer"] [part="reactions"] {
  justify-content: flex-start;
}

:host([has-footer]) {
  margin-bottom: calc(var(--chat-message-white-space) / 4);
}

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

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

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