/* Customer ↔ restaurant chat (src/Chat.tsx). */
.cc-fab{position:fixed;inset-inline-end:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:40;height:48px;padding:0 18px;border-radius:999px;background:var(--brand);color:var(--brand-on);display:flex;align-items:center;gap:8px;font-size:15px;font-weight:600;box-shadow:0 8px 24px rgba(0,0,0,.18)}
.cc-fab em{font-style:normal;min-width:22px;height:22px;border-radius:99px;background:var(--brand-on);color:var(--brand);font-size:12px;display:grid;place-items:center;padding:0 6px}
.cc-scrim{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.32);display:flex;align-items:flex-end;justify-content:center;animation:ccf .15s ease}
@keyframes ccf{from{opacity:0}to{opacity:1}}
.cc-sheet{width:100%;max-width:480px;height:min(640px,88dvh);background:#fff;border-radius:20px 20px 0 0;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 -8px 40px rgba(0,0,0,.18)}
@media (min-width:700px){.cc-scrim{align-items:center}.cc-sheet{border-radius:20px}}
.cc-top{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line)}
.cc-top>div{flex:1;min-width:0}.cc-top b{display:block;font-size:17px;color:var(--ink)}.cc-top span{font-size:13px;color:var(--muted)}
.cc-top button{width:34px;height:34px;border-radius:50%;background:var(--fill);color:var(--ink);font-size:14px}
.cc-msgs{flex:1;overflow:auto;padding:16px 14px;display:flex;flex-direction:column;gap:8px;background:#fff}
.cc-greet{align-self:center;text-align:center;font-size:13.5px;color:var(--muted);background:var(--fill);border-radius:12px;padding:10px 14px;margin-bottom:6px;max-width:90%}
.cc-m{max-width:80%;display:flex;flex-direction:column}
.cc-m.me{align-self:flex-end;align-items:flex-end}.cc-m.them{align-self:flex-start}
.cc-m small{font-size:12px;color:var(--muted);margin:0 6px 2px}
.cc-m p{margin:0;padding:9px 13px;border-radius:18px;font-size:15px;line-height:1.35;white-space:pre-wrap;overflow-wrap:anywhere}
.cc-m.me p{background:var(--brand);color:var(--brand-on);border-end-end-radius:6px}.cc-m.them p{background:var(--fill-2);color:var(--text);border-end-start-radius:6px}
.cc-m time{font-size:11px;color:var(--faint);margin:3px 6px 0}
.cc-typing{font-size:13px;color:var(--muted);padding:2px 6px}
.cc-comp{display:flex;align-items:flex-end;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}
.cc-comp textarea{flex:1;resize:none;border:1px solid var(--line);border-radius:20px;padding:10px 14px;font:inherit;font-size:16px;max-height:120px;outline:none}
.cc-comp textarea:focus{border-color:var(--brand)}
.cc-send{height:42px;padding:0 16px;border-radius:999px;background:var(--brand);color:var(--brand-on);font-weight:600;font-size:15px}
.cc-send:disabled{opacity:.4}
.cc-closed{padding:14px 18px calc(14px + env(safe-area-inset-bottom));font-size:14px;color:var(--muted);border-top:1px solid var(--line);text-align:center}
.cc-err{padding:0 18px 10px;color:#C4321E;font-size:13px}
