/* Chat Nudge / Call-to-Action Arrow */
.chat-nudge-container {
    position: fixed;
    bottom: 100px;
    right: 40px;
    z-index: 9998; /* Below modal (9999) but above content */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none; /* Let clicks pass through to page if missed */
    opacity: 0;
    transform: translateY(20px);
    animation: nudgeEnter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 3s forwards;
}

.chat-nudge-text {
    background: white;
    color: var(--color-text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 20px 20px 4px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    position: relative;
    white-space: nowrap;
    border: 1px solid rgba(0,0,0,0.05);
}

.chat-nudge-arrow {
    width: 60px;
    height: 60px;
    margin-right: 10px;
    color: var(--color-accent); /* Wattle Gold */
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
    animation: nudgePoint 2s ease-in-out infinite;
}

.chat-nudge-arrow path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawArrow 1.5s ease-out 3.5s forwards;
}

@keyframes nudgeEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nudgePoint {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(5px, 5px) rotate(5deg); }
}

@keyframes drawArrow {
    to { stroke-dashoffset: 0; }
}

/* Mobile adjustments: Visible but smaller and positioned carefully */
@media (max-width: 768px) {
    .chat-nudge-container {
        display: flex;
        bottom: 90px; /* Positioned just above the chat button (assumed ~60px + 20px margin) */
        right: 20px;
        transform: translateY(20px) scale(0.9); /* Slightly smaller start state */
        animation: nudgeEnterMobile 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 4s forwards; /* Delay longer on mobile */
    }

    .chat-nudge-text {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
        margin-bottom: 0.25rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* Stronger shadow for contrast on varied mobile backgrounds */
    }

    .chat-nudge-arrow {
        width: 45px;
        height: 45px;
        margin-right: 5px;
    }
}

@keyframes nudgeEnterMobile {
    to {
        opacity: 1;
        transform: translateY(0) scale(0.9); /* Keep the scale in the final state */
    }
}
