/* Native Enzo label markup; the shared wrapper owns collision-free badge flow. */
.product-item-image-wrapper > .enzo-catalog-badges,
.product-item-detail-slider-block > .enzo-catalog-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 190;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    max-width: calc(100% - 16px);
    pointer-events: none;
}

/* Existing connection and enrichment labels share this flow, not an offset guess. */
.enzo-list-tile .product-item-image-wrapper > .enzo-catalog-badges > .enzo-tile-type,
.product-item-detail-slider-block > .enzo-catalog-badges > .enzo-card-labels,
.enzo-catalog-badges > .product-item-label-text.enzo-catalog-stickers {
    position: static;
    inset: auto;
    transform: none;
    float: none;
    max-width: 100%;
    margin: 0;
}

.enzo-catalog-badges > .product-item-label-text.enzo-catalog-stickers {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px;
    opacity: 1;
}

.enzo-catalog-badges > .enzo-catalog-stickers > div {
    display: block;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.enzo-catalog-badges > .enzo-catalog-stickers > div > span {
    display: block;
    box-sizing: border-box;
    min-height: 28px;
    max-width: 100%;
    padding: 4px 8px;
    margin: 0;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    pointer-events: auto;
    transition: none;
}

/* Reserve an image-free label strip; gallery frames and controls stay unchanged. */
.product-item-image-wrapper:has(> .enzo-catalog-badges > .enzo-catalog-stickers),
.product-item-detail-slider-block:has(> .enzo-catalog-badges > .enzo-catalog-stickers) {
    --enzo-sticker-space: 44px;
    --enzo-other-label-space: 0px;
}
.product-item-image-wrapper:has(> .enzo-catalog-badges > .enzo-catalog-stickers > div:nth-child(2)),
.product-item-detail-slider-block:has(> .enzo-catalog-badges > .enzo-catalog-stickers > div:nth-child(2)) {
    --enzo-sticker-space: 76px;
}
.product-item-image-wrapper:has(> .enzo-catalog-badges > :is(.enzo-tile-type, .enzo-card-labels)),
.product-item-detail-slider-block:has(> .enzo-catalog-badges > :is(.enzo-tile-type, .enzo-card-labels)) {
    --enzo-other-label-space: 32px;
}
.enzo-list-tile .product-item-image-wrapper > .enzo-catalog-badges:has(> .enzo-catalog-stickers) ~ .product-item-image-original,
.product-item-detail-slider-block > .enzo-catalog-badges:has(> .enzo-catalog-stickers) ~ .product-item-detail-slider-images-container {
    top: calc(var(--enzo-sticker-space) + var(--enzo-other-label-space));
}

.enzo-catalog-badges > .enzo-catalog-stickers > [data-enzo-sticker="hit"] > span {
    background: #c62828;
    color: #fff;
}
.enzo-catalog-badges > .enzo-catalog-stickers > [data-enzo-sticker="recommend"] > span {
    background: #f5bd4f;
    color: #302600;
}
.enzo-catalog-badges > .enzo-catalog-stickers > [data-enzo-sticker="new"] > span {
    background: #237a3b;
    color: #fff;
}
.enzo-catalog-badges > .enzo-catalog-stickers > [data-enzo-sticker="sale"] > span {
    background: #9f2037;
    color: #fff;
}
