/* Child presentation only; the canonical card owns eligibility and marquee priority. */
.huazotl-theme .wapu-single__gallery .wapu-vg__main {
  position: relative;
}
.huazotl-theme .huazotl-gallery-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 8;
  pointer-events: none;
}
.huazotl-theme .huazotl-gallery-badges > .wapu-product-card__badges {
  position: static !important;
  display: flex;
  gap: 4px;
}
.huazotl-theme .wapu-product-card > .wapu-product-card__badges:has(.wa-badge--family-skin-svg-new),
.huazotl-theme .wapu-product-card > .wapu-product-card__badges:has(.wa-badge--family-skin-svg-bestsell) {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 4;
  display: flex;
  gap: 4px;
  pointer-events: none;
}
.huazotl-theme :is(.wapu-product-card, .huazotl-gallery-badges) .wa-badge--family-skin-svg-new,
.huazotl-theme :is(.wapu-product-card, .huazotl-gallery-badges) .wa-badge--family-skin-svg-bestsell {
  position: relative !important;
  display: block !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  clip-path: none !important;
  mask: none !important;
  transform: none !important;
  background: transparent url('../images/badge-new-drop.svg') center / contain no-repeat !important;
}
.huazotl-theme :is(.wapu-product-card, .huazotl-gallery-badges) .wa-badge--family-skin-svg-bestsell {
  background-image: url('../images/badge-bestsell.svg') !important;
}
.huazotl-theme :is(.wapu-product-card, .huazotl-gallery-badges) [data-wapu-badge-family^="skin-svg-"]::before,
.huazotl-theme :is(.wapu-product-card, .huazotl-gallery-badges) [data-wapu-badge-family^="skin-svg-"]::after {
  content: none !important;
}
.huazotl-theme :is(.wapu-product-card, .huazotl-gallery-badges) [data-wapu-badge-family^="skin-svg-"] .wa-badge__label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
/* Also cover cards refreshed by integrations that retain existing badge markup. */
.huazotl-theme .wapu-product-card:has(.wapu-product-marquee__motion) > .wapu-product-card__badges {
  display: none !important;
}

@media (max-width: 48rem) {
  .huazotl-theme :is(.wapu-product-card, .huazotl-gallery-badges) [data-wapu-badge-family^="skin-svg-"] {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }
}
