// ------------------------------------------------------------------------------
// <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 expanderElementRetroStyle() {
    return css `
:host {
  --expander-background-color: var(--retro-scheme-background);
  --expander-border-color: var(--retro-scheme-contrast);
  --expander-border-radius: var(--retro-layout-radius);
  --expander-border-style: solid;
  --expander-border-width: var(--retro-layout-thickness);
  --expander-divider-height: var(--retro-layout-thickness);
  --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: var(--retro-font-family);
  --expander-font-letter-spacing: var(--retro-typography-body1-letter-spacing);
  --expander-font-line-height: var(--retro-typography-body1-line-height);
  --expander-font-size: var(--retro-typography-body1-font-size);
  --expander-font-text-decoration: var(--retro-typography-body1-text-decoration);
  --expander-font-text-transform: var(--retro-typography-body1-text-transform);
  --expander-font-weight: var(--retro-typography-body1-font-weight);
  --expander-foreground-color: var(--retro-scheme-foreground);
  --expander-gap: var(--retro-layout-space);
  --expander-padding-bottom: var(--retro-layout-space);
  --expander-padding-left: calc(var(--retro-layout-space) * 2);
  --expander-padding-right: calc(var(--retro-layout-space) * 2);
  --expander-padding-top: var(--retro-layout-space);
  --expander-ripple-color: unset;
  --expander-ripple-duration: .2s;
  --expander-shadow-blur: var(--retro-elevation-semilight-blur-0);
  --expander-shadow-color: var(--retro-elevation-semilight-color-0);
  --expander-shadow-offset-x: var(--retro-elevation-semilight-offset-x-0);
  --expander-shadow-offset-y: var(--retro-elevation-semilight-offset-y-0);
  --expander-shadow-spread: var(--retro-elevation-semilight-spread-0);
  --expander-transition-duration: .2s;
  --expander-transition-mode: ease;
  --expander-transition-property: background-color, color, border-color, opacity, box-shadow, transform, margin;
  --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);
  --expander-shadow-color: var(--retro-scheme-highlight);
  box-shadow: var(--expander-shadow-offset-x) var(--expander-shadow-offset-y) var(--expander-shadow-blur) var(--expander-shadow-spread) var(--expander-shadow-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="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"] {
  border-radius: 0 0 var(--expander-border-radius) var(--expander-border-radius);
}

: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="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="caret"] {
  order: 3;
}

:host [part="root"] [part="expandable"] {
  background-color: var(--retro-scheme-background);
}

:host(:not([disabled]:not([disabled="false"]))) [part="heading"]:hover {
  --expander-background-color: var(--retro-scheme-highlight);
}

:host([appearance="outline"]) {
  --expander-shadow: none;
  --expander-border-width: var(--retro-layout-thickness);
}

:host([appearance="plain"]) {
  --expander-background-color: var(--retro-scheme-transparent);
  --expander-shadow: none;
}

:host([appearance="plain"]:not([disabled]:not([disabled="false"]))) [part="heading"]:hover {
  --expander-background-color: var(--retro-scheme-semi-transparent);
}

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