// ------------------------------------------------------------------------------
// <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 chipBoxElementJoyStyle() {
    return css `
:host {
  --chipbox-background-color: var(--joy-scheme-background);
  --chipbox-border-color: var(--joy-scheme-highlight);
  --chipbox-border-radius: var(--joy-layout-radius);
  --chipbox-border-style: solid;
  --chipbox-border-width: var(--joy-layout-thickness);
  --chipbox-focus-ring-active-width: 8px;
  --chipbox-focus-ring-color: var(--joy-scheme-highlight);
  --chipbox-focus-ring-inward-offset: 2px;
  --chipbox-focus-ring-outward-offset: 0px;
  --chipbox-focus-ring-width: 0px;
  --chipbox-font-family: var(--joy-font-family);
  --chipbox-font-letter-spacing: unset;
  --chipbox-font-line-height: unset;
  --chipbox-font-size: var(--joy-typography-body1-font-size);
  --chipbox-font-text-decoration: unset;
  --chipbox-font-text-transform: unset;
  --chipbox-font-weight: var(--joy-typography-body1-font-weight);
  --chipbox-foreground-color: var(--joy-scheme-foreground);
  --chipbox-gap: var(--joy-layout-space);
  --chipbox-height: 56px;
  --chipbox-padding-bottom: var(--joy-layout-space);
  --chipbox-padding-left: calc(var(--joy-layout-space) * 1.5);
  --chipbox-padding-right: calc(var(--joy-layout-space) * 1.5);
  --chipbox-padding-top: var(--joy-layout-space);
  --chipbox-prefix-icon-size: 20px;
  --chipbox-shadow: var(--joy-elevation-light-semilight-offset-x-0) var(--joy-elevation-light-semilight-offset-y-0) var(--joy-elevation-light-semilight-blur-0) var(--joy-elevation-light-semilight-spread-0) var(--joy-elevation-light-semilight-color-0);
  --chipbox-shadow-blur: var(--joy-elevation-light-semilight-blur-0);
  --chipbox-shadow-color: var(--joy-elevation-light-semilight-color-0);
  --chipbox-shadow-offset-x: var(--joy-elevation-light-semilight-offset-x-0);
  --chipbox-shadow-offset-y: var(--joy-elevation-light-semilight-offset-y-0);
  --chipbox-shadow-spread: var(--joy-elevation-light-semilight-spread-0);
  --chipbox-suffix-icon-size: 20px;
  --chipbox-transition-duration: var(--mosaik-duration-short);
  --chipbox-transition-mode: ease;
  --chipbox-transition-property: background-color, color, border-color, opacity, box-shadow;
  --chipbox-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 input {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: inherit;
  resize: none;
  margin: 0;
  overflow: visible;
}

:host {
  font-family: var(--chipbox-font-family);
  font-size: var(--chipbox-font-size);
  line-height: var(--chipbox-font-line-height);
  font-weight: var(--chipbox-font-weight);
  letter-spacing: var(--chipbox-font-letter-spacing);
  -webkit-text-decoration: var(--chipbox-font-text-decoration);
  text-decoration: var(--chipbox-font-text-decoration);
  text-transform: var(--chipbox-font-text-transform);
  padding-top: var(--chipbox-padding-top);
  padding-right: var(--chipbox-padding-right);
  padding-bottom: var(--chipbox-padding-bottom);
  padding-left: var(--chipbox-padding-left);
  gap: var(--chipbox-gap);
  transition-duration: var(--chipbox-transition-duration);
  transition-timing-function: var(--chipbox-transition-mode);
  transition-property: var(--chipbox-transition-property);
  translate: var(--chipbox-translate);
  background: var(--chipbox-background-color);
  color: var(--chipbox-foreground-color);
  border-color: var(--chipbox-border-color);
  border-width: var(--chipbox-border-width);
  border-radius: var(--chipbox-border-radius);
  border-style: var(--chipbox-border-style);
  min-height: var(--chipbox-height);
  cursor: text;
  z-index: 0;
  outline: none;
  flex-direction: row;
  align-items: center;
  display: flex;
}

:host [part="focusRing"] {
  --focus-ring-color: var(--chipbox-focus-ring-color);
  --focus-ring-active-width: var(--chipbox-focus-ring-active-width);
  --focus-ring-inward-offset: var(--chipbox-focus-ring-inward-offset);
  --focus-ring-outward-offset: var(--chipbox-focus-ring-outward-offset);
}

:host [part="input"] {
  transition-duration: inherit;
  transition-timing-function: inherit;
  color: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: none;
  border: none;
  outline: none;
  width: 100%;
  margin: 0;
  padding: 0;
  transition-property: inherit;
}

:host [part="label"] {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  pointer-events: none;
  transform-origin: 0 0;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  will-change: transform;
  transition-property: transform, font-size, color, letter-spacing, top;
  transition-duration: .2s;
  transition-timing-function: ease;
  display: block;
  position: absolute;
  top: 10px;
  overflow: hidden;
  transform: translateY(0);
}

:host [part="label"].floating {
  top: unset;
  font-size: 12px;
  transform: translateY(-50%);
}

:host [part="suffix"], :host [part="prefix"] {
  gap: var(--chipbox-gap);
  flex-grow: 0;
  flex-shrink: 0;
  align-items: center;
  display: flex;
}

:host [part="suffix"][hidden], :host [part="prefix"][hidden] {
  display: none;
}

:host [part="suffix"] {
  --icon-size: var(--chipbox-suffix-icon-size);
}

:host [part="prefix"] {
  --icon-size: var(--chipbox-prefix-icon-size);
}

:host [part="inner"] {
  width: 100%;
  height: 100%;
  padding: var(--chipbox-padding-top) var(--chipbox-padding-right) var(--chipbox-padding-bottom) var(--chipbox-padding-left);
  flex-direction: column;
  flex: 1;
  display: flex;
  position: relative;
}

:host [part="inner"] [part="wrapper"] {
  place-content: flex-start;
  gap: var(--chipbox-gap);
  flex-flow: wrap;
  display: flex;
}

:host [part="inner"] [part="wrapper"] [part="chip"] {
  flex-basis: unset;
}

:host [part="clear"] {
  --button-icon-min-width: 36px;
  --button-icon-min-height: 36px;
  --icon-size: 20px;
}

:host([has-label]) [part="inner"] [part="wrapper"] {
  padding-top: 12px;
}

:host([has-label]) [part="inner"] {
  padding-bottom: unset;
}

:host([disabled]:not([disabled="false"])) {
  cursor: default;
}

:host([required]) [part="label"]:after {
  content: "*";
  margin-left: 2px;
}

:host {
  --chipbox-shadow-color: var(--joy-scheme-highlight);
}

:host [part="label"] {
  color: var(--joy-scheme-middlelight);
}

:host [part="inner"] [part="input"]::-moz-selection {
  background-color: var(--joy-scheme-selection);
}

:host [part="inner"] [part="input"]::selection {
  background-color: var(--joy-scheme-selection);
}

:host [part="inner"] [part="input"] ::-moz-placeholder {
  color: var(--joy-scheme-middlelight);
}

:host [part="inner"] [part="input"] ::placeholder {
  color: var(--joy-scheme-middlelight);
}

:host([disabled]:not([disabled="false"])), :host([readonly]) {
  cursor: default;
  --chipbox-border-color: var(--joy-scheme-disabled);
}

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

:host([invalid]) {
  --chipbox-border-color: var(--joy-color-danger-500);
  --chipbox-foreground-color: var(--joy-color-danger-500);
}

:host([appearance="plain"]) {
  --chipbox-border-width: 0;
  --chipbox-background-color: var(--joy-scheme-transparent);
  --chipbox-focus-ring-inward-offset: 0px;
  --chipbox-focus-ring-outward-offset: 0px;
}

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

:host([appearance="soft"]), :host([appearance="solid"]) {
  --chipbox-background-color: var(--joy-scheme-highlight);
  --chipbox-focus-ring-inward-offset: 0px;
  --chipbox-focus-ring-outward-offset: 0px;
}

:host([variant="primary"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="primary"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="primary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
  --chipbox-border-color: var(--joy-color-primary-500);
  --chipbox-focus-ring-color: var(--joy-color-primary-500);
}

:host([variant="primary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
  color: var(--joy-color-primary-500);
}

:host([variant="primary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --chipbox-border-color: var(--joy-color-primary-500);
  --chipbox-focus-ring-color: var(--joy-color-primary-500);
}

:host([variant="primary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
  color: var(--joy-color-primary-500);
}

:host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
  --chipbox-border-color: var(--joy-color-secondary-500);
  --chipbox-focus-ring-color: var(--joy-color-secondary-500);
}

:host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
  color: var(--joy-color-secondary-500);
}

:host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --chipbox-border-color: var(--joy-color-secondary-500);
  --chipbox-focus-ring-color: var(--joy-color-secondary-500);
}

:host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
  color: var(--joy-color-secondary-500);
}

:host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
  --chipbox-border-color: var(--joy-color-tertiary-500);
  --chipbox-focus-ring-color: var(--joy-color-tertiary-500);
}

:host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
  color: var(--joy-color-tertiary-500);
}

:host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --chipbox-border-color: var(--joy-color-tertiary-500);
  --chipbox-focus-ring-color: var(--joy-color-tertiary-500);
}

:host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
  color: var(--joy-color-tertiary-500);
}

:host([variant="danger"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="danger"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="danger"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
  --chipbox-border-color: var(--joy-color-danger-500);
  --chipbox-focus-ring-color: var(--joy-color-danger-500);
}

:host([variant="danger"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
  color: var(--joy-color-danger-500);
}

:host([variant="danger"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --chipbox-border-color: var(--joy-color-danger-500);
  --chipbox-focus-ring-color: var(--joy-color-danger-500);
}

:host([variant="danger"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
  color: var(--joy-color-danger-500);
}

:host([variant="warning"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="warning"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="warning"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
  --chipbox-border-color: var(--joy-color-warning-500);
  --chipbox-focus-ring-color: var(--joy-color-warning-500);
}

:host([variant="warning"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
  color: var(--joy-color-warning-500);
}

:host([variant="warning"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --chipbox-border-color: var(--joy-color-warning-500);
  --chipbox-focus-ring-color: var(--joy-color-warning-500);
}

:host([variant="warning"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
  color: var(--joy-color-warning-500);
}

:host([variant="success"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="success"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="success"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
  --chipbox-border-color: var(--joy-color-success-500);
  --chipbox-focus-ring-color: var(--joy-color-success-500);
}

:host([variant="success"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
  color: var(--joy-color-success-500);
}

:host([variant="success"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --chipbox-border-color: var(--joy-color-success-500);
  --chipbox-focus-ring-color: var(--joy-color-success-500);
}

:host([variant="success"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
  color: var(--joy-color-success-500);
}

:host([variant="info"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="info"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="info"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
  --chipbox-border-color: var(--joy-color-info-500);
  --chipbox-focus-ring-color: var(--joy-color-info-500);
}

:host([variant="info"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
  color: var(--joy-color-info-500);
}

:host([variant="info"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --chipbox-border-color: var(--joy-color-info-500);
  --chipbox-focus-ring-color: var(--joy-color-info-500);
}

:host([variant="info"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
  color: var(--joy-color-info-500);
}

:host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
  --chipbox-border-color: var(--joy-color-highlight-500);
  --chipbox-focus-ring-color: var(--joy-color-highlight-500);
}

:host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
  color: var(--joy-color-highlight-500);
}

:host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --chipbox-border-color: var(--joy-color-highlight-500);
  --chipbox-focus-ring-color: var(--joy-color-highlight-500);
}

:host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
  color: var(--joy-color-highlight-500);
}

:host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([invalid]):hover), :host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([invalid]):active), :host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
  --chipbox-border-color: var(--joy-color-neutral-500);
  --chipbox-focus-ring-color: var(--joy-color-neutral-500);
}

:host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="label"] {
  color: var(--joy-color-neutral-500);
}

:host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --chipbox-border-color: var(--joy-color-neutral-500);
  --chipbox-focus-ring-color: var(--joy-color-neutral-500);
}

:host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) [part="label"] {
  color: var(--joy-color-neutral-500);
}

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