// ------------------------------------------------------------------------------
// <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 popupElementJoyStyle() {
    return css `
:host {
  --popup-background-color: var(--joy-scheme-surface);
  --popup-border-color: var(--joy-scheme-highlight);
  --popup-border-radius: var(--joy-layout-radius);
  --popup-border-style: solid;
  --popup-border-width: var(--joy-layout-thickness);
  --popup-font-family: var(--joy-font-family);
  --popup-font-letter-spacing: var(--joy-typography-body2-letter-spacing);
  --popup-font-line-height: var(--joy-typography-body2-line-height);
  --popup-font-size: var(--joy-typography-body2-font-size);
  --popup-font-text-decoration: var(--joy-typography-body2-text-decoration);
  --popup-font-text-transform: var(--joy-typography-body2-text-transform);
  --popup-font-weight: var(--joy-typography-body2-font-weight);
  --popup-foreground-color: var(--joy-scheme-foreground);
  --popup-gap: calc(var(--joy-layout-space) * .5);
  --popup-padding-bottom: calc(var(--joy-layout-space) * 1);
  --popup-padding-left: calc(var(--joy-layout-space) * 1.25);
  --popup-padding-right: calc(var(--joy-layout-space) * 1.25);
  --popup-padding-top: calc(var(--joy-layout-space) * 1);
  --popup-shadow-blur: var(--joy-elevation-regular-blur-0);
  --popup-shadow-color: var(--joy-elevation-regular-color-0);
  --popup-shadow-offset-x: var(--joy-elevation-regular-offset-x-0);
  --popup-shadow-offset-y: var(--joy-elevation-regular-offset-y-0);
  --popup-shadow-spread: var(--joy-elevation-regular-spread-0);
  --popup-transition-duration: var(--joy-duration-short);
  --popup-transition-mode: ease;
  --popup-transition-property: background-color, border-color, box-shadow, color, transform, opacity;
  --popup-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(--popup-font-family);
  font-size: var(--popup-font-size);
  font-weight: var(--popup-font-weight);
  line-height: var(--popup-font-line-height);
  letter-spacing: var(--popup-font-letter-spacing);
  -webkit-text-decoration: var(--popup-font-text-decoration);
  text-decoration: var(--popup-font-text-decoration);
  text-transform: var(--popup-font-text-transform);
  color: var(--popup-foreground-color);
  display: inline-block;
  position: relative;
}

[part="popup"] {
  background-color: var(--popup-background-color);
  border-color: var(--popup-border-color);
  border-width: var(--popup-border-width);
  border-radius: var(--popup-border-radius);
  border-style: var(--popup-border-style);
  transition-duration: var(--popup-transition-duration);
  transition-timing-function: var(--popup-transition-mode);
  transition-property: var(--popup-transition-property);
  box-shadow: var(--popup-shadow-offset-x) var(--popup-shadow-offset-y) var(--popup-shadow-blur) var(--popup-shadow-spread) var(--popup-shadow-color);
  overflow: hidden;
}

[part="body"] {
  padding-top: var(--popup-padding-top);
  padding-left: var(--popup-padding-left);
  padding-bottom: var(--popup-padding-bottom);
  padding-right: var(--popup-padding-right);
  gap: var(--popup-gap);
  flex-direction: column;
  display: flex;
}

[part="header"]:empty, [part="footer"]:empty {
  display: none;
}

[part="arrow"] {
  background-color: var(--popup-background-color);
  border-color: var(--popup-border-color);
  border-width: var(--popup-border-width);
  border-style: var(--popup-border-style);
  width: 8px;
  height: 8px;
  position: absolute;
  transform: rotate(45deg);
}

:host(:not([disabled]:not([disabled="false"])):focus-within) {
  --popup-border-color: var(--joy-color-primary-500);
}

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