/***********************************************
 * VendingWeb Stepper
 ***********************************************/

/* Container margin */
nav[vw-type=stepper] {
    margin: 1rem 4rem 0 0;
}

/* List base styles */
nav[vw-type=stepper] ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column; /* vertical by default */
}

/* Each step item */
nav[vw-type=stepper] li {
    position: relative;
    display: flex;
    align-items: center;
    padding-bottom: 40px; /* add space for the vertical line */
}

/* Step number styles */
nav[vw-type=stepper] li span.step-number {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1B84FF;
    width: 40px;
    height: 40px;
    border-radius: 8.125px;
    background-color: #E9F3FF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    z-index: 1; /* make sure it's above the line */
}

/* Active step number */
nav[vw-type=stepper] li.active span.step-number {
    color: white;
    background-color: #1B84FF;
}

/* Step label */
nav[vw-type=stepper] li span.step-label {
    color: #252F4A;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 40px;
}

/* Vertical line between steps (default) */
nav[vw-type=stepper] li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 20px;           /* center under step number */
    top: 40px;            /* exactly below the 40px tall circle */
    width: 0;             /* no width because border-left draws the line */
    height: calc(100% - 40px);
    border-left: 1px dashed #DBDFE9;
    z-index: 0;
}

/***********************************************
 * VendingWeb Stepper (Horizontal Orientation)
 ***********************************************/

/* Horizontal orientation styles */
nav[vw-type=stepper][vw-orientation=horizontal] {
    margin: 0;
}

nav[vw-type=stepper][vw-orientation=horizontal] ul {
    flex-direction: row;
    justify-content: space-around;
}

/* Horizontal li style */
nav[vw-type=stepper][vw-orientation=horizontal] li {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 0;
    position: relative;
}

nav[vw-type=stepper][vw-orientation=horizontal] li::after {
    content: none;
}

nav[vw-type=stepper][vw-orientation=horizontal] li span.step-number {
    margin: 0;
}

/***********************************************
 * VendingWeb Side Stepper
 ***********************************************/

 nav[vw-type=side-stepper] {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    background: #fff;
    box-shadow: 0px 0px 11px -3px #acacac;
}

nav[vw-type=side-stepper] > ul {
    margin: 5px 0;
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column; /* = vertical */
}

nav[vw-type=side-stepper] > ul > li {
    padding: 1rem;
    display: flex;
    flex-direction: column; /* = vertical */
    border-bottom: 1px solid #e9e9e9;
}

nav[vw-type=side-stepper] > ul > li > label {
    margin: 0.5rem;
    color: #7E8299;
    font-family: Poppins, Helvetica, sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    text-align: center;
}

nav[vw-type=side-stepper] > ul > li > figure {
    margin: 0.5rem;
    padding: 0;
    margin: 0;
}

nav[vw-type=side-stepper] > ul > li > figure > svg {
    display: block;
    margin: 1rem auto;
    width: 48px;
    height: 48px;
}

nav[vw-type=side-stepper] > ul > li.active {
    background: #3699ff;
}

nav[vw-type=side-stepper] > ul > li.active > label {
    color: #fff;
}

nav[vw-type=side-stepper] > ul > li.completed > label {
    color: #3699ff;
}
