// ------------------------------------------------------------------------------
// <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 treeItemElementCosmopolitanStyle() {
    return css `
:host {
  --tree-item-background-color: unset;
  --tree-item-border-color: unset;
  --tree-item-border-radius: unset;
  --tree-item-border-style: unset;
  --tree-item-border-width: unset;
  --tree-item-font-family: unset;
  --tree-item-font-letter-spacing: unset;
  --tree-item-font-line-height: unset;
  --tree-item-font-size: unset;
  --tree-item-font-text-decoration: unset;
  --tree-item-font-text-transform: unset;
  --tree-item-font-weight: unset;
  --tree-item-foreground-color: unset;
  --tree-item-gap: unset;
  --tree-item-indent-color: unset;
  --tree-item-indent-offset: unset;
  --tree-item-indent-size: unset;
  --tree-item-padding-bottom: unset;
  --tree-item-padding-left: unset;
  --tree-item-padding-right: unset;
  --tree-item-padding-top: unset;
  --tree-item-shadow: unset unset unset unset unset;
  --tree-item-shadow-blur: unset;
  --tree-item-shadow-color: unset;
  --tree-item-shadow-offset-x: unset;
  --tree-item-shadow-offset-y: unset;
  --tree-item-shadow-spread: unset;
  --tree-item-transition-duration: unset;
  --tree-item-transition-mode: unset;
  --tree-item-transition-property: unset;
  --tree-item-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 {
  font-family: var(--tree-item-font-family);
  font-size: var(--tree-item-font-size);
  line-height: var(--tree-item-font-line-height);
  font-weight: var(--tree-item-font-weight);
  letter-spacing: var(--tree-item-font-letter-spacing);
  -webkit-text-decoration: var(--tree-item-font-text-decoration);
  text-decoration: var(--tree-item-font-text-decoration);
  text-transform: var(--tree-item-font-text-transform);
  color: var(--tree-item-foreground-color);
  transition-duration: var(--tree-item-transition-duration);
  transition-timing-function: var(--tree-item-transition-mode);
  transition-property: var(--tree-item-transition-property);
  content-visibility: auto;
}

:host [part="root"] {
  background-color: var(--tree-item-background-color);
  border: var(--tree-item-border-width) var(--tree-item-border-style) var(--tree-item-border-color);
  border-radius: var(--tree-item-border-radius);
  padding: var(--tree-item-padding-top) var(--tree-item-padding-right) var(--tree-item-padding-bottom) var(--tree-item-padding-left);
  align-items: center;
  gap: var(--tree-item-gap);
  flex-direction: row;
  min-height: 48px;
  display: flex;
  overflow: hidden;
}

:host [part="text"] {
  flex: 1;
}

:host [part="caret"]::part(icon) {
  transition-property: transform;
  transition-duration: .2s;
  transition-timing-function: ease;
  transform: rotate(-90deg);
}

:host [part="expandable"]::part(content):before {
  content: "";
  top: 0;
  left: var(--tree-item-indent-offset);
  width: var(--tree-item-indent-size);
  background-color: var(--tree-item-indent-color);
  height: 100%;
  position: absolute;
}

:host [part="prefix-container"] {
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  display: flex;
}

:host slot:not([name]) {
  margin-left: calc(var(--tree-item-padding-left) * 2 + var(--tree-item-gap));
  display: block;
}

:host ::slotted(mosaik-text) {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-decoration: inherit;
  text-transform: inherit;
  background-color: inherit;
  border-color: inherit;
  color: inherit;
}

:host(:not([has-children])) {
  margin-left: 8px;
}

:host(:not([disabled]:not([disabled="false"]))) [part="root"]:hover {
  cursor: pointer;
}

:host([is-expanded]) [part="caret"]::part(icon) {
  transform: rotate(-45deg);
}

:host([disabled]:not([disabled="false"])) {
  --tree-item-foreground-color: var(--cosmopolitan-scheme-disabled);
}

:host(:not([disabled]:not([disabled="false"]))) [part="root"]:hover {
  --tree-item-background-color: var(--cosmopolitan-scheme-highlight);
}

:host(:not([disabled]:not([disabled="false"]))[is-active]) {
  --tree-item-background-color: var(--cosmopolitan-color-primary-200);
  --tree-item-foreground-color: var(--cosmopolitan-color-primary-500);
}

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