button[aria-busy="true"]:has(> .basket-button-feedback) {
  position: relative;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

button[aria-busy="true"]:has(> .basket-button-feedback) > :not(.basket-button-feedback) {
  visibility: hidden;
}

button > .basket-button-feedback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding-inline: 5px;
  font-size: min(1em, 1rem);
  line-height: 1.15;
  text-align: center;
  pointer-events: none;
  -webkit-text-fill-color: currentColor;
}

.basket-button-feedback__dots {
  flex: none;
  font-family: monospace;
  animation: basket-button-dots 1.2s steps(1, end) infinite;
}

@keyframes basket-button-dots {
  0% { clip-path: inset(0 66.67% 0 0); }
  25% { clip-path: inset(0 33.33% 0 0); }
  50%, 100% { clip-path: inset(0); }
}

@media (prefers-reduced-motion: reduce) {
  .basket-button-feedback__dots { animation: none; }
}
