/* Spectrum Button Widget CSS */
.spectrum-button-container {
    --final-yellow: #234085;
    --speed: 1.5s;
    --spead2: 1.8s;
    --circle-area: 50px;
    font-family: "Segoe UI", sans-serif;
    display: inline-block;
    width: 100%;
}

.spectrum-button-widget {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 75px;
    background-color: #fff;
    border-radius: 50px;
    display: flex;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin: 0 auto;
    text-decoration: none;
    transition: all 0.3s ease;
}

.spectrum-button-widget:hover {
    text-decoration: none;
}

.spectrum-button-text {
    position: absolute;
    left: calc(var(--circle-area) + (100% - var(--circle-area)) / 2);
    transform: translateX(-50%);
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    z-index: 10;
    white-space: nowrap;
    transition: all var(--speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.spectrum-button-widget:hover .spectrum-button-text {
    left: calc((100% - var(--circle-area)) / 2);
    color: #fff;
    transform: translateX(-50%);
}

.spectrum-button-circle {
    position: absolute;
    left: 8px;
    width: 50px;
    height: 50px;
    background-color: #ffd194;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 15;
    transition: left var(--spead2) cubic-bezier(0.4, 0, 0.2, 1);
}

.spectrum-button-widget:hover .spectrum-button-circle {
    left: calc(100% - 56px); 
}

.spectrum-button-circle svg {
    width: 28px;
    height: 28px;
    stroke: #ffd194;
    transition: stroke 0.3s ease;
}

.spectrum-bg {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    z-index: 5;
    background-size: 420px 100%;
    background-position: right; 
    transition: width var(--speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.spectrum-button-widget:hover .spectrum-bg {
    width: 100%;
    animation: finalizeSpectrum var(--speed) forwards;
}

@keyframes finalizeSpectrum {
    0%, 95% { 
        background-position: right;
        opacity: 1;
    }
    100% { 
        background: var(--final-yellow);
    }
}

.spectrum-button-widget:not(:hover) .spectrum-bg {
    width: 0%;
    transition: width 0.6s ease-in;
}

/* Responsive Styles */
@media (max-width: 768px) {
    
    .spectrum-button-text {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    
    .spectrum-button-text {
        font-size: 1rem !important;
    }
    
    .spectrum-button-circle {
        width: 50px !important;
        height: 50px !important;
    }
    
    .spectrum-button-circle svg {
        width: 24px !important;
        height: 24px !important;
    }
}

/* Elementor Editor Adjustments */
.elementor-editor-active .spectrum-button-widget {
    pointer-events: auto;
}