.wrapper {
  position: relative;
}

.button {
  composes: button from './ControlBar.module.css';
}

.subMenuItemAnnotation {
  color: #ff0000;
  font-size: 70%;
  vertical-align: 5px;
  padding-left: 3px;
}

.subMenu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;

  position: absolute;
  right: 5px;
  bottom: 38px;
  margin: 0;
  padding: 5px;

  background-color: rgba(17, 17, 17, 0.9);
  border-radius: 3px;
}

.subMenu::after {
  content: "";
  display: block;
  border: solid 5px transparent;
  border-top-color: rgba(17, 17, 17, 0.9);
  position: absolute;
  right: 11px;
  top: 100%;
}

.subMenuExpanded .subMenu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: none;
}

.subMenuItem {
  position: relative;
  list-style: none;
}

.subMenuItem svg {
  position: absolute;
  top: 8px;
  left: 5px;
  width: 12px;
  height: 12px;

  fill: #fff;
}

.subMenuItemButton {
  composes: unstyledButton from '../utils.module.css';
  width: 100%;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

/* see https://github.com/css-modules/css-modules/issues/195
   and https://github.com/egoist/rollup-plugin-postcss/issues/26 */
button.subMenuItemButton {
  padding: 5px 10px 5px 25px;
}
