.est-timeline {
    --est-gap: 14px;
    --est-line-color: #222;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.est-step-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.est-step-media {
    position: relative;
    z-index: 2;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 50%;
    background: #26B6D7;
    color: #fff;
    font-size: 17px;
    line-height: 1;
    text-align: center;
    overflow: hidden;
}

.est-step-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.est-step-media i {
    line-height: 1;
}

.est-step-media svg {
    display: block;
    width: 1em;
    height: 1em;
}

.est-step-content {
    min-width: 0;
    flex: 1 1 auto;
    padding-left: calc(52px + var(--est-gap));
    box-sizing: border-box;
}

.est-step-title {
    margin: 0 0 8px;
    padding: 0;
    color: #111;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.est-step-description,
.est-step-description p {
    margin: 0;
    padding: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.65;
}

.est-step-description p:not(:last-child) {
    margin-bottom: 10px;
}

.est-step-description ul,
.est-step-description ol {
    margin-top: 0;
    margin-bottom: 10px;
}

.est-step-item:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 26px;
    top: 52px;
    bottom: 0;
    border-left: 2px dashed var(--est-line-color);
    transform: translateX(-50%);
    pointer-events: none;
}

.est-timeline:not(.est-has-connector) .est-step-item::after {
    display: none;
}

.est-timeline[data-connector-style="solid"] .est-step-item:not(:last-child)::after {
    border-left-style: solid;
}

.est-timeline[data-connector-style="dotted"] .est-step-item:not(:last-child)::after {
    border-left-style: dotted;
}

@media (max-width: 767px) {
    .est-step-content {
        padding-left: calc(42px + var(--est-gap));
    }

    .est-step-item:not(:last-child)::after {
        left: 21px;
    }
}


/* Horizontal layout: numbered process steps in one row. Vertical remains the default. */
.est-timeline.est-layout-horizontal {
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 8px;
    scrollbar-width: thin;
}

.est-timeline.est-layout-horizontal .est-step-item {
    display: flex;
    flex: 1 0 0;
    flex-direction: column;
    align-items: flex-start;
    width: auto;
    min-width: 150px;
    padding: 0 14px 0 0;
}

.est-timeline.est-layout-horizontal .est-step-media {
    flex: 0 0 36px;
    width: 36px;
    min-width: 36px;
    height: 36px;
    margin: 0 0 30px;
    font-size: 17px;
}

.est-timeline.est-layout-horizontal .est-step-content {
    flex: 1 1 auto;
    width: 100%;
    padding-left: 0;
    min-width: 0;
}

.est-timeline.est-layout-horizontal .est-step-title {
    margin: 0 0 8px;
}

.est-timeline.est-layout-horizontal .est-step-item:not(:last-child)::after {
    left: 36px;
    top: 18px;
    bottom: auto;
    width: calc(100% - 36px);
    height: 0;
    border-left: 0;
    border-top: 2px dashed var(--est-line-color);
    transform: none;
}

.est-timeline.est-layout-horizontal[data-connector-style="solid"] .est-step-item:not(:last-child)::after {
    border-top-style: solid;
}

.est-timeline.est-layout-horizontal[data-connector-style="dotted"] .est-step-item:not(:last-child)::after {
    border-top-style: dotted;
}

.est-timeline.est-layout-horizontal:not(.est-has-connector) .est-step-item::after {
    display: none;
}

@media (max-width: 767px) {
    .est-timeline.est-layout-horizontal .est-step-item {
        flex: 0 0 180px;
        min-width: 180px;
    }

    .est-timeline.est-layout-horizontal .est-step-content {
        padding-left: 0;
    }
}
