.ui-wizard-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ui-wizard-container .app-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ui-wizard-container .app-content.wizard-open {
  padding-right: 324px;

  @include until($tablet) {
    padding-right: 0;
    padding-bottom: 50vh;
  }
}

.ui-wizard {
  z-index: 300;
  padding: $size-5;
  width: 300px;
  background: $white;
  box-shadow: $box-shadow, $box-shadow-highest;
  position: fixed;
  right: $size-8;
  bottom: $size-8;
  top: calc(3.5rem + #{$size-8});
  overflow: auto;

  p {
    line-height: 1.2;
  }

  .dismiss-collapsed {
    position: absolute;
    top: $size-8;
    right: $size-8;
    color: $grey;
    z-index: 30;
  }

  @include until($tablet) {
    box-shadow: $box-shadow, 0 0 20px rgba($black, 0.24);
    bottom: 0;
    left: 0;
    right: 0;
    top: 50%;
    width: auto;
  }

  .doc-link {
    margin-top: $size-5;
    display: block;
  }

  pre code {
    background: $ui-gray-050;
    margin: $size-8 0;
  }
}

.wizard-header {
  margin-bottom: $size-5;
  position: relative;

  .icon {
    margin-right: $size-11;
    vertical-align: -0.33rem;
  }
}

.wizard-dismiss-menu {
  position: absolute;
  right: $size-6;
  top: $size-6;
  z-index: 10;
}

.ui-wizard.collapsed {
  color: $white;
  background: $black;
  bottom: auto;
  box-shadow: $box-shadow-middle;
  height: auto;
  min-height: 0;
  padding-bottom: $size-11;
  position: fixed;
  right: $size-8;
  top: calc(3.5rem + #{$size-8});

  @include until($tablet) {
    box-shadow: $box-shadow, 0 0 20px rgba($black, 0.24);
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: auto;
  }

  .title {
    color: $white;
  }

  .wizard-header {
    margin-bottom: $size-10;
  }
}

.wizard-divider-box {
  background: none;
  box-shadow: none;
  margin: $size-8 0 0;
  padding: 0 $size-8;
  border-top: solid 1px $white;
  border-image: $dark-vault-gradient 1;
  button {
    font-size: $size-7;
    font-weight: $font-weight-semibold;
  }
}

.wizard-section .title .icon {
  height: auto;
  margin-right: $size-11;
  width: auto;
}

.wizard-section:last-of-type {
  margin-bottom: $size-5;
}

.wizard-section button:not(:last-of-type) {
  margin-bottom: $size-10;
}

.wizard-details {
  padding-top: $size-4;
  margin-top: $size-4;
  border-top: 1px solid $grey-light;
}
