.waffer-chat-root{font-family:Tahoma,Arial,sans-serif;direction:rtl;position:fixed;bottom:18px;right:18px;z-index:999999;color:#23252b;font-size:14px;line-height:1.55}
.waffer-chat-root *{box-sizing:border-box}
.waffer-chat-launcher,.waffer-chat-inline-button{border:0;border-radius:999px;background:#ec771f;color:#fff;padding:13px 21px;font:700 15px Tahoma,Arial,sans-serif;box-shadow:0 7px 24px rgba(35,37,43,.19);cursor:pointer}
.waffer-chat-panel{width:min(390px,calc(100vw - 25px));height:min(620px,calc(100dvh - 92px));max-height:620px;background:#fff;border:1px solid #ede5dc;border-radius:20px;box-shadow:0 17px 57px rgba(20,20,20,.22);display:flex;flex-direction:column;overflow:hidden;position:absolute;right:0;bottom:calc(100% + 12px)}
.waffer-chat-panel[hidden]{display:none!important}
.waffer-chat-head{background:#fff5eb;padding:15px 17px;border-bottom:1px solid #f3e1d2;display:flex;align-items:center;justify-content:space-between;gap:15px}
.waffer-chat-head strong{font-size:17px;color:#23252b}.waffer-chat-head small{display:block;color:#777;font-size:12px;font-weight:400}
.waffer-chat-head button{font-size:25px;border:0;background:transparent;cursor:pointer;color:#23252b}
.waffer-chat-messages{padding:17px;display:flex;flex-direction:column;gap:12px;overflow-y:auto;flex:1;min-height:110px;background:#fbfbfb}
.waffer-chat-message{max-width:90%;padding:11px 13px;border-radius:15px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7}
.waffer-chat-message.is-bot{background:#fff;border:1px solid #eee8e3;align-self:flex-start}.waffer-chat-message.is-user{background:#fff0e3;color:#32251b;align-self:flex-end}
.waffer-chat-results{display:grid;gap:7px;align-self:stretch}.waffer-chat-results a{display:block;padding:11px 12px;border:1px solid #efdbca;background:#fff;border-radius:10px;color:#9d4c0e;text-decoration:none}
.waffer-chat-suggestions{display:flex;flex-wrap:wrap;gap:6px;padding:11px 12px;background:#fff}
.waffer-chat-suggestions button{border:1px solid #ead9cb;background:#fff9f3;color:#51453e;border-radius:16px;padding:7px 9px;font:12px Tahoma,Arial,sans-serif;cursor:pointer}
.waffer-chat-form{display:flex;gap:7px;padding:10px 12px;background:#fff;border-top:1px solid #eee;align-items:center}
.waffer-chat-form input{font:13px Tahoma,Arial,sans-serif;border:1px solid #dfdfdf;border-radius:10px;min-width:0;flex:1;padding:12px 10px;max-width:none;color:#23252b;background:#fff;box-shadow:none;margin:0}
.waffer-chat-form button{background:#ec771f;border:none;border-radius:10px;color:#fff;font:700 13px Tahoma,Arial,sans-serif;padding:12px;cursor:pointer}
.waffer-chat-form button:disabled{opacity:.6;cursor:wait}
.waffer-chat-privacy{font-size:11px!important;color:#747474!important;padding:0 14px 10px!important;margin:0!important;background:#fff}.waffer-chat-privacy a{color:#9c4a0c!important}
.waffer-chat-inline{background:#fff8f2;border:1px solid #f4dfcd;padding:20px;border-radius:16px;max-width:720px;margin:0 auto}.waffer-chat-inline p{margin-bottom:11px}.waffer-chat-inline-button{border-radius:12px}
@media(max-width:500px){.waffer-chat-root{right:12px;bottom:12px}.waffer-chat-panel{height:min(600px,calc(100dvh - 83px));width:calc(100vw - 24px)}.waffer-chat-launcher{padding:12px 17px}}

/* v0.6 — chat is embedded below editorial content, never floating above shopping actions */
.waffer-chat-root{position:relative;right:auto;bottom:auto;z-index:1;width:100%;margin-top:0;font-family:inherit}
.waffer-chat-root .waffer-chat-launcher{display:none}
.waffer-chat-root .waffer-chat-panel{position:relative;right:auto;bottom:auto;width:100%;max-width:none;height:min(530px,75vh);box-shadow:0 12px 34px rgba(21,22,25,.08);border-radius:16px;margin-top:15px}
.waffer-chat-root .waffer-chat-panel[hidden]{display:none!important}
@media(max-width:600px){.waffer-chat-root{right:auto;bottom:auto}.waffer-chat-root .waffer-chat-panel{width:100%;height:min(480px,65vh)}}

.waffer-chat-form button,.waffer-chat-inline-button,.waffer-chat-launcher{background:#b34a0a;color:#fff}
.waffer-chat-form input:focus-visible,.waffer-chat-form button:focus-visible,.waffer-chat-suggestions button:focus-visible{outline:3px solid #b34a0a;outline-offset:2px}
