/*
 * Last modified: 09/11/2026 04:32 PM
 *
 * Shared button sweep. Duration and delay are randomized per control in aztandc.js.
 */
:is(.azt-btn, button, .wp-element-button, .wp-block-button__link) {
  position: relative;
  overflow: hidden;
}
:is(.azt-btn, button, .wp-element-button, .wp-block-button__link)::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34%;
  height: 1px;
  background: currentColor;
  pointer-events: none;
  animation: azt-button-sweep var(--azt-btn-sweep-duration, 5.2s) ease-in-out infinite;
  animation-delay: var(--azt-btn-sweep-delay, 0s);
}
/* The shared pseudo-element replaces the original single-button span. */
.azt-btn .azt-motion-cta__sweep { display: none; }
@keyframes azt-button-sweep {
  0% { transform: translate3d(-120%, 0, 0); opacity: 0; }
  18%, 42% { opacity: .7; }
  62%, 100% { transform: translate3d(340%, 0, 0); opacity: 0; }
}
.azt-motion-paused :is(.azt-btn, button, .wp-element-button, .wp-block-button__link)::after,
button:disabled::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  :is(.azt-btn, button, .wp-element-button, .wp-block-button__link)::after { animation: none; display: none; }
}
