.support-widget__fab {
  position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px; border-radius: 50%;
  background: var(--nav-accent, #333); border: none; cursor: pointer; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,.35);
  transition: transform .18s ease, box-shadow .18s ease;
}
.support-widget__fab:hover { transform: translateY(-2px) scale(1.05); }
.support-widget__fab-icon { width: 27px; height: 27px; }
.support-widget__fab-dot {
  position: absolute; top: 5px; right: 5px; width: 10px; height: 10px; border-radius: 50%;
  background: #22c55e; border: 2px solid #fff; animation: supportWidgetPulse 2.4s ease-in-out infinite;
}
@keyframes supportWidgetPulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.support-widget__panel {
  position: fixed; bottom: 92px; right: 24px; width: 360px; max-width: calc(100vw - 32px);
  height: 500px; max-height: calc(100vh - 140px);
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius, 14px);
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.35);
  display: none; flex-direction: column; overflow: hidden; z-index: 999;
}
.support-widget__panel.is-open { display: flex; animation: supportWidgetSlideUp .2s ease; }
@keyframes supportWidgetSlideUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.support-widget__header {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: var(--nav-accent, #333); color: #fff; flex-shrink: 0;
}
.support-widget__avatar {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.85);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.support-widget__avatar-icon { width: 20px; height: 20px; }
.support-widget__title { font-weight: 700; font-size: 14px; }
.support-widget__subtitle { font-size: 11px; opacity: .85; }
.support-widget__close {
  margin-left: auto; background: none; border: none; color: #fff; cursor: pointer; font-size: 20px;
  width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  opacity: .85;
}
.support-widget__close:hover { opacity: 1; background: rgba(255,255,255,.14); }

.support-widget__body {
  flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 9px;
  background: var(--color-surface);
}
.support-widget__msg { max-width: 84%; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; }
.support-widget__msg.bot { align-self: flex-start; background: var(--color-bg); color: var(--color-text); border: 1px solid var(--color-border); border-bottom-left-radius: 3px; }
.support-widget__msg.user { align-self: flex-end; background: var(--nav-accent, #333); color: #fff; border-bottom-right-radius: 3px; }
.support-widget__msg.typing { display: flex; gap: 4px; align-items: center; padding: 11px 13px; }
.support-widget__msg.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--color-muted, #999); animation: supportWidgetTyping 1.2s infinite ease-in-out; }
.support-widget__msg.typing span:nth-child(2) { animation-delay: .15s; }
.support-widget__msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes supportWidgetTyping { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.support-widget__quick-replies { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.support-widget__quick-reply {
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 999px;
  padding: 6px 12px; font-size: 12px; color: var(--color-text); cursor: pointer; font-family: inherit;
  transition: background-color .12s, color .12s;
}
.support-widget__quick-reply:hover { background: var(--nav-accent, #333); color: #fff; border-color: var(--nav-accent, #333); }

.support-widget__footer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--color-border); background: var(--color-bg); flex-shrink: 0; }
.support-widget__footer input[type="text"]#supportWidgetInput {
  flex: 1; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 9px;
  padding: 10px 12px; color: var(--color-text); font-size: 13.5px; font-family: inherit;
}
.support-widget__footer input#supportWidgetInput:focus { outline: none; border-color: var(--nav-accent, #333); }
.support-widget__footer button {
  background: var(--nav-accent, #333); border: none; border-radius: 9px; width: 38px; flex-shrink: 0;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.support-widget__footer button svg { width: 16px; height: 16px; }

@media (max-width: 768px) {
  .support-widget__fab { bottom: 80px; right: 16px; }
  .support-widget__panel { bottom: 140px; right: 12px; left: 12px; width: auto; }
}
@media (min-width: 769px) and (max-width: 420px) {
  .support-widget__panel { right: 12px; left: 12px; width: auto; }
}
