.topd-product-stickers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.topd-product-sticker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.topd-product-sticker--hit {
    background: var( --e-global-color-accent );
}

.topd-product-sticker--new {
    background: #24c943;
}

.topd-product-sticker--sale {
    background: #ff9800;
}

.topd-product-sticker--recommended {
    background: #2196f3;
}

/* Запасной стиль для новых стикеров, если их добавили в ACF, но ещё не добавили цвет в CSS */
.topd-product-sticker:not(.topd-product-sticker--hit):not(.topd-product-sticker--new):not(.topd-product-sticker--sale):not(.topd-product-sticker--recommended) {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

/* Вид на странице товара */
.topd-product-stickers--view-single {
    
}

/* Вид поверх фото в плитке товара */
.topd-product-stickers--view-loop {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 3;
    gap: 6px;
    pointer-events: none;
}

.topd-product-stickers--view-loop .topd-product-sticker {
    min-height: 28px;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 13px;
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.16),
        inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

@media (max-width: 640px) {
    .topd-product-sticker {
        min-height: 30px;
        padding: 7px 11px;
        font-size: 14px;
    }

    .topd-product-stickers--view-loop {
        top: 10px;
        left: 10px;
        right: 10px;
    }

    .topd-product-stickers--view-loop .topd-product-sticker {
        min-height: 26px;
        padding: 6px 9px;
        font-size: 12px;
    }
}