// ------------------------------------------------------------------------------
// <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 drawerElementJoyStyle() {
    return css `
:host {
  --drawer-background-color: var(--joy-scheme-surface);
  --drawer-border-color: var(--joy-scheme-highlight);
  --drawer-border-radius: var(--joy-layout-radius);
  --drawer-border-style: solid;
  --drawer-border-width: var(--joy-layout-thickness);
  --drawer-divider-height: 1px;
  --drawer-font-family: var(--joy-font-family);
  --drawer-font-letter-spacing: unset;
  --drawer-font-line-height: unset;
  --drawer-font-size: 16px;
  --drawer-font-text-decoration: unset;
  --drawer-font-text-transform: unset;
  --drawer-font-weight: normal;
  --drawer-foreground-color: var(--joy-scheme-foreground);
  --drawer-gap: 8px;
  --drawer-height: 100%;
  --drawer-line-thickness: var(--joy-layout-thickness);
  --drawer-padding-bottom: 8px;
  --drawer-padding-left: 16px;
  --drawer-padding-right: 16px;
  --drawer-padding-top: 8px;
  --drawer-shadow: var(--joy-elevation-none);
  --drawer-transition-duration: var(--joy-duration-short);
  --drawer-transition-mode: ease;
  --drawer-transition-property: background-color, color, border-color, opacity, box-shadow, margin, width, max-width, height;
  --drawer-translate: unset;
  --drawer-width: 320px;
}

@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 {
  transition-duration: var(--drawer-transition-duration);
  transition-timing-function: var(--drawer-transition-mode);
  transition-property: var(--drawer-transition-property);
  opacity: 1;
  z-index: 1;
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
}

:host [part="root"] {
  pointer-events: all;
  background-color: var(--drawer-background-color);
  box-shadow: var(--drawer-shadow);
  transition-duration: var(--drawer-transition-duration);
  transition-timing-function: var(--drawer-transition-mode);
  transition-property: var(--drawer-transition-property);
  border-radius: 0;
  flex-direction: column;
  display: flex;
  position: absolute;
  overflow: hidden;
}

:host [part="root"] [part="header"] {
  position: relative;
  overflow: hidden;
}

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

:host [part="root"] [part="main"] {
  flex: 1;
  overflow: hidden;
}

:host [part="root"]:after {
  content: "";
  background-color: var(--drawer-border-color);
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
}

:host(:not([is-full-screen])) [part="root"] {
  width: var(--drawer-width);
  height: var(--drawer-height);
  max-width: var(--drawer-max-width);
  max-height: var(--drawer-max-height);
}

:host([is-full-screen]) [part="root"] {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
}

:host([is-composed]) {
  z-index: 4;
  z-index: 3;
  box-sizing: border-box;
  outline: 0;
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  overflow-y: auto;
  transform: translate3d(-100%, 0, 0);
}

:host([is-composed][is-open]) {
  transform: translate3d(0%, 0, 0);
}

:host(:not([is-open])) {
  opacity: 0;
  pointer-events: none;
}

:host(:not([is-open])) [part="root"] {
  pointer-events: inherit;
  width: 0;
}

:host([position="left"]) [part="root"] {
  left: 0;
}

:host([position="left"]) [part="root"]:after {
  width: var(--drawer-line-thickness);
  right: 0;
  left: unset;
}

:host([position="right"]) [part="root"] {
  right: 0;
}

:host([position="right"]) [part="root"]:after {
  width: var(--drawer-line-thickness);
  left: 0;
  right: unset;
}

:host([position="top"]) [part="root"] {
  top: 0;
}

:host([position="top"]) [part="root"]:after {
  height: var(--drawer-line-thickness);
  bottom: 0;
  left: 0;
  right: 0;
  top: unset;
}

:host([position="bottom"]) [part="root"] {
  bottom: 0;
}

:host([position="bottom"]) [part="root"]:after {
  height: var(--drawer-line-thickness);
  top: 0;
  left: 0;
  right: 0;
  bottom: unset;
}

:host([position="left"]:not([is-open])) [part="root"] {
  margin-left: -40px;
}

:host([position="right"]:not([is-open])) [part="root"] {
  margin-right: -40px;
}

:host([position="top"]:not([is-open])) [part="root"] {
  margin-top: -40px;
}

:host([position="bottom"]:not([is-open])) [part="root"] {
  margin-bottom: -40px;
}

:host([data-stack-level]) {
  z-index: var(--drawer-z-index, 1);
}

:host([data-stack-level]:not([data-stack-level="0"])):before {
  content: "";
  top: var(--drawer-stack-indicator-offset, 0);
  left: var(--drawer-stack-indicator-offset, 0);
  right: calc(-1 * var(--drawer-stack-indicator-offset, 0));
  bottom: calc(-1 * var(--drawer-stack-indicator-offset, 0));
  pointer-events: none;
  position: absolute;
}

:host(.mosaik-drawer-stacked) [part="root"] {
  pointer-events: none;
  filter: brightness(.95);
}

:host([has-shadow]) [part="root"]:after {
  content: none;
}

    `;
}
//# sourceMappingURL=DrawerElement.Joy.js.map