/* Class-based (child theme) */
.btn-sweep {
  position: relative;
  overflow: hidden;
  border-radius: 8px;            /* or inherit from your button theme */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.btn-sweep::before{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background: var(--e-global-color-primary, #6a3eff);
  z-index: 0;
  transition: transform .38s cubic-bezier(.22,.9,.3,1);
  border-radius: inherit;
  pointer-events: none;
}

/* ensure button text sits on top of pseudo-element */
.btn-sweep > .elementor-button-wrapper,
.btn-sweep .elementor-button-text {
  position: relative;
  z-index: 2;
}

.btn-sweep:hover::before{
  transform: translateX(0);
}

.btn-sweep:hover {
  color: #fff;
}
