/* ============================================
   URBIE LAUNCHER V2 — Global Support Chat FAB
   Single persistent button, bottom-right corner
   ============================================ */

/* ── FAB Button ── */
.urb-support-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9990;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #2F80ED 0%, #1D6FD3 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 6px 24px rgba(47, 128, 237, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.urb-support-fab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 10px 32px rgba(47, 128, 237, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.12);
}

.urb-support-fab:active {
  transform: translateY(0) scale(0.97);
}

.urb-support-fab:focus-visible {
  outline: 2px solid #2F80ED;
  outline-offset: 3px;
}

.urb-support-fab svg {
  pointer-events: none;
  flex-shrink: 0;
}

/* Hide FAB when livechat drawer/sheet is open */
body.urb-livechat--locked .urb-support-fab {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ── Mobile adjustments ── */
@media (max-width: 600px) {
  .urb-support-fab {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .urb-support-fab {
    transition: none !important;
  }
}

/* ── Hide any leftover old Urbie elements ── */
#urbie-welcome-screen,
#urbie-chat-window,
#urbie-call-window,
.urbie-welcome,
.urbie-fab-call,
.urbie-fab-primary:not(.urb-support-fab) {
  display: none !important;
}
