.sui-l-page-header {
  margin-top: 0;
  margin-bottom: $sui-space-lg;
  min-height: rem(40);
  display: flex;
  flex-direction: column;

  @include suiMediaMin($sui-breakpoint-xs) {
    flex-direction: row;
    align-items: center;
  }

  &__primary {
    min-width: 0;
  }

  &__secondary {
    @include suiMediaMin($sui-breakpoint-xs) {
      flex: none;
      margin-left: auto;
    }
  }

  &__primary ~ &__secondary {
    padding-top: $sui-space-md;

    @include suiMediaMin($sui-breakpoint-xs) {
      padding-top: 0;
      padding-left: $sui-space-md;
    }

    @include suiMediaMax($sui-breakpoint-xs) {
      padding-top: 0;
      padding-bottom: $sui-space-md;
      order: -1;
    }
  }

  &__title {
    font-size: $sui-font-size-primary-title;
    font-weight: normal;
    margin: 0;
    display: flex;
    align-items: center;

    &-icon {
      flex: none;
      color: $sui-color-brand-denim-400;
      margin-right: $sui-space-md;
    }

    &-text {
      min-width: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin: 0;
      font-size: inherit;
    }

    &-extra {
      flex: none;
      margin-left: $sui-space-md;
    }
  }
}
