:host {
  display: block;
  font-family: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.step {
  display: grid;
  gap: 16px;
  justify-items: center;
}
.step__info {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: sticky;
  top: 50px;
  background: white;
  z-index: 1000;
  padding-bottom: 8px;
}
.step__destination {
  display: grid;
  gap: 8px;
  align-items: center;
  justify-content: center;
  grid-auto-flow: column;
}
.step__heading {
  font-weight: 500;
  font-size: 1.25rem;
  margin: 0;
}
.step__heading > span {
  font-size: 0.875rem;
  color: #6b7280;
}
.step__travel-mode {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 72px;
}
.step__travel-mode::before {
  position: absolute;
  width: calc(50% - 2px);
  left: 0;
  height: 100%;
  content: "";
}
.step__travel-mode--dotted::before {
  border-right: 4px dotted #bfdbfe;
}
.step__travel-mode--solid::before {
  border-right: 4px solid #bfdbfe;
}
.step__travel-mode-icon {
  position: absolute; /* To ensure it is placed above dots */
  left: 50%;
  top: 24px; /* Halfway down uncollapsed (72px) */
  transform: translateX(-50%);
  /* solid background and padding to hide the dots */
  background-color: #fcfcfc;
  padding: 3px;
  border-radius: 4px;
}
.step__travel-mode-icon mi-icon {
  width: 16px;
  height: 16px;
  background-color: #6b7280;
  display: block;
}
.step__short-name {
  margin-right: 4px;
  padding: 2px 4px;
  font-size: 0.875rem;
  color: #fcfcfc;
  background-color: #6b7280;
  border-radius: 2px;
}
.step__distance-duration {
  color: #6b7280;
  font-size: 0.875rem;
}
.step__transit-action {
  font-weight: 400;
  font-size: 0.875rem;
  color: #6b7280;
}
.step__toggle {
  display: grid;
  justify-content: center;
}
.step__toggle mi-icon {
  width: 24px;
  height: 24px;
  display: block;
}
.step__details {
  display: grid;
  gap: 24px;
  width: 100%;
}