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

@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 {
  font-family: var(--message-font-family);
  font-size: var(--message-font-size);
  font-weight: var(--message-font-weight);
  background-color: var(--message-background-color);
  color: var(--message-foreground-color);
  border-color: var(--message-border-color);
  border-width: var(--message-border-width);
  border-style: var(--message-border-style);
  border-radius: calc(var(--message-border-radius) / 2);
  transition-duration: var(--message-transition-duration);
  transition-timing-function: var(--message-transition-mode);
  transition-property: var(--message-transition-property);
  padding-top: var(--message-padding-top);
  padding-left: var(--message-padding-left);
  padding-bottom: var(--message-padding-bottom);
  padding-right: var(--message-padding-right);
  box-sizing: border-box;
  display: block;
  position: relative;
  overflow: hidden;
}

:host [part="root"] {
  box-sizing: inherit;
  gap: var(--message-gap);
  flex-direction: column;
  max-width: 100%;
  display: flex;
  position: relative;
}

:host [part="root"]:before {
  content: "";
  top: calc(var(--message-padding-top) * -1);
  left: calc(var(--message-padding-left) * -1);
  bottom: calc(var(--message-padding-bottom) * -1);
  width: calc(var(--message-gap) / 2);
  background-color: var(--message-border-color);
  border-radius: var(--message-border-radius);
  position: absolute;
}

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

:host [part="root"] [part="header-row"] [part="icon"] {
  color: inherit;
  flex-shrink: 0;
}

:host [part="root"] [part="header-row"] [part="text"] {
  gap: calc(var(--message-gap) / 2);
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  display: flex;
}

:host [part="root"] [part="header-row"] [part="text"] [part="header"], :host [part="root"] [part="header-row"] [part="text"] [part="content"] {
  color: inherit;
}

:host [part="root"] [part="header-row"] [part="text"] [part="contentWrapper"] {
  width: 100%;
}

:host [part="root"] [part="header-row"] [part="text"] [part="expandedContent"] {
  width: 100%;
  transition: height .3s;
  overflow: hidden;
}

:host [part="root"] [part="header-row"] [part="text"] [part="expandedContent"] > slot {
  display: block;
}

:host [part="root"] [part="header-row"] [part="close"] {
  flex-shrink: 0;
  align-self: flex-start;
}

:host [part="root"] [part="footer"] {
  justify-content: center;
  align-items: center;
  width: 100%;
  display: flex;
}

:host [part="root"] [part="footer"] [part="caret"] {
  flex-shrink: 0;
  transition: transform .3s;
}

:host([fit="width"]) {
  width: 100%;
}

:host([fit="height"]) {
  height: 100%;
}

:host([fit="both"]) {
  width: 100%;
  height: 100%;
}

:host([expandable]:not([is-expanded])) [part="contentWrapper"] [part="content"] {
  -webkit-line-clamp: var(--message-collapsed-lines, 2);
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

:host([expandable][is-expanded]) [part="contentWrapper"] [part="content"] {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}

:host([expandable][is-expanded]) [part="caret"]::part(icon) {
  transform: rotate(180deg);
}

:host([appearance="outline"]) {
  --message-background-color: var(--memphis-scheme-background);
  --message-foreground-color: var(--memphis-scheme-foreground);
  --message-border-color: var(--memphis-scheme-highlight);
  --message-border-width: var(--memphis-layout-thickness);
  --message-border-style: solid;
}

:host([appearance="outline"][variant="primary"]:not([disabled]:not([disabled="false"]))) {
  --message-foreground-color: var(--memphis-color-primary-500);
  --message-border-color: var(--memphis-color-primary-500);
}

:host([appearance="outline"][variant="secondary"]:not([disabled]:not([disabled="false"]))) {
  --message-foreground-color: var(--memphis-color-secondary-500);
  --message-border-color: var(--memphis-color-secondary-500);
}

:host([appearance="outline"][variant="tertiary"]:not([disabled]:not([disabled="false"]))) {
  --message-foreground-color: var(--memphis-color-tertiary-500);
  --message-border-color: var(--memphis-color-tertiary-500);
}

:host([appearance="outline"][variant="danger"]:not([disabled]:not([disabled="false"]))) {
  --message-foreground-color: var(--memphis-color-danger-500);
  --message-border-color: var(--memphis-color-danger-500);
}

:host([appearance="outline"][variant="warning"]:not([disabled]:not([disabled="false"]))) {
  --message-foreground-color: var(--memphis-color-warning-500);
  --message-border-color: var(--memphis-color-warning-500);
}

:host([appearance="outline"][variant="success"]:not([disabled]:not([disabled="false"]))) {
  --message-foreground-color: var(--memphis-color-success-500);
  --message-border-color: var(--memphis-color-success-500);
}

:host([appearance="outline"][variant="info"]:not([disabled]:not([disabled="false"]))) {
  --message-foreground-color: var(--memphis-color-info-500);
  --message-border-color: var(--memphis-color-info-500);
}

:host([appearance="outline"][variant="highlight"]:not([disabled]:not([disabled="false"]))) {
  --message-foreground-color: var(--memphis-color-highlight-500);
  --message-border-color: var(--memphis-color-highlight-500);
}

:host([appearance="outline"][variant="neutral"]:not([disabled]:not([disabled="false"]))) {
  --message-foreground-color: var(--memphis-color-neutral-500);
  --message-border-color: var(--memphis-color-neutral-500);
}

:host([appearance="soft"]) {
  --message-background-color: var(--memphis-scheme-highlight);
  --message-foreground-color: var(--memphis-scheme-foreground);
  --message-border-width: 0;
}

:host([appearance="soft"][variant="primary"]:not([disabled]:not([disabled="false"]))) {
  --message-background-color: var(--memphis-color-primary-100);
  --message-foreground-color: var(--memphis-color-primary-500);
}

:host([appearance="soft"][variant="secondary"]:not([disabled]:not([disabled="false"]))) {
  --message-background-color: var(--memphis-color-secondary-100);
  --message-foreground-color: var(--memphis-color-secondary-500);
}

:host([appearance="soft"][variant="tertiary"]:not([disabled]:not([disabled="false"]))) {
  --message-background-color: var(--memphis-color-tertiary-100);
  --message-foreground-color: var(--memphis-color-tertiary-500);
}

:host([appearance="soft"][variant="danger"]:not([disabled]:not([disabled="false"]))) {
  --message-background-color: var(--memphis-color-danger-100);
  --message-foreground-color: var(--memphis-color-danger-500);
}

:host([appearance="soft"][variant="warning"]:not([disabled]:not([disabled="false"]))) {
  --message-background-color: var(--memphis-color-warning-100);
  --message-foreground-color: var(--memphis-color-warning-500);
}

:host([appearance="soft"][variant="success"]:not([disabled]:not([disabled="false"]))) {
  --message-background-color: var(--memphis-color-success-100);
  --message-foreground-color: var(--memphis-color-success-500);
}

:host([appearance="soft"][variant="info"]:not([disabled]:not([disabled="false"]))) {
  --message-background-color: var(--memphis-color-info-100);
  --message-foreground-color: var(--memphis-color-info-500);
}

:host([appearance="soft"][variant="highlight"]:not([disabled]:not([disabled="false"]))) {
  --message-background-color: var(--memphis-color-highlight-100);
  --message-foreground-color: var(--memphis-color-highlight-500);
}

:host([appearance="soft"][variant="neutral"]:not([disabled]:not([disabled="false"]))) {
  --message-background-color: var(--memphis-color-neutral-100);
  --message-foreground-color: var(--memphis-color-neutral-500);
}

:host([appearance="plain"]) {
  --message-background-color: var(--memphis-scheme-background);
  --message-foreground-color: var(--memphis-scheme-foreground);
  --message-border-width: 0;
}

:host([appearance="plain"][variant="primary"]:not([disabled]:not([disabled="false"]))) {
  --message-foreground-color: var(--memphis-color-primary-500);
}

:host([appearance="plain"][variant="secondary"]:not([disabled]:not([disabled="false"]))) {
  --message-foreground-color: var(--memphis-color-secondary-500);
}

:host([appearance="plain"][variant="tertiary"]:not([disabled]:not([disabled="false"]))) {
  --message-foreground-color: var(--memphis-color-tertiary-500);
}

:host([appearance="plain"][variant="danger"]:not([disabled]:not([disabled="false"]))) {
  --message-foreground-color: var(--memphis-color-danger-500);
}

:host([appearance="plain"][variant="warning"]:not([disabled]:not([disabled="false"]))) {
  --message-foreground-color: var(--memphis-color-warning-500);
}

:host([appearance="plain"][variant="success"]:not([disabled]:not([disabled="false"]))) {
  --message-foreground-color: var(--memphis-color-success-500);
}

:host([appearance="plain"][variant="info"]:not([disabled]:not([disabled="false"]))) {
  --message-foreground-color: var(--memphis-color-info-500);
}

:host([appearance="plain"][variant="highlight"]:not([disabled]:not([disabled="false"]))) {
  --message-foreground-color: var(--memphis-color-highlight-500);
}

:host([appearance="plain"][variant="neutral"]:not([disabled]:not([disabled="false"]))) {
  --message-foreground-color: var(--memphis-color-neutral-500);
}

:host([appearance="solid"]) {
  --message-background-color: var(--memphis-scheme-highlight);
  --message-foreground-color: var(--memphis-scheme-foreground);
  --message-border-width: 0;
}

:host([appearance="solid"][variant="primary"]:not([disabled]:not([disabled="false"]))) {
  --message-background-color: var(--memphis-color-primary-500);
  --message-foreground-color: var(--memphis-color-primary-0);
}

:host([appearance="solid"][variant="secondary"]:not([disabled]:not([disabled="false"]))) {
  --message-background-color: var(--memphis-color-secondary-500);
  --message-foreground-color: var(--memphis-color-secondary-0);
}

:host([appearance="solid"][variant="tertiary"]:not([disabled]:not([disabled="false"]))) {
  --message-background-color: var(--memphis-color-tertiary-500);
  --message-foreground-color: var(--memphis-color-tertiary-0);
}

:host([appearance="solid"][variant="danger"]:not([disabled]:not([disabled="false"]))) {
  --message-background-color: var(--memphis-color-danger-500);
  --message-foreground-color: var(--memphis-color-danger-0);
}

:host([appearance="solid"][variant="warning"]:not([disabled]:not([disabled="false"]))) {
  --message-background-color: var(--memphis-color-warning-500);
  --message-foreground-color: var(--memphis-color-warning-0);
}

:host([appearance="solid"][variant="success"]:not([disabled]:not([disabled="false"]))) {
  --message-background-color: var(--memphis-color-success-500);
  --message-foreground-color: var(--memphis-color-success-0);
}

:host([appearance="solid"][variant="info"]:not([disabled]:not([disabled="false"]))) {
  --message-background-color: var(--memphis-color-info-500);
  --message-foreground-color: var(--memphis-color-info-0);
}

:host([appearance="solid"][variant="highlight"]:not([disabled]:not([disabled="false"]))) {
  --message-background-color: var(--memphis-color-highlight-500);
  --message-foreground-color: var(--memphis-color-highlight-0);
}

:host([appearance="solid"][variant="neutral"]:not([disabled]:not([disabled="false"]))) {
  --message-background-color: var(--memphis-color-neutral-500);
  --message-foreground-color: var(--memphis-color-neutral-0);
}

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