// ------------------------------------------------------------------------------
// <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 dialogElementJoyStyle() {
    return css `
:host {
  --dialog-background-color: var(--joy-scheme-background);
  --dialog-border-color: var(--joy-scheme-highlight);
  --dialog-border-radius: var(--joy-layout-radius);
  --dialog-border-style: solid;
  --dialog-border-width: 0px;
  --dialog-divider-height: 1px;
  --dialog-font-family: var(--joy-font-family);
  --dialog-font-letter-spacing: var(--joy-typography-body1-letter-spacing);
  --dialog-font-line-height: var(--joy-typography-body1-line-height);
  --dialog-font-size: var(--joy-typography-body1-font-size);
  --dialog-font-text-decoration: var(--joy-typography-body1-text-decoration);
  --dialog-font-text-transform: var(--joy-typography-body1-text-transform);
  --dialog-font-weight: var(--joy-typography-body1-font-weight);
  --dialog-foreground-color: var(--joy-scheme-foreground);
  --dialog-gap: var(--joy-layout-space);
  --dialog-padding-bottom: var(--joy-layout-space);
  --dialog-padding-left: calc(var(--joy-layout-space) * 2);
  --dialog-padding-right: calc(var(--joy-layout-space) * 2);
  --dialog-padding-top: var(--joy-layout-space);
  --dialog-shadow-blur: var(--joy-elevation-light-blur-0);
  --dialog-shadow-color: var(--joy-elevation-light-color-0);
  --dialog-shadow-offset-x: var(--joy-elevation-light-offset-x-0);
  --dialog-shadow-offset-y: var(--joy-elevation-light-offset-y-0);
  --dialog-shadow-spread: var(--joy-elevation-light-spread-0);
  --dialog-transition-duration: var(--joy-duration-short);
  --dialog-transition-mode: ease;
  --dialog-transition-property: background-color, color, border-color, opacity, box-shadow, margin;
  --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.Joy.js.map