﻿#bot-widget-root {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2147483000;
    width: 360px;
    max-width: calc(100vw - 24px);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.bot-row.notice {
    text-align: center;
}

.bot-bubble.bot-notice {
    background-color: #fff3cd; /* jasno żółte */
    color: #856404;
    border: 1px solid #ffeeba;
    font-size: 0.85rem;
}

.bot-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #dcdcdc;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
    font-weight: 600;
}

    .bot-btn .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #4caf50;
    }

.bot-panel {
    display: none;
    margin-top: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0,0,0,.18);
    overflow: hidden;
}

.bot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.bot-title {
    font-weight: 700;
}

.bot-actions {
    display: flex;
    gap: 8px;
}

.bot-icon-btn {
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 8px;
    padding: 6px 8px;
    cursor: pointer;
}

.bot-messages {
    height: 320px;
    overflow: auto;
    padding: 12px;
    background: #fff;
}

.bot-row {
    display: flex;
    margin: 8px 0;
}

    .bot-row.user {
        justify-content: flex-end;
    }

    .bot-row.assistant {
        justify-content: flex-start;
    }

.bot-bubble {
    max-width: 85%;
    padding: 10px 12px;
    border-radius: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.bot-row.user .bot-bubble {
    background: #e7f3ff;
}

.bot-row.assistant .bot-bubble {
    background: #f6f6f6;
}

.bot-inputbar {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

    .bot-inputbar input {
        flex: 1;
        border: 1px solid #e0e0e0;
        border-radius: 10px;
        padding: 10px 12px;
        outline: none;
    }

    .bot-inputbar button {
        border: 1px solid #dcdcdc;
        border-radius: 10px;
        background: #fff;
        padding: 10px 12px;
        cursor: pointer;
        font-weight: 600;
    }

.bot-empty {
    color: #888;
    font-size: 13px;
    background: #fbfbfb;
    border: 1px dashed #e9e9e9;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    margin: 8px 0;
}

.bot-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 6px;
    background: #edf7ee;
    color: #2e7d32;
    border-radius: 999px;
    border: 1px solid #cfead2;
}
