// ------------------------------------------------------------------------------
// <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 expanderElementCosmopolitanStyle() {
    return css `
:host {
  --expander-background-color: unset;
  --expander-border-color: unset;
  --expander-border-radius: unset;
  --expander-border-style: unset;
  --expander-border-width: unset;
  --expander-divider-height: unset;
  --expander-focus-ring-active-width: 8px;
  --expander-focus-ring-color: unset;
  --expander-focus-ring-inward-offset: 2px;
  --expander-focus-ring-outward-offset: 2px;
  --expander-font-family: unset;
  --expander-font-letter-spacing: unset;
  --expander-font-line-height: unset;
  --expander-font-size: unset;
  --expander-font-text-decoration: unset;
  --expander-font-text-transform: unset;
  --expander-font-weight: unset;
  --expander-foreground-color: unset;
  --expander-gap: unset;
  --expander-padding-bottom: unset;
  --expander-padding-left: unset;
  --expander-padding-right: unset;
  --expander-padding-top: unset;
  --expander-ripple-color: unset;
  --expander-ripple-duration: .2s;
  --expander-shadow: unset;
  --expander-transition-duration: unset;
  --expander-transition-mode: unset;
  --expander-transition-property: unset;
  --expander-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 {
  font-family: var(--expander-font-family);
  font-size: var(--expander-font-size);
  line-height: var(--expander-font-line-height);
  font-weight: var(--expander-font-weight);
  letter-spacing: var(--expander-font-letter-spacing);
  -webkit-text-decoration: var(--expander-font-text-decoration);
  text-decoration: var(--expander-font-text-decoration);
  text-transform: var(--expander-font-text-transform);
  transition-duration: var(--expander-transition-duration);
  transition-timing-function: var(--expander-transition-mode);
  transition-property: var(--expander-transition-property);
  color: var(--expander-foreground-color);
  border-start-start-radius: var(--expander-border-radius);
  border-start-end-radius: var(--expander-border-radius);
  border-end-end-radius: var(--expander-border-radius);
  border-end-start-radius: var(--expander-border-radius);
}

:host [part="innerStack"] {
  --stack-gap: var(--expander-gap);
}

:host [part="root"] {
  border-radius: var(--expander-border-radius);
  border: var(--expander-border-width) var(--expander-border-style) var(--expander-border-color);
  border-start-start-radius: inherit;
  border-start-end-radius: inherit;
  border-end-end-radius: inherit;
  border-end-start-radius: inherit;
  flex-direction: column;
  transition: inherit;
  display: flex;
  overflow: hidden;
}

:host [part="root"] [part="heading"] {
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: var(--expander-padding-top) var(--expander-padding-right) var(--expander-padding-bottom) var(--expander-padding-left);
  background-color: var(--expander-background-color);
  cursor: pointer;
  outline: none;
  flex-direction: row;
  flex-shrink: 0;
  place-content: center start;
  align-items: center;
  max-width: 100%;
  min-height: 48px;
  transition: inherit;
  display: flex;
  position: relative;
  overflow: hidden;
}

:host [part="root"] [part="heading"]::-webkit-details-marker {
  display: none;
}

:host [part="root"] [part="heading"]:after {
  content: unset;
  height: var(--expander-divider-height);
  background-color: var(--expander-border-color);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

:host [part="root"] [part="heading"] [part="icon"] {
  color: inherit;
}

:host [part="root"] [part="heading"] [part="header"] {
  color: inherit;
  font-size: inherit;
  flex: 1;
}

:host [part="root"] [part="heading"] [part="caret"] {
  color: inherit;
  flex-shrink: 0;
  transition-property: transform;
  transition-duration: .2s;
  transition-timing-function: ease;
  transform: rotate(0);
}

:host [part="root"] [part="expandable"] > slot {
  padding: var(--expander-padding-top) var(--expander-padding-right) var(--expander-padding-bottom) var(--expander-padding-left);
  display: block;
}

:host([is-expanded]) [part="heading"]:after {
  content: "";
}

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

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

:host([appearance="plain"]) [part="details"] [part="heading"]:after, :host([appearance="soft"]) [part="root"] [part="heading"]:after, :host([appearance="solid"]) [part="root"] [part="heading"]:after {
  content: unset;
}

:host([direction="left"]) [part="root"] {
  flex-direction: row-reverse;
}

:host([direction="left"]) [part="root"] [part="heading"] {
  writing-mode: vertical-rl;
}

:host([direction="left"]) [part="root"] [part="heading"] [part="caret"] {
  transform: rotate(90deg);
}

:host([direction="left"][is-expanded]) [part="root"] [part="heading"] [part="caret"] {
  transform: rotate(270deg);
}

:host([direction="right"]) [part="root"] {
  flex-direction: row;
}

:host([direction="right"]) [part="root"] [part="heading"] {
  writing-mode: vertical-rl;
}

:host([direction="right"]) [part="root"] [part="heading"] [part="caret"] {
  transform: rotate(270deg);
}

:host([direction="right"][is-expanded]) [part="root"] [part="heading"] [part="caret"] {
  transform: rotate(90deg);
}

:host([direction="up"]) [part="root"] {
  flex-direction: column-reverse;
}

:host([direction="up"]) [part="root"] [part="heading"] [part="caret"] {
  transform: rotate(180deg);
}

:host([direction="up"][is-expanded]) [part="root"] [part="heading"] [part="caret"] {
  transform: rotate(0);
}

:host([caret-position="before"]) [part="icon"] {
  order: 1;
}

:host([caret-position="before"]) [part="header"] {
  order: 2;
}

:host([caret-position="before"]) [part="subHeader"] {
  order: 3;
}

:host([caret-position="before"]) [part="actions"] {
  order: 4;
}

:host([caret-position="before"]) [part="caret"], :host([caret-position="after"]) [part="icon"] {
  order: 0;
}

:host([caret-position="after"]) [part="header"] {
  order: 1;
}

:host([caret-position="after"]) [part="subHeader"] {
  order: 2;
}

:host([caret-position="after"]) [part="actions"] {
  order: 3;
}

:host([caret-position="after"]) [part="caret"] {
  order: 4;
}

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