.ltl {
  background: var(--ltl-bg, #D0EFFB);
  color: var(--ltl-text, #111111);
  border-radius: 18px;
  box-sizing: border-box;
  overflow: hidden;
  font-family: inherit;
}
.ltl, .ltl *, .ltl *::before, .ltl *::after { box-sizing: border-box; }
.ltl-inner { padding: 26px 20px 30px; }
.ltl-heading {
  margin: 0 0 22px;
  color: var(--ltl-primary, #005680);
  font-size: 23px;
  line-height: 1.25;
  font-weight: 700;
}
.ltl-title {
  margin: 0;
  color: var(--ltl-text, #111111);
  font-size: 17px;
  line-height: 1.28;
  font-weight: 700;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
.ltl-desc {
  margin: 6px 0 0;
  color: var(--ltl-text, #111111);
  font-size: 14px;
  line-height: 1.45;
  opacity: .78;
}
.ltl-copy { min-width: 0; }
.ltl-badge {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 19px;
  line-height: 1;
  font-weight: 700;
}
.ltl-icon {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.ltl-icon--placeholder {
  border: 2px dashed rgba(0, 86, 128, .25);
  border-radius: 12px;
}

/*
 * Vertical phone / portrait-tablet mode.
 * One continuous rail is drawn behind the icons. This avoids the very large
 * gaps that could appear while WPBakery was repeatedly resizing a container-query layout.
 */
.ltl-mobile {
  --ltl-mobile-rail: 86px;
  position: relative;
  list-style: none;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0;
}
.ltl-mobile::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 63px;
  bottom: 63px;
  left: calc(var(--ltl-mobile-rail) / 2);
  width: 3px;
  transform: translateX(-50%);
  background-image: linear-gradient(to bottom, var(--ltl-primary, #005680) 0 4px, transparent 4px 9px);
  background-size: 3px 9px;
  background-repeat: repeat-y;
}
.ltl-mobile-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--ltl-mobile-rail) minmax(0, 1fr);
  column-gap: 14px;
  min-height: 126px;
  padding: 8px 0;
}
.ltl-mobile-node {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ltl-mobile-icon-node {
  position: relative;
  z-index: 2;
  display: inline-flex;
  padding: 8px;
  border-radius: 16px;
  background: var(--ltl-bg, #D0EFFB);
}
.ltl-mobile-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 4px;
  text-align: center;
}
.ltl-mobile-content .ltl-copy {
  width: 100%;
  max-width: 280px;
  text-align: center;
}

/* Wide layout is selected from the viewport/orientation instead of the component width.
 * This is more stable inside WPBakery previews and still works when a desktop sidebar
 * leaves only ~550px for the actual timeline component. */
.ltl-wide { display: none; }

@media (min-width: 1200px), (min-width: 768px) and (min-height: 600px) and (orientation: landscape) {
  .ltl-inner { padding: 28px 26px 30px; }
  .ltl-mobile { display: none; }
  .ltl-wide {
    display: grid;
    grid-template-rows: auto 220px auto;
    width: 100%;
    min-height: 0;
    height: auto;
  }
  .ltl-wide-copy-row {
    display: grid;
    grid-template-columns: repeat(100, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
  }
  .ltl-wide-copy-row--top {
    align-items: end;
    padding: 4px 0 12px;
  }
  .ltl-wide-copy-row--bottom {
    align-items: start;
    padding: 12px 0 4px;
  }
  .ltl-wide-stage {
    position: relative;
    width: 100%;
    height: 220px;
    min-height: 220px;
  }
  .ltl-route {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
  }
  .ltl-route path {
    fill: none;
    stroke: var(--ltl-primary, #005680);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 2 7;
  }
  .ltl-wide-head {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    width: 100%;
    align-items: flex-start;
    gap: 12px;
  }
  .ltl-wide-head--compact { align-items: center; }
  .ltl-wide-head .ltl-copy {
    flex: 1 1 auto;
    min-width: 0;
  }
  .ltl-wide-step {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    transform: translateX(-50%);
    pointer-events: none;
  }
  .ltl-wide-icon-node {
    position: absolute;
    left: 50%;
    z-index: 3;
    transform: translateX(-50%);
    display: inline-flex;
    padding: 9px;
    border-radius: 18px;
    background: var(--ltl-bg, #D0EFFB);
  }
  .ltl-wide-step--top .ltl-wide-icon-node { top: 25px; }
  .ltl-wide-step--bottom .ltl-wide-icon-node { top: 135px; }
}

@media (min-width: 1400px) {
  .ltl-inner { padding-left: 32px; padding-right: 32px; }
  .ltl-title { font-size: 18px; }
  .ltl-wide-head { gap: 14px; }
  .ltl-badge {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    font-size: 20px;
  }
  .ltl-icon { width: 62px; height: 62px; }
}

@media (max-width: 479px) {
  .ltl-inner { padding-left: 16px; padding-right: 16px; }
  .ltl-mobile { --ltl-mobile-rail: 76px; }
  .ltl-mobile-step {
    column-gap: 10px;
    min-height: 120px;
  }
  .ltl-icon { width: 52px; height: 52px; }
  .ltl-mobile-icon-node { padding: 7px; }
  .ltl-title { font-size: 16px; }
  .ltl-badge {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 18px;
  }
}
