#iwchat{--iw-primary: #02343F;--iw-secondary: #F0EDCC;font-family:Inter,sans-serif}.iwchat-launcher{position:fixed;right:24px;bottom:24px;z-index:1050;width:60px;height:60px;border-radius:50%;border:0;background:var(--iw-primary);color:var(--iw-secondary);font-size:24px;box-shadow:0 6px 20px #00000040;cursor:pointer}.iwchat-launcher:focus-visible{outline:3px solid var(--iw-secondary);outline-offset:3px}.iwchat-badge{position:absolute;top:-2px;right:-2px;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#dc3545;color:#fff;font-size:12px;line-height:22px;font-weight:600}.iwchat-badge[hidden]{display:none}.iwchat-panel{position:fixed;right:24px;bottom:96px;z-index:1050;width:360px;max-width:calc(100vw - 32px);height:520px;max-height:calc(100vh - 120px);display:flex;flex-direction:column;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 10px 40px #00000040}.iwchat-panel[hidden]{display:none}@media (max-width: 480px){.iwchat-panel{right:16px;left:16px;width:auto;bottom:92px}.iwchat-launcher{right:16px;bottom:16px}}.iwchat-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 16px;background:var(--iw-primary);color:#fff}.iwchat-header strong{display:block;font-size:16px}.iwchat-presence{opacity:.8;font-size:12px}.iwchat-presence:before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:#adb5bd;margin-right:6px}.iwchat-presence.is-online:before{background:#2ecc71}.iwchat-close{background:none;border:0;color:#fff;font-size:18px;cursor:pointer;padding:4px 8px}.iwchat-messages{flex:1;overflow-y:auto;padding:16px;background:#f6f7f9;display:flex;flex-direction:column;gap:8px}.iwchat-welcome{margin:0;font-size:14px;color:#555;background:#fff;padding:10px 12px;border-radius:10px}.iwchat-msg{max-width:82%;padding:8px 12px;border-radius:14px;font-size:14px;line-height:1.4;white-space:pre-wrap;word-wrap:break-word}.iwchat-msg time{display:block;font-size:11px;opacity:.6;margin-top:2px}.iwchat-msg .iwchat-author{display:block;font-size:11px;font-weight:600;opacity:.75;margin-bottom:2px}.iwchat-msg.is-visitor{align-self:flex-end;background:var(--iw-primary);color:#fff;border-bottom-right-radius:4px}.iwchat-msg.is-agent{align-self:flex-start;background:#fff;color:#222;border-bottom-left-radius:4px;box-shadow:0 1px 2px #0000000f}.iwchat-msg.is-system{align-self:center;background:none;color:#777;font-size:12px;padding:2px}.iwchat-typing{padding:0 16px 6px;font-size:12px;color:#777;background:#f6f7f9}.iwchat-typing[hidden]{display:none}.iwchat-form{border-top:1px solid #e5e5e5;padding:10px;display:flex;flex-direction:column;gap:8px}.iwchat-form input,.iwchat-form textarea{width:100%;border:1px solid #d5d8dc;border-radius:8px;padding:8px 10px;font-size:14px;resize:none;font-family:inherit}.iwchat-form input[hidden]{display:none}.iwchat-row{display:flex;gap:8px;align-items:flex-end}.iwchat-row button{flex:0 0 auto;width:42px;height:40px;border:0;border-radius:8px;background:var(--iw-primary);color:var(--iw-secondary);cursor:pointer}.iwchat-row button:disabled{opacity:.5;cursor:not-allowed}.iwchat-row .iwchat-mic{background:#eef0f2;color:var(--iw-primary)}.iwchat-row .iwchat-mic.is-recording{background:#fde8ea;color:#dc3545}.iwchat-row .iwchat-mic[hidden],.iwchat-row textarea[hidden]{display:none}.iwchat-rec{flex:1;height:40px;display:flex;align-items:center;gap:6px;padding:0 10px;border:1px solid #d5d8dc;border-radius:8px;font-size:14px;color:#dc3545}.iwchat-rec[hidden]{display:none}.iwchat-rec-time{font-variant-numeric:tabular-nums}.iwchat-rec-dot{width:10px;height:10px;border-radius:50%;background:#dc3545;animation:iwchat-blink 1s infinite}@keyframes iwchat-blink{50%{opacity:.25}}.iwchat-msg audio{display:block;width:220px;max-width:100%;height:36px}.iwchat-perm{display:grid;grid-template-columns:auto 1fr;gap:6px 10px;align-items:start;padding:10px 12px;border-radius:8px;background:#f6f7f9;font-size:13px;color:#333}.iwchat-perm[hidden]{display:none}.iwchat-perm>i{color:var(--iw-primary);font-size:16px;margin-top:2px}.iwchat-perm-text{margin:0;line-height:1.4}.iwchat-perm-actions{grid-column:1 / -1;display:flex;justify-content:flex-end;gap:8px}.iwchat-perm-actions button{border:0;border-radius:6px;padding:6px 12px;font-size:13px;cursor:pointer;font-family:inherit}.iwchat-perm-cancel{background:transparent;color:#555}.iwchat-perm-allow{background:var(--iw-primary);color:var(--iw-secondary);font-weight:600}.iwchat-perm-allow[hidden]{display:none}.iwchat-error{margin:0;font-size:12px;color:#dc3545}.iwchat-error[hidden]{display:none}
