.docta-cart-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f2937; /* gris oscuro; puedes sobreescribir en Elementor */
  text-decoration: none;
}

.docta-cart-badge__icon {
  display: inline-flex;
  line-height: 1;
}

.docta-cart-badge__count {
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-block;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(135deg, #6f00bd 0%, #c41691 100%);
  color: #fff; /* cantidad en blanco */
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transform: translate(25%, -25%);
  transition: transform .2s ease, opacity .2s ease;
}

/* Ocultar cuando hay 0 (si el ajuste está activo) */
.docta-cart-badge__count.is-hidden {
  opacity: 0;
  transform: translate(25%, -25%) scale(.8);
  pointer-events: none;
}

/* Para el fragmento AJAX: clave CSS unica */
span.docta-cart-badge__count { display: inline-block; }

.docta-cart-badge__icon svg {
  stroke: currentColor;
  fill: none;
}
