// ------------------------------------------------------------------------------
// <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 avatarElementJoyStyle() {
    return css `
:host {
  --avatar-background-color: var(--joy-scheme-background);
  --avatar-badge-gap: var(--joy-layout-thickness);
  --avatar-badge-horizontal-align: right;
  --avatar-badge-radius: var(--joy-layout-space);
  --avatar-badge-vertical-align: bottom;
  --avatar-border-color: var(--joy-scheme-highlight);
  --avatar-border-radius: 50%;
  --avatar-border-style: solid;
  --avatar-border-width: 0px;
  --avatar-diameter: 64px;
  --avatar-font-family: var(--joy-font-family);
  --avatar-font-letter-spacing: 0px;
  --avatar-font-line-height: calc(var(--avatar-font-size) + 4px);
  --avatar-font-size: 32px;
  --avatar-font-text-decoration: unset;
  --avatar-font-text-transform: unset;
  --avatar-font-weight: 600;
  --avatar-foreground-color: var(--joy-scheme-foreground);
  --avatar-gap: var(--joy-layout-space);
  --avatar-offset: calc(var(--joy-layout-space) * 2);
  --avatar-padding-bottom: calc(var(--joy-layout-space) / 2);
  --avatar-padding-left: var(--joy-layout-space);
  --avatar-padding-right: var(--joy-layout-space);
  --avatar-padding-top: calc(var(--joy-layout-space) / 2);
  --avatar-shadow-blur: unset;
  --avatar-shadow-color: unset;
  --avatar-shadow-offset-x: unset;
  --avatar-shadow-offset-y: unset;
  --avatar-shadow-spread: unset;
  --avatar-transition-duration: var(--joy-duration-short);
  --avatar-transition-mode: ease;
  --avatar-transition-property: background-color, color, border-color, opacity, box-shadow;
  --avatar-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(--avatar-font-family);
  font-size: var(--avatar-font-size);
  line-height: var(--avatar-font-line-height);
  font-weight: var(--avatar-font-weight);
  letter-spacing: var(--avatar-font-letter-spacing);
  background-color: var(--avatar-background-color);
  color: var(--avatar-foreground-color);
  border: var(--avatar-border-width) var(--avatar-border-style) var(--avatar-border-color);
  border-radius: var(--avatar-border-radius);
  width: var(--avatar-diameter);
  height: var(--avatar-diameter);
  min-width: var(--avatar-diameter);
  box-shadow: var(--avatar-shadow-offset-x) var(--avatar-shadow-offset-y) var(--avatar-shadow-blur) var(--avatar-shadow-spread) var(--avatar-shadow-color);
  justify-content: center;
  align-items: center;
  display: flex;
}

:host [part="backplate"] {
  border-radius: inherit;
  width: inherit;
  height: inherit;
  justify-content: center;
  align-items: center;
  display: flex;
  overflow: hidden;
}

:host [part="backplate"] [part="image"] {
  border-radius: inherit;
  overflow: hidden;
}

:host [part="backplate"] [part="text"] {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  overflow: hidden;
}

:host [part="backplate"] [part="icon"] {
  color: inherit;
  font-size: inherit;
  display: flex;
  overflow: hidden;
}

:host([disabled]:not([disabled="false"])) {
  --avatar-background-color: var(--joy-scheme-background);
  --avatar-border-color: var(--joy-scheme-highlight);
  --avatar-foreground-color: var(--joy-scheme-disabled);
}

:host([appearance="outline"]) {
  --avatar-border-width: var(--joy-layout-thickness);
  --avatar-border-style: solid;
}

:host([appearance="outline"]:not([disabled]:not([disabled="false"]))) {
  --avatar-background-color: var(--joy-scheme-background);
  --avatar-foreground-color: var(--joy-scheme-foreground);
  --avatar-border-color: var(--joy-scheme-highlight);
}

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

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

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

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

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

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

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

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

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

:host([appearance="plain"]) {
  --avatar-border-width: 0px;
}

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

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

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

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

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

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

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

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

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

:host([appearance="soft"]) {
  --avatar-border-width: 0px;
}

:host([appearance="soft"]:not([disabled]:not([disabled="false"]))) {
  --avatar-background-color: var(--joy-scheme-highlight);
  --avatar-foreground-color: var(--joy-scheme-foreground);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

:host([size="tiny"]) {
  --avatar-diameter: 28px;
  --avatar-font-size: 12px;
  --avatar-font-line-height: 28px;
}

:host([size="small"]) {
  --avatar-diameter: 40px;
  --avatar-font-size: 18px;
  --avatar-font-line-height: 40px;
}

:host([size="medium"]) {
  --avatar-diameter: 64px;
  --avatar-font-size: 32px;
  --avatar-font-line-height: 64px;
}

:host([size="large"]) {
  --avatar-diameter: 88px;
  --avatar-font-size: 44px;
  --avatar-font-line-height: 88px;
}

:host([size="giant"]) {
  --avatar-diameter: 112px;
  --avatar-font-size: 56px;
  --avatar-font-line-height: 112px;
}

:host([has-badge]) [part="backplate"], :host([has-badge]) [part="image"] {
  --avatar-badge-radius: 8px;
  --avatar-badge-horizontal-align: right;
  --avatar-badge-vertical-align: bottom;
  --avatar-badge-gap: 2px;
  mask-image: radial-gradient(circle at var(--avatar-badge-vertical-align) var(--avatar-badge-radius) var(--avatar-badge-horizontal-align) var(--avatar-badge-radius), transparent calc(var(--avatar-badge-radius) + var(--avatar-badge-gap) - .25px), #fff calc(var(--avatar-badge-radius) + var(--avatar-badge-gap) + .25px));
  -webkit-mask-image: radial-gradient(circle at var(--avatar-badge-vertical-align) var(--avatar-badge-radius) var(--avatar-badge-horizontal-align) var(--avatar-badge-radius), transparent calc(var(--avatar-badge-radius) + var(--avatar-badge-gap) - .25px), #fff calc(var(--avatar-badge-radius) + var(--avatar-badge-gap) + .25px));
}

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