/* WritingNepal 5.7 — सहयोग च्याट (inc/support-chat.php) */
.wn-fbc-fab{position:fixed;right:20px;bottom:20px;z-index:80;display:inline-flex;align-items:center;gap:8px;background:#1f3d29;color:#f3ead2 !important;border-radius:999px;padding:11px 18px 11px 14px;font-weight:700;text-decoration:none !important;box-shadow:0 8px 24px rgba(0,0,0,.22);font-size:.95rem}
.wn-fbc-fab:hover{transform:translateY(-2px)}
.wn-fbc-fab .wn-fbc-dot{width:9px;height:9px;border-radius:50%;background:#7ed39a}
html.wn-fbc-open .wn-fbc-fab{display:none}
.wn-fbc{background:#fff;color:#120A08;font-family:inherit;display:flex;flex-direction:column;overflow:hidden}
.wn-fbc.is-float{position:fixed;right:20px;bottom:20px;z-index:1000;width:370px;max-width:calc(100vw - 24px);height:560px;max-height:calc(100vh - 40px);border-radius:18px;box-shadow:0 20px 50px rgba(0,0,0,.25)}
.wn-fbc[hidden]{display:none !important}
.wn-fbc.is-inline{border:1px solid var(--line,#E7DFD2);border-radius:18px;height:460px;margin:0 0 22px}
.wn-fbc-h{background:#1f3d29;color:#f3ead2;padding:12px 14px;display:flex;gap:10px;align-items:center;flex:none}
.wn-fbc-h b{display:block;color:#fff;font-size:1rem}
.wn-fbc-h small{font-size:.78rem;opacity:.88}
.wn-fbc-h small i.on{display:inline-block;width:8px;height:8px;border-radius:50%;background:#7ed39a;margin-right:5px}
.wn-fbc-av{width:38px;height:38px;border-radius:50%;background:#F7C600;color:#120A08;display:flex;align-items:center;justify-content:center;font-weight:800;flex:none}
.wn-fbc-x{margin-left:auto;background:none;border:0;color:#f3ead2;font-size:20px;cursor:pointer;padding:4px 6px}
.wn-fbc-b{flex:1;overflow-y:auto;padding:14px;background:#faf7f1;display:flex;flex-direction:column;gap:8px}
.wn-fbc-m{max-width:85%;padding:9px 12px;border-radius:14px;line-height:1.45;font-size:.92rem;white-space:pre-line;word-wrap:break-word}
.wn-fbc-m.wn{background:#fff;border:1px solid var(--line,#E7DFD2);border-top-left-radius:4px;align-self:flex-start}
.wn-fbc-m.me{background:#1f3d29;color:#f3ead2;border-top-right-radius:4px;align-self:flex-end}
.wn-fbc-m.err{background:#fdecea;color:#b32d2e}
.wn-fbc-m small{display:block;font-size:.72rem;opacity:.7;margin-top:3px;white-space:normal}
.wn-fbc-quick{display:flex;flex-wrap:wrap;gap:6px;align-self:flex-start}
.wn-fbc-quick button{font:inherit;font-size:.85rem;border:1px solid #1f3d29;background:#fff;color:#1f3d29;border-radius:999px;padding:5px 12px;cursor:pointer}
.wn-fbc-quick button:hover{background:#eef6ef}
.wn-fbc-sys{align-self:center;font-size:.76rem;color:#6b5f57;text-align:center;max-width:90%}
.wn-fbc-guest{background:#fff;border:1px solid var(--line,#E7DFD2);border-radius:12px;padding:10px;font-size:.85rem}
.wn-fbc-guest p{margin:0 0 6px}
.wn-fbc-guest input{display:block;width:100%;box-sizing:border-box;font:inherit;border:1px solid var(--line,#E7DFD2);border-radius:8px;padding:7px 9px;margin:4px 0}
.wn-fbc-guest.bad input:invalid,.wn-fbc-guest.bad input:focus{border-color:#E86A33}
.wn-fbc-f{border-top:1px solid var(--line,#E7DFD2);padding:10px;display:flex;gap:8px;align-items:flex-end;background:#fff;flex:none}
.wn-fbc-f textarea{flex:1;font:inherit;font-size:.95rem;border:1px solid var(--line,#E7DFD2);border-radius:12px;padding:9px 11px;resize:none;min-height:42px;max-height:120px;box-sizing:border-box}
.wn-fbc-send{background:#E86A33;color:#fff;border:0;border-radius:12px;width:46px;height:42px;font-size:18px;cursor:pointer;flex:none}
.wn-fbc-send:disabled{opacity:.5}
.wn-fbc-hp{position:absolute !important;left:-9999px !important;width:1px;height:1px;opacity:0}
@media (max-width:680px){
  .wn-fbc-fab{bottom:calc(80px + env(safe-area-inset-bottom));right:14px;padding:12px;border-radius:50%}
  .wn-fbc-fab span{display:none}
  .wn-fbc-fab .wn-fbc-dot{position:absolute;top:6px;right:6px}
  .wn-fbc.is-float{left:8px;right:8px;width:auto;bottom:8px;top:auto;height:calc(100vh - 80px);height:calc(100dvh - 80px);max-height:none}
  .wn-fbc.is-inline{height:420px}
}
