#aibi-adoption-chatbot-root {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
}

.aibi-chatbot-fab {
    border: 0;
    border-radius: 999px;
    background: #007c5a;
    color: #fff;
    font-weight: 700;
    padding: 12px 18px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.aibi-chatbot-fab.is-hidden {
    display: none;
}

.aibi-chatbot-panel {
    width: min(380px, calc(100vw - 30px));
    max-height: min(70vh, 560px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid #d9e2e7;
    display: none;
}

.aibi-chatbot-panel.is-open {
    display: flex;
    flex-direction: column;
}

.aibi-chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    color: #fff;
    background: #005d44;
}

.aibi-chatbot-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.aibi-chatbot-messages {
    padding: 12px;
    overflow-y: auto;
    background: #f6f8fa;
    flex: 1;
}

.aibi-chatbot-message {
    margin: 0 0 8px;
    border-radius: 10px;
    padding: 10px 11px;
    font-size: 14px;
    line-height: 1.45;
}

.aibi-chatbot-message p {
    margin: 0;
}

.aibi-chatbot-message p + p {
    margin-top: 8px;
}

.aibi-chatbot-message.bot {
    background: #fff;
    border: 1px solid #d7dde2;
    margin-right: 20px;
}

.aibi-chatbot-message.user {
    background: #d7f0e8;
    border: 1px solid #bee3d7;
    margin-left: 20px;
}

.aibi-chatbot-source a {
    color: #005d44;
    text-decoration: underline;
}

.aibi-chatbot-form {
    display: flex;
    gap: 8px;
    border-top: 1px solid #e7edf1;
    padding: 10px;
    background: #fff;
}

.aibi-chatbot-input {
    flex: 1;
    border: 1px solid #c3ccd2;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 14px;
}

.aibi-chatbot-send {
    border: 0;
    border-radius: 8px;
    background: #007c5a;
    color: #fff;
    padding: 9px 12px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 768px) {
    #aibi-adoption-chatbot-root {
        right: 10px;
        left: 10px;
        bottom: 10px;
    }

    .aibi-chatbot-panel {
        width: 100%;
        max-height: 75vh;
    }
}
