.metadata {
  position: relative;
  max-width: 500px;
  margin: auto;
  pointer-events: all;
  &__title {
    @include font-size(13px);
    color: palette(black);
    font-weight: 600;
    margin-top: 0;
    margin-right: 2em;
    white-space: pre-line;
    display: none;
    &:nth-child(-n+5) {
      display: block;
    }
  }
  &__container {
    max-height: 50vh;
    overflow-y: auto;
    margin-right: -1em;
    padding-right: 1em;
  }
  &__blocks {
    display: flex;
    border-bottom: 1px solid palette(grey, smooth);
    align-items: center;
  }
  &__block {
    padding: 1em 0;
    margin-right: 0.5em;
    &__item {
      word-break: break-word;
      min-width: 200px;
      text-align: left;
      white-space: pre-line;
      &:first-child {
        color: palette(black);
        margin-bottom: 0.5em;
      }
      &:last-child {
        color: palette(grey, medium);
        .--selected & {
          color: palette(purple);
        }
      }
    }
    &__button {
      margin: auto 0 auto auto;
      overflow: visible;
    }
  }
  &__buttons {
    display: block;
    text-align: right;
    margin-top: 2em;
    .re-button {
      margin-bottom: 0;
    }
  }
}
