/* Mini Joy animated badges: scoped so existing WooCommerce labels are untouched. */
.mjbb-badge {
  --mjbb-bg: #ff9100;
  --mjbb-offset: 12px;
  position: absolute;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: max-content;
  max-width: calc(100% - 8px);
  box-sizing: border-box;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: var(--mjbb-bg);
  color: #fff !important;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .025em;
  text-decoration: none !important;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .23);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  isolation: isolate;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
  -webkit-font-smoothing: antialiased;
}
.mjbb-badge.mjbb-ready,
.mjbb-badge.mjbb-is-preview {
  opacity: 1;
  visibility: visible;
}
.mjbb-badge .mjbb-icon { width: 15px; height: 15px; flex: 0 0 15px; position: relative; z-index: 1; }
.mjbb-badge .mjbb-label { display: block; position: relative; z-index: 1; }
.mjbb-badge.mjbb-size-small { padding: 6px 10px; gap: 4px; font-size: 10px; }
.mjbb-badge.mjbb-size-small .mjbb-icon { width: 12px; height: 12px; flex-basis: 12px; }
.mjbb-badge.mjbb-size-large { padding: 10px 17px; font-size: 14px; }
.mjbb-badge.mjbb-size-large .mjbb-icon { width: 17px; height: 17px; flex-basis: 17px; }

.mjbb-badge.mjbb-anim-glow { animation: mjbb-breath 2.7s ease-in-out infinite; }
.mjbb-badge.mjbb-anim-float { animation: mjbb-float 2.7s ease-in-out infinite; }
.mjbb-badge.mjbb-anim-glow::after,
.mjbb-badge.mjbb-anim-shimmer::after {
  content: '';
  position: absolute;
  z-index: 0;
  top: -60%; bottom: -60%;
  left: -75%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.33), transparent);
  transform: rotate(23deg);
  animation: mjbb-sweep 3.7s ease-in-out infinite;
}
@keyframes mjbb-breath {
  0%, 100% { transform: scale(1); filter: brightness(1); box-shadow: 0 3px 12px rgba(0,0,0,.20); }
  50% { transform: scale(1.045); filter: brightness(1.09); box-shadow: 0 4px 19px rgba(0,0,0,.27); }
}
@keyframes mjbb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes mjbb-sweep {
  0%, 17% { left: -75%; }
  40%, 100% { left: 150%; }
}
@media (prefers-reduced-motion: reduce) {
  .mjbb-badge, .mjbb-badge::after { animation: none !important; transition: none !important; }
}
