/* WebBoxOne Woo Toolkit – eigene Produkt-Badges (v1.12.7). Gemeinsam für Product Gallery und Product Archive. */
.wbo-badges{position:absolute;z-index:5;display:flex;flex-direction:column;gap:6px;pointer-events:none;margin:0;padding:0}
.wbo-badge{
 position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;
 padding:5px 10px;border-radius:3px;background:var(--wbo-badge-bg,#222222);color:var(--wbo-badge-color,#ffffff);
 font-size:12px;font-weight:700;line-height:1.2;white-space:nowrap;text-decoration:none;
}
.wbo-badge.wbo-badge--burst{
 width:var(--wbo-badge-size,72px);height:var(--wbo-badge-size,72px);padding:0 calc(var(--wbo-badge-size,72px)*.16);border-radius:0;
 font-size:calc(var(--wbo-badge-size,72px)*.2);line-height:1.05;letter-spacing:.02em;white-space:normal;text-align:center;
 transform:rotate(var(--wbo-badge-rotation,-14deg));transform-origin:50% 50%;
 -webkit-clip-path:polygon(50.00% 0.00%,58.49% 7.34%,69.13% 3.81%,74.17% 13.83%,85.36% 14.64%,86.17% 25.83%,96.19% 30.87%,92.66% 41.51%,100.00% 50.00%,92.66% 58.49%,96.19% 69.13%,86.17% 74.17%,85.36% 85.36%,74.17% 86.17%,69.13% 96.19%,58.49% 92.66%,50.00% 100.00%,41.51% 92.66%,30.87% 96.19%,25.83% 86.17%,14.64% 85.36%,13.83% 74.17%,3.81% 69.13%,7.34% 58.49%,0.00% 50.00%,7.34% 41.51%,3.81% 30.87%,13.83% 25.83%,14.64% 14.64%,25.83% 13.83%,30.87% 3.81%,41.51% 7.34%);clip-path:polygon(50.00% 0.00%,58.49% 7.34%,69.13% 3.81%,74.17% 13.83%,85.36% 14.64%,86.17% 25.83%,96.19% 30.87%,92.66% 41.51%,100.00% 50.00%,92.66% 58.49%,96.19% 69.13%,86.17% 74.17%,85.36% 85.36%,74.17% 86.17%,69.13% 96.19%,58.49% 92.66%,50.00% 100.00%,41.51% 92.66%,30.87% 96.19%,25.83% 86.17%,14.64% 85.36%,13.83% 74.17%,3.81% 69.13%,7.34% 58.49%,0.00% 50.00%,7.34% 41.51%,3.81% 30.87%,13.83% 25.83%,14.64% 14.64%,25.83% 13.83%,30.87% 3.81%,41.51% 7.34%);
}
.wbo-badge.wbo-badge--burst.wbo-badge--ring{font-size:calc(var(--wbo-badge-size,72px)*.18)}
.wbo-badge.wbo-badge--burst.wbo-badge--ring::before{
 content:"";position:absolute;box-sizing:border-box;pointer-events:none;border-radius:50%;
 inset:calc(6.5% + var(--wbo-badge-ring-gap,3px));border:var(--wbo-badge-ring-width,1.5px) solid currentColor;opacity:.9;
}

/* Product Gallery: Stapel oben links; die Sale-Marke steht darin an erster Stelle. */
.wbo-sp-gallery .wbo-badges--gallery{top:var(--wbo-gal-sale-offset,12px);left:var(--wbo-gal-sale-offset,12px);align-items:flex-start}
.wbo-sp-gallery .wbo-badge{--wbo-badge-size:var(--wbo-gal-sale-size,84px);--wbo-badge-rotation:var(--wbo-gal-sale-rotation,-14deg);--wbo-badge-ring-gap:var(--wbo-gal-sale-ring-gap,3px);--wbo-badge-ring-width:var(--wbo-gal-sale-ring-width,1.5px)}
.wbo-sp-gallery.wbo-sp-gallery .wbo-badges--gallery span.onsale{position:relative;top:auto;left:auto;right:auto;bottom:auto}

/* Product Archive: Stapel an der Position der Sale-Marke. */
.wbo-product-archive .wbo-badges--archive{top:var(--wbo-pa-sale-offset,12px);right:var(--wbo-pa-sale-offset,12px);align-items:flex-end;z-index:2}
.wbo-product-archive .wbo-badges--archive.wbo-badges--left{right:auto;left:var(--wbo-pa-sale-offset,12px);align-items:flex-start}
.wbo-product-archive .wbo-badge{--wbo-badge-size:var(--wbo-pa-sale-size,72px);--wbo-badge-rotation:var(--wbo-pa-sale-rotation,14deg);--wbo-badge-ring-gap:var(--wbo-pa-sale-ring-gap,3px);--wbo-badge-ring-width:var(--wbo-pa-sale-ring-width,1.5px)}
.wbo-product-archive .wbo-badges--archive .wbo-pa-sale{position:relative;top:auto;right:auto;left:auto}
/* v1.12.8: Stapel links: Schräglage gespiegelt. */
.wbo-product-archive .wbo-badges--left .wbo-badge{--wbo-badge-rotation:var(--wbo-pa-sale-rotation,-14deg)}

/* v1.12.9: Product Gallery – frei wählbare Position des Stapels. */
.wbo-sp-gallery .wbo-badges--gallery.wbo-badges--pos-tl-image,
.wbo-sp-gallery .wbo-badges--gallery.wbo-badges--pos-bl-image{left:var(--wbo-gal-sale-offset,12px)}
@supports selector(:has(*)){
 /* Mit Vorschauspalte links beginnt das Hauptbild rechts davon. */
 .wbo-sp-gallery:has(.flex-control-thumbs) .wbo-badges--gallery.wbo-badges--pos-tl-image,
 .wbo-sp-gallery:has(.flex-control-thumbs) .wbo-badges--gallery.wbo-badges--pos-bl-image{left:calc(var(--wbo-gal-pad-left,0px) + var(--wbo-gal-sale-offset,12px))}
 /* Oben rechts sitzt das Vollbild-Symbol; der Stapel beginnt darunter. */
 .wbo-sp-gallery:has(.woocommerce-product-gallery__trigger) .wbo-badges--gallery.wbo-badges--pos-tr{top:calc(var(--wbo-gal-zoom-offset,12px) + var(--wbo-gal-zoom-size,40px) + 8px)}
}
.wbo-sp-gallery .wbo-badges--gallery.wbo-badges--pos-tr,
.wbo-sp-gallery .wbo-badges--gallery.wbo-badges--pos-br{left:auto;right:var(--wbo-gal-sale-offset,12px);align-items:flex-end}
.wbo-sp-gallery .wbo-badges--gallery.wbo-badges--pos-bl-image,
.wbo-sp-gallery .wbo-badges--gallery.wbo-badges--pos-br{top:auto;bottom:var(--wbo-gal-sale-offset,12px)}
/* Rechts: Schräglage gespiegelt (eigener Wert im Widget hat Vorrang). */
.wbo-sp-gallery .wbo-badges--pos-tr .wbo-badge,.wbo-sp-gallery .wbo-badges--pos-br .wbo-badge{--wbo-badge-rotation:var(--wbo-gal-sale-rotation,14deg)}
.wbo-sp-gallery.wbo-sp-gallery--sale-burst .wbo-badges--pos-tr span.onsale,
.wbo-sp-gallery.wbo-sp-gallery--sale-burst .wbo-badges--pos-br span.onsale{transform:rotate(var(--wbo-gal-sale-rotation,14deg))}

/* v1.12.9: Product Archive – unten und Schräglage der Sale-Marke im Stapel. */
.wbo-product-archive .wbo-badges--archive.wbo-badges--bottom{top:auto;bottom:var(--wbo-pa-sale-offset,12px)}
.wbo-product-archive .wbo-badges--left .wbo-pa-sale.wbo-pa-sale--burst{transform:rotate(var(--wbo-pa-sale-rotation,-14deg))}

/* v1.12.9: Widget „WebBoxOne Product Badges" – Marke und Badges nebeneinander im Seitenfluss. */
.wbo-badges.wbo-badges--inline{position:static;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px;pointer-events:auto}
.wbo-badge.wbo-badge--sale{--wbo-badge-bg:#d0342c;--wbo-badge-color:#ffffff}

