/* Use .elementor-widget-waveplay_button for ALL styles */
.elementor-widget-waveplay_button .waveplay-container {
  display: inline-block;
  position: relative;
  vertical-align: middle; /* or top */
  padding: 0;
  margin: 0;
  /* Remove the flex-direction, align-items, justify-content properties 
     because they don't work on inline-block anyway. */
}

.elementor-widget-waveplay_button .circle {
   /* width: 100px;
    height: 100px;*/
    /* background-color is now controlled by the Elementor color control */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out; /* Add visibility transition */
}

.elementor-widget-waveplay_button .text {
    color: white;
   /* font-size: 30px; */
    font-weight: bold;
    transition: opacity 0.3s ease-in-out;
    border: none!important;
}

/* Pulsing Circle Animation */
.elementor-widget-waveplay_button .pulse-container {
    position: absolute; /* Keep absolute positioning */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /*  Perfect centering */
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Start hidden */
    visibility: hidden; /* Start hidden */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out; /* Add visibility transition */
    pointer-events: auto;
}



.elementor-widget-waveplay_button .pulse-container.show {
    /* opacity: 1;  -- No longer needed, managed in JS */
    /* visibility: visible; -- No longer needed */
}

.elementor-widget-waveplay_button .pulse-circle {
    position: absolute;
    width: 40px;
    height: 40px;
    /* background-color is now controlled by the Elementor color control with added opacity */
    border-radius: 50%;
    animation: pulse-animation 1.5s infinite ease-out;
    animation-play-state: paused; /* Start paused */
}


.elementor-widget-waveplay_button .pulse-circle:nth-child(2) {
    animation-delay: 0.5s;
}

.elementor-widget-waveplay_button .pulse-circle:nth-child(3) {
    animation-delay: 1s;
}

.elementor-widget-waveplay_button .noxfolio-service-box .service-url {
    border: none !important;
}

.elementor-widget-waveplay_button .noxfolio-service-box a.service-url {
    border: none !important;
    /* Adding a more specific rule */
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.75);
        opacity: 0.4;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Central Button with Waveform */
.elementor-widget-waveplay_button .button {
    position: absolute;
    width: 40px;
    height: 40px;
    /* background-color is now controlled by the Elementor color control */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.elementor-widget-waveplay_button .waveform {
    display: flex;
    gap: 4px;
}

.elementor-widget-waveplay_button .waveform span {
    display: block;
    width: 3px;
    background-color: white;
    border-radius: 3px;
    animation: wave-animation 1s infinite ease-in-out;
}

/* Make different bars have unique height animations */
.elementor-widget-waveplay_button .waveform span:nth-child(1) {
    height: 10px;
    animation-duration: 0.9s;
}

.elementor-widget-waveplay_button .waveform span:nth-child(2) {
    height: 7px;
    animation-duration: 1s;
}

.elementor-widget-waveplay_button .waveform span:nth-child(3) {
    height: 11px;
    animation-duration: 1.1s;
}

.elementor-widget-waveplay_button .waveform span:nth-child(4) {
    height: 5px;
    animation-duration: 0.95s;
}

@keyframes wave-animation {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.5);
    }
}

/* Removed .hidden class */

.elementor-widget-waveplay_button .play-icon {
  width: calc(var(--wp-circle-size) / 2.4);
  height: calc(var(--wp-circle-size) / 2.4);
  color: #fff;
  /* lekkie przesunięcie dla wizualnego wyśrodkowania trójkąta */
  margin-left: calc(var(--wp-circle-size) / 24);
  user-select: none;
}