.menu {
  margin-left: 10px;
  position: relative;
}

.menu.open::after {
  content: "";
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid var(--background-back-color);
  position: absolute;
  top: 30px;
  right: 10px;
  transition: all 100ms ease-in-out;
}

.menuButton {
  height: 31px;
  width: 40px;
  padding: 0;
}

.buttonIcon {
  background-position: 6px 5px;
  background-repeat: no-repeat;
  background-size: 13px 10px;
  width: 40px;
  height: 20px;
  border-radius: 4px;
  padding: 0;
  background-image: var(--contextbutton-eye-default-icon);
  background-color: var(--text-toggle-button-inactive-text);
}

.buttonIcon.sortBy {
  background-image: var(--sort-by-icon);
}

.buttonIcon::after {
  content: "";
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--filter-menu-arrow);
  height: 0;
  width: 0;
  top: 11px;
  left: 10px;
  position: relative;
}

.menu.open .buttonIcon::after {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid var(--filter-menu-arrow);
  border-top: none;
  top: -10px;
}

.buttonIcon:hover {
  background-color: var(--filter-menu-bg-hover);
}

.buttonIcon.disabled {
  background-image: var(--contextbutton-eye-disabled-icon);
}

.buttonIcon.disabled:hover {
  background-color: var(--stroke-color-hovered);
}

.buttonIcon:disabled {
  background-image: var(--contextbutton-eye-disabled-icon);
}

.menuItems {
  border-radius: 5px;
  background-color: var(--background-back-color);
  position: absolute;
  right: 0px;
  padding: 15px 0;
  width: 168px;
  color: var(--input-color-default);
  text-align: left;
  box-shadow: 0 3px 8px var(--input-color-shadow);
  user-select: none;
  /* set z-index to cover the animated ellipsis of a pending tx */
  z-index: 1;
}

.menuItems.sortBy {
  width: 220px;
  padding-bottom: 0;
}

.contextMenuItem {
  font-size: 13px;
  line-height: 30px;
  min-width: 10em;
  padding-left: 30px;
}

.contextMenuItem:hover {
  background-color: var(--white-border);
}

.contextMenuItem.selected::before {
  content: "";
  height: 30px;
  width: 10px;
  background-image: var(--checkmark-context-icon);
  background-repeat: no-repeat;
  background-position: 0;
  position: absolute;
  margin-left: -18px;
}

.arrowUp {
  position: absolute;
  top: -5px;
  right: 23px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid var(--background-back-color);
}
