/* Hyundai breadcrumb refinement */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 18px 0 16px;
    margin: 0 0 20px;
    border-bottom: 1px solid #e7edf4;
    border-radius: 0;
    background: transparent;
}

.breadcrumb > li {
    display: inline-flex;
    align-items: center;
    padding: 0;
    white-space: nowrap;
}

/* Product pages use direct links instead of li elements. */
.breadcrumb > a {
    display: inline-flex;
    align-items: center;
    padding: 0;
    white-space: nowrap;
}

.breadcrumb > li + li:before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: 0 14px 0 11px;
    padding: 0;
    border-top: 1px solid #b7c0cc;
    border-right: 1px solid #b7c0cc;
    transform: rotate(45deg);
}

.breadcrumb > a + a:before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: 0 14px 0 11px;
    padding: 0;
    border-top: 1px solid #b7c0cc;
    border-right: 1px solid #b7c0cc;
    transform: rotate(45deg);
}

.breadcrumb > li:after,
.breadcrumb a:after {
    display: none;
    content: none;
}

.breadcrumb a {
    display: inline-flex;
    align-items: center;
    color: #6b7585;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
    transition: color .2s ease;
}

.breadcrumb > li:first-child a {
    color: #1769aa;
}

.breadcrumb > a:first-of-type {
    color: #1769aa;
}

.breadcrumb > li:last-of-type a {
    color: #323848;
    font-weight: 600;
}

.breadcrumb > a:last-of-type {
    color: #323848;
    font-weight: 600;
}

.breadcrumb a:hover {
    color: #0a63f6;
}

.breadcrumb > span {
    order: 99;
    margin-left: auto;
}

.breadcrumb > span .button_back {
    margin: 0 !important;
    border-radius: 4px !important;
}

@media (max-width: 767px) {
    .breadcrumb {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 14px 0 13px;
        margin-bottom: 16px;
        scrollbar-width: none;
    }

    .breadcrumb::-webkit-scrollbar {
        display: none;
    }

    .breadcrumb > li,
    .breadcrumb > span {
        flex: 0 0 auto;
    }

    .breadcrumb > span {
        margin-left: 16px;
    }
}
