/* MWG Chatbot widget styles. Scoped under .mwgc-* to avoid theme collisions. */
.mwgc-root{position:fixed;right:20px;bottom:20px;z-index:99999;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.mwgc-root *{box-sizing:border-box}

.mwgc-launcher{width:58px;height:58px;border-radius:50%;border:1px solid #f0ebe0;cursor:pointer;
  background:#fff;display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 24px rgba(31,51,41,.28);transition:transform .15s ease, box-shadow .15s ease}
.mwgc-launcher svg{width:30px;height:34px;display:block}
.mwgc-launcher:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(31,51,41,.34)}
.mwgc-launcher.mwgc-open{background:#fff}

/* Dismissible greeting bubble above the launcher. */
.mwgc-greet{position:absolute;right:2px;bottom:74px;width:212px;max-width:calc(100vw - 24px);
  background:#fff;border:1px solid #ece7dc;border-radius:14px;
  padding:11px 30px 11px 13px;box-shadow:0 12px 30px rgba(31,51,41,.18);
  font-size:13.5px;line-height:1.4;color:#26302a;cursor:pointer;
  animation:mwgc-greet-in .25s ease}
.mwgc-greet .mwgc-greet-text{display:block}
.mwgc-greet .mwgc-greet-close{position:absolute;top:3px;right:6px;background:none;border:none;
  font-size:16px;line-height:1;color:#9aa89c;cursor:pointer;padding:2px}
.mwgc-greet .mwgc-greet-close:hover{color:#5e7464}
.mwgc-greet::after{content:"";position:absolute;right:22px;bottom:-7px;width:13px;height:13px;
  background:#fff;border-right:1px solid #ece7dc;border-bottom:1px solid #ece7dc;transform:rotate(45deg)}
@keyframes mwgc-greet-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}

.mwgc-panel{position:absolute;right:0;bottom:74px;width:370px;max-width:96vw;
  height:560px;max-height:92vh;display:flex;flex-direction:column;
  background:#fbf9f4;border:1px solid #e6e1d6;border-radius:18px;overflow:hidden;
  box-shadow:0 20px 60px rgba(31,51,41,.22)}
.mwgc-hidden{display:none}

.mwgc-head{display:flex;align-items:center;justify-content:space-between;
  padding:14px 16px;background:#2f4a3a;color:#fff;font-weight:600;font-size:15px;
  cursor:move;user-select:none;touch-action:none}

/* Resize grip — top-left corner (panel is anchored bottom-right, so dragging
   up/left enlarges it). */
.mwgc-resize{position:absolute;top:0;left:0;width:18px;height:18px;z-index:6;
  cursor:nwse-resize;touch-action:none}
.mwgc-resize::before{content:"";position:absolute;top:5px;left:5px;width:7px;height:7px;
  border-top:2px solid rgba(255,255,255,.6);border-left:2px solid rgba(255,255,255,.6)}
.mwgc-close{background:none;border:none;color:#fff;font-size:22px;line-height:1;cursor:pointer;opacity:.8}
.mwgc-close:hover{opacity:1}

.mwgc-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px}
.mwgc-msg{max-width:85%;padding:10px 13px;border-radius:14px;font-size:14px;line-height:1.5;word-wrap:break-word}
.mwgc-user{align-self:flex-end;background:#2f4a3a;color:#fff;border-bottom-right-radius:4px}
.mwgc-bot{align-self:flex-start;background:#fff;border:1px solid #ece7dc;color:#26302a;border-bottom-left-radius:4px}
.mwgc-bot a{color:#2f6b4f;text-decoration:underline}

.mwgc-typing{display:flex;gap:4px;align-items:center}
.mwgc-typing span{width:7px;height:7px;border-radius:50%;background:#9aa89c;animation:mwgc-bounce 1.2s infinite}
.mwgc-typing span:nth-child(2){animation-delay:.2s}
.mwgc-typing span:nth-child(3){animation-delay:.4s}
@keyframes mwgc-bounce{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}

.mwgc-refs{margin-top:10px;border-top:1px solid #eee;padding-top:8px;display:flex;flex-direction:column;gap:6px}
.mwgc-refs-title{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#8a9488;font-weight:700}
.mwgc-card{display:block;padding:8px 10px;background:#f2f5ee;border:1px solid #e3e9dd;border-radius:10px;
  font-size:13px;color:#2f4a3a;text-decoration:none}
.mwgc-card:hover{background:#e9efe2}
.mwgc-rating{color:#c97d63;font-weight:600;white-space:nowrap}

.mwgc-fb{margin-top:8px;display:flex;align-items:center;gap:8px;font-size:12px;color:#8a9488}
.mwgc-fb button{background:none;border:1px solid #e0dccf;border-radius:8px;cursor:pointer;padding:2px 8px;font-size:14px}
.mwgc-fb button:hover{background:#f0ede4}

.mwgc-starters{padding:0 16px 8px;display:flex;flex-wrap:wrap;gap:6px}
.mwgc-chip{background:#fff;border:1px solid #d9e0d2;color:#2f4a3a;border-radius:16px;
  padding:7px 12px;font-size:13px;cursor:pointer;text-align:left}
.mwgc-chip:hover{background:#eef2e9;border-color:#bcc9b4}

.mwgc-form{display:flex;gap:8px;padding:12px 14px;border-top:1px solid #ece7dc;background:#fbf9f4}
.mwgc-input{flex:1;border:1px solid #d9d3c5;border-radius:22px;padding:10px 14px;font-size:14px;outline:none}
.mwgc-input:focus{border-color:#5e7464;box-shadow:0 0 0 3px rgba(94,116,100,.15)}
.mwgc-send{width:40px;height:40px;border-radius:50%;border:none;background:#2f4a3a;color:#fff;
  font-size:18px;cursor:pointer;flex:none}
.mwgc-send:hover{background:#3a5a47}

@media (max-width:480px){
  .mwgc-panel{width:calc(100vw - 24px);height:calc(100vh - 100px)}
  .mwgc-root{right:12px;bottom:12px}
}
