/* Explain: Styles for the AI chatbot widget, including positioning and spacing. */
.chatbot-toggle {
    bottom: calc(6rem + env(safe-area-inset-bottom));
}

.chatbot-panel {
    bottom: calc(10.5rem + env(safe-area-inset-bottom));
    transform-origin: bottom left;
    animation: chatbotPop 220ms ease-out;
}

@media (min-width: 1024px) {
    .chatbot-toggle {
        bottom: 1.5rem;
    }

    .chatbot-panel {
        bottom: 6rem;
    }
}

@keyframes chatbotPop {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 999px;
}

.chatbot-toggle-pulse {
    animation: chatbotPulse 2.6s ease-in-out infinite;
}

@keyframes chatbotPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 122, 138, 0.5);
    }
    50% {
        box-shadow: 0 0 0 14px rgba(255, 122, 138, 0);
    }
}