.dd-product-badge-frame,
.dd-category-tile-image:has(> .dd-product-badge) {
    position: relative;
}

.dd-content .dd-product-badge-frame > .dd-product-badge,
.dd-category-tile-image > .dd-product-badge {
    position: absolute;
    inset: 8px 8px auto auto;
    z-index: 2;
    max-width: min(45%, 110px);
    pointer-events: none;
    line-height: 1.15;
}

.dd-content .dd-product-badge-frame > .dd-product-badge > img,
.dd-category-tile-image > .dd-product-badge > img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: clamp(30px, 8vw, 56px);
    height: auto;
    object-fit: contain;
    border-radius: 0;
}

.dd-category-tile-image > .dd-product-badge > img {
    max-height: clamp(28px, 6vw, 44px);
}

.dd-product-badge.dd-product-badge-text {
    padding: 5px 8px;
    border-radius: 5px;
    background: #0c578e;
    color: #fff;
    font-weight: 700;
    font-size: clamp(12px, 2vw, 15px);
    text-align: center;
    overflow-wrap: anywhere;
}
