// ------------------------------------------------------------------------------
// <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 dateTimeBoxElementJoyStyle() {
    return css `
:host {
  --datetimebox-background-color: var(--joy-scheme-background);
  --datetimebox-border-color: var(--joy-scheme-highlight);
  --datetimebox-border-radius: var(--joy-layout-radius);
  --datetimebox-border-style: solid;
  --datetimebox-border-width: var(--joy-layout-thickness);
  --datetimebox-font-family: var(--joy-font-family);
  --datetimebox-font-letter-spacing: unset;
  --datetimebox-font-line-height: unset;
  --datetimebox-font-size: var(--joy-typography-body1-font-size);
  --datetimebox-font-text-decoration: unset;
  --datetimebox-font-text-transform: unset;
  --datetimebox-font-weight: var(--joy-typography-body1-font-weight);
  --datetimebox-foreground-color: var(--joy-scheme-foreground);
  --datetimebox-gap: var(--joy-layout-space);
  --datetimebox-height: 56px;
  --datetimebox-padding-bottom: var(--joy-layout-space);
  --datetimebox-padding-left: calc(var(--joy-layout-space) * 1.5);
  --datetimebox-padding-right: calc(var(--joy-layout-space) * 1.5);
  --datetimebox-padding-top: var(--joy-layout-space);
  --datetimebox-shadow: unset unset unset unset unset;
  --datetimebox-shadow-blur: unset;
  --datetimebox-shadow-color: unset;
  --datetimebox-shadow-offset-x: unset;
  --datetimebox-shadow-offset-y: unset;
  --datetimebox-shadow-spread: unset;
  --datetimebox-transition-duration: var(--joy-duration-short);
  --datetimebox-transition-mode: ease;
  --datetimebox-transition-property: background-color, color, border-color, opacity, box-shadow;
  --datetimebox-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::-webkit-inner-spin-button, :host input::-webkit-calendar-picker-indicator {
  -webkit-appearance: none;
  display: none;
}

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

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

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

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

:host [part="suffix"] {
  gap: var(--datetimebox-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="calendar"] {
  --calendar-border-width: 0;
  --calendar-border-radius: 0;
  --calendar-border-style: none;
}

:host [part="calendar"][part="header"], :host [part="calendar"]::part(header) {
  display: none;
}

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

:host [part="datetime-content"] {
  flex-direction: row;
  align-items: stretch;
  display: flex;
}

:host [part="time-divider"] {
  background-color: var(--datetimebox-border-color);
  flex-shrink: 0;
  width: 1px;
}

:host [part="time-picker"] {
  flex-direction: column;
  min-width: 120px;
  padding: 8px 0;
  display: flex;
}

:host [part="ampm-toggle"] {
  flex-direction: row;
  flex-shrink: 0;
  justify-content: center;
  gap: 4px;
  padding: 4px 8px;
  display: flex;
}

:host [part="time-columns"] {
  flex-direction: row;
  flex: 1;
  display: flex;
  overflow: hidden;
}

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

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

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

:host([appearance="plain"]) {
  --datetimebox-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([disabled]:not([disabled="false"])), :host([readonly]) {
  cursor: default;
  --datetimebox-border-color: var(--joy-scheme-disabled);
}

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

:host([invalid]) {
  --datetimebox-border-color: var(--joy-color-danger-500);
  --datetimebox-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) {
  --datetimebox-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) {
  --datetimebox-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) {
  --datetimebox-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) {
  --datetimebox-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) {
  --datetimebox-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) {
  --datetimebox-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) {
  --datetimebox-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) {
  --datetimebox-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) {
  --datetimebox-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) {
  --datetimebox-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) {
  --datetimebox-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) {
  --datetimebox-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) {
  --datetimebox-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) {
  --datetimebox-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) {
  --datetimebox-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) {
  --datetimebox-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) {
  --datetimebox-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) {
  --datetimebox-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"]) {
  --datetimebox-background-color: var(--joy-scheme-highlight);
}

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