#cb-berater { --cb-accent: #c8102e; --cb-dark: #1f2328; font-size: 15px; line-height: 1.45; }
#cb-berater .cb-toggle {
    position: fixed; right: 20px; bottom: 20px; z-index: 1080;
    display: flex; align-items: center; gap: 8px;
    padding: 5px 20px 5px 5px; border: 0; border-radius: 999px;
    background: var(--cb-accent); color: #fff; font-weight: 600; cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
#cb-berater .cb-toggle:hover { filter: brightness(1.08); }
#cb-berater .cb-panel {
    position: fixed; right: 20px; bottom: 20px; z-index: 1081;
    width: 390px; max-width: calc(100vw - 24px); height: 600px; max-height: calc(100vh - 40px);
    display: flex; flex-direction: column; background: #fff;
    border-radius: 14px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
#cb-berater .cb-panel[hidden], #cb-berater .cb-toggle[hidden] { display: none; }
#cb-berater .cb-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 14px; background: var(--cb-dark); color: #fff;
}
#cb-berater .cb-actions button {
    background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; padding: 0 6px; line-height: 1;
}
#cb-berater .cb-msgs { flex: 1; overflow-y: auto; padding: 14px; background: #f5f6f7; }
#cb-berater .cb-msg { max-width: 88%; margin-bottom: 10px; padding: 9px 12px; border-radius: 12px; word-wrap: break-word; }
#cb-berater .cb-msg p { margin: 0 0 6px; }
#cb-berater .cb-msg p:last-child { margin-bottom: 0; }
#cb-berater .cb-msg ul { margin: 4px 0 6px; padding-left: 18px; }
#cb-berater .cb-msg a { color: var(--cb-accent); text-decoration: underline; }
#cb-berater .cb-assistant { background: #fff; border: 1px solid #e3e5e8; }
#cb-berater .cb-user { margin-left: auto; background: var(--cb-dark); color: #fff; }
#cb-berater .cb-wait span {
    display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%;
    background: #999; animation: cbDot 1s infinite ease-in-out;
}
#cb-berater .cb-wait span:nth-child(2) { animation-delay: .15s; }
#cb-berater .cb-wait span:nth-child(3) { animation-delay: .3s; }
@keyframes cbDot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
#cb-berater .cb-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e3e5e8; }
#cb-berater .cb-form textarea {
    flex: 1; resize: none; border: 1px solid #ccd0d5; border-radius: 10px; padding: 8px 10px; font: inherit;
}
#cb-berater .cb-form button {
    border: 0; border-radius: 10px; padding: 0 14px; background: var(--cb-accent); color: #fff; font-size: 18px; cursor: pointer;
}
#cb-berater .cb-note { font-size: 11px; color: #777; text-align: center; padding: 0 10px 8px; }
@media (max-width: 480px) {
    #cb-berater .cb-panel { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
    #cb-berater .cb-toggle { right: 12px; bottom: 12px; }
}

#cb-berater .cb-avatar-lg { width: 58px; height: 58px; border-radius: 50%; display: block; transition: transform .2s; }
#cb-berater .cb-toggle span { font-size: 16px; }
#cb-berater .cb-toggle:hover .cb-avatar-lg { transform: rotate(-6deg) scale(1.05); }
#cb-berater .cb-who { display: flex; align-items: center; gap: 10px; }
#cb-berater .cb-who img { border-radius: 50%; }
#cb-berater .cb-who small { display: block; font-size: 11px; opacity: .7; font-weight: 400; }
#cb-berater .cb-row { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 10px; }
#cb-berater .cb-row .cb-msg { margin-bottom: 0; }
#cb-berater .cb-avatar-sm { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px; }

.cb-search-hint { display: flex; align-items: center; gap: 16px; margin: 16px 0 20px; padding: 14px 18px;
    background: #f5f6f7; border: 1px solid #e3e5e8; border-left: 5px solid #c8102e; border-radius: 10px; font-size: 15px; }
.cb-search-hint img { width: 64px; height: 64px; border-radius: 50%; flex: 0 0 64px; }
.cb-search-hint div { flex: 1; }
.cb-search-hint strong { display: block; font-size: 17px; margin-bottom: 2px; }
.cb-search-hint button { border: 0; border-radius: 999px; padding: 10px 18px; background: #c8102e; color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; }
.cb-search-hint.cb-search-empty { background: #fff4f5; }
@media (max-width: 640px) { .cb-search-hint { flex-wrap: wrap; } .cb-search-hint button { width: 100%; } }

.cb-suggest .cb-suggest-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff4f5;
    border-left: 4px solid #c8102e; color: inherit; text-decoration: none; }
.cb-suggest .cb-suggest-link:hover { background: #ffe9ec; }
.cb-suggest img { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 40px; }
.cb-suggest span { flex: 1; line-height: 1.3; }
.cb-suggest strong { display: block; color: #c8102e; }
.cb-suggest small { display: block; color: #555; font-size: 13px; }
.cb-suggest em { font-style: normal; font-weight: 600; color: #c8102e; white-space: nowrap; }
