/* Floating WhatsApp + chat assistant (website and online shop) */
.osw{--wa:#1faa59;--wa-d:#128c4a;--ink:#1c1410;--walnut:#6d3f26;--brass:#c99555;--line:#e8ddd1;--muted:#6f625a;font-family:'DM Sans',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;position:fixed;right:22px;bottom:22px;z-index:80;display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.osw *{box-sizing:border-box}
.osw-fab{display:flex;align-items:center;gap:10px;border:0;cursor:pointer;border-radius:999px;height:58px;padding:0 22px 0 18px;font:700 15px inherit;font-family:inherit;color:#fff;box-shadow:0 14px 34px rgba(0,0,0,.22);transition:transform .15s}
.osw-fab:hover{transform:translateY(-2px)}.osw-fab .bi{font-size:24px}
.osw-fab.wa{background:var(--wa)}.osw-fab.chat{background:var(--ink)}
.osw-fab.chat .dot{width:9px;height:9px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 3px rgba(74,222,128,.25)}
.osw-row{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.osw-row .osw-fab{width:50px;height:50px;padding:0;justify-content:center;font-size:13px;box-shadow:0 12px 28px rgba(0,0,0,.2)}
.osw-row .osw-fab .txt,.osw-row .osw-fab.chat .dot{display:none}
/* WhatsApp shop picker */
.osw-pick{background:#fff;border-radius:18px;box-shadow:0 24px 60px rgba(0,0,0,.22);width:320px;overflow:hidden;display:none}
.osw-pick.open{display:block;animation:oswIn .2s ease-out}
.osw-pick header{background:var(--wa);color:#fff;padding:18px}
.osw-pick header b{display:block;font-size:16px}.osw-pick header span{font-size:13px;opacity:.9}
.osw-pick a{display:flex;align-items:center;gap:12px;padding:14px 18px;text-decoration:none;color:var(--ink);border-bottom:1px solid #f0ebe5}
.osw-pick a:hover{background:#f4fbf6}.osw-pick a .bi{font-size:22px;color:var(--wa)}
.osw-pick a small{display:block;color:var(--muted);font-size:12px}
/* Chat panel */
.osw-panel{width:380px;max-width:calc(100vw - 32px);height:560px;max-height:calc(100vh - 120px);background:#fff;border-radius:20px;box-shadow:0 30px 80px rgba(0,0,0,.25);display:none;flex-direction:column;overflow:hidden}
.osw-panel.open{display:flex;animation:oswIn .22s ease-out}
@keyframes oswIn{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
.osw-head{background:linear-gradient(115deg,#1c1410,#3a2418);color:#fff;padding:16px 16px 16px 18px;display:flex;align-items:center;gap:12px}
.osw-head img{width:40px;height:40px;border-radius:12px;background:#2a1d16;object-fit:cover}
.osw-head b{display:block;font-size:15px}.osw-head span{font-size:12px;color:#d9cabc;display:flex;align-items:center;gap:6px}
.osw-head span:before{content:'';width:7px;height:7px;border-radius:50%;background:#4ade80}
.osw-head button{margin-left:auto;background:rgba(255,255,255,.12);border:0;color:#fff;width:34px;height:34px;border-radius:50%;cursor:pointer;font-size:16px}
.osw-log{flex:1;overflow-y:auto;padding:16px;background:#faf6f0;display:flex;flex-direction:column;gap:10px}
.osw-msg{max-width:86%;padding:11px 14px;border-radius:16px;font-size:14px;line-height:1.5;white-space:pre-line;word-wrap:break-word}
.osw-msg.bot{background:#fff;border:1px solid var(--line);border-bottom-left-radius:4px;align-self:flex-start;color:var(--ink)}
.osw-msg.me{background:var(--walnut);color:#fff;border-bottom-right-radius:4px;align-self:flex-end}
.osw-msg a{color:inherit;font-weight:700}
.osw-typing{align-self:flex-start;background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px 14px;display:flex;gap:4px}
.osw-typing i{width:7px;height:7px;border-radius:50%;background:#c1b3a6;animation:oswDot 1s infinite}.osw-typing i:nth-child(2){animation-delay:.15s}.osw-typing i:nth-child(3){animation-delay:.3s}
@keyframes oswDot{0%,60%,100%{transform:none;opacity:.5}30%{transform:translateY(-4px);opacity:1}}
.osw-prod{display:flex;gap:10px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:8px;align-self:flex-start;width:86%;text-decoration:none;color:var(--ink)}
.osw-prod img{width:64px;height:64px;border-radius:10px;object-fit:cover;background:#f1e8dc;flex:0 0 64px}
.osw-prod b{display:block;font-size:14px;line-height:1.3}.osw-prod span{display:block;font-size:13px;color:var(--walnut);font-weight:700}
.osw-prod small{display:block;font-size:11px;color:var(--muted)}
.osw-prod .go{display:flex;gap:6px;margin-top:4px}
.osw-prod .go a{font-size:11px;font-weight:700;text-decoration:none;padding:3px 8px;border-radius:999px;background:#f1e8dc;color:var(--ink)}
.osw-prod .go a.w{background:#e6f6ec;color:#128c4a}
.osw-sugg{display:flex;flex-wrap:wrap;gap:6px}
.osw-sugg button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 12px;font:600 12px inherit;font-family:inherit;color:var(--ink);cursor:pointer}
.osw-sugg button:hover{border-color:var(--walnut)}
.osw-handoff{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 12px 10px;padding:11px;border-radius:12px;background:#e6f6ec;color:#128c4a;font:700 14px inherit;font-family:inherit;text-decoration:none}
.osw-handoff:hover{background:#d3efdf}
.osw-form{display:flex;gap:8px;padding:12px;border-top:1px solid var(--line);background:#fff}
.osw-form input{flex:1;border:1px solid var(--line);border-radius:999px;padding:0 16px;height:46px;font:15px inherit;font-family:inherit;outline:0;min-width:0}
.osw-form input:focus{border-color:var(--brass)}
.osw-form button{width:46px;height:46px;border-radius:50%;border:0;background:var(--walnut);color:#fff;font-size:18px;cursor:pointer;flex:0 0 46px}
.osw-note{font-size:11px;color:var(--muted);text-align:center;padding:0 12px 10px;background:#fff}
@media(max-width:600px){.osw{right:14px;bottom:14px}.osw-row{flex-direction:row}.osw-fab{width:50px;height:50px;padding:0;justify-content:center}.osw-fab .txt,.osw-fab.chat .dot{display:none}.osw-panel{position:fixed;inset:auto 8px 74px 8px;width:auto;height:min(78vh,600px)}.osw-pick{width:calc(100vw - 28px)}}
@media print{.osw{display:none}}
.osw-card-wa{display:flex;align-items:center;justify-content:center;gap:7px;margin:0 16px 16px;padding:10px;border-radius:8px;background:#1faa59;color:#fff!important;font:700 13px 'DM Sans',Arial,sans-serif;text-decoration:none!important}
.osw-card-wa:hover{background:#128c4a}.osw-card-wa.big{margin:14px 0 8px;padding:14px 20px;font-size:15px;border-radius:8px;max-width:340px}
.osw-card-ask{display:inline-flex;align-items:center;gap:7px;margin:0 0 14px;background:none;border:1px solid #d6c8bc;border-radius:8px;padding:10px 14px;font:600 13px 'DM Sans',Arial,sans-serif;color:#6d3f26;cursor:pointer}
.osw-card-ask:hover{background:#f1e8dc}
/* Theme-aware chat colours */
.theme-ole .osw-msg.me,.theme-ole .osw-form button{background:#6b3a1f}
.theme-classic .osw-msg.me,.theme-classic .osw-form button{background:#111}
.theme-classic .osw-head{background:linear-gradient(115deg,#000,#1d1d1d);border-bottom:2px solid #d4af37}
.theme-classic .osw-form input:focus{border-color:#d4af37}
.sf .osw{font-family:'Inter','DM Sans',system-ui,sans-serif}
/* Keep the chat readable on dark pages */
.osw .osw-form input{background:#fff!important;color:#1c1410!important;border-color:#e8ddd1!important}
.osw .osw-form input::placeholder{color:#8a7f76!important;opacity:1}
.osw .osw-handoff{opacity:1!important;background:#e6f6ec!important;color:#128c4a!important}
.osw .osw-handoff:hover{background:#d3efdf!important}
