@keyframes webitaMessageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes webitaTyping {
    0%, 60%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    30% {
        opacity: 1;
        transform: scale(1.2);
    }
}

#webita-chat-messages::-webkit-scrollbar {
    width: 4px;
}

#webita-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

#webita-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    animation: webitaMessageSlideIn 0.25s ease-out;
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.4;
    word-wrap: break-word;
}

.webita-chat-ai-notice {
    padding: 8px 12px;
    border-top: 1px solid #d9e0e7;
    background: #fafbfd;
    color: #1f2937;
    font-size: 11px;
    line-height: 1.35;
}

.webita-chat-ai-notice p {
    margin: 0;
}

.webita-chat-ai-notice-link {
    margin-top: 4px;
}

.webita-chat-ai-notice-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
}

.webita-chat-ai-notice-meta p {
    margin: 0;
}

.webita-chat-ai-notice a {
    font-weight: 600;
    text-decoration: underline;
}

.webita-chat-ai-notice-powered {
    color: #6b7280;
    font-size: 10px;
    white-space: nowrap;
    margin-left: auto;
}

.webita-chat-ai-notice-powered a {
    font-weight: 600;
}

.thinking-cloud {
    display: flex;
    align-items: center;
    margin: 10px 0;
    max-width: 80px;
    position: relative;
}

.cloud-icon {
    position: relative;
    width: 60px;
    height: 35px;
    border-radius: 50px;
    border: 1px solid #e9ecef;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thinking-cloud::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid #e9ecef;
    border-radius: 50%;
    background: #ffffff;
    bottom: -15px;
    left: 15px;
}

.thinking-cloud::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    border: 1px solid #e9ecef;
    border-radius: 50%;
    background: #ffffff;
    bottom: -25px;
    left: 10px;
}

.dots {
    display: flex;
    gap: 3px;
}

.dot {
    width: 4px;
    height: 4px;
    background: #0077ff;
    border-radius: 50%;
    animation: webitaTyping 1.4s infinite ease-in-out;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@media (max-width: 480px) {
    .webita-chat-ai-notice {
        padding: 8px 10px;
        font-size: 11px;
    }

    .webita-chat-ai-notice-meta {
        flex-wrap: wrap;
        gap: 4px 10px;
    }

    .webita-chat-ai-notice-powered {
        margin-left: 0;
    }

    #webita-chat-container {
        width: calc(100% - 20px) !important;
        height: calc(100% - 100px) !important;
        bottom: 10px !important;
        right: 10px !important;
        left: 10px !important;
    }
}
