// ------------------------------------------------------------------------------
// <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-font-family: unset;
  --colorbox-font-letter-spacing: unset;
  --colorbox-font-line-height: unset;
  --colorbox-font-size: unset;
  --colorbox-font-text-decoration: unset;
  --colorbox-font-text-transform: unset;
  --colorbox-font-weight: unset;
  --colorbox-foreground-color: unset;
  --colorbox-gap: unset;
  --colorbox-height: unset;
  --colorbox-padding-bottom: unset;
  --colorbox-padding-left: unset;
  --colorbox-padding-right: unset;
  --colorbox-padding-top: unset;
  --colorbox-shadow: unset;
  --colorbox-transition-duration: unset;
  --colorbox-transition-mode: unset;
  --colorbox-transition-property: unset;
  --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 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-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;
  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;
  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"] [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"]: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;
}

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