/**
 * Loader texto com clip-path (Uiverse) — paridade React
 * Wrapper: .womm-text-clip-loader
 */

.womm-text-clip-loader {
    position: relative;
    display: inline-block;
    min-width: 210px;
    min-height: 56px;
}

.womm-text-clip-loader__text {
    position: absolute;
    left: 50%;
    top: 50%;
    color: transparent;
    transform: translate(-50%, -50%);
    font-family: "Nunito", "Segoe UI", sans-serif;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 0.12em;
    white-space: nowrap;
    margin: 0;
}

.womm-text-clip-loader__text--outline {
    color: transparent;
    -webkit-text-stroke: 0.3px var(--color-primary, #006fff);
}

.womm-text-clip-loader__text--fill {
    color: var(--color-primary, #006fff);
    -webkit-text-stroke: 1px var(--color-primary, #006fff);
    animation: womm-text-clip-wave 3s ease-in-out infinite;
}

@keyframes womm-text-clip-wave {
    0%,
    100% {
        clip-path: polygon(
            0% 45%,
            15% 44%,
            32% 50%,
            54% 60%,
            70% 61%,
            84% 59%,
            100% 52%,
            100% 100%,
            0% 100%
        );
    }

    50% {
        clip-path: polygon(
            0% 60%,
            16% 65%,
            34% 66%,
            51% 62%,
            67% 50%,
            84% 45%,
            100% 46%,
            100% 100%,
            0% 100%
        );
    }
}

@media (prefers-reduced-motion: reduce) {
    .womm-text-clip-loader__text--fill {
        animation: none;
        clip-path: none;
    }
}
