/* Booking progress steps (Views/Partials/Journey/_JourneyProgress.cshtml, and ProductPage.cshtml's
   Vue copy of the same markup). Values from the customise-holiday preview's .cp-progress:
   36px numbered circles joined by a 2px line, 13px Lato labels under each circle, the current
   step filled teal. Finished steps: the same filled teal circle, joined by a teal line. */
.cp-progress {
  margin: 0;
  color: #3c4e5a;
  font-family: Lato, "Segoe UI", sans-serif;
}

.cp-progress ol {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cp-progress li {
  position: relative;
  flex: 1 1 0%;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Line to the next step, from this circle's right edge to the next circle. */
.cp-progress li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 34px;
  right: 0;
  height: 2px;
  background: #d8e0e0;
}

.cp-progress li.is-done:not(:last-child)::after {
  background: #218887;
}

.cp-progress li > span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-right: 8px;
  color: #707070;
  font: 400 13px/1.3 Lato, "Segoe UI", sans-serif;
  text-align: left;
}

.cp-progress__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d8e0e0;
  border-radius: 50%;
  background: #fff;
  color: #3c4e5a;
  font: 700 13px/1 Lato, "Segoe UI", sans-serif;
}

.cp-progress__dot svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Current and finished steps look the same: filled teal circle, teal bold label. */
.cp-progress li:is(.is-current, .is-done) > span {
  color: #218887;
  font-weight: 700;
}

.cp-progress li:is(.is-current, .is-done) .cp-progress__dot {
  border-color: #218887;
  background: #218887;
  color: #fff;
}

/* Phones: smaller circles/labels so five steps fit at 360px. */
@media (max-width: 575px) {
  .cp-progress li:not(:last-child)::after {
    top: 14px;
    left: 28px;
  }

  .cp-progress li > span {
    gap: 6px;
    padding-right: 4px;
    font-size: 11px;
  }

  .cp-progress__dot {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .cp-progress__dot svg {
    width: 15px;
    height: 15px;
  }
}

/* Wrapper used on the basket and confirmation pages (the product page puts it in its header). */
.cp-progress-wrap {
  padding: 20px 0 4px;
}
