/* Chat asistent Momcozy: plovoucí tlačítko + panel (barvy webu: #823d50 švestková, #65303e tmavá, #f7e9e6 krémová) */
.chat-root{position:fixed;right:18px;bottom:18px;z-index:120;font-family:inherit}
.chat-fab{display:inline-flex;align-items:center;gap:.55rem;border:0;border-radius:999px;background:#823d50;color:#fff;padding:.75rem 1.1rem .75rem .9rem;font:inherit;font-weight:600;font-size:.92rem;box-shadow:0 10px 30px rgba(101,48,62,.28);cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}
.chat-fab:hover{transform:translateY(-1px);box-shadow:0 14px 34px rgba(101,48,62,.34)}
.chat-fab svg{width:22px;height:22px}
.chat-root.is-open .chat-fab{box-shadow:none}
.chat-panel[hidden]{display:none}
.chat-form .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.chat-panel{position:absolute;right:0;bottom:64px;width:min(380px,calc(100vw - 36px));height:min(560px,calc(100vh - 110px));display:flex;flex-direction:column;background:#fbf4f2;border:1px solid rgba(101,48,62,.14);border-radius:18px;box-shadow:0 24px 60px rgba(101,48,62,.22);overflow:hidden}
.chat-head{display:flex;align-items:center;gap:.6rem;padding:.85rem 1rem;background:#65303e;color:#fff}
.chat-head>div{flex:1;display:flex;flex-direction:column;line-height:1.2}
.chat-head strong{font-size:1rem}.chat-head span{font-size:.76rem;opacity:.8}
.chat-close,.chat-clear{border:0;background:rgba(255,255,255,.12);color:#fff;width:32px;height:32px;border-radius:50%;font-size:1.2rem;line-height:1;cursor:pointer;display:grid;place-items:center}
.chat-close:hover,.chat-clear:hover{background:rgba(255,255,255,.22)}
.chat-log{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:.6rem}
.chat-msg{max-width:88%;padding:.6rem .85rem;border-radius:14px;font-size:.9rem;line-height:1.45}
.chat-msg p{margin:0}.chat-msg p+p,.chat-msg ul{margin-top:.4rem}.chat-msg ul{padding-left:1.1rem;list-style:disc}
.chat-msg a{color:#823d50;font-weight:600;text-decoration:underline}
.chat-assistant{align-self:flex-start;background:#fff;border:1px solid rgba(101,48,62,.12);border-bottom-left-radius:4px;color:#1a1a1a}
.chat-user{align-self:flex-end;background:#823d50;color:#fff;border-bottom-right-radius:4px}
.chat-system{align-self:stretch;max-width:none;background:rgba(101,48,62,.06);color:#65303e;text-align:center;font-size:.82rem}
.chat-typing p{opacity:.65;font-style:italic}
.chat-chips{display:flex;flex-wrap:wrap;gap:.4rem;padding:0 1rem .6rem}
.chat-chip{border:1px solid rgba(101,48,62,.25);background:#fff;color:#65303e;border-radius:999px;padding:.35rem .7rem;font:inherit;font-size:.78rem;cursor:pointer}
.chat-chip:hover{background:rgba(101,48,62,.08)}
.chat-form{display:flex;gap:.5rem;padding:.6rem .8rem;border-top:1px solid rgba(101,48,62,.12);background:#fff}
.chat-form textarea{flex:1;resize:none;border:1px solid #d6bdc0;border-radius:12px;padding:.6rem .8rem;font:inherit;font-size:16px;color:#1a1a1a;max-height:120px}
.chat-form textarea:focus{outline:2px solid rgba(130,61,80,.35);outline-offset:1px}
.chat-send{border:0;background:#823d50;color:#fff;width:42px;height:42px;border-radius:50%;cursor:pointer;display:grid;place-items:center;align-self:flex-end}
.chat-send:disabled,.chat-form textarea:disabled{opacity:.5;cursor:default}
.chat-send svg{width:20px;height:20px}
.chat-foot{background:#fff;padding:.1rem .9rem .6rem}.chat-foot[hidden],.chat-log[hidden],.chat-chips[hidden],.chat-form[hidden],.chat-handoff[hidden],.chat-human[hidden]{display:none}
.chat-human{border:0;background:none;padding:.2rem 0 .3rem;font:inherit;font-size:.78rem;font-weight:600;color:#823d50;text-decoration:underline;cursor:pointer}
.chat-note{margin:0;font-size:.68rem;color:#6b5a5f;line-height:1.35}
.chat-handoff{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:.55rem;padding:1rem;font-size:.85rem;color:#1a1a1a}
.chat-handoff strong{font-size:1rem;color:#65303e}.chat-handoff p{margin:0;font-size:.82rem;line-height:1.4}
.chat-handoff label{display:flex;flex-direction:column;gap:.25rem;font-size:.78rem;color:#6b5a5f}
.chat-handoff input[type=text],.chat-handoff input[type=email],.chat-handoff input[type=tel],.chat-handoff textarea{border:1px solid #d6bdc0;border-radius:10px;padding:.55rem .7rem;font:inherit;font-size:16px;color:#1a1a1a;background:#fff;resize:vertical}
.chat-handoff .chat-consent{flex-direction:row;align-items:flex-start;gap:.5rem;color:#1a1a1a}
.chat-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.chat-handoff-msg{color:#7a3b3b;background:rgba(120,60,60,.08);border-radius:8px;padding:.45rem .6rem}
.chat-handoff-actions{display:flex;gap:.6rem;margin-top:.2rem}
.chat-handoff-send{border:0;background:#823d50;color:#fff;border-radius:999px;padding:.6rem 1.1rem;font:inherit;font-weight:600;cursor:pointer}.chat-handoff-send:disabled{opacity:.5}
.chat-handoff-back{border:1px solid rgba(101,48,62,.3);background:#fff;color:#65303e;border-radius:999px;padding:.6rem 1rem;font:inherit;cursor:pointer}
@media (max-width:560px){.chat-root{right:12px;bottom:12px}.chat-fab span{display:none}.chat-fab{padding:.8rem;border-radius:50%}.chat-panel{position:fixed;inset:auto 0 0 0;width:100%;height:min(78vh,620px);border-radius:18px 18px 0 0;bottom:0}.chat-root.is-open .chat-fab{display:none}}
@media (prefers-reduced-motion:reduce){.chat-fab{transition:none}}
