﻿.progressbar {
}

    .progressbar li {
        list-style-type: none;
        position: relative;
        color: var(--default-200);
    }

        .progressbar li:before {
            color: var(--default-200);
            display: flex;
            justify-content: center;
            align-items: center;
            width: 48px;
            height: 48px;
            background: var(--default-000);
            border: 1px solid var(--default-200);
            border-radius: 50%;
            margin: auto;
            margin-bottom: .75rem;
            padding: 0px;
            overflow: hidden;
            font-size: 1.5rem;
        }


        /*ProgressBar connectors*/
        .progressbar li:after {
            content: '';
            width: 100%;
            height: 4px;
            background: var(--default-200);
            position: absolute;
            right: 0;
            top: 23px;
            z-index: -1;
        }

        .progressbar li#cart_progress_step_first a,
        .progressbar li#cart_progress_step_first span {
            margin-right: 50px;
        }

        .progressbar li#cart_progress_step_first:before {
            margin-right: 50%;
        }

        .progressbar li#cart_progress_step_last a,
        .progressbar li#cart_progress_step_last span {
            margin-left: 50px;
        }

        .progressbar li#cart_progress_step_last:before {
            margin-left: 50%;
        }

        .progressbar li:last-child:after {
            border-top-left-radius: 10px;
            border-bottom-left-radius: 10px;
            position: absolute;
            right: calc(-50% - 20px);
            width: 150%;
        }

        .progressbar li:nth-child(2):after {
            width: calc(100% - 16px);
            right: calc(-50% + 16px);
        }

        .progressbar li:nth-child(3):after {
            width: calc(100% - 16px);
            right: calc(-50% + 16px);
        }

        .progressbar li:nth-child(4):after {
            width: calc(100% - 16px);
            right: calc(-50% + 16px);
        }

        .progressbar li:first-child:after {
            display: none;
            border-top-right-radius: 10px;
            border-bottom-right-radius: 10px;
            position: absolute;
            right: 20px;
        }

        .progressbar li:last-child:after {
            border-top-left-radius: 10px;
            border-bottom-left-radius: 10px;
        }

        .progressbar li.active {
            color: var(--default-1000);
        }

            .progressbar li.active:before, .progressbar li.active:after {
                background: var(--secondary-500);
                border-color: var(--secondary-500);
                color: var(--default-000);
            }

        .progressbar li:nth-child(1):before {
            /*content: "۱";*/
            content: "\f290";
            font-family: "Font Awesome 6 Pro";
            font-weight: 400;
        }

        .progressbar li:nth-child(2):before {
            /*content: "۲";*/
            content: "\f3c5";
            font-family: "Font Awesome 6 Pro";
            font-weight: 400;
        }

        .progressbar li:nth-child(3):before {
            /*content: "۳";*/
            content: "\f09d";
            font-family: "Font Awesome 6 Pro";
            font-weight: 400;
        }

        .progressbar li:nth-child(4):before {
            /*content: "۴";*/
            content: "\f058";
            font-family: "Font Awesome 6 Pro";
            font-weight: 400;
        }


/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .progressbar li:before {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .progressbar li:after {
        top: 15px;
    }

    .progressbar li#cart_progress_step_first a,
    .progressbar li#cart_progress_step_first span {
        margin-right: 30px;
    }

    .progressbar li#cart_progress_step_last a,
    .progressbar li#cart_progress_step_last span {
        margin-left: 30px;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
}

/* X-Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
}
