.nl-bfe-multi-step-form .nl-bfe-step-inactive,
.nl-bfe-multi-step-form .nl-bfe-step-skipped,
.nl-bfe-multi-step-form .nl-bfe-step-submit-hidden {
  display: none !important;
}

.nl-bfe-step-progress {
  width: 100%;
  margin-block-end: 1.5rem;
}

.nl-bfe-step-progress__status {
  margin-block-end: .625rem;
  font-size: .9375rem;
}

.nl-bfe-step-progress__track {
  width: 100%;
  height: .375rem;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 16%, transparent);
}

.nl-bfe-step-progress__value {
  height: 100%;
  border-radius: inherit;
  background: currentColor;
  transition: width .2s ease;
}

.nl-bfe-step-progress__list {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nl-bfe-step-progress__item {
  display: flex;
  flex: 1 1 0;
  gap: .5rem;
  align-items: center;
  min-width: 0;
  opacity: .55;
}

.nl-bfe-step-progress__item.is-current,
.nl-bfe-step-progress__item.is-complete {
  opacity: 1;
}

.nl-bfe-step-progress__number {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 600;
}

.nl-bfe-step-progress__item.is-current .nl-bfe-step-progress__number,
.nl-bfe-step-progress__item.is-complete .nl-bfe-step-progress__number {
  background: currentColor;
  color: Canvas;
}

.nl-bfe-step-progress__label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.nl-bfe-step-navigation {
  display: flex;
  width: 100%;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
}

.nl-bfe-step-button--next {
  margin-inline-start: auto;
}

/* Keep native theme button/span rules from overriding the step layout. */
.brxe-form .nl-bfe-step-navigation {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  flex: 0 0 auto;
  align-self: stretch;
  grid-column: 1 / -1;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
}

.brxe-form .nl-bfe-step-navigation > button {
  flex: 0 0 auto;
  width: auto;
  margin-block: 0;
}

.brxe-form .nl-bfe-step-navigation > [hidden] {
  display: none !important;
}

.brxe-form .nl-bfe-step-navigation > .nl-bfe-step-submit-wrapper {
  flex: 0 1 auto;
  width: auto !important;
  min-width: 0;
  max-width: calc(100% - 6rem);
  margin: 0 0 0 auto !important;
  padding: 0;
}

.brxe-form .nl-bfe-step-navigation > .nl-bfe-step-submit-wrapper button[type="submit"] {
  width: auto !important;
  max-width: 100%;
  white-space: normal;
}

.brxe-form .nl-bfe-step-progress__number {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  padding: 0;
  line-height: 1;
  font-size: 1rem;
  vertical-align: middle;
}

.brxe-form .nl-bfe-step-progress__item.is-current .nl-bfe-step-progress__number,
.brxe-form .nl-bfe-step-progress__item.is-complete .nl-bfe-step-progress__number {
  background: var(--nl-bfe-step-accent, #8a6f3d);
  color: var(--nl-bfe-step-on-accent, #fff);
}

.nl-bfe-review-summary {
  display: grid;
  gap: 1.25rem;
  margin-block-start: 1.25rem;
}

.nl-bfe-review-summary__group {
  padding-block: 1rem;
  border-block-start: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}

.nl-bfe-review-summary__header {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-block-end: .75rem;
}

.nl-bfe-review-summary__title {
  margin: 0;
  font: inherit;
  font-weight: 700;
}

.nl-bfe-review-summary__edit {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.nl-bfe-review-summary dl {
  display: grid;
  grid-template-columns: minmax(10rem, .7fr) minmax(0, 1.3fr);
  gap: .5rem 1rem;
  margin: 0;
}

.nl-bfe-review-summary dt,
.nl-bfe-review-summary dd {
  margin: 0;
}

.nl-bfe-review-summary dt {
  font-weight: 600;
}

@media (max-width: 767px) {
  .nl-bfe-step-progress__list {
    gap: .5rem;
  }

  .nl-bfe-step-progress__item {
    display: block;
    text-align: center;
  }

  .nl-bfe-step-progress__number {
    margin-inline: auto;
  }

  .nl-bfe-step-progress__label {
    display: block;
    margin-block-start: .35rem;
    font-size: .75rem;
  }

  .nl-bfe-review-summary dl {
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .nl-bfe-review-summary dd + dt {
    margin-block-start: .75rem;
  }
}
