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

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

:host input::-webkit-inner-spin-button, :host input::-webkit-calendar-picker-indicator {
  -webkit-appearance: none;
  display: none;
}

:host [part="prefix"] {
  gap: var(--timebox-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(--timebox-padding-top) var(--timebox-padding-right) var(--timebox-padding-bottom) var(--timebox-padding-left);
  flex-direction: column;
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}

: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(--timebox-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="clear"] {
  cursor: pointer;
}

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

:host [part="menu"] [part="menuItem"][is-special]:before {
  content: "";
  pointer-events: none;
  border-radius: var(--calendar-item-border-radius);
  background: none;
  display: block;
  position: absolute;
  inset: 0;
}

:host [part="menu"] [part="menuItem"][is-blackout] {
  --calendar-item-background-color: #f5f5f5;
  --color: #aaa;
  cursor: not-allowed;
  text-decoration: line-through;
}

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

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

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

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

:host([appearance="plain"]) {
  --timebox-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="label"] {
  color: var(--joy-scheme-middlelight);
}

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

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

:host [part="menu"] {
  padding: 0;
}

:host [part="menu"] [part="menuItem"][is-special]:before {
  border: var(--calendar-item-border-width) var(--calendar-item-border-style) var(--joy-color-highlight-500);
}

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

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

:host([invalid]) {
  --timebox-border-color: var(--joy-color-danger-500);
  --timebox-foreground-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) {
  --timebox-border-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) {
  --timebox-border-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) {
  --timebox-border-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) {
  --timebox-border-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) {
  --timebox-border-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) {
  --timebox-border-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) {
  --timebox-border-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) {
  --timebox-border-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) {
  --timebox-border-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) {
  --timebox-border-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) {
  --timebox-border-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) {
  --timebox-border-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) {
  --timebox-border-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) {
  --timebox-border-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) {
  --timebox-border-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) {
  --timebox-border-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) {
  --timebox-border-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) {
  --timebox-border-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);
}

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

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