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

:host [part="prefix"] {
  gap: var(--passwordbox-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(--passwordbox-padding-top) var(--passwordbox-padding-right) var(--passwordbox-padding-bottom) var(--passwordbox-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;
  overflow: hidden;
  transform: translateY(0);
}

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

:host [part="suffix"] {
  gap: var(--passwordbox-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"], :host [part="showHide"] {
  cursor: pointer;
}

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

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