.sdg-related-list-selector {
  clear: both;

  > legend {
    margin-bottom: 0;
  }

  .amsify-suggestags-area .amsify-select-tag {
    color: $sdg-text;

    @each $code, $color in $sdg-colors {
      &[data-val^="#{$code}"] {
        background-color: $color;
      }
    }
  }

  .goals {

    + label {
      @include element-invisible;
    }

    legend {
      font-style: italic;
      font-weight: normal;
    }
  }

  .goal-list {
    @extend %sdg-goal-list-expanded;

    input {
      @include element-invisible;

      &:focus + label {
        @include focus-outline;
      }

      &:checked + label img {
        opacity: 0.15;
      }
    }
  }

  .help-text {
    font-size: $base-font-size;
    font-style: italic;
    font-weight: normal;
  }

  .input-section {
    margin-bottom: calc(2 * $line-height / 3);
  }

  .amsify-suggestags-area {
    position: relative;

    .amsify-suggestags-list {
      top: $input-height;
    }
  }

  .amsify-suggestags-input-area {
    display: flex;
    flex-wrap: wrap;

    > input {
      margin-bottom: calc($line-height / 4) !important;
      order: -1;
    }
  }

  .remove-tag {
    color: $sdg-text;
  }

  h3 {
    @include header-font-size(h4);
  }
}
