// ------------------------------------------------------------------------------
// <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 autoCompleteBoxElementMemphisStyle() {
    return css `
:host {
  --autocompletebox-background-color: var(--memphis-scheme-background);
  --autocompletebox-border-color: var(--memphis-color-light-secondary-400);
  --autocompletebox-border-radius: calc(var(--memphis-layout-radius) * 1.5);
  --autocompletebox-border-style: solid;
  --autocompletebox-border-width: var(--memphis-layout-thickness);
  --autocompletebox-focus-ring-active-width: 8px;
  --autocompletebox-focus-ring-color: var(--memphis-color-light-secondary-400);
  --autocompletebox-focus-ring-inward-offset: 2px;
  --autocompletebox-focus-ring-outward-offset: 2px;
  --autocompletebox-font-family: var(--memphis-font-family);
  --autocompletebox-font-letter-spacing: var(--memphis-typography-body2-letter-spacing);
  --autocompletebox-font-line-height: var(--memphis-typography-body2-line-height);
  --autocompletebox-font-size: var(--memphis-typography-body2-font-size);
  --autocompletebox-font-text-decoration: var(--memphis-typography-body2-text-decoration);
  --autocompletebox-font-text-transform: var(--memphis-typography-body2-text-transform);
  --autocompletebox-font-weight: var(--memphis-typography-body2-font-weight);
  --autocompletebox-foreground-color: var(--memphis-scheme-foreground);
  --autocompletebox-gap: calc(var(--memphis-layout-space) / 2);
  --autocompletebox-padding-bottom: calc(var(--memphis-layout-space) / 2);
  --autocompletebox-padding-left: calc(var(--memphis-layout-space) * 1.5);
  --autocompletebox-padding-right: calc(var(--memphis-layout-space) * 1.5);
  --autocompletebox-padding-top: calc(var(--memphis-layout-space) / 2);
  --autocompletebox-shadow: unset unset unset unset unset;
  --autocompletebox-shadow-blur: unset;
  --autocompletebox-shadow-color: unset;
  --autocompletebox-shadow-offset-x: unset;
  --autocompletebox-shadow-offset-y: unset;
  --autocompletebox-shadow-spread: unset;
  --autocompletebox-transition-duration: var(--memphis-duration-short);
  --autocompletebox-transition-mode: ease;
  --autocompletebox-transition-property: all;
  --autocompletebox-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(--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: 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 [part="focusRing"] {
  --focus-ring-inward-offset: var(--autocompletebox-focus-ring-inward-offset);
  --focus-ring-outward-offset: var(--autocompletebox-focus-ring-outward-offset);
  --focus-ring-border-color: var(--autocompletebox-focus-ring-color);
}

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

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

:host(:not([disabled]:not([disabled="false"])):hover) {
  --autocompletebox-border-color: var(--memphis-color-secondary-300);
}

:host(:not([disabled]:not([disabled="false"])):focus-within) {
  --autocompletebox-border-color: var(--memphis-color-secondary-400);
}

:host([invalid]:not([disabled]:not([disabled="false"]))) {
  --autocompletebox-border-color: var(--memphis-color-danger-500);
  --autocompletebox-foreground-color: var(--memphis-color-danger-500);
}

:host([invalid]:not([disabled]:not([disabled="false"]))) [part="focusRing"] {
  --focus-ring-border-color: var(--memphis-color-danger-500);
}

:host([invalid]:not([disabled]:not([disabled="false"]))) [part="popup"] {
  --autocompletebox-border-color: var(--memphis-color-danger-500);
}

[part="item"].highlighted {
  background-color: var(--memphis-color-secondary-100);
}

[part="item"]:hover {
  background-color: var(--memphis-color-secondary-200);
}

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