

.context-menu {
  position: absolute;
  z-index: 1000;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 0.17em 0.83em rgba(0,0,0,0.2);
  padding: 0.33em 0;
  min-width: 13em;
  display: none;
}

.context-menu-item {
  padding: 0.5em 1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.67em;
  position: relative;
  background: #fff;
}

.context-menu-item:hover {
  background-color: #f0f0f0;
}

.context-menu-disabled {
  color: #999;
  pointer-events: none;
}

.context-menu-separator {
  margin: 0.33em 0;
  border-top: 1px solid #ddd;
}

.context-menu-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 0;
  display: none;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 0.17em 0.83em rgba(0,0,0,0.2);
  min-width: 13em;
  padding: 0.33em 0;
}

.context-menu-item:hover > .context-menu-submenu {
  display: block;
}

.context-menu-icon {
  min-width: 1em;
}

.context-menu-disabled {
  opacity: 0.5;
  pointer-events: none;
}


/* klasa oznacza że element ma podpięte context-menu
  pod prawy klawisz myszy lub długie przytrzymanie na urządzeniu mobilnym.
  Dodatkowo blokujemy zaznaczanie tekstu dla urządzeń mobilnych z długim przytrzymaniem */
.rclick-menu {
  user-select: none;
  -webkit-user-select: none;
}

/* klasa oznacza że element ma podpięte context-menu
  klik myszy lub przyciśnięcie na urządzeniu mobilnym. */
.click-menu {
}


#context-menu-modal {
  position: fixed;
  z-index: 1200;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.25);
  display: flex;
  justify-content: center;
  align-items: center;
}
.context-menu-modal-content {
  background: #fff;
  border-radius: 1em;
  min-width: 16em;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 0.3em 1.5em rgba(0,0,0,0.4);
  padding: 0.5em 0;
  display: flex;
  flex-direction: column;
}
.context-menu-item.mobile {
  font-size: 1.2em;
  padding: 1em 2em;
}

.context-menu-back {
  font-size: 1.2em;
  padding: 1em 2em;
}
