/* =========================================
   NATIVODDS AI CHATBOT
   ========================================= */

.nativ-ai-widget {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 99999;
    font-family: inherit;
}

/* Floating Button */

.nativ-ai-button {
    border: none;
    outline: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 13px 18px;

    border-radius: 50px;

    background: #111827;
    color: #ffffff;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.20);

    font-size: 14px;
    font-weight: 600;

    transition: all 0.3s ease;
}

.nativ-ai-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.nativ-ai-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;
    border-radius: 50%;

    font-size: 19px;
}

.nativ-ai-label {
    white-space: nowrap;
}


/* Chat Window */

.nativ-ai-chat {
    position: absolute;

    bottom: 75px;
    left: 0;

    width: 360px;
    max-width: calc(100vw - 30px);

    background: #ffffff;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.20);

    border: 1px solid #e5e7eb;

    opacity: 0;
    visibility: hidden;

    transform: translateY(15px) scale(0.96);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
}


/* Open State */

.nativ-ai-chat.active {
    opacity: 1;
    visibility: visible;

    transform: translateY(0) scale(1);
}


/* Header */

.nativ-ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 18px;

    background: #111827;
    color: #ffffff;
}

.nativ-ai-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nativ-ai-title h4 {
    margin: 0;
color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.nativ-ai-title span {
    display: block;

    margin-top: 2px;

    font-size: 14px;

    opacity: 0.7;
}

.nativ-ai-avatar {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    border-radius: 50%;

    font-size: 20px;
}

.nativ-ai-avatar.small {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

    font-size: 16px;

    background: #f3f4f6;
}

.nativ-ai-close {
    width: 32px;
    height: 32px;

    border: none;
    background: transparent;

    color: #ffffff;

    font-size: 25px;

    cursor: pointer;

    border-radius: 50%;

    transition: background 0.2s ease;
}

.nativ-ai-close:hover {
    background: rgba(255, 255, 255, 0.12);
}


/* Body */

.nativ-ai-body {
    padding: 20px;

    min-height: 300px;

    background: #f9fafb;
}

.nativ-ai-message {
    display: flex;
    align-items: flex-start;

    gap: 10px;
}

.nativ-ai-bubble {
    max-width: 270px;

    padding: 14px 16px;

    background: #ffffff;

    border-radius: 4px 16px 16px 16px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);

    color: #374151;

    font-size: 13px;

    line-height: 1.6;
}

.nativ-ai-bubble p {
    margin: 0 0 10px;
}

.nativ-ai-bubble p:last-of-type {
    margin-bottom: 14px;
}

.nativ-ai-bubble strong {
    color: #111827;
}


/* Coming Soon Badge */

.nativ-ai-coming {
    padding: 10px 12px;

    background: #f3f4f6;

    border-radius: 10px;

    text-align: center;

    color: #111827;

    font-size: 12px;

    font-weight: 700;
}


/* Footer */

.nativ-ai-footer {
    padding: 10px 15px;

    text-align: center;

    border-top: 1px solid #eeeeee;

    background: #ffffff;

    color: #9ca3af;

    font-size: 15px;
}


/* Mobile */

@media (max-width: 480px) {

    .nativ-ai-widget {
        left: 15px;
        bottom: 15px;
    }

    .nativ-ai-chat {
        width: calc(100vw - 30px);

        bottom: 70px;
    }

    .nativ-ai-button {
        padding: 12px 15px;
    }

    .nativ-ai-body {
        min-height: 280px;
    }

}