/* v1.2.2: la capa vive dentro de la foto, no dentro del bloque del precio. */
.box-image.kd-badge-image-anchor,
.product-images.kd-badge-image-anchor,
.woocommerce-product-gallery.kd-badge-image-anchor,
.wc-block-components-product-image.kd-badge-image-anchor,
.wc-block-grid__product-image.kd-badge-image-anchor,
.kd-badge-image-anchor {position:relative!important}
.kd-badge-native-wrapper {display:block;width:100%;line-height:0}
.kd-badge-native-wrapper > img {display:block;max-width:100%;height:auto}
.kd-desc-badge-layer[data-kd-context] {position:absolute!important;inset:0!important;z-index:15!important;width:100%;height:100%;pointer-events:none!important;box-sizing:border-box;margin:0!important;padding:0!important;min-height:0!important;line-height:normal}
.kd-desc-badge-layer[data-kd-context] .kd-badge-position {position:absolute!important;}
.kd-desc-badge-layer[data-kd-context] .kd-pos-top-left {top:0!important;bottom:auto!important;left:0!important;right:auto!important}
.kd-desc-badge-layer[data-kd-context] .kd-pos-top-right {top:0!important;bottom:auto!important;right:0!important;left:auto!important}
.kd-desc-badge-layer[data-kd-context] .kd-pos-bottom-left {bottom:0!important;top:auto!important;left:0!important;right:auto!important}
.kd-desc-badge-layer[data-kd-context] .kd-pos-bottom-right {bottom:0!important;top:auto!important;right:0!important;left:auto!important}
.kd-desc-badge-layer[data-kd-context] .kd-desc-badge {pointer-events:none!important}
/* Etiquetas encima de imágenes WooCommerce. No alteran los clics en productos. */
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{position:relative}
.woocommerce div.product .woocommerce-product-gallery{position:relative}
.woocommerce div.product{position:relative}
.kd-desc-badge-layer{position:absolute;inset:0;pointer-events:none;z-index:15;overflow:visible}
.kd-badge-position{position:absolute;display:flex;flex-direction:column;align-items:flex-start;gap:7px;max-width:calc(100% - 10px)}
.kd-pos-top-left{top:0;left:0}.kd-pos-top-right{top:0;right:0;align-items:flex-end}
.kd-pos-bottom-left{bottom:0;left:0}.kd-pos-bottom-right{bottom:0;right:0;align-items:flex-end}
.kd-desc-badge{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;max-width:min(96%,230px);padding:var(--kd-py) var(--kd-px);background:var(--kd-bg);color:var(--kd-fg);font-family:inherit;font-size:var(--kd-fs);font-weight:750;line-height:1.25;letter-spacing:.1px;text-align:center;border-radius:var(--kd-radius);transform:rotate(var(--kd-rotation));opacity:var(--kd-opacity);box-shadow:0 2px 7px #152c171f;overflow-wrap:anywhere;white-space:normal}
.kd-desc-badge.kd-shape-pill{border-radius:90px}.kd-desc-badge.kd-shape-square{border-radius:0}
.kd-desc-badge.kd-shape-circle{aspect-ratio:1;border-radius:50%;max-width:145px;min-width:64px;min-height:64px}
.kd-desc-badge.kd-shape-ribbon{border-radius:3px 3px 3px 0;clip-path:polygon(0 0,100% 0,100% 50%,100% 100%,0 100%,8px 50%);padding-left:calc(var(--kd-px) + 10px)}
.kd-desc-badge.kd-is-image{padding:0!important;background:none!important;box-shadow:none;border-radius:0;width:var(--kd-image-width);max-width:95%}
.kd-badge-img{width:100%;max-width:100%;height:auto;display:block;object-fit:contain;box-shadow:none!important;border:0!important}
.kd-pos-top-left .kd-desc-badge,.kd-pos-bottom-left .kd-desc-badge{margin-left:var(--kd-offset-x)}
.kd-pos-top-right .kd-desc-badge,.kd-pos-bottom-right .kd-desc-badge{margin-right:var(--kd-offset-x)}
.kd-pos-top-left .kd-desc-badge,.kd-pos-top-right .kd-desc-badge{margin-top:var(--kd-offset-y)}
.kd-pos-bottom-left .kd-desc-badge,.kd-pos-bottom-right .kd-desc-badge{margin-bottom:var(--kd-offset-y)}
@media(max-width:600px){.kd-desc-badge{font-size:min(var(--kd-fs),12px);max-width:155px}.kd-desc-badge.kd-shape-circle{min-width:48px;min-height:48px}.kd-badge-position{gap:3px}}
