/* Keep the discount compact in every catalog layout, including desktop. */
:root .Product-block [id*="stardiscount"] {
    position: absolute;
    width: auto;
    height: auto;
    min-width: 36px;
    margin: 0;
    padding: 0;
    top: 6px;
    left: 6px;
    right: auto;
    border-radius: 4px;
    background: var(--color--CTA--Background--Primary-4, #24bcd0);
    box-shadow: none;
    transform: none;
    overflow: hidden;
    pointer-events: none;
}
:root .Product-block [id*="stardiscount"]::before,
:root .Product-block [id*="stardiscount"]::after {
    display: none;
}
:root .Product-block [id*="stardiscount"] .star-inner {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 3px 7px;
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    transform: none;
}
:root .Product-block [id*="stardiscount"] .star-inner p {
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    transform: none;
}
/* List mode has neither column class. Align with the image, below the title. */
:root .listingitems:not(.col-2):not(.col-3) .Product-block [id*="stardiscount"] {
    left: auto;
    right: 6px;
    top: 65px;
    transform: translateY(-50%);
}
/* Anchor to the actual image height where CSS anchor positioning is available. */
@supports (anchor-name: --product-image) {
    :root .listingitems:not(.col-2):not(.col-3) .Product-block {
        anchor-scope: --product-image;
    }
    :root .listingitems:not(.col-2):not(.col-3) .Product-block .image.itemshow {
        anchor-name: --product-image;
    }
    :root .listingitems:not(.col-2):not(.col-3) .Product-block [id*="stardiscount"] {
        top: anchor(--product-image center, 65px);
    }
}
