/* AI poradca — plávajúce tlačidlo a panel. */
#chatbot { position: fixed; right: 20px; bottom: 20px; z-index: 1050; }

.chatbot-toggle {
    width: 56px; height: 56px;
    border: 0; border-radius: 50%;
    background: #1c2430; color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}

.chatbot-toggle:hover { background: #2e3a4c; }

.chatbot-panel {
    position: absolute; right: 0; bottom: 70px;
    width: min(360px, calc(100vw - 40px));
    height: 480px; max-height: calc(100vh - 120px);
    background: #fff;
    border: 1px solid #e2e6eb; border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
    display: flex; flex-direction: column;
    overflow: hidden;
}

.chatbot-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    background: #1c2430; color: #fff;
}

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

.chatbot-log {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex; flex-direction: column; gap: 8px;
}

.chatbot-msg {
    max-width: 85%;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: .92rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.chatbot-msg--user { align-self: flex-end; background: #1c2430; color: #fff; border-bottom-right-radius: 4px; }
.chatbot-msg--assistant { align-self: flex-start; background: #f0f2f5; color: #1c2430; border-bottom-left-radius: 4px; }

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

.chatbot-form input {
    flex: 1;
    border: 1px solid #e2e6eb; border-radius: 8px;
    padding: 9px 12px;
    font: inherit;
}

.chatbot-form button {
    border: 0; border-radius: 8px;
    background: #1c2430; color: #fff;
    padding: 0 16px;
    font: inherit;
    cursor: pointer;
}
