.asb-generator {
  .asb-url-error {
    background-color: $color-error;
    display: none;
    padding: 1.2em;

    &,
    p {
      color: $color-light-grey;
    }

    code {
      background: transparent;
      color: $color-copy-dark;
    }
  }

  .asbresults {
    background-color: $color-medium-dark;
    padding: 1.2em;

    h3,
    p {
      color: $color-light-grey;
    }

    pre,
    code {
      display: block;
      overflow: auto;
    }
  }

  &.has-error {
    .asb-url-error {
      display: block;
    }

    .asbresults {
      display: none;
    }
  }

  .asb-preview {
    text-align: center;
  }
}

.asbparams {
  background: $color-dark;
  padding: 1.2em;

  .asbparams__group {
    margin-bottom: 1.8em;

    &:last-child {
      margin-bottom: 0;
    }
  }

  .asbparams__group > label {
    color: $color-light-grey;
    display: block;
    font-size: 0.8em;
    font-weight: bold;
    margin-bottom: 0.6em;
    text-transform: lowercase;
  }

  .asbparams__group > input,
  .asbparams__group > select {
    background-color: $color-white;
    display: block;
    width: 100%;
  }

  .asbparams__button-options {
    display: flex;
    justify-content: space-between;

    > label {
      cursor: pointer;
    }

    img {
      margin: 0 5px;
      min-height: 2.4em;
      opacity: 0.2;
    }

    input {
      display: none;
    }

    input:checked + img {
      opacity: 1;
    }

    @media (max-width: 640px) {
      display: block;

      > label {
        display: block;
        margin-bottom: 0.2em;
        text-align: center;

        &:last-child {
          margin-bottom: 0;
        }
      }
    }
  }

  .asbparams__group--row {
    display: flex;

    > .asbparams__group {
      flex-flow: row;
      flex-grow: 1;
      margin-bottom: 0;
    }

    > .asbparams__group {
      margin-left: 0.6em;

      &:first-child {
        margin-left: 0;
      }
    }

    > .asbparams__group--hugo-only {
      flex-grow: 0;
      width: 6em;

      &.hidden {
        display: none;
      }
    }
  }
}

img[src*="import-to-forestry"] {
  min-height: 2em;
}

.vert-level {
  align-items: center;
  display: flex;
  flex-flow: row wrap;
}
