﻿

.akonini-ai-chatbot-icon {
    width: 65px;
    height: 45px;
    background: #000; /* Button color */
    border-radius: 10px; /* Smooth rounded corners */
    position: fixed;
    bottom: 25px;
    right: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999998;
}

    .akonini-ai-chatbot-icon::after {
        content: "";
        position: absolute;
        bottom: -10px; /* Move tail down */
        left: 50%;
        transform: translateX(-50%);
        width: 24px;
        height: 24px;
        background: #000; /* Same as button color */
        border-radius: 6px;
        clip-path: polygon(50% 100%, 0 0, 100% 0);
        z-index: 0;
    }

.icon-wrap {
    position: relative;
    z-index: 2; /* above triangle */
}

.akonini-ai-chatbot-icon > .icon-wrap > img {
    width: 20px;
    height: 20px;
}

.akonini-ai-chatbot-icon.hide,
.akonini-ai-chatbot-icon.hide::after {
    height: 0;
    width: 0;
    padding: 0;
}

.akonini-ai-chatbot-icon.hide img{
    height: 0;
    width: 0;
    padding: 0;
}

.akonini-ai-chatbot-div {
    position: fixed;
    bottom: 25px;
    right: 10px;
    z-index: -1;
    width: 0;
    height: 0;
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 12px 28px 0px, rgba(0, 0, 0, 0.1) 0px 2px 4px 0px;
    border-radius: 25px;
    display: grid;
    grid-template-rows: 88px 1fr;
    overflow: hidden;
    transform: translateX(150%);
    transition: all .3s ease;
}
.akonini-ai-chatbot-div.show {
    transform: translateY(0);
    z-index: 999999;
    width: 400px;
    height: 580px;
}



.akonini-ai-chatbot-header {
    width: 100%;
    height: 100%;
    background-color: #FFB606;
    display: grid;
    grid-template-columns: 1fr 85px;
    padding: 0 25px;
    align-items: center;
    overflow: hidden;
}

.akonini-ai-chatbot-header-logo {
    height: 100%;
    display: flex;
    gap: 15px;
    align-items: center;
}

.akonini-ai-logo-wrapper {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid #fff;
    padding: 8px;
    background-color: #FFB606;
    position: relative;
}

.active-status-ai {
    position: absolute;
    bottom: 0px;
    right: 1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: green;
    border: 2px solid #fff;
}

.akonini-ai-chatbot-header-logo > .akonini-ai-logo-wrapper > img {
    width: 100%;
    height: 100%;
    align-self: center;
    justify-self: center;
}

.akonini-ai-name-wrapper {
    width: auto;
    display: grid;
    grid-template-rows: 25px 15px 15px;
    align-items: center;
    justify-content: center;
}

    .akonini-ai-name-wrapper > h3 {
        font-size: 20px;
        font-weight: 600;
        color: #000;
    }

    .akonini-ai-name-wrapper > small {
        font-size: 13px;
        color: #000;
    }

.akonini-ai-chatbot-header-icon-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: end;
}

    .akonini-ai-chatbot-header-icon-wrapper > span > svg {
        height: 12px;
        fill: #000;
    }

.akonini-ai-chatbot-body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    gap: 10px;
}

.akonini-ai-chatbot-body-wrapper {
    height: 100%;
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-rows: 1fr 115px;
    align-self: center;
    justify-self: center;
}

.akonini-ai-chatbot-message-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 10px;
    padding-top: 25px;
    overflow-y: scroll;
}

.akonini-ai-message-item {
    padding: 10px;
    border-radius: 10px;
    background: #d5d5d5;
    max-width: 70%;
    font-size: 14px;
    word-wrap: break-word; /* ✅ breaks long words */
    overflow-wrap: break-word; /* ✅ ensures compatibility */
}

    .akonini-ai-message-item.user-message {
        background: #FFB606;
        color: #fff;
        align-self: flex-end;
    }

.akonini-ai-chatbot-typebox {
    width: 100%;
    height: 100%;
    padding: 0 25px;
}

.akonini-ai-chatbot-typebox-wrapper {
    width: 100%;
    height: 100%;
    border-top: 2px solid #DCDCDC;
    display: grid;
    grid-template-rows: 1fr 25px;
    gap: 15px;
    padding-top: 15px;
}

    .akonini-ai-chatbot-typebox-wrapper > small {
        font-size: 13px;
        color: #808080;
        text-align: center;
    }

.akonini-ai-chatbot-input-wrapper {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 35px;
    gap: 15px;
    align-items: center;
    -webkit-box-shadow: inset -1px -3px 28px -15px rgba(139, 139, 142, 1);
    -moz-box-shadow: inset -1px -3px 28px -15px rgba(139, 139, 142, 1);
    box-shadow: inset -1px -3px 28px -15px rgba(139, 139, 142, 1);
    border-radius: 15px;
    overflow: hidden;
    padding: 0 10px;
}

    .akonini-ai-chatbot-input-wrapper > input {
        border: none;
        outline: none;
        height: 45px;
        font-size: 15px;
        background-color: transparent;
    }

    .akonini-ai-chatbot-input-wrapper > span > svg {
        height: 18px;
        fill: #808080;
        cursor: pointer;
    }

.akonini-ai-chatbot-div.fullscreen {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    border-radius: 0;
}


.akonini-ai-chatbot-header-icon-wrapper span {
    cursor: pointer;
}


.ai-bubble {
    background: #f0f4ff4a;
    padding: 10px 16px;
    border-radius: 12px;
    display: inline-block;
}

.typing-indicator {
    width: 40px;
    display: flex;
    justify-content: space-between;
}

.typing-indicator span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #555;
    animation: blink 1.4s infinite both;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}


@keyframes blink {
    0% {
        opacity: 0.2;
        transform: translateY(0);
    }

    20% {
        opacity: 1;
        transform: translateY(-3px);
    }

    100% {
        opacity: 0.2;
        transform: translateY(0);
    }
}

/* ----- Mobile (up to 767px) ----- */
@media (max-width: 767px) {
    /* Styles for smartphones */
    .akonini-ai-chatbot-div {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .akonini-ai-chatbot-header-icon-wrapper .expand {
        display: none;
    }
}

/* ----- Tablet / iPad (768px to 1024px) ----- */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Styles for tablets / iPads */

}

/* ----- Desktop (1025px and up) ----- */
@media (min-width: 1025px) {
    /* Styles for desktops and larger screens */

}
