.czi-editor-toolbar {
  background: #fff;
  height: 36px;
  line-height: 32px;
  pointer-events: none;
  position: relative;
  user-select: none;
}

.czi-editor-toolbar-wrapped-anchor {
  display: inline-block;
  height: 1px;
  vertical-align: middle;
  width: 1px;
}

.czi-editor-toolbar-flex {
  display: flex;
  flex-direction: column;

  /* Why 200px is hard-coded? */

  /* See https://css-tricks.com/using-css-transitions-auto-dimensions/ */
  height: 200px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}

.czi-editor-toolbar .czi-editor-toolbar-body {
  /* Only reveal the first row of buttons by default */

  /* 0.162 =~ 36px */
  flex: 0.162;

  /* See https://css-tricks.com/using-css-transitions-auto-dimensions/ */
  transition: flex 0.3s ease-out;
  overflow: hidden;
}

.czi-editor-toolbar.expanded .czi-editor-toolbar-body {
  /* Reveal the all rows of buttons. */
  flex: 1;
}

.czi-editor-toolbar-expand-button {
  pointer-events: auto;
  position: absolute;
  right: 2px;
  top: 2px;
}

.czi-editor-toolbar-body-content {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.26);
  box-sizing: border-box;
  min-width: 450px;
  overflow: hidden;
  padding: 2px 40px 2px 0;
  position: relative;
}

.czi-editor-toolbar .czi-custom-button {
  box-sizing: border-box;
  height: 30px;
  line-height: 28px;
  padding: 0 6px;
  pointer-events: auto;
}

.czi-editor-toolbar .czi-custom-buttons {
  display: inline-block;
  margin-left: 0;
  margin-right: 0;
  padding-left: 4px;
  padding-right: 4px;
  position: relative;
  white-space: nowrap;
  border-right: solid 1px #efefef;
}

.czi-editor-toolbar .czi-custom-button.czi-custom-button.czi-custom-button {
  border-color: transparent;
  border-radius: 5px;
}

.czi-editor-toolbar .czi-custom-button.use-icon .czi-icon {
  margin: 4px 0;
}

.czi-editor-toolbar-background {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 3;
  pointer-events: none;
}

.czi-editor-toolbar-background-line {
  box-sizing: border-box;
  height: 32px;
  box-shadow: 0 1px 0 0.2px #efefef;
}

@media only print {
  .czi-editor-toolbar {
    display: none;
  }
}
