.container-btn-payment-stars {
    position: relative; 
    display: block;
}
.button-payment-sparks-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    border-radius: inherit;
    /* Inherit border radius from the button if possible, or sets it manually */
}
.star-btn-payment {
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url("/tc_pix/www/sparkle.png");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    animation: shine-btn 2s infinite ease-in-out;
}

/* Reposition stars for smaller container */
.star-btn-payment:nth-child(2) {
    top: 15%;
    left: 25%;
    animation-delay: 0s;
}
.star-btn-payment:nth-child(3) {
    top: 55%;
    left: 6%;
    animation-delay: 0.4s;
}
.star-btn-payment:nth-child(4) {
    top: 16%;
    left: 70%;
    animation-delay: 1.2s;
}
.star-btn-payment:nth-child(5) {
    top: 9%;
    left: 75%;
    animation-delay: 0.9s;
}
.star-btn-payment:nth-child(6) {
    top: 75%;
    left: 45%;
    animation-delay: 1.6s;
}
.star-btn-payment:nth-child(7) {
    top: 1%;
    right: 0%;
    animation-delay: 1.5s;
}
.star-btn-payment:nth-child(8) {
    top: 60%;
    right: 11%;
    animation-delay: 1.65s;
}

.star-btn-payment:nth-child(9) {
    top: 33%;
    left: 11%;
    animation-delay: 0.11s;
}

.star-btn-payment:nth-child(10) {
    top: 14%;
    left: 4%;
    animation-delay: 0.44s;
}

.star-btn-payment:nth-child(11) {
    top: 5%;
    left: 50%;
    animation-delay: 0.55s;
}

.star-btn-payment:nth-child(12) {
    bottom: 38%;
    left: 50%;
    animation-delay: 0.65s;
}

@keyframes shine-btn {
    0%,
    100% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}