.aiengine-floating-container {
    position: fixed;
    bottom: 20px;
    right: 90px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;   
    cursor: pointer;
    z-index: 9999;
}

.aiengine-floating-container:hover {    
    transform: translateY(-2px);
}

.aiengine-bot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.aiengine-bot-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    border: 1.5px solid #FCB525;
    box-shadow: 0 4px 16px rgba(252, 181, 37, 0.3),
                0 0 0 3px rgba(252, 181, 37, 0.1);
    transition: all 0.3s ease;
    object-fit: cover;
    background: #2d2d2d;
}

.aiengine-floating-container:hover .aiengine-bot-icon {
   
    box-shadow: 0 3px 12px rgba(252, 181, 37, 0.5),
                0 0 0 5px rgba(252, 181, 37, 0.15);
    border-color: #ffc94d;
}

.aiengine-bot-icon:active {
    transform: scale(1.05);
}

.aiengine-bot-name {
    color: #FCB525;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(252, 181, 37, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(252, 181, 37, 0.2);
    box-shadow: 0 8px 32px rgba(252, 181, 37, 0.15),
                0 0 0 1px rgba(252, 181, 37, 0.1);
    transition: all 0.3s ease;
    padding: 4px 12px;
    background-color: #2d2d2d;
}
.card:empty {
    display: none;
}
.drawer.drawer-right {
    visibility: visible;
}
.block_botbuilder {
    border: 0;
    background-color: #ffffff;
    padding: 0 !important;
    margin: 0 !important;
}
.block_botbuilder .content {
    border: 0 !important;
    padding: 0 !important;
    margin: 0;
}
/* Default: hide the header */
.block_botbuilder .header {
    display: none;
}

/* When editing is on: show it */
body.editing .block_botbuilder .header {
    display: block;
}

.chat-container {
    width: 100%;
    max-width: 600px;
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.chat-messages {
    padding: 20px;
    height: 500px;
    overflow-y: auto;
    background: #1a1a1a;
}
.chat-messages .message-bubble p,
.chat-messages .message-bubble ol,
.chat-messages .message-bubble ul {
    margin: 0 !important;
}
.chat-messages::-webkit-scrollbar {
    width: 6px;
}
.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}
.typing-dots {
    display:inline-block;
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    margin: 0 2px;
    animation: blink 1.2s infinite;
}
.typing-dots:nth-child(2) { animation-delay: 0.2s; }
.typing-dots:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0%, 80%, 100% { opacity: 0.2; }
    40% { opacity: 1; }
}