.css-chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.css-chatbot-messages::-webkit-scrollbar-thumb {
    background: #c8c8c8;
    border-radius: 6px;
}

.css-chatbot {
    position: fixed;
    right: 18px;
    bottom: 72px;
    z-index: 1040;
    font-family: "Open Sans", Arial, sans-serif;
}

.css-chatbot-toggle {
    position: relative;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: #ee0000;
    color: #fff;
    box-shadow: 0 8px 24px rgba(238, 0, 0, 0.4);
    cursor: pointer;
    font-size: 24px;
}

.css-chatbot-toggle:hover {
    background: #c40000;
}

.css-chatbot-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #22c55e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}

.css-chatbot-badge-hidden {
    display: none;
}

.css-chatbot-panel {
    position: absolute;
    right: 0;
    bottom: 74px;
    width: 440px;
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 110px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.css-chatbot-panel-hidden {
    display: none;
}

.css-chatbot-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 14px 14px 12px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #fff;
}

.css-chatbot-agent {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.css-chatbot-agent-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ee0000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.css-chatbot-online {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #111827;
}

.css-chatbot-head-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.css-chatbot-head-text strong {
    font-size: 15px;
    font-weight: 700;
}

.css-chatbot-status {
    font-size: 11px;
    color: #9ca3af;
}

.css-chatbot-close {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}

.css-chatbot-close:hover {
    background: rgba(255, 255, 255, 0.16);
}

.css-chatbot-messages {
    height: 460px;
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    padding: 14px 12px;
    background: #f3f4f6;
}

.css-chatbot-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 12px;
}

.css-chatbot-row-user {
    flex-direction: row-reverse;
}

.css-chatbot-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ee0000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.css-chatbot-row-user .css-chatbot-avatar {
    background: #374151;
}

.css-chatbot-bubble-wrap {
    max-width: 78%;
    display: flex;
    flex-direction: column;
}

.css-chatbot-row-user .css-chatbot-bubble-wrap {
    align-items: flex-end;
}

.css-chatbot-msg {
    padding: 9px 12px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.css-chatbot-msg-bot {
    background: #fff;
    color: #1f2937;
    border-bottom-left-radius: 4px;
}

.css-chatbot-msg-user {
    background: #ee0000;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.css-chatbot-link {
    color: #ee0000;
    font-weight: 600;
    text-decoration: underline;
    word-break: break-all;
    cursor: pointer;
    display: inline;
    pointer-events: auto;
}

.css-chatbot-msg-bot .css-chatbot-link:hover {
    color: #c40000;
}

.css-chatbot-msg-bot strong {
    font-weight: 700;
}

.css-chatbot-time {
    margin-top: 3px;
    padding: 0 4px;
    font-size: 10px;
    color: #9ca3af;
}

.css-chatbot-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.css-chatbot-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9ca3af;
    animation: css-chatbot-dot 1.2s infinite ease-in-out;
}

.css-chatbot-typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.css-chatbot-typing span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes css-chatbot-dot {
    0%,
    80%,
    100% {
        opacity: 0.35;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.css-chatbot-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 4px 4px 36px;
    margin-bottom: 8px;
}

.css-chatbot-chip {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    border-radius: 16px;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
}

.css-chatbot-chip:hover {
    border-color: #ee0000;
    color: #ee0000;
}

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

.css-chatbot-input {
    flex: 1;
    height: 42px;
    font-size: 13px;
    border-radius: 21px;
    border: 1px solid #e5e7eb;
    padding-left: 14px;
    padding-right: 14px;
    box-shadow: none;
}

.css-chatbot-input:focus {
    border-color: #ee0000;
    box-shadow: none;
}

.css-chatbot-send {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    background: #ee0000;
    color: #fff;
    border: none;
    flex-shrink: 0;
}

.css-chatbot-send:hover {
    background: #c40000;
    color: #fff;
}

.css-chatbot-send:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.css-chatbot-foot {
    padding: 6px 12px 8px;
    text-align: center;
    font-size: 10px;
    color: #9ca3af;
    background: #fff;
    border-top: 1px solid #f3f4f6;
}
