// ------------------------------------------------------------------------------
// <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 colorBoxElementCosmopolitanStyle() {
    return css `
:host {
  --colorbox-background-color: unset;
  --colorbox-border-color: unset;
  --colorbox-border-radius: unset;
  --colorbox-border-style: unset;
  --colorbox-border-width: unset;
  --colorbox-focus-ring-outward-offset: 0px;
  --colorbox-focus-ring-width: 0px;
  --colorbox-font-family: var(--cosmopolitan-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: unset;
  --colorbox-gap: var(--cosmopolitan-layout-space);
  --colorbox-height: unset;
  --colorbox-padding-bottom: var(--cosmopolitan-layout-space);
  --colorbox-padding-left: calc(var(--cosmopolitan-layout-space) * 1.5);
  --colorbox-padding-right: calc(var(--cosmopolitan-layout-space) * 1.5);
  --colorbox-padding-top: var(--cosmopolitan-layout-space);
  --colorbox-shadow: var(--cosmopolitan-elevation-semilight-offset-x-0) var(--cosmopolitan-elevation-semilight-offset-y-0) var(--cosmopolitan-elevation-semilight-blur-0) var(--cosmopolitan-elevation-semilight-spread-0) var(--cosmopolitan-elevation-semilight-color-0);
  --colorbox-shadow-blur: var(--cosmopolitan-elevation-semilight-blur-0);
  --colorbox-shadow-color: var(--cosmopolitan-elevation-semilight-color-0);
  --colorbox-shadow-offset-x: var(--cosmopolitan-elevation-semilight-offset-x-0);
  --colorbox-shadow-offset-y: var(--cosmopolitan-elevation-semilight-offset-y-0);
  --colorbox-shadow-spread: var(--cosmopolitan-elevation-semilight-spread-0);
  --colorbox-transition-duration: var(--cosmopolitan-duration-short);
  --colorbox-transition-mode: ease;
  --colorbox-transition-property: background-color, color, border-color, opacity, box-shadow;
  --colorbox-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 textarea, :host input {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: inherit;
  resize: none;
  margin: 0;
  overflow: visible;
}

: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: 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;
  outline: none;
  flex-direction: row;
  align-items: center;
  display: flex;
}

: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;
  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;
}

: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"] [part="input"] {
  padding-top: 12px;
}

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

: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([color-position="before"]) [part="color"] {
  order: -1;
}

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