.chatbot-toggle {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.4rem;
    border: none;
    border-radius: var(--radius-full);
    background: var(--color-secondary);
    color: #fff;
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

.chatbot-toggle:hover,
.chatbot-toggle:focus-visible {
    background: var(--color-secondary-dark);
}

.chatbot-panel {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 5.5rem;
    z-index: 1100;
    display: none;
    flex-direction: column;
    max-height: 70vh;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.chatbot-panel.open {
    display: flex;
}

.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    background: var(--color-secondary);
    color: #fff;
}

.chatbot-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.chatbot-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: var(--color-bg);
}

.chatbot-msg {
    max-width: 85%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    font-size: 1.4rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.chatbot-msg.bot {
    align-self: flex-start;
    background: var(--color-surface);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.chatbot-msg.user {
    align-self: flex-end;
    background: var(--color-primary-light);
    color: var(--color-text-primary);
}

.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
    max-height: 9rem;
    overflow-y: auto;
}

.chatbot-chip {
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--color-secondary);
    border-radius: var(--radius-full);
    background: var(--color-surface);
    color: var(--color-secondary);
    font-family: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    text-align: left;
}

.chatbot-chip:hover,
.chatbot-chip:focus-visible {
    background: var(--color-secondary-light);
}

.chatbot-form {
    display: flex;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.chatbot-input {
    flex: 1;
    min-width: 0;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1.4rem;
}

.chatbot-send {
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
}

@media (min-width: 600px) {
    .chatbot-panel {
        left: auto;
        right: 1.5rem;
        bottom: 6rem;
        width: 380px;
    }
}
