wmy-product-labels { display: flex; flex-wrap: wrap; gap: 4px; max-width: 100%; pointer-events: none; }
wmy-product-labels:empty { display: none; }
.wmy-product-label { display: inline-block; max-width: 100%; padding: 5px 10px; font-size: 12px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.f-product-card__tags:has(> wmy-product-labels:not(:empty)) { flex-wrap: wrap; max-width: calc(100% - 72px); }
.f-product-card__media > wmy-product-labels[data-placement="bottom"] { position: absolute; inset: auto 0 0; z-index: 3; }
.f-product-card__media > wmy-product-labels[data-placement="bottom"] .wmy-product-label { flex: 1 1 100%; text-align: center; }
.f-media-gallery__inner { position: relative; }
.f-media-gallery__inner > wmy-product-labels { position: absolute; z-index: 3; }
.f-media-gallery__inner > wmy-product-labels[data-placement="top"] { top: 12px; left: 12px; max-width: calc(100% - 64px); }
.f-media-gallery__inner > wmy-product-labels[data-placement="bottom"] { bottom: 0; left: 0; right: 0; }
.f-media-gallery__inner > wmy-product-labels[data-placement="bottom"] .wmy-product-label { flex: 1 1 100%; text-align: center; }
@media (max-width: 767px) {
    .wmy-product-label { padding: 4px 8px; }
    .f-product-card__tags:has(> wmy-product-labels:not(:empty)) { left: 10px; top: 10px; max-width: calc(100% - 60px); }
}
