.directive-bitflow {
  position: relative;
  border: 1px solid var(--color-nav-border);
  border-radius: 8px;
  overflow: hidden;
  min-height: 300px;
}

.directive-bitflow bitflow-flow {
  display: block;
  width: 100%;
  height: 100%;
}

/* Before the module defining it has run, an unupgraded custom element is an
   inline box of nothing. Without this the container collapses and the page
   reflows once the flow appears. */
.directive-bitflow bitflow-flow:not(:defined) {
  display: block;
  width: 100%;
  height: 100%;
}

/* Bottom right: the flow puts its progress bar top, its navigation bottom
   centre, and leaves the corners free. */
.directive-bitflow .buttons {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  z-index: 5;
}

.directive-bitflow .buttons button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background-color: var(--bitflow-color-surface, #ffffff);
  color: var(--bitflow-color-text, #242428);
  box-shadow: 0 1px 3px rgb(0 0 0 / 8%);
  cursor: pointer;
}

.directive-bitflow .buttons button:hover {
  background-color: var(--bitflow-color-neutral-100, #f5f5f5);
}

.directive-bitflow .buttons button .icon {
  width: 18px;
  height: 18px;
  display: block;
}
