// ------------------------------------------------------------------------------
// <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 menuItemElementJoyStyle() {
    return css `
:host {
  --menu-item-background-color: var(--joy-scheme-background);
  --menu-item-border-color: var(--joy-scheme-highlight);
  --menu-item-border-radius: var(--joy-layout-radius);
  --menu-item-border-style: solid;
  --menu-item-border-width: 0px;
  --menu-item-focus-ring-active-width: 8px;
  --menu-item-focus-ring-color: unset;
  --menu-item-focus-ring-inward-offset: 2px;
  --menu-item-focus-ring-outward-offset: 2px;
  --menu-item-font-family: var(--joy-font-family);
  --menu-item-font-letter-spacing: var(--joy-typography-body1-letter-spacing);
  --menu-item-font-line-height: var(--joy-typography-body1-line-height);
  --menu-item-font-size: var(--joy-typography-body1-font-size);
  --menu-item-font-text-decoration: var(--joy-typography-body1-text-decoration);
  --menu-item-font-text-transform: var(--joy-typography-body1-text-transform);
  --menu-item-font-weight: var(--joy-typography-body1-font-weight);
  --menu-item-foreground-color: var(--joy-scheme-foreground);
  --menu-item-gap: calc(var(--joy-layout-space) * 2);
  --menu-item-height: 48px;
  --menu-item-indent-color: var(--joy-scheme-highlight);
  --menu-item-indent-offset: calc(var(--joy-layout-space) * 2);
  --menu-item-indent-size: var(--joy-layout-thickness);
  --menu-item-padding-bottom: var(--joy-layout-space);
  --menu-item-padding-left: calc(var(--joy-layout-space) * 2);
  --menu-item-padding-right: calc(var(--joy-layout-space) * 2);
  --menu-item-padding-top: var(--joy-layout-space);
  --menu-item-ripple-color: unset;
  --menu-item-ripple-duration: .2s;
  --menu-item-shadow: var(--joy-elevation-none);
  --menu-item-transition-duration: var(--joy-duration-short);
  --menu-item-transition-mode: ease;
  --menu-item-transition-property: background-color, color, border-color, opacity, box-shadow;
  --menu-item-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(--menu-item-font-family);
  font-size: var(--menu-item-font-size);
  line-height: var(--menu-item-font-line-height);
  font-weight: var(--menu-item-font-weight);
  letter-spacing: var(--menu-item-font-letter-spacing);
  -webkit-text-decoration: var(--menu-item-font-text-decoration);
  text-decoration: var(--menu-item-font-text-decoration);
  text-transform: var(--menu-item-font-text-transform);
  transition-duration: var(--menu-item-transition-duration);
  transition-timing-function: var(--menu-item-transition-mode);
  transition-property: var(--menu-item-transition-property);
  cursor: pointer;
}

:host [part="root"] {
  transition-duration: inherit;
  transition-timing-function: inherit;
  background-color: var(--menu-item-background-color);
  color: var(--menu-item-foreground-color);
  border: var(--menu-item-border-width) var(--menu-item-border-style) var(--menu-item-border-color);
  border-radius: var(--menu-item-border-radius);
  padding: var(--menu-item-padding-top) var(--menu-item-padding-right) var(--menu-item-padding-bottom) var(--menu-item-padding-left);
  min-height: var(--menu-item-height);
  gap: var(--menu-item-gap);
  align-items: center;
  transition-property: inherit;
  display: flex;
  position: relative;
  overflow: hidden;
}

:host [part="text"] {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  display: block;
  overflow: hidden;
}

:host slot[name="label"] mosaik-text {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-decoration: inherit;
  text-transform: inherit;
}

:host slot[name="icon"] mosaik-icon {
  color: var(--menu-item-foreground-color);
  flex-shrink: 0;
}

:host slot:not([name]) {
  margin-left: calc(var(--menu-item-padding-left)  + var(--menu-item-gap));
  display: block;
}

:host [part="caret"]::part(icon) {
  color: var(--menu-item-foreground-color);
  transition-property: transform;
  transition-duration: .2s;
  transition-timing-function: ease;
  transform: rotate(-90deg);
}

:host [part="expandable"]::part(content):before {
  content: "";
  top: 0;
  left: var(--menu-item-indent-offset);
  width: var(--menu-item-indent-size);
  background-color: var(--menu-item-indent-color);
  height: 100%;
  position: absolute;
}

:host([is-expanded]:not([menu-mode="popover"])) [part="caret"]::part(icon) {
  transform: rotate(-45deg);
}

:host([menu-mode="popover"]) [part="caret"]::part(icon) {
  transform: rotate(0);
}

:host([disabled]:not([disabled="false"])) {
  cursor: default;
}

:host([role="link"]) {
  cursor: pointer;
}

:host slot[name="subLabel"] mosaik-text {
  color: var(--joy-scheme-middlelight);
  font-family: var(--joy-typography-body2-font-family);
  font-size: var(--joy-typography-body2-font-size);
  line-height: var(--joy-typography-body2-line-height);
  font-weight: var(--joy-typography-body2-font-weight);
  -webkit-text-decoration: var(--joy-typography-body2-text-decoration);
  text-decoration: var(--joy-typography-body2-text-decoration);
  text-transform: var(--joy-typography-body2-text-transform);
  letter-spacing: var(--joy-typography-body2-letter-spacing);
}

:host(:focus), :host(:hover) [part="root"] {
  --menu-item-background-color: var(--joy-scheme-highlight);
}

:host([is-active]:hover) [part="root"] {
  --menu-item-background-color: var(--joy-color-primary-300);
}

:host([disabled]:not([disabled="false"])) {
  --menu-item-foreground-color: var(--joy-scheme-disabled);
}

:host(:not([disabled]:not([disabled="false"])):not(:active)) [part="root"]:hover, :host(:not([disabled]:not([disabled="false"]))) [part="root"]:hover {
  --menu-item-background-color: var(--joy-scheme-highlight);
}

:host(:not([disabled]:not([disabled="false"]))[is-active]) {
  --menu-item-background-color: var(--joy-color-primary-200);
  --menu-item-foreground-color: var(--joy-color-primary-800);
}

:host(:not([disabled]:not([disabled="false"]))[is-active]) slot[name="subLabel"] mosaik-text, :host([appearance="plain"][variant="primary"]:not([disabled]:not([disabled="false"]))) {
  --menu-item-foreground-color: var(--joy-color-primary-500);
}

:host([appearance="plain"][variant="primary"]:not([disabled]:not([disabled="false"])):hover) {
  --menu-item-background-color: var(--joy-color-primary-100);
  --menu-item-foreground-color: var(--joy-color-primary-500);
}

:host([appearance="plain"][variant="secondary"]:not([disabled]:not([disabled="false"]))) {
  --menu-item-foreground-color: var(--joy-color-secondary-500);
}

:host([appearance="plain"][variant="secondary"]:not([disabled]:not([disabled="false"])):hover) {
  --menu-item-background-color: var(--joy-color-secondary-100);
  --menu-item-foreground-color: var(--joy-color-secondary-500);
}

:host([appearance="plain"][variant="tertiary"]:not([disabled]:not([disabled="false"]))) {
  --menu-item-foreground-color: var(--joy-color-tertiary-500);
}

:host([appearance="plain"][variant="tertiary"]:not([disabled]:not([disabled="false"])):hover) {
  --menu-item-background-color: var(--joy-color-tertiary-100);
  --menu-item-foreground-color: var(--joy-color-tertiary-500);
}

:host([appearance="plain"][variant="danger"]:not([disabled]:not([disabled="false"]))) {
  --menu-item-foreground-color: var(--joy-color-danger-500);
}

:host([appearance="plain"][variant="danger"]:not([disabled]:not([disabled="false"])):hover) {
  --menu-item-background-color: var(--joy-color-danger-100);
  --menu-item-foreground-color: var(--joy-color-danger-500);
}

:host([appearance="plain"][variant="warning"]:not([disabled]:not([disabled="false"]))) {
  --menu-item-foreground-color: var(--joy-color-warning-500);
}

:host([appearance="plain"][variant="warning"]:not([disabled]:not([disabled="false"])):hover) {
  --menu-item-background-color: var(--joy-color-warning-100);
  --menu-item-foreground-color: var(--joy-color-warning-500);
}

:host([appearance="plain"][variant="success"]:not([disabled]:not([disabled="false"]))) {
  --menu-item-foreground-color: var(--joy-color-success-500);
}

:host([appearance="plain"][variant="success"]:not([disabled]:not([disabled="false"])):hover) {
  --menu-item-background-color: var(--joy-color-success-100);
  --menu-item-foreground-color: var(--joy-color-success-500);
}

:host([appearance="plain"][variant="info"]:not([disabled]:not([disabled="false"]))) {
  --menu-item-foreground-color: var(--joy-color-info-500);
}

:host([appearance="plain"][variant="info"]:not([disabled]:not([disabled="false"])):hover) {
  --menu-item-background-color: var(--joy-color-info-100);
  --menu-item-foreground-color: var(--joy-color-info-500);
}

:host([appearance="plain"][variant="highlight"]:not([disabled]:not([disabled="false"]))) {
  --menu-item-foreground-color: var(--joy-color-highlight-500);
}

:host([appearance="plain"][variant="highlight"]:not([disabled]:not([disabled="false"])):hover) {
  --menu-item-background-color: var(--joy-color-highlight-100);
  --menu-item-foreground-color: var(--joy-color-highlight-500);
}

:host([appearance="plain"][variant="neutral"]:not([disabled]:not([disabled="false"]))) {
  --menu-item-foreground-color: var(--joy-color-neutral-500);
}

:host([appearance="plain"][variant="neutral"]:not([disabled]:not([disabled="false"])):hover) {
  --menu-item-background-color: var(--joy-color-neutral-100);
  --menu-item-foreground-color: var(--joy-color-neutral-500);
}

:host([appearance="solid"][variant="primary"]:not([disabled]:not([disabled="false"]))) {
  --menu-item-background-color: var(--joy-color-primary-500);
  --menu-item-foreground-color: var(--joy-color-primary-0);
}

:host([appearance="solid"][variant="primary"]:not([disabled]:not([disabled="false"])):hover) {
  --menu-item-background-color: var(--joy-color-primary-600);
}

:host([appearance="solid"][variant="secondary"]:not([disabled]:not([disabled="false"]))) {
  --menu-item-background-color: var(--joy-color-secondary-500);
  --menu-item-foreground-color: var(--joy-color-secondary-0);
}

:host([appearance="solid"][variant="secondary"]:not([disabled]:not([disabled="false"])):hover) {
  --menu-item-background-color: var(--joy-color-secondary-600);
}

:host([appearance="solid"][variant="tertiary"]:not([disabled]:not([disabled="false"]))) {
  --menu-item-background-color: var(--joy-color-tertiary-500);
  --menu-item-foreground-color: var(--joy-color-tertiary-0);
}

:host([appearance="solid"][variant="tertiary"]:not([disabled]:not([disabled="false"])):hover) {
  --menu-item-background-color: var(--joy-color-tertiary-600);
}

:host([appearance="solid"][variant="danger"]:not([disabled]:not([disabled="false"]))) {
  --menu-item-background-color: var(--joy-color-danger-500);
  --menu-item-foreground-color: var(--joy-color-danger-0);
}

:host([appearance="solid"][variant="danger"]:not([disabled]:not([disabled="false"])):hover) {
  --menu-item-background-color: var(--joy-color-danger-600);
}

:host([appearance="solid"][variant="warning"]:not([disabled]:not([disabled="false"]))) {
  --menu-item-background-color: var(--joy-color-warning-500);
  --menu-item-foreground-color: var(--joy-color-warning-0);
}

:host([appearance="solid"][variant="warning"]:not([disabled]:not([disabled="false"])):hover) {
  --menu-item-background-color: var(--joy-color-warning-600);
}

:host([appearance="solid"][variant="success"]:not([disabled]:not([disabled="false"]))) {
  --menu-item-background-color: var(--joy-color-success-500);
  --menu-item-foreground-color: var(--joy-color-success-0);
}

:host([appearance="solid"][variant="success"]:not([disabled]:not([disabled="false"])):hover) {
  --menu-item-background-color: var(--joy-color-success-600);
}

:host([appearance="solid"][variant="info"]:not([disabled]:not([disabled="false"]))) {
  --menu-item-background-color: var(--joy-color-info-500);
  --menu-item-foreground-color: var(--joy-color-info-0);
}

:host([appearance="solid"][variant="info"]:not([disabled]:not([disabled="false"])):hover) {
  --menu-item-background-color: var(--joy-color-info-600);
}

:host([appearance="solid"][variant="highlight"]:not([disabled]:not([disabled="false"]))) {
  --menu-item-background-color: var(--joy-color-highlight-500);
  --menu-item-foreground-color: var(--joy-color-highlight-0);
}

:host([appearance="solid"][variant="highlight"]:not([disabled]:not([disabled="false"])):hover) {
  --menu-item-background-color: var(--joy-color-highlight-600);
}

:host([appearance="solid"][variant="neutral"]:not([disabled]:not([disabled="false"]))) {
  --menu-item-background-color: var(--joy-color-neutral-500);
  --menu-item-foreground-color: var(--joy-color-neutral-0);
}

:host([appearance="solid"][variant="neutral"]:not([disabled]:not([disabled="false"])):hover) {
  --menu-item-background-color: var(--joy-color-neutral-600);
}

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