/* "Web Master" prototype chat widget — NOT part of the live-site fidelity comparison */
.wm-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 1080;
  width: 60px; height: 60px; border-radius: 50%; border: 0;
  background: #3e5daa; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: 26px; transition: transform .15s ease, background-color .15s ease;
}
.wm-launcher:hover { background: #385499; transform: scale(1.05); }
.wm-launcher:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }
.wm-panel {
  position: fixed; right: 20px; bottom: 92px; z-index: 1080;
  width: 360px; max-width: calc(100vw - 24px);
  height: 520px; max-height: calc(100vh - 120px);
  background: #fff; border-radius: 10px; box-shadow: 0 10px 32px rgba(0,0,0,.28);
  display: flex; flex-direction: column; overflow: hidden;
  font-size: 15px;
}
.wm-panel[hidden] { display: none; }
.wm-head {
  background: #4177be; color: #fff; padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
}
.wm-head .wm-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #3e5daa;
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.wm-head .wm-title { font-weight: bold; line-height: 1.1; margin: 0; font-size: 16px; }
.wm-head .wm-sub { font-size: 12px; opacity: .9; }
.wm-badge {
  font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  border-radius: 3px; padding: 0 5px; margin-left: 4px; vertical-align: middle;
}
.wm-close {
  margin-left: auto; background: transparent; border: 0; color: #fff;
  font-size: 22px; line-height: 1; padding: 4px 6px; border-radius: 4px; cursor: pointer;
}
.wm-close:hover, .wm-close:focus-visible { background: rgba(255,255,255,.2); outline: none; }
.wm-log {
  flex: 1; overflow-y: auto; padding: 12px; background: #f4f5f7;
  display: flex; flex-direction: column; gap: 8px;
}
.wm-msg { max-width: 85%; padding: 8px 11px; border-radius: 12px; line-height: 1.35; word-wrap: break-word; }
.wm-msg.bot { background: #fff; border: 1px solid #e1e4e8; align-self: flex-start; border-bottom-left-radius: 3px; }
.wm-msg.user { background: #3e5daa; color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
.wm-msg a { color: #3e5daa; font-weight: bold; }
.wm-msg ul { margin: 4px 0 0; padding-left: 18px; }
.wm-typing { font-style: italic; color: #777; font-size: 13px; align-self: flex-start; }
.wm-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; background: #fff; }
.wm-chip {
  border: 1px solid #4177be; color: #3e5daa; background: #fff; border-radius: 16px;
  font-size: 13px; padding: 4px 10px; cursor: pointer;
}
.wm-chip:hover, .wm-chip:focus-visible { background: #4177be; color: #fff; outline: none; }
.wm-form { display: flex; gap: 6px; padding: 10px 12px; background: #fff; border-top: 1px solid #e6e6e6; }
.wm-form input {
  flex: 1; border: 1px solid #ccc; border-radius: 18px; padding: 7px 12px; font-size: 15px; min-width: 0;
}
.wm-form input:focus { border-color: #4177be; outline: 2px solid rgba(65,119,190,.3); }
.wm-form button {
  border: 0; background: #4177be; color: #fff; border-radius: 18px; padding: 0 14px; cursor: pointer;
}
.wm-form button:hover, .wm-form button:focus-visible { background: #3b6bab; }
.wm-foot { font-size: 11px; color: #888; text-align: center; padding: 0 12px 8px; background: #fff; }
.wm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 480px) {
  .wm-launcher { right: 14px; bottom: 14px; width: 54px; height: 54px; font-size: 23px; }
  .wm-panel { right: 0; left: 0; bottom: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .wm-launcher { transition: none; } }
