.maggie-widget * { box-sizing: border-box; font-family: 'Inter', -apple-system, sans-serif; }
.maggie-widget-button {
  position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px;
  border-radius: 50%; background: #E8400C; color: #fff; border: none;
  box-shadow: 0 6px 20px rgba(232,64,12,.35); cursor: pointer; z-index: 9998;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  transition: transform .15s, box-shadow .15s;
}
.maggie-widget-button:hover { transform: scale(1.05); box-shadow: 0 8px 24px rgba(232,64,12,.45); }
.maggie-widget-panel {
  position: fixed; bottom: 100px; right: 24px; width: 400px; height: 600px;
  background: #fff; border-radius: 16px; box-shadow: 0 12px 48px rgba(0,0,0,.18);
  display: none; flex-direction: column; overflow: hidden; z-index: 9999;
  border: 1px solid #E9ECEF;
}
.maggie-widget-panel.open { display: flex; }
.maggie-widget-header {
  padding: 16px 20px; background: #E8400C; color: #fff;
  display: flex; align-items: center; justify-content: space-between;
}
.maggie-widget-header h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.maggie-widget-header small { display: block; font-size: .72rem; opacity: .85; }
.maggie-widget-close {
  background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
}
.maggie-widget-close:hover { background: rgba(255,255,255,.18); }
.maggie-widget-messages {
  flex: 1; overflow-y: auto; padding: 16px; background: #F8F9FA;
  display: flex; flex-direction: column; gap: 10px;
}
.maggie-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px;
  font-size: .88rem; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.maggie-msg-user { background: #E8400C; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.maggie-msg-bot { background: #fff; color: #111827; align-self: flex-start;
  border: 1px solid #E9ECEF; border-bottom-left-radius: 4px; }
.maggie-msg-bot.maggie-typing { color: #9CA3AF; font-style: italic; }
.maggie-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.maggie-chip {
  background: #FDEEE9; color: #C2340A; border: 1px solid #FDEEE9;
  padding: 5px 12px; border-radius: 999px; font-size: .78rem; cursor: pointer;
  transition: background .1s;
}
.maggie-chip:hover { background: #fff; border-color: #E8400C; }
.maggie-widget-input {
  display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid #E9ECEF;
  background: #fff;
}
.maggie-widget-input input {
  flex: 1; border: 1px solid #E9ECEF; border-radius: 24px;
  padding: 10px 16px; font-size: .9rem; outline: none;
}
.maggie-widget-input input:focus { border-color: #E8400C; }
.maggie-widget-input button {
  background: #E8400C; color: #fff; border: none; border-radius: 50%;
  width: 40px; height: 40px; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.maggie-widget-input button:hover { background: #C2340A; }
.maggie-widget-input button:disabled { background: #9CA3AF; cursor: not-allowed; }

@media (max-width: 480px) {
  .maggie-widget-panel { inset: 0; width: 100%; height: 100%; border-radius: 0; bottom: 0; right: 0; }
  .maggie-widget-button { bottom: 20px; right: 20px; }
}
