// ------------------------------------------------------------------------------
// <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 {
  --tost-background-color: var(--joy-scheme-background);
  --tost-border: var(--toast-border-width) var(--toast-border-style) var(--toast-border-color);
  --tost-border-color: var(--joy-scheme-highlight);
  --tost-border-radius: var(--joy-layout-radius);
  --tost-border-style: solid;
  --tost-border-width: 0px;
  --tost-font-family: var(--joy-font-family);
  --tost-font-letter-spacing: var(--joy-typography-body1-letter-spacing);
  --tost-font-line-height: var(--joy-typography-body1-line-height);
  --tost-font-size: var(--joy-typography-body1-font-size);
  --tost-font-text-decoration: var(--joy-typography-body1-text-decoration);
  --tost-font-text-transform: var(--joy-typography-body1-text-transform);
  --tost-font-weight: var(--joy-typography-body1-font-weight);
  --tost-foreground-color: var(--joy-scheme-foreground);
  --tost-gap: 8px;
  --tost-padding-bottom: 8px;
  --tost-padding-left: 16px;
  --tost-padding-right: 16px;
  --tost-padding-top: 8px;
  --tost-progress-ring-fill-color: var(--joy-scheme-foreground);
  --tost-shadow: var(--joy-elevation-bold);
  --tost-transition-duration: var(--joy-duration-short);
  --tost-transition-mode: ease;
  --tost-transition-property: background-color, color, border-color, opacity, box-shadow, margin;
  --tost-translate: unset;
}

@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(--tost-font-family);
  font-size: var(--tost-font-size);
  line-height: var(--tost-font-line-height);
  font-weight: var(--tost-font-weight);
  letter-spacing: var(--tost-font-letter-spacing);
  -webkit-text-decoration: var(--tost-font-text-decoration);
  text-decoration: var(--tost-font-text-decoration);
  text-transform: var(--tost-font-text-transform);
  transition-duration: var(--tost-transition-duration);
  transition-timing-function: var(--tost-transition-mode);
  transition-property: var(--tost-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(--tost-border);
  border-color: var(--tost-border-color);
  border-radius: var(--tost-border-radius);
  border-style: var(--tost-border-style);
  border-width: var(--tost-border-width);
  background-color: var(--tost-background-color);
  color: var(--tost-foreground-color);
  min-width: 52px;
  box-shadow: var(--tost-shadow);
  transition-duration: var(--tost-transition-duration);
  transition-timing-function: var(--tost-transition-mode);
  transition-property: var(--tost-transition-property);
  padding-top: var(--tost-padding-top);
  padding-right: var(--tost-padding-right);
  padding-bottom: var(--tost-padding-bottom);
  padding-left: var(--tost-padding-left);
  gap: var(--tost-gap);
  margin: auto;
  position: fixed;
  bottom: 0;
  left: 50%;
  overflow: hidden;
  transform: translate(-50%, -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="progress"] {
  position: absolute;
  top: 0;
  left: 0;
}

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

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

:host([position="bottom"]) [part="root"] {
  top: unset;
  bottom: 0;
}

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

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

:host([position="bottom"]:not([is-open])) [part="root"] {
  margin-bottom: -40px;
}

:host([position="top"]:not([is-open])) [part="root"] {
  margin-top: -40px;
}

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

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

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

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

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

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

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

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

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

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

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