// ------------------------------------------------------------------------------
// <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 drawerElementCosmopolitanStyle() {
    return css `
:host {
  --drawer-background-color: unset;
  --drawer-border-color: unset;
  --drawer-border-radius: unset;
  --drawer-border-style: unset;
  --drawer-border-width: unset;
  --drawer-font-family: unset;
  --drawer-font-letter-spacing: unset;
  --drawer-font-line-height: unset;
  --drawer-font-size: unset;
  --drawer-font-text-decoration: unset;
  --drawer-font-text-transform: unset;
  --drawer-font-weight: unset;
  --drawer-foreground-color: unset;
  --drawer-gap: unset;
  --drawer-height: unset;
  --drawer-padding-bottom: unset;
  --drawer-padding-left: unset;
  --drawer-padding-right: unset;
  --drawer-padding-top: unset;
  --drawer-shadow: unset;
  --drawer-transition-duration: unset;
  --drawer-transition-mode: unset;
  --drawer-transition-property: unset;
  --drawer-translate: unset;
  --drawer-width: 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 {
  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%;
  width: var(--drawer-width);
  height: var(--drawer-height);
  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;
}

:host [part="root"] [part="header"], :host [part="root"] [part="main"] {
  display: flex;
  overflow: hidden;
}

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

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

: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="right"]) [part="root"] {
  right: 0;
}

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

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

: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;
}

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