/* CallWidget — click-to-call button (direct WebSocket call, Gemini Live).
 * All selectors are prefixed with .vw- to avoid host-page collisions.
 * Apply once on the host page: <link rel="stylesheet" href="call-widget.css">
 */

call-widget {
  display: inline-block;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --vw-accent: #e30613;
}

/* ── Floating mode ───────────────────────────────────────────────────────
 * Activated via <call-widget floating> — docks the button to a fixed
 * screen corner (bottom-right, or bottom-left with position="left").
 */
call-widget[floating] {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2147483000;
}
call-widget[floating][data-vw-position="left"] {
  right: auto;
  left: 24px;
}

.vw-root {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.vw-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  background: var(--vw-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.vw-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.vw-btn:active { transform: scale(0.97); }

.vw-btn.vw-connecting {
  background: #94a3b8;
  cursor: wait;
}
.vw-btn.vw-connecting .vw-icon {
  display: inline-block;
  animation: vw-pulse 1s ease-in-out infinite;
}
@keyframes vw-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(0.85); }
}

.vw-btn.vw-in-call {
  background: #dc2626;
}
.vw-btn.vw-in-call:hover { background: #b91c1c; }

.vw-icon { font-size: 18px; line-height: 1; }

.vw-status {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
