// ------------------------------------------------------------------------------
// <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 autoCompleteBoxElementJoyStyle() {
    return css `
:host {
  --autocompletebox-background-color: var(--joy-scheme-background);
  --autocompletebox-border-color: var(--joy-scheme-highlight);
  --autocompletebox-border-radius: var(--joy-layout-radius);
  --autocompletebox-border-style: solid;
  --autocompletebox-border-width: var(--joy-layout-thickness);
  --autocompletebox-focus-ring-active-width: 8px;
  --autocompletebox-focus-ring-color: unset;
  --autocompletebox-focus-ring-inward-offset: 2px;
  --autocompletebox-focus-ring-outward-offset: 2px;
  --autocompletebox-font-family: var(--joy-font-family);
  --autocompletebox-font-letter-spacing: unset;
  --autocompletebox-font-line-height: unset;
  --autocompletebox-font-size: 16px;
  --autocompletebox-font-text-decoration: unset;
  --autocompletebox-font-text-transform: unset;
  --autocompletebox-font-weight: normal;
  --autocompletebox-foreground-color: var(--joy-scheme-foreground);
  --autocompletebox-gap: 8px;
  --autocompletebox-padding-bottom: 8px;
  --autocompletebox-padding-left: 12px;
  --autocompletebox-padding-right: 12px;
  --autocompletebox-padding-top: 8px;
  --autocompletebox-shadow: unset;
  --autocompletebox-transition-duration: var(--joy-duration-short);
  --autocompletebox-transition-mode: ease;
  --autocompletebox-transition-property: all;
  --autocompletebox-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(--autocompletebox-font-family);
  font-size: var(--autocompletebox-font-size);
  line-height: var(--autocompletebox-font-line-height);
  font-weight: var(--autocompletebox-font-weight);
  letter-spacing: var(--autocompletebox-font-letter-spacing);
  -webkit-text-decoration: var(--autocompletebox-font-text-decoration);
  text-decoration: var(--autocompletebox-font-text-decoration);
  text-transform: var(--autocompletebox-font-text-transform);
  transition-duration: var(--autocompletebox-transition-duration);
  transition-timing-function: var(--autocompletebox-transition-mode);
  transition-property: var(--autocompletebox-transition-property);
  translate: var(--autocompletebox-translate);
  background-color: var(--autocompletebox-background-color);
  color: var(--autocompletebox-foreground-color);
  box-shadow: var(--autocompletebox-shadow);
  border-color: var(--autocompletebox-border-color);
  border-radius: var(--autocompletebox-border-radius);
  cursor: text;
}

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

:host [part="input"] {
  cursor: inherit;
}

:host [part="input"][readonly]:not([invalid]) {
  --textbox-border-color: var(--autocompletebox-border-color);
}

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

:host [part="caret"] {
  margin: calc(var(--autocompletebox-gap) / 2);
  transition-property: transform;
  transition-duration: .2s;
  transition-timing-function: ease;
  transform: rotate(0);
}

:host [part="popup"] {
  z-index: 100;
}

:host [part="projection"] {
  padding: var(--autocompletebox-padding-top) 0;
  background: var(--autocompletebox-background-color);
  border-radius: var(--autocompletebox-border-radius);
  box-sizing: border-box;
  margin: 0;
}

:host [part="item"] {
  border-radius: 0;
}

:host [part="empty"], :host [part="loading"] {
  padding-top: var(--autocompletebox-padding-top);
  padding-right: var(--autocompletebox-padding-right);
  padding-bottom: var(--autocompletebox-padding-bottom);
  padding-left: var(--autocompletebox-padding-left);
}

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

:host([is-drop-down-open]) [part="caret"] {
  transform: rotate(180deg);
}

:host([readonly]) [part="input"] {
  pointer-events: none;
}

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

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

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

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

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

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

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

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

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

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

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

[part="item"].highlighted {
  background-color: var(--joy-scheme-highlight);
}

[part="item"]:hover {
  background-color: var(--joy-color-primary-100);
}

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