.wp-block-saldo-timeline {
  --timeline-line-color: var(--timeline-brand-line-color, var(--color-primary));
  --timeline-icon-color: var(--timeline-brand-icon-color, var(--timeline-line-color));
  --timeline-title-color: var(--timeline-brand-title-color, var(--timeline-line-color));
  --timeline-line-width: 2px;
  --timeline-border-width: 2px;
  --timeline-corner-radius: 16px;
  --timeline-dot-size: 12px;
  padding-top: 86px;
  padding-bottom: 94px;
}

.wp-block-saldo-timeline .timeline-block__shell {
  display: grid;
  justify-items: center;
}

.wp-block-saldo-timeline .timeline-block__items {
  width: 100%;
  max-width: 980px;
}

.wp-block-saldo-timeline .timeline-block__item {
  position: relative;
}

.wp-block-saldo-timeline .timeline-block__body {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 36px 0 28px;
}

.wp-block-saldo-timeline .timeline-block__item--reversed .timeline-block__body {
  grid-template-columns: minmax(0, 1fr) 56px;
}

.wp-block-saldo-timeline .timeline-block__body::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: var(--timeline-line-width);
  background: var(--timeline-line-color);
}

.wp-block-saldo-timeline .timeline-block__item--reversed .timeline-block__body::before {
  left: auto;
  right: 28px;
}

.wp-block-saldo-timeline .timeline-block__items > .timeline-block__item:first-child::before,
.wp-block-saldo-timeline .timeline-block__items > .timeline-block__item:last-of-type::before {
  content: "";
  position: absolute;
  width: var(--timeline-dot-size);
  height: var(--timeline-dot-size);
  border-radius: 50%;
  background: var(--timeline-line-color);
  left: 23px;
  z-index: 10;
}

.wp-block-saldo-timeline .timeline-block__items > .timeline-block__item:first-child::before {
  top: -12px;
}

.wp-block-saldo-timeline .timeline-block__items > .timeline-block__item:last-of-type::before {
  bottom: calc(var(--timeline-corner-radius) + var(--timeline-dot-size));
}

.wp-block-saldo-timeline .timeline-block__shell:not(.timeline-block__shell--with-cta) .timeline-block__items > .timeline-block__item:last-of-type::before {
  bottom: calc(var(--timeline-dot-size) * -1);
}

.wp-block-saldo-timeline .timeline-block__shell--with-cta .timeline-block__items > .timeline-block__item:last-of-type::after {
  content: "";
  position: absolute;
  width: var(--timeline-dot-size);
  height: var(--timeline-dot-size);
  left: calc(50% - var(--timeline-dot-size) / 2);
  bottom: calc(var(--timeline-dot-size) * -0.5 + 1px);
  border-right: var(--timeline-border-width) solid var(--timeline-line-color);
  border-bottom: var(--timeline-border-width) solid var(--timeline-line-color);
  transform: rotate(45deg);
}

.wp-block-saldo-timeline .timeline-block__shell:not(.timeline-block__shell--with-cta) .timeline-block__items > .timeline-block__item:last-of-type::after {
  content: none;
}

.wp-block-saldo-timeline .timeline-block__items > .timeline-block__item:first-child.timeline-block__item--reversed::before,
.wp-block-saldo-timeline .timeline-block__items > .timeline-block__item:last-of-type.timeline-block__item--reversed::before {
  left: auto;
  right: 23px;
}

.wp-block-saldo-timeline .timeline-block__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-top: -10px;
  border: 2px solid var(--timeline-icon-color);
  border-radius: var(--radius-small, 2px);
  background: #fff;
  color: var(--timeline-icon-color);
  transform: rotate(45deg);
}

.wp-block-saldo-timeline .timeline-block__icon svg {
  width: 24px;
  height: 24px;
  transform: rotate(-45deg);
}

.wp-block-saldo-timeline .timeline-block__item--reversed .timeline-block__icon {
  grid-column: 2;
  grid-row: 1;
}

.wp-block-saldo-timeline .timeline-block__content {
  width: 640px;
  max-width: 100%;
  padding-right: 64px;
}

.wp-block-saldo-timeline .timeline-block__item--reversed .timeline-block__content {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  text-align: right;
  padding-left: 64px;
  padding-right: 0;
}

.wp-block-saldo-timeline .timeline-block__title {
  margin: 0 0 10px;
  color: var(--timeline-title-color);
  font-family: var(--wp--preset--font-family--heading);
  font-size: 27px;
  line-height: 36px;
  font-weight: 500;
}

.wp-block-saldo-timeline .timeline-block__text {
  color: rgba(0, 0, 0, 0.62);
  font-size: 18px;
  line-height: 27px;
}

.wp-block-saldo-timeline .timeline-block__text > * {
  margin-top: 0;
  margin-bottom: 0;
}

.wp-block-saldo-timeline .timeline-block__text > * + * {
  margin-top: 10px;
}

.wp-block-saldo-timeline .timeline-block__line {
  position: relative;
  height: 38px;
  margin: 0 44px;
}

.wp-block-saldo-timeline .timeline-block__line__text {
  display: grid;
  align-items: center;
  justify-items: center;
  width: 100%;
  height: 38px;
}

.wp-block-saldo-timeline .timeline-block__line__text .text-caption {
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 0 0 0 var(--timeline-border-width) var(--timeline-line-color);
  color: var(--timeline-line-color);
  font-size: 13.5px;
  line-height: 22.5px;
  padding: 4px 12px;
  z-index: 2;
}

.wp-block-saldo-timeline .timeline-block__line--solid-horizontal,
.wp-block-saldo-timeline .timeline-block__line--dashed-horizontal {
  position: absolute;
  top: 0;
  left: 0;
  height: 16px;
}

.wp-block-saldo-timeline .timeline-block__line--solid-horizontal {
  right: 0;
  border-bottom: 2px solid var(--timeline-line-color);
}

.wp-block-saldo-timeline .timeline-block__line--dashed-horizontal {
  width: 48%;
  height: var(--timeline-border-width);
  top: 15px;
  background-image: repeating-linear-gradient(
    to right,
    var(--timeline-line-color) 0 6px,
    transparent 6px 10px
  );
  background-repeat: repeat-x;
  background-size: 10px var(--timeline-border-width);
  background-position: left center;
}

.wp-block-saldo-timeline .timeline-block__line--solid-corner-ltr::before,
.wp-block-saldo-timeline .timeline-block__line--solid-corner-ltr::after,
.wp-block-saldo-timeline .timeline-block__line--solid-corner-rtl::before,
.wp-block-saldo-timeline .timeline-block__line--solid-corner-rtl::after,
.wp-block-saldo-timeline .timeline-block__line--dashed-corner-ltr::before,
.wp-block-saldo-timeline .timeline-block__line--dashed-corner-ltr::after,
.wp-block-saldo-timeline .timeline-block__line--dashed-corner-rtl::before,
.wp-block-saldo-timeline .timeline-block__line--dashed-corner-rtl::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
}

.wp-block-saldo-timeline .timeline-block__line--solid-corner-ltr::before {
  left: -16px;
  top: 0;
  border-left: 2px solid var(--timeline-line-color);
  border-bottom: 2px solid var(--timeline-line-color);
  border-radius: 0 0 0 16px;
}

.wp-block-saldo-timeline .timeline-block__line--solid-corner-ltr::after {
  right: -16px;
  top: 15px;
  height: 23px;
  border-top: 2px solid var(--timeline-line-color);
  border-right: 2px solid var(--timeline-line-color);
  border-radius: 0 16px 0 0;
}

.wp-block-saldo-timeline .timeline-block__line--solid-corner-rtl::before {
  left: -16px;
  top: 15px;
  height: 23px;
  border-top: 2px solid var(--timeline-line-color);
  border-left: 2px solid var(--timeline-line-color);
  border-radius: 16px 0 0 0;
}

.wp-block-saldo-timeline .timeline-block__line--solid-corner-rtl::after {
  right: -16px;
  top: 0;
  border-right: 2px solid var(--timeline-line-color);
  border-bottom: 2px solid var(--timeline-line-color);
  border-radius: 0 0 16px 0;
}

.wp-block-saldo-timeline .timeline-block__line--dashed-corner-ltr::before {
  left: -16px;
  top: 0;
  border-left: 2px dashed var(--timeline-line-color);
  border-bottom: 2px dashed var(--timeline-line-color);
  border-radius: 0 0 0 16px;
}

.wp-block-saldo-timeline .timeline-block__line--dashed-corner-ltr::after {
  top: 15px;
  left: 48%;
  border-top: 2px dashed var(--timeline-line-color);
  border-right: 2px dashed var(--timeline-line-color);
  border-radius: 0 16px 0 0;
}

.wp-block-saldo-timeline .timeline-block__line--dashed-corner-rtl::before {
  left: -16px;
  top: 15px;
  border-top: 2px dashed var(--timeline-line-color);
  border-left: 2px dashed var(--timeline-line-color);
  border-radius: 16px 0 0 0;
}

.wp-block-saldo-timeline .timeline-block__line--dashed-corner-rtl::after {
  right: -16px;
  top: 0;
  border-right: 2px dashed var(--timeline-line-color);
  border-bottom: 2px dashed var(--timeline-line-color);
  border-radius: 0 0 16px 0;
}

.wp-block-saldo-timeline .timeline-block__items > .timeline-block__item:last-of-type .timeline-block__line--dashed-corner-ltr::after {
  left: auto;
  right: calc(50% - var(--timeline-border-width) / 2);
  top: calc(var(--timeline-corner-radius) - var(--timeline-border-width) + 1px);
  height: 22px;
  border-top: var(--timeline-border-width) dashed var(--timeline-line-color);
  border-right: var(--timeline-border-width) dashed var(--timeline-line-color);
  border-top-right-radius: var(--timeline-corner-radius);
}

.wp-block-saldo-timeline .timeline-block__items > .timeline-block__item:last-of-type .timeline-block__line--dashed-corner-ltr .timeline-block__line--dashed-horizontal {
  left: 0;
  right: auto;
  width: calc(50% - var(--timeline-corner-radius) - var(--timeline-border-width) + 14px);
}

.wp-block-saldo-timeline .timeline-block__items > .timeline-block__item:last-of-type .timeline-block__line--dashed-corner-rtl::before {
  left: calc(50% - var(--timeline-border-width) / 2);
  top: calc(var(--timeline-corner-radius) - var(--timeline-border-width) + 1px);
  height: 22px;
  border-top: var(--timeline-border-width) dashed var(--timeline-line-color);
  border-left: var(--timeline-border-width) dashed var(--timeline-line-color);
  border-top-left-radius: var(--timeline-corner-radius);
}

.wp-block-saldo-timeline .timeline-block__items > .timeline-block__item:last-of-type .timeline-block__line--dashed-corner-rtl::after {
  left: auto;
  right: -16px;
  top: 0;
  border-right: var(--timeline-border-width) dashed var(--timeline-line-color);
  border-bottom: var(--timeline-border-width) dashed var(--timeline-line-color);
  border-radius: 0 0 var(--timeline-corner-radius) 0;
}

.wp-block-saldo-timeline .timeline-block__items > .timeline-block__item:last-of-type .timeline-block__line--dashed-corner-rtl .timeline-block__line--dashed-horizontal {
  left: auto;
  right: 0;
}

.wp-block-saldo-timeline .timeline-block__shell:not(.timeline-block__shell--with-cta) .timeline-block__items > .timeline-block__item:last-of-type .timeline-block__body {
  padding-bottom: 48px;
}

.wp-block-saldo-timeline .timeline-block__cta {
  display: flex;
  justify-content: center;
  padding-top: 34px;
}

.wp-block-saldo-timeline .timeline-block__cta .btn {
  color: #fff;
}

.wp-block-saldo-timeline .timeline-block__warnings {
  margin-bottom: 12px;
}

.wp-block-saldo-timeline .timeline-block__meta {
  margin: 6px 0 10px;
  color: var(--text-secondary);
}

.wp-block-saldo-timeline .timeline-block__heading-placeholder {
  margin-bottom: 24px;
}

.wp-block-saldo-timeline .timeline-block__heading-input {
  margin: 0;
  color: var(--timeline-line-color);
}

@media (max-width: 959px) {
  .wp-block-saldo-timeline {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

@media (max-width: 767px) {
  .wp-block-saldo-timeline {
    padding-top: 70px;
    padding-bottom: 76px;
  }

  .wp-block-saldo-timeline .timeline-block__body {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 24px;
    padding: 16px 0;
  }

  .wp-block-saldo-timeline .timeline-block__item--reversed .timeline-block__body {
    grid-template-columns: minmax(0, 1fr) 56px;
  }

  .wp-block-saldo-timeline .timeline-block__items > .timeline-block__item:first-child .timeline-block__body {
    padding-top: 48px;
  }

  .wp-block-saldo-timeline .timeline-block__items > .timeline-block__item:last-of-type .timeline-block__body {
    padding-bottom: 48px;
  }

  .wp-block-saldo-timeline .timeline-block__icon {
    width: 56px;
    height: 56px;
    margin-top: -12px;
  }

  .wp-block-saldo-timeline .timeline-block__icon svg {
    width: 24px;
    height: 24px;
  }

  .wp-block-saldo-timeline .timeline-block__content {
    padding-right: 28px;
  }

  .wp-block-saldo-timeline .timeline-block__item--reversed .timeline-block__content {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    text-align: right;
    padding-left: 28px;
    padding-right: 0;
  }

  .wp-block-saldo-timeline .timeline-block__line,
  .wp-block-saldo-timeline .timeline-block__line__text {
    height: 30px;
  }
}
