/* =========================================================
   21. BY RAIL
========================================================= */

.shiftify-service .rail-visual {
    padding-top: 20px;
}

.shiftify-service .rail-track {
    width: 270px;
    height: 120px;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
}

.shiftify-service .rail-line {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 27px;
    height: 6px;
    border-top: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    background:
        repeating-linear-gradient(90deg,
            transparent 0 20px,
            #94a3b8 20px 25px);
}

.shiftify-service .rail-train {
    width: 145px;
    height: 47px;
    position: absolute;
    left: 50%;
    bottom: 39px;
    display: flex;
    gap: 4px;
    transform: translateX(-50%);
}

.shiftify-service .rail-train span {
    flex: 1;
    border-radius: 5px 5px 2px 2px;
    background: #475569;
    border: 2px solid #334155;
}

.shiftify-service .rail-train span:first-child {
    background: #ff5a1f;
}

.shiftify-service .rail-train span::after {
    content: "";
    display: block;
    width: 17px;
    height: 12px;
    margin: 7px auto;
    border-radius: 2px;
    background: #dbeafe;
}

.shiftify-service .rail-train {
    animation: railTrainMove 3s ease-in-out infinite;
}

@keyframes railTrainMove {

    0%,
    100% {
        transform: translateX(-70%);
    }

    50% {
        transform: translateX(-30%);
    }
}

.shiftify-service .rail-stations {
    width: 250px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
}

.shiftify-service .rail-stations span {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    border-radius: 50%;
    background: #ff5a1f;
}

.shiftify-service .rail-stations span:last-child {
    background: #16a34a;
}

.shiftify-service .rail-stations div {
    height: 3px;
    flex: 1;
    background: #cbd5e1;
    position: relative;
}

.shiftify-service .rail-stations div::after {
    content: "◆";
    position: absolute;
    left: 50%;
    top: 50%;
    color: #ff5a1f;
    font-size: 9px;
    transform: translate(-50%, -50%);
}

.shiftify-service .rail-transit {
    width: 90px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #f8fafc;
    color: #ff5a1f;
}

.shiftify-service .rail-transit__train {
    white-space: nowrap;
    font-size: 16px;
    animation: railTransit 2s ease-in-out infinite;
}

@keyframes railTransit {

    0%,
    100% {
        transform: translateX(-7px);
    }

    50% {
        transform: translateX(7px);
    }
}