/* FELHASZNÁLÓI SEGÉD – a bolt chatablaka (a sablon fő színét használja, ha nincs külön szín beállítva) */
#cbs-root { --cbs-a: var(--cbs-accent, var(--color-primary, #2455c4)); position: fixed; bottom: 20px; z-index: 9990; font-family: inherit; }
#cbs-root.cbs-pos-right { right: 20px; }
#cbs-root.cbs-pos-left { left: 20px; }
#cbs-root * { box-sizing: border-box; }
.cbs-fab {
    width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; background: var(--cbs-a); color: #fff;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 28px -8px rgba(0,0,0,.45); transition: transform .2s;
}
.cbs-fab:hover { transform: translateY(-2px) scale(1.04); }
.cbs-fab svg { width: 26px; height: 26px; }
.cbs-teaser {
    position: absolute; bottom: 70px; white-space: nowrap; background: #fff; color: #1a1a1a; font-size: .9rem; padding: 9px 14px; border-radius: 14px;
    box-shadow: 0 10px 26px -10px rgba(0,0,0,.35); cursor: pointer; animation: cbsIn .35s ease both;
}
.cbs-pos-right .cbs-teaser { right: 0; }
.cbs-pos-left .cbs-teaser { left: 0; }
.cbs-panel {
    position: absolute; bottom: 72px; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 110px)); background: #fff; color: #1a1a1a;
    border-radius: 20px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.45); display: flex; flex-direction: column; overflow: hidden; animation: cbsIn .25s ease both;
}
.cbs-pos-right .cbs-panel { right: 0; }
.cbs-pos-left .cbs-panel { left: 0; }
.cbs-panel[hidden] { display: none; }
@keyframes cbsIn { from { opacity: 0; transform: translateY(10px); } }
.cbs-head { background: var(--cbs-a); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.cbs-head b { font-size: 1rem; flex: 1; }
.cbs-head small { display: block; font-weight: 400; opacity: .85; font-size: .76rem; }
.cbs-head button { background: rgba(255,255,255,.18); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.cbs-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f6f7f9; }
.cbs-m { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: .9rem; line-height: 1.5; word-wrap: break-word; }
.cbs-m p { margin: 0 0 6px; } .cbs-m p:last-child { margin-bottom: 0; }
.cbs-m ul { margin: 4px 0 6px; padding-left: 18px; } .cbs-m li { margin: 2px 0; }
.cbs-m a { color: var(--cbs-a); }
.cbs-bot { background: #fff; align-self: flex-start; border-bottom-left-radius: 5px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.cbs-me { background: var(--cbs-a); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.cbs-links, .cbs-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cbs-links a { display: inline-block; text-decoration: none; background: var(--cbs-a); color: #fff !important; font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.cbs-chip { border: 1px solid #d9dce2; background: #fff; color: #1a1a1a; font: inherit; font-size: .8rem; padding: 6px 11px; border-radius: 999px; cursor: pointer; text-align: left; }
.cbs-chip:hover { border-color: var(--cbs-a); color: var(--cbs-a); }
.cbs-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; background: #f6f7f9; }
.cbs-fb { display: flex; gap: 6px; margin-top: 6px; font-size: .75rem; color: #7a808a; align-items: center; }
.cbs-fb button { border: 0; background: none; cursor: pointer; font-size: .95rem; padding: 0 2px; opacity: .7; }
.cbs-fb button:hover { opacity: 1; }
.cbs-typing { display: inline-flex; gap: 4px; }
.cbs-typing i { width: 7px; height: 7px; border-radius: 50%; background: #b5bac3; animation: cbsDot 1s infinite ease-in-out; }
.cbs-typing i:nth-child(2) { animation-delay: .15s; } .cbs-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cbsDot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.cbs-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #eceef1; background: #fff; }
.cbs-form input { flex: 1; min-width: 0; border: 1px solid #d9dce2; border-radius: 999px; padding: 10px 14px; font: inherit; font-size: .9rem; color: #1a1a1a; background: #fff; }
.cbs-form input:focus { outline: none; border-color: var(--cbs-a); }
.cbs-form button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--cbs-a); color: #fff; cursor: pointer; flex: none; display: flex; align-items: center; justify-content: center; }
.cbs-form button svg { width: 18px; height: 18px; }
.cbs-foot { text-align: center; font-size: .68rem; color: #9aa0a9; padding: 0 0 8px; background: #fff; }
/* termékkártyák a válaszban */
.cbs-prods { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.cbs-prod { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit !important; border: 1px solid #eceef1; border-radius: 12px; padding: 6px; background: #fff; }
.cbs-prod:hover { border-color: var(--cbs-a); }
.cbs-prod img, .cbs-noimg { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; background: #f0f1f4; flex: none; }
.cbs-prod span { display: flex; flex-direction: column; min-width: 0; }
.cbs-prod b { font-size: .84rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbs-prod em { font-style: normal; font-size: .82rem; font-weight: 700; }
.cbs-prod s { font-weight: 400; opacity: .55; margin-left: 4px; }
.cbs-st { font-size: .72rem; }
.cbs-st.in { color: #2e7d32; } .cbs-st.out { color: #c8352b; } .cbs-st.pre { color: #b26a00; }
@media (max-width: 640px) {
    #cbs-root { bottom: 14px; }
    #cbs-root.cbs-pos-right { right: 14px; } #cbs-root.cbs-pos-left { left: 14px; }
    #cbs-root.cbs-no-mobile { display: none; }
    .cbs-panel { position: fixed; inset: auto 8px 84px 8px; width: auto; height: min(70vh, 560px); }
}
@media (prefers-reduced-motion: reduce) { .cbs-panel, .cbs-teaser { animation: none; } .cbs-typing i { animation: none; } }
