/* @group Product Map */

.product-map {
    --active-progress: 13rem;
    overflow: hidden;
}

.product-map .section-title {
    max-width: 57.8rem;
    margin: 0 0 3.7rem;
}

.product-map .section-title p {
    margin: 0;
}

.product-map .slider {
    position: relative;
    padding: 3.2rem 2rem 4rem;
    overflow: hidden;
    background: var(--light-gray-1);
    border-radius: 1.6rem;
}

.product-map .slider::before {
    position: absolute;
    right: 2rem;
    bottom: 4.9rem;
    left: 2rem;
    z-index: 1;
    height: .4rem;
    background: var(--light-gray-2);
    border-radius: .5rem;
    content: '';
}

.product-map .slider .splide__track {
    overflow: visible;
    z-index: 2;
}

.product-map .cards {
    align-items: flex-end;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-map .card {
    display: flex;
    width: 18.1rem;
    height: 21rem;
    flex-direction: column;
    align-items: center;
    color: var(--paragraph);
}

.product-map .card-content {
    display: flex;
    width: 100%;
    min-height: 13rem;
    flex-direction: column;
    align-items: center;
    gap: 4.4rem;
    margin-top: 1.7rem;
}

.product-map .icon {
    display: grid;
    width: 5rem;
    height: 5rem;
    flex: 0 0 auto;
    place-items: center;
}

.product-map .icon-image {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
}

.product-map .icon-image.active {
    display: none;
}

.product-map .card.current .icon {
    width: 8.7rem;
    height: 8.7rem;
    border: .2rem solid var(--red);
    border-radius: 1rem;
}

.product-map .card.current .icon-image {
    width: 5rem;
    height: 5rem;
}

.product-map .card.current .icon-image.normal {
    display: none;
}

.product-map .card.current .icon-image.active {
    display: block;
}

.product-map .card.current .card-content {
    min-height: 14.8rem;
    gap: 2.5rem;
    margin-top: 0;
}

.product-map .copy {
    width: max-content;
    max-width: 100%;
    text-align: center;
}

.product-map .card-title,
.product-map .card-subtitle {
    color: inherit;
}

.product-map .card-title {
    font-weight: 600;
    text-transform: uppercase;
}

.product-map .card-subtitle {
    font-weight: 300;
}

.product-map .card-title> :first-child,
.product-map .card-subtitle> :first-child {
    margin-top: 0;
}

.product-map .card-title> :last-child,
.product-map .card-subtitle> :last-child {
    margin-bottom: 0;
}

.product-map .card.current {
    color: var(--header-2);
}

.product-map .step-dot {
    position: relative;
    z-index: 2;
    width: 1.9rem;
    height: 1.9rem;
    flex: 0 0 auto;
    margin-top: 4.4rem;
    border-radius: 50%;
}

.product-map .step-dot::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--light-gray-2);
    border-radius: inherit;
    content: '';
}

.product-map .card.current .step-dot {
    margin-top: 4.3rem;
}

.product-map .card.current .step-dot::after {
    background: var(--red);
}

.product-map .card.current .step-dot::before {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    width: var(--active-progress);
    height: .4rem;
    background: var(--cards-light-red);
    border-radius: .5rem;
    content: '';
    transform: translate(-50%, -50%);
    translate: 0 -.1rem;
}

.product-map .splide__pagination {
    display: none;
}

@media only screen and (min-width: 640px) {

    .product-map {
        --active-progress: 19rem;
    }

    .product-map .slider {
        min-height: 29.5rem;
        padding: 4.3rem 8.5rem 4.2rem;
        border-radius: 2rem;
    }

    .product-map .slider::before {
        right: 4.6rem;
        bottom: 4.9rem;
        left: 4rem;
    }

    .product-map .cards {
        display: flex !important;
        justify-content: space-between;
        transform: none !important;
    }

    .product-map .card {
        width: max-content;
        min-width: 10.2rem;
    }

}

@media only screen and (max-width: 639px) {
    .product-map {
        display: none;
    }

    .product-map .slider .splide__track {
        padding-inline: calc((100vw - 18.1rem) / 2) !important;
    }

}

/* @end */
