.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.timeline__item {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: row;
    width: 100%;
    padding-block: 6px;
}

.timeline__item:first-child {
    padding-top: 0;
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline__item::before {
    content: '';
    width: 1px;
    background-color: var(--zm-bg-surface);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline__item:first-child::before {
    top: 50%;
}

.timeline__item:last-child::before {
    bottom: 50%;
}

.timeline__card {
    order: 0;
    flex-grow: 1;
    flex-basis: 50%;
    max-width: 50%;
    border-radius: 16px;
    color: var(--zm-surface-text-color);
    background-color: var(--zm-bg-surface);
}

.timeline__card-inner {
    padding: 24px;
}

.timeline__point {
    order: 1;
    display: inline-flex;
    flex-basis: 24px;
    max-width: 24px;
    height: 24px;
    flex-shrink: 0;
    flex-grow: 0;
    background-color: var(--zm-bg-surface);
    border-radius: 50%;
    margin-inline: 24px;
}

.timeline__placeholder-column {
    flex-grow: 1;
    flex-basis: 50%;
    max-width: 50%;
    height: 100%;
    order: 2;
}


@media (max-width: 767px) {
    .timeline__item:nth-child(even) {
        flex-direction: row;
    }

    .timeline__point {
        order: 0;
        margin-left: 0;
    }

    .timeline__card {
        order: 1;
        flex-basis: 100%;
        max-width: 100%;
        border-radius: 12px;
    }

    .timeline__placeholder-column {
        display: none;
    }

    .timeline__item::before {
        left: 12px;
    }
}