/* Наклейка кэшбэка. Размеры и цвета задаются переменными --sci-* в head. */
.shop-cashbackincart-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
    max-width: 100%;
    margin-top: 4px;
    padding: var(--sci-padding-y, 2px) var(--sci-padding-x, 7px);
    border: 1px solid var(--sci-border, #e6e6e6);
    border-radius: var(--sci-radius, 999px);
    background: var(--sci-bg, #fff);
    color: var(--sci-text, #f36f21);
    font-size: var(--sci-font-size, 10px);
    font-weight: var(--sci-font-weight, 700);
    line-height: 1.5;
    white-space: nowrap;
    vertical-align: middle;
}

.shop-cashbackincart-badge__plus {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 1.4em;
    height: 1.4em;
    border-radius: 50%;
    background: var(--sci-accent, #f36f21);
    color: var(--sci-plus-text, #fff);
    font-size: 1.1em;
    font-weight: 700;
    line-height: 1;
}

.shop-cashbackincart-badge__label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-cashbackincart-badge__value {
    font-weight: 700;
}

.shop-cashbackincart-slot {
    display: inline-block;
    vertical-align: middle;
}

.p-thumbs__price-col > .shop-cashbackincart-badge,
.p-list__price-col > .shop-cashbackincart-badge {
    align-self: flex-start;
}

/* На странице товара наклейка стоит сразу после цены. */
.product__price + .shop-cashbackincart-badge {
    margin: 6px calc(var(--grid-gutter, 20px) * 1.5) 0;
}

/* Если наклейку вставили через слот, внешние отступы не навязываем. */
.shop-cashbackincart-slot > .shop-cashbackincart-badge {
    margin: 0;
}
