// ------------------------------------------------------------------------------
// <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 numberBoxElementJoyStyle() {
    return css `
:host {
  --numberbox-font-family: var(--joy-font-family);
  --numberbox-font-size: 16px;
  --numberbox-font-line-height: unset;
  --numberbox-font-weight: normal;
  --numberbox-font-letter-spacing: unset;
  --numberbox-font-text-decoration: unset;
  --numberbox-font-text-transform: unset;
  --numberbox-padding-top: 8px;
  --numberbox-padding-right: 12px;
  --numberbox-padding-bottom: 8px;
  --numberbox-padding-left: 12px;
  --numberbox-gap: 8px;
  --numberbox-transition-duration: .2s;
  --numberbox-transition-mode: ease;
  --numberbox-transition-property: background-color, color, border-color, opacity, box-shadow;
  --numberbox-translate: unset;
  --numberbox-background-color: var(--joy-scheme-background);
  --numberbox-border-color: var(--joy-scheme-highlight);
  --numberbox-border-radius: var(--joy-layout-radius);
  --numberbox-border-style: solid;
  --numberbox-border-width: var(--joy-layout-thickness);
  --numberbox-foreground-color: var(--joy-scheme-foreground);
  --numberbox-height: 56px;
  --numberbox-shadow: 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(--numberbox-font-family);
  font-size: var(--numberbox-font-size);
  line-height: var(--numberbox-font-line-height);
  font-weight: var(--numberbox-font-weight);
  letter-spacing: var(--numberbox-font-letter-spacing);
  -webkit-text-decoration: var(--numberbox-font-text-decoration);
  text-decoration: var(--numberbox-font-text-decoration);
  text-transform: var(--numberbox-font-text-transform);
  padding-top: var(--numberbox-padding-top);
  padding-right: var(--numberbox-padding-right);
  padding-bottom: var(--numberbox-padding-bottom);
  padding-left: var(--numberbox-padding-left);
  gap: var(--numberbox-gap);
  transition-duration: var(--numberbox-transition-duration);
  transition-timing-function: var(--numberbox-transition-mode);
  transition-property: var(--numberbox-transition-property);
  translate: var(--numberbox-translate);
  background-color: var(--numberbox-background-color);
  color: var(--numberbox-foreground-color);
  border-color: var(--numberbox-border-color);
  border-width: var(--numberbox-border-width);
  border-radius: var(--numberbox-border-radius);
  border-style: var(--numberbox-border-style);
  box-shadow: var(--numberbox-shadow);
  min-height: var(--numberbox-height);
  cursor: text;
  z-index: 0;
  outline: none;
  flex-direction: row;
  align-items: center;
  padding: 4px;
  display: flex;
}

:host input {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: inherit;
  margin: 0;
  overflow: visible;
}

:host input::-webkit-outer-spin-button, :host input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

:host input[type="number"] {
  -moz-appearance: textfield;
}

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

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

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

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

:host [part="inner"].suffix:after {
  content: "";
  width: var(--numberbox-border-width);
  background-color: var(--numberbox-border-color);
  border-radius: 2px;
  position: absolute;
  top: 2px;
  bottom: 2px;
  right: 0;
}

: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;
  left: 12px;
  overflow: hidden;
  transform: translateY(0);
}

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

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

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

: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="spinner"] {
  flex-direction: column;
  display: flex;
}

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

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

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

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

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

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

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

: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="prefix"]:not([empty]) {
  margin-right: var(--joy-layout-space);
  margin-left: var(--joy-layout-space);
}

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

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

: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]) {
  --numberbox-border-color: var(--joy-scheme-disabled);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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