/* Right-click menu and its side menus (js/ui/rightClickMenu.js). */

#rightClickMenu,
#sideMenu {
  position: fixed;
  z-index: 30;
  min-width: 210px;
  background: var(--pop);
  color: var(--text);
  border: 1px solid var(--popline);
  border-radius: 8px;
  padding: 4px;
  box-shadow: var(--popshadow)
}

#rightClickMenu[hidden],
#sideMenu[hidden] {
  display: none
}

#rightClickMenu:focus,
#sideMenu:focus {
  outline: none
}

#rightClickMenu button,
#sideMenu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: 0;
  border-radius: 5px;
  padding: 7px 10px;
  font: 14px Inter, sans-serif;
  color: var(--text);
  cursor: pointer;
  text-align: left
}

#rightClickMenu button:hover,
#sideMenu button:hover,
#rightClickMenu button:focus-visible,
#sideMenu button:focus-visible,
#rightClickMenu button.sideMenuOpen {
  background: var(--panel);
  outline: none
}

#rightClickMenu button:disabled,
#sideMenu button:disabled {
  opacity: .4;
  cursor: default;
  background: none
}

#rightClickMenu button.danger,
#sideMenu button.danger {
  color: var(--danger)
}

#rightClickMenu kbd,
#sideMenu kbd {
  font-size: 11px;
  color: var(--mutedText)
}

#rightClickMenu hr,
#sideMenu hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 4px 2px
}

.menuKey {
  display: inline-block;
  width: 18px;
  font-style: normal;
  color: var(--accent)
}

/* Icon slot at the start of a menu entry; same width as the tick slot. */
.menuIcon {
  display: inline-flex;
  width: 18px;
  margin-right: 8px;
  vertical-align: -3px
}

.menuIcon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

.menuArrow {
  color: var(--mutedText);
  font-size: 16px;
  line-height: 1
}

#sideMenu {
  min-width: 150px
}
