/* Campaign Bubble */
.campaign-bubble {
    position: absolute;
    bottom: 100%;
    /* Position above the button */
    left: 50%;
    transform: translateX(-50%);
    background-color: #FCEE21;
    /* Bright yellow from reference */
    color: #0E1F3A;
    /* Dark text */
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.4rem;
    white-space: nowrap;
    margin-bottom: -8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through to button if overlapped */
    animation: bounce 3s infinite;
    transform-origin: center bottom;
}

/* PC: Hide campaign bubble in CPA sections (show only in FV) */
.cpa-btn .campaign-bubble {
    display: none;
}

/* PC Floating CTA */
.pc-floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pc-floating-cta .campaign-bubble {
    display: block !important;
    /* Force display on PC for this specific element */
    bottom: auto;
    top: -20px;
    /* Position above the bar */
}

@keyframes bounce {

    0%,
    10%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    20% {
        transform: translateX(-50%) translateY(-10px);
    }

    25% {
        transform: translateX(-50%) translateY(0);
    }

    30% {
        transform: translateX(-50%) translateY(-5px);
    }

    35% {
        transform: translateX(-50%) translateY(0);
    }
}

/* Triangle pointer */
.campaign-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #FCEE21 transparent transparent transparent;
}

/* Adjustments for SP if needed */
@media screen and (max-width: 768px) {
    .campaign-bubble {
        font-size: 1.2rem;
        padding: 6px 14px;
    }

    /* SP: Show campaign bubble in CPA sections */
    .cpa-btn .campaign-bubble {
        display: block;
    }

    /* Hide PC floating CTA on SP */
    .pc-floating-cta {
        display: none !important;
    }
}