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

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

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

: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(--colorbox-gap);
  flex-grow: 0;
  flex-shrink: 0;
  align-items: center;
  display: flex;
}

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

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

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

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

:host [part="item"] {
  width: 24px;
  height: 24px;
}

: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([text-align="left"]:not([dir="rtl"])) [part="input"] {
  text-align: left;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

: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) {
  --colorbox-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) {
  --colorbox-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) {
  --colorbox-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) {
  --colorbox-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) {
  --colorbox-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) {
  --colorbox-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) {
  --colorbox-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) {
  --colorbox-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) {
  --colorbox-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) {
  --colorbox-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) {
  --colorbox-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) {
  --colorbox-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) {
  --colorbox-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) {
  --colorbox-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) {
  --colorbox-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) {
  --colorbox-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) {
  --colorbox-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) {
  --colorbox-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);
}

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