pragma-context-menu {
  position: absolute;
  z-index: 790;
  box-shadow: 0 0.125rem 0.5rem var(--c-shadow);
  background: var(--c-surface-bg);
  height: 40%;
  will-change: transform;
  width: 18.75rem;
  display: flex;
  flex-direction: column;
}

pragma-context-menu[aria-hidden=true] {
  display: none;
}

pragma-context-menu .dialog-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  background: var(--c-group-bar);
  border-bottom: var(--c-border) solid 0.0625rem;
}

pragma-context-menu .dialog-header #pcm-header-title {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

pragma-context-menu pragma-panel-list {
  height: unset;
  width: unset;
  flex: 1;
}

pragma-context-menu pragma-panel-list pragma-advanced-list .items-container-parent {
  overflow-x: hidden;
}

@media screen and (max-width: 812px) {
  pragma-context-menu {
    width: 100%;
    height: 100%;
  }
}
