// ------------------------------------------------------------------------------
// <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 badgeElementJoyStyle() {
    return css `
:host {
  --badge-background-color: var(--joy-scheme-background);
  --badge-border-color: var(--joy-scheme-highlight);
  --badge-border-radius: var(--joy-layout-radius);
  --badge-border-style: solid;
  --badge-border-width: var(--joy-layout-thickness);
  --badge-font-family: var(--joy-font-family);
  --badge-font-letter-spacing: var(--joy-typography-body2-letter-spacing);
  --badge-font-line-height: var(--joy-typography-body2-line-height);
  --badge-font-size: var(--joy-typography-body2-font-size);
  --badge-font-text-decoration: var(--joy-typography-body2-text-decoration);
  --badge-font-text-transform: var(--joy-typography-body2-text-transform);
  --badge-font-weight: var(--joy-typography-body2-font-weight);
  --badge-foreground-color: var(--joy-scheme-foreground);
  --badge-gap: calc(var(--joy-layout-space) / 2);
  --badge-height: auto;
  --badge-padding-bottom: calc(var(--joy-layout-space) / 2);
  --badge-padding-left: var(--joy-layout-space);
  --badge-padding-right: var(--joy-layout-space);
  --badge-padding-top: calc(var(--joy-layout-space) / 2);
  --badge-shadow: var(--joy-elevation-light-offset-x-1) var(--joy-elevation-light-offset-y-1) var(--joy-elevation-light-blur-1) var(--joy-elevation-light-spread-1) var(--joy-elevation-light-color-1);
  --badge-shadow-blur: var(--joy-elevation-light-blur-1);
  --badge-shadow-color: var(--joy-elevation-light-color-1);
  --badge-shadow-offset-x: var(--joy-elevation-light-offset-x-1);
  --badge-shadow-offset-y: var(--joy-elevation-light-offset-y-1);
  --badge-shadow-spread: var(--joy-elevation-light-spread-1);
  --badge-transition-duration: var(--joy-duration-short);
  --badge-transition-mode: ease;
  --badge-transition-property: background-color, color, border-color, opacity, box-shadow;
  --badge-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(--badge-font-family);
  font-size: var(--badge-font-size);
  line-height: var(--badge-font-line-height);
  font-weight: var(--badge-font-weight);
  letter-spacing: var(--badge-font-letter-spacing);
  -webkit-text-decoration: var(--badge-font-text-decoration);
  text-decoration: var(--badge-font-text-decoration);
  text-transform: var(--badge-font-text-transform);
  transition-duration: var(--badge-transition-duration);
  transition-timing-function: var(--badge-transition-mode);
  transition-property: var(--badge-transition-property);
  padding-top: var(--badge-padding-top);
  padding-right: var(--badge-padding-right);
  padding-bottom: var(--badge-padding-bottom);
  padding-left: var(--badge-padding-left);
  gap: var(--badge-gap);
  background-color: var(--badge-background-color);
  color: var(--badge-foreground-color);
  border-color: var(--badge-border-color);
  border-width: var(--badge-border-width);
  border-radius: var(--badge-border-radius);
  border-style: var(--badge-border-style);
  height: var(--badge-height);
  box-shadow: var(--badge-shadow-offset-x) var(--badge-shadow-offset-y) var(--badge-shadow-blur) var(--badge-shadow-spread) var(--badge-shadow-color);
  align-items: center;
  display: inline-flex;
  position: absolute;
  overflow: hidden;
}

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

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

:host([appearance="solid"]) [part="focusRing"] {
  --focus-ring-outward-offset: 0px;
}

:host {
  --_size: unset;
  --_tiny: 8px;
  --_small: 16px;
  --_medium: 22px;
  --_large: 28px;
  --_giant: 32px;
}

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

:host([appearance="solid"]) {
  --badge-background-color: var(--joy-scheme-highlight);
}

:host([appearance="outline"]:not([disabled]:not([disabled="false"]))) {
  --badge-foreground-color: var(--joy-color-neutral-500);
  --badge-border-color: var(--joy-color-neutral-500);
  --badge-border-width: var(--joy-layout-thickness);
  --badge-border-style: solid;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

:host([size="tiny"]) {
  --_size: var(--_tiny);
}

:host([size="tiny"]) [part="label"] {
  height: 8px;
  font-size: 0;
  line-height: 0;
}

:host([size="small"]) {
  --_size: var(--_small);
}

:host([size="small"]) [part="label"] {
  height: 10px;
  font-size: 8px;
  line-height: 10px;
}

:host([size="medium"]) {
  --_size: var(--_medium);
}

:host([size="medium"]) [part="label"] {
  height: 16px;
  font-size: 14px;
  line-height: 16px;
}

:host([size="large"]) {
  --_size: var(--_large);
}

:host([size="large"]) [part="label"] {
  height: 20px;
  font-size: 20px;
  line-height: 22px;
}

:host([size="giant"]) {
  --_size: var(--_giant);
}

:host([size="giant"]) [part="label"] {
  height: 24px;
  font-size: 24px;
  line-height: 24px;
}

:host([position="bottom-left"]) {
  bottom: calc(var(--_size) / 2 * -1);
  left: calc(var(--_size) / 2 * -1);
}

:host([position="bottom-right"]) {
  top: calc(var(--_size) / 2 * -1);
  right: calc(var(--_size) / 2 * -1);
}

:host([position="top-left"]) {
  top: calc(var(--_size) / 2 * -1);
  left: calc(var(--_size) / 2 * -1);
}

:host([position="top-right"]) {
  top: calc(var(--_size) / 2 * -1);
  right: calc(var(--_size) / 2 * -1);
}

:host(:not([attached])) {
  top: unset;
  left: unset;
  bottom: unset;
  right: unset;
  width: auto;
  height: auto;
  position: relative;
}

:host([overlap]) {
  inset: 0;
}

:host([size="tiny"]) {
  font-size: calc(var(--badge-font-size) - 4px);
}

:host([size="small"]) {
  font-size: calc(var(--badge-font-size) - 2px);
}

:host([size="medium"]) {
  font-size: var(--badge-font-size);
}

:host([size="large"]) {
  font-size: calc(var(--badge-font-size) + 2px);
}

:host([size="giant"]) {
  font-size: calc(var(--badge-font-size) + 4px);
}

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