#fixagency-chatbot {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999999;
    font-family: Arial, Helvetica, sans-serif;
}

#fixagency-chatbot-toggle {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    border: 0;
    background: #111;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 12px 35px rgba(0,0,0,.25);
}

#fixagency-chatbot-panel {
    display: none;
    width: 360px;
    max-width: calc(100vw - 30px);
    height: 520px;
    max-height: calc(100vh - 110px);
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0,0,0,.28);
    border: 1px solid rgba(0,0,0,.08);
}

#fixagency-chatbot-panel.open {
    display: flex;
    flex-direction: column;
}

.fixagency-chatbot-header {
    background: #111;
    color: #fff;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fixagency-chatbot-header span {
    display: block;
    font-size: 12px;
    opacity: .75;
    margin-top: 3px;
}

#fixagency-chatbot-close {
    background: transparent;
    color: #fff;
    border: 0;
    font-size: 28px;
    cursor: pointer;
}

#fixagency-chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f6f6f6;
}

.fixagency-msg {
    max-width: 85%;
    padding: 11px 13px;
    border-radius: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.fixagency-msg.bot {
    background: #fff;
    color: #111;
    border-bottom-left-radius: 4px;
}

.fixagency-msg.user {
    background: #111;
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.fixagency-msg.loading {
    opacity: .7;
    font-style: italic;
}

#fixagency-chatbot-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid rgba(0,0,0,.08);
    background: #fff;
}

#fixagency-chatbot-input {
    flex: 1;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 999px;
    padding: 11px 13px;
    outline: none;
}

#fixagency-chatbot-form button {
    border: 0;
    border-radius: 999px;
    background: #111;
    color: #fff;
    padding: 0 16px;
    cursor: pointer;
}

@media (max-width: 480px) {
    #fixagency-chatbot {
        right: 14px;
        bottom: 14px;
    }

    #fixagency-chatbot-panel {
        width: calc(100vw - 28px);
        height: 70vh;
    }
}

.fixagency-msg.bot a {
    color: #00bfc7;
    font-weight: 700;
    text-decoration: underline;
    word-break: break-word;
}