// ------------------------------------------------------------------------------
// <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 richTextBoxElementCosmopolitanStyle() {
    return css `
:host {
  --richtextbox-background-color: unset;
  --richtextbox-border-color: unset;
  --richtextbox-border-radius: unset;
  --richtextbox-border-style: unset;
  --richtextbox-border-width: unset;
  --richtextbox-font-family: unset;
  --richtextbox-font-letter-spacing: unset;
  --richtextbox-font-line-height: unset;
  --richtextbox-font-size: unset;
  --richtextbox-font-text-decoration: unset;
  --richtextbox-font-text-transform: unset;
  --richtextbox-font-weight: unset;
  --richtextbox-foreground-color: unset;
  --richtextbox-gap: unset;
  --richtextbox-height: unset;
  --richtextbox-padding-bottom: unset;
  --richtextbox-padding-left: unset;
  --richtextbox-padding-right: unset;
  --richtextbox-padding-top: unset;
  --richtextbox-shadow: unset;
  --richtextbox-transition-duration: unset;
  --richtextbox-transition-mode: unset;
  --richtextbox-transition-property: unset;
  --richtextbox-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 {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: inherit;
  resize: none;
  margin: 0;
  overflow: visible;
}

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

:host [part="suffix"] {
  gap: var(--richtextbox-gap);
  flex-grow: 0;
  flex-shrink: 0;
  align-items: center;
  display: flex;
}

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

:host [part="prefix"] {
  gap: var(--richtextbox-gap);
  flex-grow: 0;
  flex-shrink: 0;
  align-items: center;
  display: flex;
}

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

:host [part="inner"] {
  width: 100%;
  padding: var(--richtextbox-padding-top) var(--richtextbox-padding-right) var(--richtextbox-padding-bottom) var(--richtextbox-padding-left);
  flex-direction: column;
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}

: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="clear"] {
  cursor: pointer;
}

:host([has-label]) [part="inner"] {
  width: 100%;
  height: 100%;
}

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

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

:host([disabled]:not([disabled="false"])) {
  cursor: default;
}

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

:host([resize="none"]) [part="input"] {
  resize: none;
}

:host([resize="both"]) [part="input"] {
  resize: both;
}

:host([resize="horizontal"]) [part="input"] {
  resize: horizontal;
}

:host([resize="vertical"]) [part="input"] {
  resize: vertical;
}

:host([appearance="plain"]) {
  --richtextbox-border-width: 0;
}

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

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