// ------------------------------------------------------------------------------
// <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: 50%;
  --badge-border-style: solid;
  --badge-border-width: 0px;
  --badge-font-family: var(--joy-font-family);
  --badge-font-letter-spacing: 0px;
  --badge-font-line-height: calc(var(--badge-font-size)  + 4px);
  --badge-font-size: 32px;
  --badge-font-text-decoration: unset;
  --badge-font-text-transform: unset;
  --badge-font-weight: 600;
  --badge-foreground-color: var(--joy-scheme-foreground);
  --badge-gap: 8px;
  --badge-padding-bottom: 4px;
  --badge-padding-left: 8px;
  --badge-padding-right: 8px;
  --badge-padding-top: 4px;
  --badge-size: unset;
  --badge-transition-duration: var(--joy-duration-short);
  --badge-transition-mode: ease;
  --badge-transition-property: background-color, color, border-color, opacity, box-shadow;
  --badge-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 {
  border-radius: 50%;
  display: block;
  position: absolute;
}

:host [part="root"] {
  flex-direction: row;
  place-content: center flex-start;
  align-items: center;
  max-width: 100%;
  display: flex;
}

:host [part="root"] [part="container"] {
  transition-duration: var(--badge-transition-duration);
  transition-timing-function: var(--badge-transition-mode);
  transition-property: var(--badge-transition-property);
  background-color: var(--badge-background-color);
  color: var(--badge-foreground-color);
  width: var(--badge-size);
  height: var(--badge-size);
  border-radius: 50%;
  position: relative;
}

:host [part="root"] [part="container"] [part="label"], :host [part="root"] [part="container"] [part="icon"] {
  color: var(--badge-foreground-color);
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  width: var(--badge-size);
  height: var(--badge-size);
  font-size: 12px;
  line-height: var(--badge-size);
  text-align: center;
  display: block;
  position: absolute;
  top: 50%;
  overflow: hidden;
  transform: translateY(-50%);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

:host([standalone]) [part="container"] {
  width: var(--badge-size);
  min-width: var(--badge-size);
  height: var(--badge-size);
  min-height: var(--badge-size);
}

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

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

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

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

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

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

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

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

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

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

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