.woocommerce-product-gallery__image.gtpl-image-wrap{position:relative!important;overflow:hidden}
.gtpl-badge{position:absolute;z-index:30;display:inline-flex;align-items:center;justify-content:center;max-width:80%;box-sizing:border-box;background:var(--gtpl-bg);color:var(--gtpl-color);font-size:var(--gtpl-size);line-height:1.45;font-weight:700;padding:var(--gtpl-py) var(--gtpl-px);white-space:nowrap;text-align:center;pointer-events:none;letter-spacing:0;direction:rtl}
.gtpl-top-right{top:14px;right:14px}.gtpl-top-left{top:14px;left:14px}.gtpl-bottom-right{bottom:14px;right:14px}.gtpl-bottom-left{bottom:14px;left:14px}
.gtpl-pill{border-radius:999px}.gtpl-rounded{border-radius:var(--gtpl-radius)}.gtpl-square{border-radius:3px}.gtpl-ribbon{border-radius:3px 3px 12px 12px;clip-path:polygon(0 0,100% 0,100% 88%,50% 100%,0 88%);padding-bottom:calc(var(--gtpl-py) + 5px)}
.gtpl-shadow{box-shadow:0 4px 14px rgba(0,0,0,.17)}
@media(max-width:767px){.gtpl-badge{font-size:max(10px,calc(var(--gtpl-size) - 1px));top:10px}.gtpl-bottom-right,.gtpl-bottom-left{top:auto;bottom:10px}.gtpl-top-right,.gtpl-bottom-right{right:10px}.gtpl-top-left,.gtpl-bottom-left{left:10px}}

/* Product-card badges: image and badge share one positioned wrapper,
   matching the reliable YITH container-image-and-badge markup pattern. */
.gtpl-container-image-and-badge{position:relative!important;display:block;width:100%;line-height:0;overflow:hidden}
.gtpl-container-image-and-badge img{display:block;max-width:100%;height:auto}
.gtpl-container-image-and-badge .gtpl-loop-badge{position:absolute;z-index:35;line-height:1.45;pointer-events:none}
.gtpl-container-image-and-badge .gtpl-loop-badge.gtpl-top-right{top:12px;right:12px}
.gtpl-container-image-and-badge .gtpl-loop-badge.gtpl-top-left{top:12px;left:12px}
.gtpl-container-image-and-badge .gtpl-loop-badge.gtpl-bottom-right{top:auto;bottom:12px;right:12px}
.gtpl-container-image-and-badge .gtpl-loop-badge.gtpl-bottom-left{top:auto;bottom:12px;left:12px}
