:root {
  --float-box-top: 0;
  --float-box-display: hidden;
  /**
   * @prop --float-background: Background color for mobile popup
   */
  --float-background: #ffffff;
  /**
  * @prop --node-inactive: Inactive node color
  */
  --node-inactive: #ffffff;
  /**
  * @prop --node-active: Active (and/or completed) node color
  */
  --node-active: #6c6a6a;
  /**
  * @prop --node-border: Node border color and connecting lines
  */
  --node-border: #6c6a6a;
  /**
  * @prop --font-color: Text color for step-name
  */
  --font-color: #6c6a6a;
}

.stepper-wrapper {
  display: flex;
  justify-content: space-between;
}

.stepper-wrapper.vertical {
  flex-direction: column;
  align-items: flex-start;
}

.mobile-float-box {
  position: absolute;
  width: 100%;
  background: var(--float-background);
  left: 0;
  top: var(--float-box-top);
  visibility: hidden;
  padding-top: 1rem;
  z-index: 9999;
  box-shadow: 0px -6px 6px -6px rgb(0 0 0 / 70%);
}

dxp-wayfinder-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.stepper-wrapper.vertical n-view-link {
  position: relative;
  line-height: 50px;
  margin-top: 50px;
  z-index: 2;
}

.stepper-wrapper.vertical .step-label {
  margin-top: 50px;
}

.stepper-wrapper.horizontal dxp-wayfinder-step:first-child::before,
.stepper-wrapper.vertical dxp-wayfinder-step:first-child n-view-link::before {
  content: none;
}

.stepper-wrapper.horizontal dxp-wayfinder-step:last-child::after,
.stepper-wrapper.vertical dxp-wayfinder-step:last-child n-view-link::after {
  content: none;
}

.stepper-wrapper.vertical dxp-wayfinder-step:first-child n-view-link,
.stepper-wrapper.vertical dxp-wayfinder-step:first-child .step-label {
  margin-top: 0;
}

.stepper-wrapper.horizontal dxp-wayfinder-step::before {
  position: absolute;
  content: '';
  border-bottom: 2px solid var(--node-border);
  width: 100%;
  top: 20px;
  left: -50%;
  z-index: 2;
}

.stepper-wrapper.vertical .stepper-item > n-view-link::before {
  position: absolute;
  border: 2px solid var(--node-border);
  width: 0;
  height: 50px;
  display: block;
  content: '';
  left: 50%;
  z-index: 1;
  top: -51px;
  margin-left: -1px;
}

.stepper-wrapper.horizontal dxp-wayfinder-step::after {
  position: absolute;
  content: '';
  border-bottom: 2px solid var(--node-border);
  width: 100%;
  top: 20px;
  left: 50%;
  z-index: 2;
}

.stepper-wrapper.vertical .stepper-item {
  display: flex;
}

.stepper-wrapper.vertical .stepper-item .step-label {
  align-self: center;
  padding: 5px;
}

.stepper-item .step-counter {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--node-inactive);
  border: solid var(--node-border);
}

.step-label {
  font-size: 0.8rem;
  text-align: center;
}

.stepper-item .active-node + .step-label {
  font-weight: bold;
  color: var(--font-color);
}

.active-node .step-counter {
  background-color: var(--node-active);
}

.stepper-item.completed.cascade::after {
  position: absolute;
  content: '';
  border-bottom: 2px solid var(--node-active);
  width: 100%;
  top: 20px;
  left: 50%;
  z-index: 3;
}

.stepper-container {
  pointer-events: none;
}

.stepper-container.vertical {
  display: inline-block;
}

.visible n-view-link,
.visible n-view-link > a {
  pointer-events: all;
}

@media (max-width: 480px) {
  .stepper-container {
    cursor: pointer;
    pointer-events: all;
  }

  .mobile-float-box {
    visibility: var(--float-box-display);
  }

  .visible dxp-wayfinder-step,
  .visible n-view-link,
  .visible n-view-link > a {
    pointer-events: none;
  }

  .visible .step-label {
    visibility: hidden;
    display: none;
  }
}
