// ------------------------------------------------------------------------------
// <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 tooltipElementMemphisStyle() {
    return css `
:host {
  --tooltip-background-color: var(--memphis-scheme-contrast);
  --tooltip-border-color: var(--memphis-scheme-foreground);
  --tooltip-border-radius: 6px;
  --tooltip-border-style: solid;
  --tooltip-border-width: calc(var(--memphis-layout-thickness) / 3);
  --tooltip-font-family: var(--memphis-typography-caption-font-family);
  --tooltip-font-letter-spacing: var(--memphis-typography-caption-letter-spacing);
  --tooltip-font-line-height: var(--memphis-typography-caption-line-height);
  --tooltip-font-size: var(--memphis-typography-caption-font-size);
  --tooltip-font-text-decoration: var(--memphis-typography-caption-text-decoration);
  --tooltip-font-text-transform: var(--memphis-typography-caption-text-transform);
  --tooltip-font-weight: var(--memphis-typography-caption-font-weight);
  --tooltip-foreground-color: var(--memphis-scheme-background);
  --tooltip-gap: calc(var(--memphis-layout-space) * .4);
  --tooltip-max-width: calc(var(--memphis-layout-space) * 24);
  --tooltip-padding-bottom: calc(var(--memphis-layout-space) * .8);
  --tooltip-padding-left: calc(var(--memphis-layout-space) * 1.2);
  --tooltip-padding-right: calc(var(--memphis-layout-space) * 1.2);
  --tooltip-padding-top: calc(var(--memphis-layout-space) * .8);
  --tooltip-shadow: unset unset unset unset unset;
  --tooltip-shadow-blur: unset;
  --tooltip-shadow-color: unset;
  --tooltip-shadow-offset-x: unset;
  --tooltip-shadow-offset-y: unset;
  --tooltip-shadow-spread: unset;
  --tooltip-transition-duration: var(--memphis-duration-short);
  --tooltip-transition-mode: ease;
  --tooltip-transition-property: opacity, transform, visibility;
  --tooltip-translate: none;
}

@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 {
  display: contents;
}

:host [part="popup"] {
  z-index: 100;
}

:host [part="popup"]::part(body) {
  font-family: var(--tooltip-font-family);
  font-size: var(--tooltip-font-size);
  line-height: var(--tooltip-font-line-height);
  font-weight: var(--tooltip-font-weight);
  letter-spacing: var(--tooltip-font-letter-spacing);
  -webkit-text-decoration: var(--tooltip-font-text-decoration);
  text-decoration: var(--tooltip-font-text-decoration);
  text-transform: var(--tooltip-font-text-transform);
  padding-top: var(--tooltip-padding-top);
  padding-right: var(--tooltip-padding-right);
  padding-bottom: var(--tooltip-padding-bottom);
  padding-left: var(--tooltip-padding-left);
  gap: var(--tooltip-gap);
  transition-duration: var(--tooltip-transition-duration);
  transition-timing-function: var(--tooltip-transition-mode);
  transition-property: var(--tooltip-transition-property);
  background-color: var(--tooltip-background-color);
  border-color: var(--tooltip-border-color);
  color: var(--tooltip-foreground-color);
  border-width: var(--tooltip-border-width);
  border-radius: var(--tooltip-border-radius);
  border-style: var(--tooltip-border-style);
  box-shadow: var(--tooltip-shadow);
  pointer-events: none;
  width: max-content;
  max-width: var(--tooltip-max-width);
}

:host [part="popup"]::part(arrow) {
  background-color: var(--tooltip-background-color);
}

:host [part="popup"][placement^="top"] {
  transform-origin: bottom;
}

:host [part="popup"][placement^="bottom"] {
  transform-origin: top;
}

:host [part="popup"][placement^="left"] {
  transform-origin: 100%;
}

:host [part="popup"][placement^="right"] {
  transform-origin: 0;
}

    `;
}
//# sourceMappingURL=TooltipElement.Memphis.js.map