// ------------------------------------------------------------------------------
// <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 toastElementJoyStyle() {
    return css `
:host {
  --toast-background-color: var(--joy-scheme-background);
  --toast-border: var(--toast-border-width) var(--toast-border-style) var(--toast-border-color);
  --toast-border-color: var(--joy-scheme-highlight);
  --toast-border-radius: var(--joy-layout-radius);
  --toast-border-style: solid;
  --toast-border-width: 0px;
  --toast-font-family: var(--joy-font-family);
  --toast-font-letter-spacing: var(--joy-typography-body1-letter-spacing);
  --toast-font-line-height: var(--joy-typography-body1-line-height);
  --toast-font-size: var(--joy-typography-body1-font-size);
  --toast-font-text-decoration: var(--joy-typography-body1-text-decoration);
  --toast-font-text-transform: var(--joy-typography-body1-text-transform);
  --toast-font-weight: var(--joy-typography-body1-font-weight);
  --toast-foreground-color: var(--joy-scheme-foreground);
  --toast-gap: var(--joy-layout-space);
  --toast-offset-y: var(--joy-layout-space);
  --toast-padding-bottom: var(--joy-layout-space);
  --toast-padding-left: calc(var(--joy-layout-space) * 2);
  --toast-padding-right: calc(var(--joy-layout-space) * 2);
  --toast-padding-top: var(--joy-layout-space);
  --toast-progress-fill-color: currentColor;
  --toast-progress-ring-fill-color: var(--joy-scheme-foreground);
  --toast-shadow: var(--joy-elevation-regular-offset-x-0), var(--joy-elevation-regular-offset-x-1) var(--joy-elevation-regular-offset-y-0), var(--joy-elevation-regular-offset-y-1) var(--joy-elevation-regular-blur-0), var(--joy-elevation-regular-blur-1) var(--joy-elevation-regular-spread-0), var(--joy-elevation-regular-spread-1) var(--joy-elevation-regular-color-0), var(--joy-elevation-regular-color-1);
  --toast-shadow-blur: var(--joy-elevation-regular-blur-0), var(--joy-elevation-regular-blur-1);
  --toast-shadow-color: var(--joy-elevation-regular-color-0), var(--joy-elevation-regular-color-1);
  --toast-shadow-offset-x: var(--joy-elevation-regular-offset-x-0), var(--joy-elevation-regular-offset-x-1);
  --toast-shadow-offset-y: var(--joy-elevation-regular-offset-y-0), var(--joy-elevation-regular-offset-y-1);
  --toast-shadow-spread: var(--joy-elevation-regular-spread-0), var(--joy-elevation-regular-spread-1);
  --toast-transition-duration: var(--joy-duration-short);
  --toast-transition-mode: ease;
  --toast-transition-property: background-color, color, border-color, opacity, box-shadow, margin;
  --toast-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(--toast-font-family);
  font-size: var(--toast-font-size);
  line-height: var(--toast-font-line-height);
  font-weight: var(--toast-font-weight);
  letter-spacing: var(--toast-font-letter-spacing);
  -webkit-text-decoration: var(--toast-font-text-decoration);
  text-decoration: var(--toast-font-text-decoration);
  text-transform: var(--toast-font-text-transform);
  transition-duration: var(--toast-transition-duration);
  transition-timing-function: var(--toast-transition-mode);
  transition-property: var(--toast-transition-property);
  opacity: 1;
  z-index: 1;
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
}

:host [part="root"] {
  pointer-events: all;
  border: var(--toast-border);
  border-color: var(--toast-border-color);
  border-radius: var(--toast-border-radius);
  border-style: var(--toast-border-style);
  border-width: var(--toast-border-width);
  background-color: var(--toast-background-color);
  min-width: 52px;
  color: var(--toast-foreground-color);
  box-shadow: var(--toast-shadow);
  transition-duration: var(--toast-transition-duration);
  transition-timing-function: var(--toast-transition-mode);
  transition-property: var(--toast-transition-property);
  padding-top: var(--toast-padding-top);
  padding-right: var(--toast-padding-right);
  padding-bottom: var(--toast-padding-bottom);
  padding-left: var(--toast-padding-left);
  gap: var(--toast-gap);
  margin: auto;
  position: fixed;
  left: 50%;
  overflow: hidden;
  translate: -50%;
}

:host [part="root"] [part="header"], :host [part="root"] [part="content"] {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-decoration: inherit;
  text-transform: inherit;
  color: inherit;
}

:host [part="root"] [part="progressFill"] {
  background-color: var(--toast-progress-fill-color);
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: .26;
  width: 100%;
  height: 100%;
  transition-property: opacity;
  transition-duration: var(--toast-transition-duration);
  transition-timing-function: linear;
  position: absolute;
  top: 0;
  left: 0;
}

:host [part="root"] [part="progressRing"] {
  --progress-ring-fill-color: var(--toast-progress-ring-fill-color);
}

:host(:not([is-open])) {
  opacity: 0;
  pointer-events: none;
}

:host([position="bottom"]) [part="root"] {
  top: unset;
  bottom: var(--toast-offset-y);
  translate: -50%;
}

:host([position="middle"]) [part="root"] {
  top: 50%;
  bottom: unset;
  translate: -50% -50%;
}

:host([position="top"]) [part="root"] {
  bottom: unset;
  top: var(--toast-offset-y);
  translate: -50%;
}

:host [part="root"] {
  padding: calc(var(--joy-layout-space) * 2) calc(var(--joy-layout-space) * 3);
}

:host([variant="primary"]) {
  --toast-background-color: var(--joy-color-primary-500);
  --toast-foreground-color: var(--joy-color-primary-0);
}

:host([variant="secondary"]) {
  --toast-background-color: var(--joy-color-secondary-500);
  --toast-foreground-color: var(--joy-color-secondary-0);
}

:host([variant="tertiary"]) {
  --toast-background-color: var(--joy-color-tertiary-500);
  --toast-foreground-color: var(--joy-color-tertiary-0);
}

:host([variant="danger"]) {
  --toast-background-color: var(--joy-color-danger-500);
  --toast-foreground-color: var(--joy-color-danger-0);
}

:host([variant="warning"]) {
  --toast-background-color: var(--joy-color-warning-500);
  --toast-foreground-color: var(--joy-color-warning-0);
}

:host([variant="success"]) {
  --toast-background-color: var(--joy-color-success-500);
  --toast-foreground-color: var(--joy-color-success-0);
}

:host([variant="info"]) {
  --toast-background-color: var(--joy-color-info-500);
  --toast-foreground-color: var(--joy-color-info-0);
}

:host([variant="highlight"]) {
  --toast-background-color: var(--joy-color-highlight-500);
  --toast-foreground-color: var(--joy-color-highlight-0);
}

:host([variant="neutral"]) {
  --toast-background-color: var(--joy-color-neutral-500);
  --toast-foreground-color: var(--joy-color-neutral-0);
}

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