#air-chat-bubble,
#air-chat-label,
#air-chat-panel {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 2147483647 !important;
  isolation: isolate !important;
  position: fixed !important;
}

#air-chat-bubble {
  bottom: 24px !important;
  right: 24px !important;
  width: 56px !important;
  height: 56px !important;
}

#air-chat-label {
  bottom: 32px !important;
  right: 92px !important;
}

@media (max-width: 768px) {
  #air-chat-bubble {
    bottom: 28px !important;
    right: 16px !important;
    width: 64px !important;
    height: 64px !important;
  }

  #air-chat-label {
    display: block !important;
  }

  #air-chat-panel {
    bottom: 104px !important;
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
    max-width: none !important;
  }
}

/* Safe area for notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
  #air-chat-bubble {
    bottom: calc(24px + env(safe-area-inset-bottom)) !important;
  }

  @media (max-width: 768px) {
    #air-chat-bubble {
      bottom: calc(28px + env(safe-area-inset-bottom)) !important;
    }

    #air-chat-panel {
      bottom: calc(104px + env(safe-area-inset-bottom)) !important;
    }
  }
}

/* AI Invention Receptionist Chat Widget - Mobile Responsive */
.awb {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 2147483647 !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  border: none !important;
  cursor: pointer !important;
  background: linear-gradient(135deg, #8b5cf6, #22d3ee) !important;
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
.awb:hover { transform: scale(1.1) !important; }
.awb svg { width: 28px !important; height: 28px !important; display: block !important; }
.awl {
  display: none !important;
  position: fixed !important;
  bottom: 32px !important;
  right: 92px !important;
  z-index: 2147483647 !important;
  background: #0d1117 !important;
  color: #f4fbff !important;
  font: 600 14px system-ui, sans-serif !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  animation: awp 2s infinite !important;
}
@keyframes awp {
  0%, 100% { box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4) !important; }
  50% { box-shadow: 0 2px 24px rgba(139, 92, 246, 0.6) !important; }
}
.awl-h { display: none !important; }

body.mobile-menu-open .awb,
body.mobile-menu-open .awl,
body.mobile-menu-open .awp {
  display: none !important;
  pointer-events: none !important;
}

.awp {
  position: fixed !important;
  bottom: 96px !important;
  right: 24px !important;
  z-index: 2147483646 !important;
  width: 380px !important;
  max-width: calc(100vw - 48px) !important;
  height: 520px !important;
  max-height: calc(100vh - 140px) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  background: linear-gradient(180deg, #0d1117, #080b11) !important;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5) !important;
  display: none !important;
  flex-direction: column !important;
  overflow: hidden !important;
  font: 14px system-ui, sans-serif !important;
}
.awp.o { display: flex !important; }
.awh {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2) !important;
}
.awa {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  background: linear-gradient(135deg, #8b5cf6, #22d3ee) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
}
.awhi { flex: 1 !important; }
.awn { color: #f4fbff !important; font-weight: 600 !important; font-size: 15px !important; }
.aws { color: #43e89f !important; font-size: 12px !important; }
.awc {
  background: none !important;
  border: none !important;
  color: #708391 !important;
  cursor: pointer !important;
  font-size: 20px !important;
  padding: 4px !important;
}
.awm {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
.awg {
  max-width: 85% !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  word-break: break-word !important;
}
.awg.b {
  background: rgba(139, 92, 246, 0.12) !important;
  color: #f4fbff !important;
  align-self: flex-start !important;
}
.awg.u {
  background: rgba(34, 211, 238, 0.15) !important;
  color: #f4fbff !important;
  align-self: flex-end !important;
}
.awiw {
  display: flex !important;
  gap: 8px !important;
  padding: 12px 16px !important;
  border-top: 1px solid rgba(139, 92, 246, 0.2) !important;
}
.awi {
  flex: 1 !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #f4fbff !important;
  font-size: 14px !important;
  outline: none !important;
}
.awi:focus { border-color: #8b5cf6 !important; }
.awse {
  padding: 10px 16px !important;
  border-radius: 10px !important;
  border: none !important;
  cursor: pointer !important;
  background: linear-gradient(135deg, #8b5cf6, #22d3ee) !important;
  color: #fff !important;
  font-weight: 600 !important;
}
.awt {
  color: #708391 !important;
  font-size: 13px !important;
  align-self: flex-start !important;
  padding: 4px 14px !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .awb {
    width: 64px !important;
    height: 64px !important;
    bottom: 28px !important;
    left: 16px !important;
    right: auto !important;
  }
  .awb svg {
    width: 32px !important;
    height: 32px !important;
  }
  .awl {
    display: block !important;
    left: 92px !important;
    right: auto !important;
  }
  .awp {
    bottom: 104px !important;
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
    max-width: none !important;
    height: 60vh !important;
    max-height: calc(100vh - 140px) !important;
  }
}
