/* ============================================
   CARDYPOP — SELECCIONAR TAMAÑO PROMPT
   Animación llamativa para guiar al usuario
   ============================================ */

/* ─── Contenedor del prompt ─── */
.cpy-size-prompt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 35px;
    width: fit-content;
    background: rgba(255, 40, 40, 0.06);
    border: 1px solid rgba(255, 40, 40, 0.25);
    border-left: 4px solid #ff3344;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    animation: cpyPromptPulse 2.5s ease-in-out infinite;
    cursor: default;
}

/* Glow pulsante del borde */
@keyframes cpyPromptPulse {

    0%,
    100% {
        border-color: rgba(255, 40, 40, 0.25);
        border-left-color: #ff3344;
        box-shadow: 0 0 8px rgba(255, 40, 40, 0.08);
    }

    50% {
        border-color: rgba(255, 40, 40, 0.5);
        border-left-color: #ff3344;
        box-shadow: 0 0 20px rgba(255, 40, 40, 0.18),
            0 0 40px rgba(255, 40, 40, 0.05);
    }
}

/* Scanline animada que recorre el fondo */
.cpy-size-prompt::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 40, 40, 0.08),
            rgba(255, 100, 100, 0.06),
            transparent);
    animation: cpyScanline 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cpyScanline {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ─── Ícono de la mano (recorre todo el ancho por detrás del texto) ─── */
.cpy-size-prompt__icon {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 1.4rem;
    animation: cpySweepHand 2.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 0 6px rgba(255, 40, 40, 0.4));
}

@keyframes cpySweepHand {
    0% {
        left: 2%;
    }

    50% {
        left: 90%;
    }

    100% {
        left: 2%;
    }
}

/* ─── Texto (por encima de la mano) ─── */
.cpy-size-prompt__text {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ff3344;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 40, 40, 0.3);
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.cpy-size-prompt__text span {
    display: block;
    font-family: 'Inter', 'Google Sans Flex', sans-serif;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    text-shadow: none;
    margin-top: 2px;
}

/* ─── Glow en los swatches cuando el prompt está activo ─── */
.cpy-size-highlight .variable-items-wrapper {
    animation: cpySwatchGlow 2s ease-in-out infinite;
    border-radius: 8px;
    padding: 3px 7px 3px 3px !important;
    width: fit-content;
}

@keyframes cpySwatchGlow {

    0%,
    100% {
        box-shadow: 0 0 0 2px rgba(255, 40, 40, 0.1);
    }

    50% {
        box-shadow: 0 0 0 2px rgba(255, 40, 40, 0.35),
            0 0 20px rgba(255, 40, 40, 0.1);
    }
}

/* ─── Fade out al seleccionar ─── */
.cpy-size-prompt.cpy-hiding {
    animation: cpyFadeOut 0.4s ease forwards;
}

@keyframes cpyFadeOut {
    to {
        opacity: 0;
        transform: translateY(-8px);
        max-height: 0;
        padding: 0 18px;
        margin: 0;
        border-width: 0;
        overflow: hidden;
    }
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
    .cpy-size-prompt {
        padding: 10px 14px;
        gap: 8px;
    }

    .cpy-size-prompt__text {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }

    .cpy-size-prompt__text span {
        font-size: 0.72rem;
    }

    .cpy-size-prompt__icon {
        font-size: 1.2rem;
    }
}