.venix-archive__subcat {
    position: relative;
}

.venix-archive__subcats {
    padding-top: 26px;
}

.venix-category-badge {
    position: absolute;
    z-index: 4;
    top: 0;
    left: 50%;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    max-width: calc(100% - 16px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 6px;
    background: var(--venix-category-badge-color, #c5222d);
    box-shadow: 0 3px 10px rgba(28, 30, 33, 0.2);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.025em;
    overflow: hidden;
    pointer-events: none;
    text-align: center;
    text-transform: uppercase;
    transform: translate(-50%, -50%);
}

.venix-category-badge__primary,
.venix-category-badge__secondary {
    display: block;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Compact category promotion in the desktop and mobile header navigation. */
.venix-category-nav-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 3px 6px;
    border-radius: 999px;
    background: var(--venix-category-nav-badge-color, #c5222d);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.venix-nav__item > a,
.venix-mobile-home-bar__pill,
.venix-mmenu__link > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.venix-mmenu__link > span {
    flex-wrap: wrap;
}

.venix-category-badge__primary {
    min-height: 21px;
    padding: 6px 8px 2px;
    background: var(--venix-category-badge-color, #c5222d);
    line-height: 1.1;
}

.venix-category-badge__secondary {
    padding: 1px 8px 6px;
    background: var(--venix-category-badge-color, #c5222d);
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.01em;
    line-height: 1.15;
    text-transform: none;
}

@media (max-width: 600px) {
    .venix-category-badge {
        top: 0;
        left: 50%;
        max-width: calc(100% - 8px);
    }

    .venix-category-badge__primary {
        min-height: 19px;
        padding: 5px 7px 2px;
    }

    .venix-category-badge__secondary {
        padding: 0 5px 5px;
        font-size: 7.5px;
        letter-spacing: 0;
    }
}
