.rfef-timeline-widget {
  overflow: hidden;
}

.rfef-timeline-widget .rfef-timeline {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
}

.rfef-timeline-widget .rfef-timeline::-webkit-scrollbar {
  display: none;
}

.rfef-timeline-widget .rfef-timeline-track {
  position: relative;
  width: 2120px;
  min-width: 2120px;
  height: 460px;
  padding: 0;
  --line-progress: 0px;
  --rfef-icon-size: 40px;
  --rfef-icon-bottom: 135px;
  --rfef-connector-bottom: calc(var(--rfef-icon-bottom) + (var(--rfef-icon-size) / 2));
  --rfef-month-distance: 45px;
  isolation: isolate;
}

.rfef-timeline-widget .rfef-timeline-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: auto;
  bottom: var(--rfef-connector-bottom);
  height: 1px;
  background: #002244;
  z-index: 0;
  pointer-events: none;
}

.rfef-timeline-widget .rfef-timeline-progress {
  position: absolute;
  left: 0;
  top: auto;
  bottom: var(--rfef-connector-bottom);
  width: var(--line-progress);
  height: 1px;
  background: #E4002B;
  z-index: 0;
  pointer-events: none;
}

.rfef-timeline-widget .rfef-item {
  position: absolute;
  left: var(--x);
  top: 0;
  width: 150px;
  height: 100%;
  text-align: center;
  transform: translateX(-50%);
  z-index: 10;
}

.rfef-timeline-widget .rfef-title {
  position: absolute;
  bottom: calc(var(--rfef-connector-bottom) + var(--h));
  left: 50%;
  transform: translateX(-50%);
  color: #002244;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.5em;
  white-space: nowrap;
}

.rfef-timeline-widget .rfef-connector {
  position: absolute;
  left: 50%;
  bottom: var(--rfef-connector-bottom);
  width: 1px;
  height: var(--h);
  background: #002244;
  transform: translateX(-50%);
  z-index: 11;
}

.rfef-timeline-widget .rfef-icon {
  position: absolute;
  left: 50%;
  bottom: var(--rfef-icon-bottom);
  width: var(--rfef-icon-size);
  height: var(--rfef-icon-size);
  border-radius: 50%;
  background: #E4002B;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  overflow: hidden;
}

.rfef-timeline-widget .rfef-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  z-index: 0;
}

.rfef-timeline-widget .rfef-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

.rfef-timeline-widget .rfef-month {
  position: absolute;
  top: calc(100% - var(--rfef-connector-bottom) + var(--rfef-month-distance));
  left: calc(50% + var(--month-offset));
  transform: translateX(-50%);
  color: #9B9BA1;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.42em;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .rfef-timeline-widget .rfef-timeline-track {
    --rfef-icon-bottom: 135px;
  }

  .rfef-timeline-widget .rfef-item {
    left: var(--x-tablet);
  }

  .rfef-timeline-widget .rfef-title {
    bottom: calc(var(--rfef-connector-bottom) + var(--h-tablet));
  }

  .rfef-timeline-widget .rfef-connector {
    height: var(--h-tablet);
  }

  .rfef-timeline-widget .rfef-month {
    left: calc(50% + var(--month-offset-tablet));
  }
}

@media (max-width: 767px) {
  .rfef-timeline-widget .rfef-timeline-track {
    --rfef-icon-bottom: 105px;
  }

  .rfef-timeline-widget .rfef-item {
    left: var(--x-mobile);
  }

  .rfef-timeline-widget .rfef-title {
    bottom: calc(var(--rfef-connector-bottom) + var(--h-mobile));
  }

  .rfef-timeline-widget .rfef-connector {
    height: var(--h-mobile);
  }

  .rfef-timeline-widget .rfef-month {
    left: calc(50% + var(--month-offset-mobile));
  }
}
