import { css } from 'lit'

export default css`
  :host {
    position: fixed;
    display: block;
    user-select: none;
    z-index: 100;
    box-shadow: var(--context-menu-shadow, var(--md-sys-elevation-3));
    border-radius: var(--context-menu-border-radius, var(--md-sys-shape-corner-small));
  }

  .listbox {
    border-radius: inherit;
  }

  .item.disabled {
    opacity: 0.38;
    pointer-events: none;
  }

  .hidden,
  [hidden] {
    display: none;
  }

  .menu-section-label {
    font-family: var(--md-sys-typescale-title-small-font);
    font-weight: var(--md-sys-typescale-title-small-weight);
    font-size: var(--md-sys-typescale-title-small-size);
    letter-spacing: var(--md-sys-typescale-title-small-tracking);
    line-height: var(--md-sys-typescale-title-small-height);

    height: 40px;
    padding-left: 16px;
    display: flex;
    align-items: center;
  }

  .menu-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    fill: var(--context-menu-icon-color, currentColor);
  }

  .sub-menu-icon {
    margin-left: auto;
    padding-left: 12px;
    width: 24px;
    height: 24px;
  }

  .svg-wrapper {
    pointer-events: none;
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
  }

  .menu-label {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
`
