.whm-chat { --whm-color: #111; position: fixed; right: 20px; bottom: 20px; z-index: 99999; font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.whm-chat * { box-sizing: border-box; }
.whm-chat__toggle { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--whm-color); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.whm-chat.is-open .whm-chat__toggle { display: none; }
.whm-chat__panel { display: none; flex-direction: column; width: 360px; height: 520px; max-height: calc(100vh - 40px); background: #fff; color: #111; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.whm-chat.is-open .whm-chat__panel { display: flex; }
.whm-chat__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--whm-color); color: #fff; font-weight: 600; }
.whm-chat__close { background: none; border: 0; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.whm-chat__body { flex: 1; overflow-y: auto; padding: 14px; background: #f5f5f5; display: flex; flex-direction: column; gap: 8px; }
.whm-chat__msg { max-width: 85%; padding: 9px 12px; border-radius: 12px; word-wrap: break-word; }
.whm-chat__msg a { color: inherit; text-decoration: underline; }
.whm-chat__msg--assistant { align-self: flex-start; background: #fff; border: 1px solid #e3e3e3; }
.whm-chat__msg--user { align-self: flex-end; background: var(--whm-color); color: #fff; }
.whm-chat__msg.is-typing { opacity: .6; }
.whm-chat__form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e3e3e3; background: #fff; }
.whm-chat__form textarea { flex: 1; resize: none; border: 1px solid #ccc; border-radius: 10px; padding: 8px 10px; font: inherit; color: #111; background: #fff; max-height: 120px; }
.whm-chat__form button { border: 0; border-radius: 10px; background: var(--whm-color); color: #fff; width: 42px; cursor: pointer; font-size: 16px; }
.whm-chat__form button:disabled { opacity: .5; }
@media (max-width: 480px) {
  .whm-chat { right: 12px; bottom: 12px; }
  .whm-chat__panel { position: fixed; inset: 0; width: 100%; height: 100%; max-height: none; border-radius: 0; }
}
