/* TIME LINE */
.timeline-trail {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: #fff;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
}

.timeline {
  position: relative;
  margin: 0 auto 60px;
  padding-bottom: 100px;
  border-bottom: 1px solid #fff;
}

.timeline-line {
  position: absolute;
  top: 16%;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: var(--color-mid-grey);
  z-index: 0;
  max-height: 55%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}

.timeline-line-fill {
  background-color: var(--color-dark-blue);
  max-height: 100%;
}

.timeline-item {
  position: relative;
}

.timeline .step-number {
  width: 80px;
  height: 80px;
  text-align: center;
  background-color: var(--dark-grey);
  color: var(--grey);
  border-radius: 50%;
  font-size: 35px;
  font-weight: 700;
  padding: 15px;
  top: 45%;
  left: 50%;
  position: absolute;
  transition: 0.35s ease all;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
}

.timeline-item.active .step-number,
.timeline-item[inview="1"] .step-number {
  background-color: var(--color-dark-blue);
  color: #fff;
}

.timeline .step-image,
.timeline .step-info {
  width: 42%;
}

.timeline .step-info {
  align-self: center;
}

.timeline-item:nth-child(2n + 2) .step-image {
  order: 2;
}

.timeline-item:nth-child(2n + 2) .step-info {
  order: 1;
  text-align: right;
  padding: 25px 0 0;
}

.timeline-item:nth-child(2n + 2) .step-info p {
  margin-left: auto;
}

.timeline .step-info span {
  text-transform: uppercase;
  font-size: 14px;
  display: block;
  font-weight: 500;
  letter-spacing: 1px;
}

.timeline .step-info h2 {
  font-size: 25px;
}

.timeline .step-info p,
.timeline .step-info ol {
  max-width: 385px;
}

.timeline .step-info em {
  font-size: 10px;
  display: block;
  font-weight: 200;
}

/* STEPS */
.steps {
  max-width: 1115px;
  margin: 42px auto;
}

.steps.flex {
  flex-wrap: inherit;
  gap: 30px;
}

/*.steps .step {
  width: 30%;
}*/

.steps .step {
  min-width: 240px;
  max-width: 350px;
}

.steps .step-number {
  width: 100px;
  height: 100px;
  text-align: center;
  border-radius: 50%;
  font-size: 45px;
  font-weight: 700;
  padding: 18px;
  color: #fff;
}

.steps .step:nth-child(1) .step-number {
  background-color: #00aeef;
}

.steps .step:nth-child(2) .step-number {
  background-color: #ffbf3b;
}

.steps .step:nth-child(3) .step-number {
  background-color: #f78257;
}

.steps .step-info {
  width: calc(100% - 100px);
  padding-left: 25px;
  padding-top: 15px;
}

.steps .step-info h2 {
  margin: 0;
  text-transform: none;
  line-height: 1em;
}

.steps .step-info > span {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  display: block;
  font-weight: 500;
}

.steps .step em {
  font-size: 13px;
  font-weight: 300;
  display: block;
}

body.term-groceries .steps .step-info h2 span:nth-child(2), 
body.term-groceries .steps .step-info h2 span:nth-child(3) {
  display: none;
}

body.term-special-deals .steps .step-info h2 span:nth-child(1), 
body.term-special-deals .steps .step-info h2 span:nth-child(2) {
  display: none;
}

.how-it-works-outro.max-width {
  margin-top: -50px;
}

/*Responsive*/
@media (max-width: 1150px) {
  .steps.guest-steps {
    margin: 42px auto 85px;
  }
  .guest-steps .guest-learn-more.button {
    position: absolute;
    bottom: -65px;
    left: 0;
    right: 0;
    max-width: 143px;
    margin: 0 auto;
  }
  .steps.guest-steps .step:nth-child(3) {
    min-width: unset;
  }
}
@media (max-width: 950px) {
  .steps .step-number {
    width: 70px;
    height: 70px;
    font-size: 35px;
    padding: 11px;
  }
  .steps .step-info {
    width: calc(100% - 70px);
    padding-left: 17px;
    padding-top: 5px;
  }
  .role-not-logged-in .steps .step-number {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
  .role-not-logged-in .steps .step-info {
    width: calc(100% - 60px);
    padding-left: 15px;
  }
  .steps .step-info h2 {
    font-size: 20px;
  }
}
@media (max-width: 767px) {
  .steps {
    max-width: 280px;
  }
  .steps.flex {
    flex-wrap: wrap !important;
  }
  .steps.guest-steps {
    max-width: 260px;
  }
  .steps .step {
    width: 100%;
    margin: 10px 0;
  }
  .contact-info {
    width: 100%;
    margin-bottom: 10px;
  }
  .contact-form {
    width: 100%;
  }
  .timeline-line,
  .timeline .step-number {
    display: none;
  }
  .timeline .step-image,
  .timeline .step-info {
    width: 47%;
  }
  .timeline-item:nth-child(2n + 2) {
    padding: 35px 0;
  }
  .timeline-item:nth-child(2n + 2) .step-info {
    padding: 10px 0 0;
  }
}
@media (max-width: 640px) {
  .timeline .step-image,
  .timeline .step-info {
    width: 100%;
  }
  .timeline .step-info {
    margin-top: 30px;
    text-align: center;
  }
  .timeline .step-info p,
  .timeline .step-info ol {
    margin-left: auto;
    margin-right: auto;
  }
  .timeline-item:nth-child(2n + 2) .step-image {
    order: 1;
  }
  .timeline-item:nth-child(2n + 2) .step-info {
    order: 2;
    text-align: center;
    padding: 0;
  }
  .timeline-item {
    padding: 15px 0 !important;
  }
  .timeline .step-info ol {
    list-style-position: inside;
  }
}