/* One breadcrumb flow for category and product pages. */
body.catalog-category-view .breadcrumbs ul,
body.catalog-product-view .breadcrumbs ul {
    background: #faf7f4;
    display: block;
}

body.catalog-category-view .breadcrumbs li:not(.back),
body.catalog-category-view .breadcrumbs li:not(.back) > a,
body.catalog-category-view .breadcrumbs li:not(.back) > span,
body.catalog-category-view .breadcrumbs li:not(.back) strong,
body.catalog-product-view .breadcrumbs li:not(.back),
body.catalog-product-view .breadcrumbs li:not(.back) > a,
body.catalog-product-view .breadcrumbs li:not(.back) > span,
body.catalog-product-view .breadcrumbs li:not(.back) strong {
    display: inline;
    float: none;
    font-size: 14px;
    line-height: 20px;
    vertical-align: baseline;
}

body.catalog-category-view .breadcrumbs li.last,
body.catalog-category-view .breadcrumbs li:last-child,
body.catalog-product-view .breadcrumbs li.last,
body.catalog-product-view .breadcrumbs li:last-child {
    -webkit-box-orient: initial;
    -webkit-line-clamp: initial;
    max-height: none;
    min-width: 0;
    overflow: visible;
    white-space: normal;
}

body.catalog-category-view .azb-breadcrumb-wrap,
body.catalog-product-view .azb-breadcrumb-wrap {
    position: relative;
}

.azb-breadcrumb-toggle[hidden] {
    display: none !important;
}

@media only screen and (max-width: 767px) {
    html.azb-breadcrumb-js body.catalog-category-view .azb-breadcrumb-wrap > ul,
    html.azb-breadcrumb-js body.catalog-product-view .azb-breadcrumb-wrap > ul {
        max-height: 60px;
        overflow: hidden;
    }

    html.azb-breadcrumb-js body.catalog-category-view .azb-breadcrumb-wrap.is-expanded > ul,
    html.azb-breadcrumb-js body.catalog-product-view .azb-breadcrumb-wrap.is-expanded > ul {
        max-height: none;
        overflow: visible;
    }

    .azb-breadcrumb-wrap.has-overflow > ul {
        box-sizing: border-box;
        padding-right: 44px;
    }

    /* Keep the 40px toggle target while clipping the partial third text row. */
    html.azb-breadcrumb-js body.catalog-category-view .azb-breadcrumb-wrap.has-overflow:not(.is-expanded),
    html.azb-breadcrumb-js body.catalog-product-view .azb-breadcrumb-wrap.has-overflow:not(.is-expanded) {
        background: #faf7f4;
    }

    html.azb-breadcrumb-js body.catalog-category-view .azb-breadcrumb-wrap.has-overflow:not(.is-expanded) > ul,
    html.azb-breadcrumb-js body.catalog-product-view .azb-breadcrumb-wrap.has-overflow:not(.is-expanded) > ul {
        -webkit-clip-path: inset(0 0 10px 0);
        clip-path: inset(0 0 10px 0);
    }

    .azb-breadcrumb-toggle {
        align-items: center;
        background: #faf7f4;
        border: 0;
        border-radius: 6px;
        bottom: 0;
        color: #4a4a4a;
        cursor: pointer;
        display: flex;
        font-size: 20px;
        height: 40px;
        justify-content: center;
        min-width: 40px;
        padding: 0;
        position: absolute;
        right: 0;
        z-index: 2;
    }

    .azb-breadcrumb-toggle:focus-visible {
        outline: 2px solid #d92068;
        outline-offset: -2px;
    }
}
