.timeline {
    margin: 20px 0;
    padding: 0;
    border-top: 1px solid #a5a5a5;
    list-style: none;
}

.timeline__step {
    float: left;
    width: 25%;
    padding-top: 30px;
    position: relative;
}

.timeline__step:first-of-type:before,
.timeline__step:last-of-type:before {
    content: "";
    width: 50%;
    height: 100%;
    background: #fff;
    position: absolute;
    top: -2px;
    left: 0;
}

.timeline__step:last-of-type:before {
    left: 50%;
}

.timeline__step:hover .timeline__step-label {
    opacity: 1;
    -webkit-transform: rotate(0deg);
    height: auto;
    padding: 5px 10px;
    font-size: 12px;
    border-width: 1px;
    bottom: 100%;
}

.timeline__step:hover .timeline__step-label:before,
.timeline__step:hover .timeline__step-label:after {
    display: block;
}

.timeline__step-label {
    opacity: 0;
    height: 0;
    padding: 0;
    font-size: 0;
    border-width: 0;
    -webkit-transform: rotate(30deg);
    width: 110px;
    margin: 0 0 45px -55px;
    border-style: solid;
    border-color: #428bca;
    background: #fff;
    font-weight: normal;
    position: absolute;
    left: 50%;
    bottom: 0;
    transition: bottom 0.1s ease-in-out, opacity 0.1s ease-in-out, -webkit-transform 0.1s ease-in-out;
}

.timeline__step-label:before,
.timeline__step-label:after {
    display: none;
    content: "";
    width: 0;
    height: 0;
    border: solid transparent;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 50%;
}

.timeline__step-label:before {
    border-top-color: #428bca;
    border-width: 8px;
    margin-left: -8px;
}

.timeline__step-label:after {
    border-top-color: #fff;
    border-width: 6px;
    margin-left: -6px;
}

.timeline__step-content {
    display: block;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.timeline__step-title {
    display: block;
    width: 100%;
    padding: 35px 0 0;
    font-size: 18px;
    font-weight: bold;
    color: #a5a5a5;
    text-align: center;
    position: absolute;
    top: 0;
}

.timeline__step-marker {
    width: 50px;
    height: 50px;
    margin-left: -25px;
    background: #fff;
    border: 4px solid #a5a5a5;
    border-radius: 50%;
    box-shadow: 0 0 0 10px #fff;
    text-align: center;
    line-height: 45px;
    color: #a5a5a5;
    font-size: 24px;
    font-style: normal;
    position: absolute;
    top: -26px;
    left: 50%;
}

.done .timeline__step-marker {
    background: #2a9d8e;
    border: 4px solid #2a9d8e;
    color: #fff;
}

.done .timeline__step-title {
    color: #2a9d8e;
}

.timeline__step-radio {
    display: none;
    /**
     * not needed for now,
     * because markers won't be clicked in horz version
     */
}

.timeline--summary {
    border-width: 2px;
}

.timeline--summary .timeline__step-label {
    margin-bottom: 19px;
}

.timeline--summary .timeline__step-title {
    padding: 10px 0 0;
    font-size: 8px;
    font-weight: bold;
}

.timeline--summary .timeline__step-marker {
    width: 12px;
    height: 12px;
    margin-left: -6px;
    border-width: 3px;
    text-indent: -999em;
    box-shadow: 0 0 0 3px #fff;
    top: -7px;
}