// ------------------------------------------------------------------------------
// <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 dialogElementCosmopolitanStyle() {
    return css `
:host {
  --dialog-background-color: unset;
  --dialog-border-color: unset;
  --dialog-border-radius: unset;
  --dialog-border-style: unset;
  --dialog-border-width: unset;
  --dialog-divider-height: unset;
  --dialog-font-family: unset;
  --dialog-font-letter-spacing: unset;
  --dialog-font-line-height: unset;
  --dialog-font-size: unset;
  --dialog-font-text-decoration: unset;
  --dialog-font-text-transform: unset;
  --dialog-font-weight: unset;
  --dialog-foreground-color: unset;
  --dialog-gap: unset;
  --dialog-padding-bottom: unset;
  --dialog-padding-left: unset;
  --dialog-padding-right: unset;
  --dialog-padding-top: unset;
  --dialog-shadow-blur: unset;
  --dialog-shadow-color: unset;
  --dialog-shadow-offset-x: unset;
  --dialog-shadow-offset-y: unset;
  --dialog-shadow-spread: unset;
  --dialog-transition-duration: unset;
  --dialog-transition-mode: unset;
  --dialog-transition-property: unset;
  --dialog-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(--dialog-font-family);
  font-size: var(--dialog-font-size);
  line-height: var(--dialog-font-line-height);
  font-weight: var(--dialog-font-weight);
  letter-spacing: var(--dialog-font-letter-spacing);
  -webkit-text-decoration: var(--dialog-font-text-decoration);
  text-decoration: var(--dialog-font-text-decoration);
  text-transform: var(--dialog-font-text-transform);
  transition-duration: var(--dialog-transition-duration);
  transition-timing-function: var(--dialog-transition-mode);
  transition-property: var(--dialog-transition-property);
  opacity: 1;
  z-index: 1;
  pointer-events: none;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  position: fixed;
  top: 0;
  left: 0;
}

:host [part="root"] {
  padding: 0;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  pointer-events: all;
  background-color: var(--dialog-background-color);
  box-shadow: var(--dialog-shadow-offset-x) var(--dialog-shadow-offset-y) var(--dialog-shadow-blur) var(--dialog-shadow-spread) var(--dialog-shadow-color);
  transition-duration: var(--dialog-transition-duration);
  transition-timing-function: var(--dialog-transition-mode);
  transition-property: var(--dialog-transition-property);
  border-width: var(--dialog-border-width);
  border-radius: var(--dialog-border-radius);
  border-style: var(--dialog-border-style);
  height: inherit;
  margin: 0;
  margin: inherit;
  max-height: inherit;
  max-width: inherit;
  min-height: inherit;
  min-width: inherit;
  width: inherit;
  outline: none;
  flex-direction: column;
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: hidden;
  transform: translate(-50%, -50%);
}

:host [part="root"][open] {
  display: flex;
}

:host [part="root"] [part="header"] {
  flex-direction: row;
  flex-shrink: 0;
  display: flex;
  position: relative;
  overflow: hidden;
}

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

:host [part="root"] [part="header"][hidden] {
  display: none;
}

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

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

:host([is-draggable]) [part="root"] [part="header"] {
  cursor: grab;
}

:host([is-draggable]) [part="root"] [part="header"]:active, :host(.dragging) {
  cursor: grabbing;
}

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

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