/* Support-Chatbot Widget (Theme + Klassik). Eigener Namensraum cw-, keine Abhaengigkeit von Bootstrap/Theme. */
.cw-launch{position:fixed;right:18px;bottom:18px;z-index:9990;display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 18px 0 14px;border:0;border-radius:999px;background:var(--ep-primary,#1e6e70);color:var(--ep-on-primary,#fff);font:600 15px/1 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;box-shadow:0 6px 20px rgba(0,0,0,.18);cursor:pointer}
.cw-launch:hover{filter:brightness(1.06)}
.cw-launch svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cw-launch[hidden]{display:none}
.cw-panel{position:fixed;right:18px;bottom:18px;z-index:9991;width:min(400px,calc(100vw - 24px));height:min(620px,calc(100vh - 36px));display:flex;flex-direction:column;background:#fff;color:#1b1f1f;border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.28);overflow:hidden;font:15px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.cw-panel[hidden]{display:none}
@media (max-width:600px){.cw-panel{right:0;bottom:0;width:100vw;height:min(88vh,100dvh);border-radius:16px 16px 0 0}}
.cw-head{display:flex;align-items:center;gap:10px;padding:12px 14px;background:var(--ep-primary,#1e6e70);color:var(--ep-on-primary,#fff)}
.cw-head b{font-size:15px;color:inherit}.cw-head small{display:block;font-size:12px;opacity:.9;font-weight:400;color:inherit}
.cw-close{margin-left:auto;background:transparent;border:0;color:inherit;font-size:22px;line-height:1;cursor:pointer;padding:4px 6px}
.cw-log{flex:1;overflow-y:auto;padding:14px 12px;display:flex;flex-direction:column;gap:10px;background:#f4f7f7;-webkit-overflow-scrolling:touch}
.cw-msg{max-width:86%;padding:10px 13px;border-radius:14px;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere}
.cw-msg.bot{align-self:flex-start;background:#fff;border:1px solid #dde3e3;border-bottom-left-radius:4px}
.cw-msg.user{align-self:flex-end;background:var(--ep-primary,#1e6e70);color:var(--ep-on-primary,#fff);border-bottom-right-radius:4px}
.cw-msg.sys{align-self:center;background:transparent;color:#5b6666;font-size:12.5px;text-align:center;max-width:95%}
.cw-msg a{color:inherit;text-decoration:underline}
.cw-typing span{display:inline-block;width:6px;height:6px;margin-right:3px;border-radius:50%;background:#9aa5a5;animation:cwb 1.2s infinite}
.cw-typing span:nth-child(2){animation-delay:.2s}.cw-typing span:nth-child(3){animation-delay:.4s}
@keyframes cwb{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){.cw-typing span{animation:none}}
.cw-quick{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 8px;background:#f4f7f7}
.cw-quick button{border:1px solid var(--ep-primary,#1e6e70);background:#fff;color:var(--ep-primary,#1e6e70);border-radius:999px;padding:6px 11px;font-size:13px;cursor:pointer}
.cw-form{display:flex;gap:8px;padding:10px 12px;border-top:1px solid #dde3e3;background:#fff}
.cw-form textarea{flex:1;resize:none;min-height:44px;max-height:120px;padding:10px 12px;border:1px solid #c9d2d2;border-radius:10px;font:inherit;font-size:16px}
.cw-form button{min-width:48px;border:0;border-radius:10px;background:var(--ep-primary,#1e6e70);color:var(--ep-on-primary,#fff);font-weight:700;cursor:pointer}
.cw-form button:disabled{opacity:.5;cursor:default}
.cw-consent{padding:14px;background:#fff;border-top:1px solid #dde3e3;font-size:13px;color:#33403f}
.cw-consent p{margin:0 0 10px}
.cw-consent button{border:0;border-radius:10px;background:var(--ep-primary,#1e6e70);color:var(--ep-on-primary,#fff);padding:10px 14px;font-weight:700;cursor:pointer}
.cw-foot{padding:4px 12px 8px;font-size:11px;color:#7a8585;background:#fff;text-align:center}

.cw-quick[hidden],.cw-form[hidden],.cw-consent[hidden],.cw-panel[hidden],.cw-launch[hidden]{display:none!important}
