// ------------------------------------------------------------------------------
// <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 toastElementCosmopolitanStyle() {
    return css `
:host {
  --toast-background-color: unset;
  --toast-border: unset;
  --toast-border-color: unset;
  --toast-border-radius: unset;
  --toast-border-style: unset;
  --toast-border-width: unset;
  --toast-font-family: unset;
  --toast-font-letter-spacing: unset;
  --toast-font-line-height: unset;
  --toast-font-size: unset;
  --toast-font-text-decoration: unset;
  --toast-font-text-transform: unset;
  --toast-font-weight: unset;
  --toast-foreground-color: unset;
  --toast-gap: unset;
  --toast-offset-x: unset;
  --toast-offset-y: unset;
  --toast-padding-bottom: unset;
  --toast-padding-left: unset;
  --toast-padding-right: unset;
  --toast-padding-top: unset;
  --toast-progress-fill-color: currentColor;
  --toast-progress-ring-fill-color: unset;
  --toast-shadow: unset unset unset unset unset;
  --toast-shadow-blur: unset;
  --toast-shadow-color: unset;
  --toast-shadow-offset-x: unset;
  --toast-shadow-offset-y: unset;
  --toast-shadow-spread: unset;
  --toast-transition-duration: unset;
  --toast-transition-mode: unset;
  --toast-transition-property: unset;
  --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);
  margin: auto;
  position: fixed;
  left: 50%;
  overflow: hidden;
  translate: -50%;
}

:host [part="root"] [part="body"] {
  align-items: center;
  gap: var(--toast-gap);
  flex-direction: row;
  display: flex;
}

:host [part="root"] [part="text"] {
  flex-direction: column;
  display: flex;
}

: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="icon"] {
  color: inherit;
  flex-shrink: 0;
}

: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="top"]) [part="root"] {
  bottom: unset;
  top: var(--toast-offset-y);
  left: 50%;
  translate: -50%;
}

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

:host([position="top-right"]) [part="root"] {
  bottom: unset;
  top: var(--toast-offset-y);
  left: unset;
  right: var(--toast-offset-x);
  translate: 0;
}

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

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

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

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

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

:host([position="bottom-right"]) [part="root"] {
  top: unset;
  bottom: var(--toast-offset-y);
  left: unset;
  right: var(--toast-offset-x);
  translate: 0;
}

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

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

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

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

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

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

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

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

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

:host([appearance="outline"]) {
  --toast-background-color: transparent;
  --toast-foreground-color: var(--cosmopolitan-scheme-foreground);
  --toast-border-color: var(--cosmopolitan-scheme-foreground);
  --toast-border-width: 1px;
  --toast-border-style: solid;
}

:host([appearance="outline"][variant="primary"]) {
  --toast-foreground-color: var(--cosmopolitan-color-primary-500);
  --toast-border-color: var(--cosmopolitan-color-primary-500);
}

:host([appearance="outline"][variant="secondary"]) {
  --toast-foreground-color: var(--cosmopolitan-color-secondary-500);
  --toast-border-color: var(--cosmopolitan-color-secondary-500);
}

:host([appearance="outline"][variant="tertiary"]) {
  --toast-foreground-color: var(--cosmopolitan-color-tertiary-500);
  --toast-border-color: var(--cosmopolitan-color-tertiary-500);
}

:host([appearance="outline"][variant="danger"]) {
  --toast-foreground-color: var(--cosmopolitan-color-danger-500);
  --toast-border-color: var(--cosmopolitan-color-danger-500);
}

:host([appearance="outline"][variant="warning"]) {
  --toast-foreground-color: var(--cosmopolitan-color-warning-500);
  --toast-border-color: var(--cosmopolitan-color-warning-500);
}

:host([appearance="outline"][variant="success"]) {
  --toast-foreground-color: var(--cosmopolitan-color-success-500);
  --toast-border-color: var(--cosmopolitan-color-success-500);
}

:host([appearance="outline"][variant="info"]) {
  --toast-foreground-color: var(--cosmopolitan-color-info-500);
  --toast-border-color: var(--cosmopolitan-color-info-500);
}

:host([appearance="outline"][variant="highlight"]) {
  --toast-foreground-color: var(--cosmopolitan-color-highlight-500);
  --toast-border-color: var(--cosmopolitan-color-highlight-500);
}

:host([appearance="outline"][variant="neutral"]) {
  --toast-foreground-color: var(--cosmopolitan-color-neutral-500);
  --toast-border-color: var(--cosmopolitan-color-neutral-500);
}

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

:host([appearance="soft"][variant="primary"]) {
  --toast-background-color: var(--cosmopolitan-color-primary-100);
  --toast-foreground-color: var(--cosmopolitan-color-primary-500);
}

:host([appearance="soft"][variant="secondary"]) {
  --toast-background-color: var(--cosmopolitan-color-secondary-100);
  --toast-foreground-color: var(--cosmopolitan-color-secondary-500);
}

:host([appearance="soft"][variant="tertiary"]) {
  --toast-background-color: var(--cosmopolitan-color-tertiary-100);
  --toast-foreground-color: var(--cosmopolitan-color-tertiary-500);
}

:host([appearance="soft"][variant="danger"]) {
  --toast-background-color: var(--cosmopolitan-color-danger-100);
  --toast-foreground-color: var(--cosmopolitan-color-danger-500);
}

:host([appearance="soft"][variant="warning"]) {
  --toast-background-color: var(--cosmopolitan-color-warning-100);
  --toast-foreground-color: var(--cosmopolitan-color-warning-500);
}

:host([appearance="soft"][variant="success"]) {
  --toast-background-color: var(--cosmopolitan-color-success-100);
  --toast-foreground-color: var(--cosmopolitan-color-success-500);
}

:host([appearance="soft"][variant="info"]) {
  --toast-background-color: var(--cosmopolitan-color-info-100);
  --toast-foreground-color: var(--cosmopolitan-color-info-500);
}

:host([appearance="soft"][variant="highlight"]) {
  --toast-background-color: var(--cosmopolitan-color-highlight-100);
  --toast-foreground-color: var(--cosmopolitan-color-highlight-500);
}

:host([appearance="soft"][variant="neutral"]) {
  --toast-background-color: var(--cosmopolitan-color-neutral-100);
  --toast-foreground-color: var(--cosmopolitan-color-neutral-500);
}

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

:host([appearance="plain"][variant="primary"]) {
  --toast-foreground-color: var(--cosmopolitan-color-primary-500);
}

:host([appearance="plain"][variant="secondary"]) {
  --toast-foreground-color: var(--cosmopolitan-color-secondary-500);
}

:host([appearance="plain"][variant="tertiary"]) {
  --toast-foreground-color: var(--cosmopolitan-color-tertiary-500);
}

:host([appearance="plain"][variant="danger"]) {
  --toast-foreground-color: var(--cosmopolitan-color-danger-500);
}

:host([appearance="plain"][variant="warning"]) {
  --toast-foreground-color: var(--cosmopolitan-color-warning-500);
}

:host([appearance="plain"][variant="success"]) {
  --toast-foreground-color: var(--cosmopolitan-color-success-500);
}

:host([appearance="plain"][variant="info"]) {
  --toast-foreground-color: var(--cosmopolitan-color-info-500);
}

:host([appearance="plain"][variant="highlight"]) {
  --toast-foreground-color: var(--cosmopolitan-color-highlight-500);
}

:host([appearance="plain"][variant="neutral"]) {
  --toast-foreground-color: var(--cosmopolitan-color-neutral-500);
}

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

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

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

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

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

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

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

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

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

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

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