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

:host input[type="search"]::-webkit-search-decoration, :host input[type="search"]::-webkit-search-cancel-button, :host input[type="search"]::-webkit-search-results-button, :host input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

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

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

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

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

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

:host [part="inner"].prefix:before {
  content: "";
  width: var(--searchbox-border-width);
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
}

:host [part="inner"] [part="input"] {
  padding-top: 2px;
  padding-bottom: 2px;
}

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

:host [part="clear"] {
  cursor: pointer;
}

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

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

:host([text-align="left"]) [part="input"] {
  text-align: left;
}

:host([text-align="center"]) [part="input"] {
  text-align: center;
}

:host([text-align="right"]) [part="input"] {
  text-align: right;
}

:host [part="inner"].prefix:before {
  background-color: var(--searchbox-border-color);
  border-radius: 2px;
}

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

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

:host [part="progressRing"] {
  margin-right: var(--joy-layout-space);
  margin-left: var(--joy-layout-space);
}

:host([disabled]:not([disabled="false"])), :host([readonly]) {
  --searchbox-border-color: var(--joy-scheme-disabled);
  --searchbox-focus-ring-color: var(--joy-scheme-disabled);
}

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

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

: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), :host([variant="primary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --searchbox-border-color: var(--joy-color-primary-500);
  --searchbox-focus-ring-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), :host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --searchbox-border-color: var(--joy-color-secondary-500);
  --searchbox-focus-ring-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), :host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --searchbox-border-color: var(--joy-color-tertiary-500);
  --searchbox-focus-ring-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), :host([variant="danger"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --searchbox-border-color: var(--joy-color-danger-500);
  --searchbox-focus-ring-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), :host([variant="warning"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --searchbox-border-color: var(--joy-color-warning-500);
  --searchbox-focus-ring-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), :host([variant="success"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --searchbox-border-color: var(--joy-color-success-500);
  --searchbox-focus-ring-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), :host([variant="info"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --searchbox-border-color: var(--joy-color-info-500);
  --searchbox-focus-ring-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), :host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --searchbox-border-color: var(--joy-color-highlight-500);
  --searchbox-focus-ring-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), :host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([invalid]):focus-within) {
  --searchbox-border-color: var(--joy-color-neutral-500);
  --searchbox-focus-ring-color: var(--joy-color-neutral-500);
}

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

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

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