#claude-chatbot-root, #claude-chatbot-root * {
  box-sizing: border-box !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}
#claude-chatbot-root { position: fixed !important; bottom: 20px !important; z-index: 2147483000 !important; all: revert; }
#claude-chatbot-root.cb-pos-bottom-right { right: 20px !important; left: auto !important; }
#claude-chatbot-root.cb-pos-bottom-left { left: 20px !important; right: auto !important; }
 
#claude-chatbot-root .cb-bubble {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  min-height: 60px !important;
  max-width: 60px !important;
  max-height: 60px !important;
  border-radius: 50% !important;
  background: var(--cb-brand, #1a1a1a) !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
}
#claude-chatbot-root .cb-bubble:hover { transform: scale(1.05) !important; box-shadow: 0 8px 28px rgba(0,0,0,0.22) !important; }
#claude-chatbot-root .cb-bubble svg { width: 28px !important; height: 28px !important; }
 
#claude-chatbot-root .cb-panel {
  position: absolute !important; bottom: 76px !important;
  width: 380px !important; max-width: calc(100vw - 40px) !important;
  height: 600px !important; max-height: calc(100vh - 120px) !important;
  background: #fff !important; border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25) !important;
  display: none !important; flex-direction: column !important; overflow: hidden !important;
  animation: cb-slide-up 0.22s ease !important;
  padding: 0 !important; margin: 0 !important;
}
#claude-chatbot-root.cb-pos-bottom-right .cb-panel { right: 0 !important; left: auto !important; }
#claude-chatbot-root.cb-pos-bottom-left .cb-panel { left: 0 !important; right: auto !important; }
#claude-chatbot-root .cb-panel.open { display: flex !important; }
 
@keyframes cb-slide-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
 
#claude-chatbot-root .cb-header {
  padding: 16px 20px !important;
  background: var(--cb-brand, #1a1a1a) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-radius: 0 !important;
}
#claude-chatbot-root .cb-title { font-weight: 600 !important; font-size: 15px !important; color: #fff !important; }
#claude-chatbot-root .cb-sub { font-size: 12px !important; opacity: 0.75 !important; margin-top: 2px !important; color: #fff !important; }
#claude-chatbot-root .cb-close {
  background: transparent !important; border: none !important; color: #fff !important;
  cursor: pointer !important; padding: 4px !important; opacity: 0.8 !important;
  width: auto !important; height: auto !important;
}
#claude-chatbot-root .cb-close:hover { opacity: 1 !important; }
 
#claude-chatbot-root .cb-messages { flex: 1 !important; overflow-y: auto !important; padding: 16px !important; background: #fafafa !important; }
#claude-chatbot-root .cb-msg { margin-bottom: 12px !important; display: flex !important; }
#claude-chatbot-root .cb-msg-user { justify-content: flex-end !important; }
#claude-chatbot-root .cb-bubble-text {
  max-width: 80% !important;
  padding: 10px 14px !important;
  border-radius: 16px !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
}
#claude-chatbot-root .cb-msg-user .cb-bubble-text { background: var(--cb-brand, #1a1a1a) !important; color: #fff !important; border-bottom-right-radius: 4px !important; }
#claude-chatbot-root .cb-msg-assistant .cb-bubble-text { background: #fff !important; color: #111 !important; border: 1px solid #e5e5e5 !important; border-bottom-left-radius: 4px !important; }
#claude-chatbot-root .cb-bubble-text a { color: inherit !important; text-decoration: underline !important; }
 
#claude-chatbot-root .cb-tracking-btn, #claude-chatbot-root .cb-wa-btn {
  display: inline-flex !important; align-items: center !important; gap: 6px !important;
  margin-top: 8px !important; padding: 8px 14px !important;
  background: var(--cb-brand, #1a1a1a) !important; color: #fff !important;
  border-radius: 999px !important; text-decoration: none !important;
  font-size: 13px !important; font-weight: 500 !important;
  transition: opacity 0.2s !important;
  width: auto !important; height: auto !important;
}
#claude-chatbot-root .cb-tracking-btn:hover, #claude-chatbot-root .cb-wa-btn:hover { opacity: 0.85 !important; }
#claude-chatbot-root .cb-wa-btn { background: #25D366 !important; }
 
#claude-chatbot-root .cb-typing {
  display: inline-flex !important; gap: 4px !important; padding: 12px 14px !important;
  background: #fff !important; border: 1px solid #e5e5e5 !important;
  border-radius: 16px !important; border-bottom-left-radius: 4px !important;
}
#claude-chatbot-root .cb-typing span {
  width: 6px !important; height: 6px !important; background: #aaa !important; border-radius: 50% !important;
  animation: cb-bounce 1.4s infinite ease-in-out !important;
}
#claude-chatbot-root .cb-typing span:nth-child(2) { animation-delay: 0.16s !important; }
#claude-chatbot-root .cb-typing span:nth-child(3) { animation-delay: 0.32s !important; }
@keyframes cb-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}
 
#claude-chatbot-root .cb-input-wrap {
  padding: 12px !important; background: #fff !important; border-top: 1px solid #ececec !important;
  display: flex !important; gap: 8px !important;
  align-items: center !important;
}
#claude-chatbot-root .cb-input {
  flex: 1 !important;
  padding: 10px 14px !important;
  border: 1px solid #d4d4d4 !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  line-height: 20px !important;
  outline: none !important;
  resize: none !important;
  height: 40px !important;
  max-height: 100px !important;
  min-height: 40px !important;
  width: auto !important;
  background: #fff !important;
  color: #111 !important;
  font-family: inherit !important;
  box-shadow: none !important;
  vertical-align: middle !important;
  overflow-y: auto !important;
  display: block !important;
}
#claude-chatbot-root .cb-input:focus { border-color: var(--cb-brand, #1a1a1a) !important; }
#claude-chatbot-root .cb-send {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 50% !important;
  border: none !important;
  background: var(--cb-brand, #1a1a1a) !important;
  color: #fff !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: opacity 0.2s !important;
  padding: 0 !important;
  margin: 0 !important;
}
#claude-chatbot-root .cb-send:disabled { opacity: 0.4 !important; cursor: not-allowed !important; }
#claude-chatbot-root .cb-send svg { width: 18px !important; height: 18px !important; }
 
#claude-chatbot-root .cb-footer {
  padding: 8px 16px !important; background: #fafafa !important; border-top: 1px solid #ececec !important;
  font-size: 11px !important; color: #888 !important; text-align: center !important;
}
 
/* ============================================================
   MOBILE & TABLET RESPONSIVE
   - Panel never overflows the viewport
   - Accounts for browser toolbars (100dvh fallback to 100vh)
   - Leaves space for keyboard / safe areas
   - Bubble stays accessible above the bottom edge
   ============================================================ */
 
/* Tablets and small laptops */
@media (max-width: 768px) {
  #claude-chatbot-root .cb-panel {
    width: 380px !important;
    max-width: calc(100vw - 32px) !important;
    height: 75vh !important;
    max-height: 600px !important;
  }
}
 
/* Phones — panel takes most of the screen but stays inside it */
@media (max-width: 480px) {
  #claude-chatbot-root {
    bottom: 16px !important;
  }
  #claude-chatbot-root.cb-pos-bottom-right { right: 16px !important; }
  #claude-chatbot-root.cb-pos-bottom-left  { left: 16px !important; }
 
  #claude-chatbot-root .cb-bubble {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
  }
  #claude-chatbot-root .cb-bubble svg { width: 26px !important; height: 26px !important; }
 
  #claude-chatbot-root .cb-panel {
    /* Fixed instead of absolute so it doesn't depend on bubble position */
    position: fixed !important;
    bottom: 88px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    /* 100dvh = dynamic viewport height (handles browser toolbars on iOS Safari / Chrome).
       Subtract 110px for the bubble + breathing room */
    height: calc(100dvh - 110px) !important;
    max-height: calc(100vh - 110px) !important;
    /* Padding for iOS safe areas (notch / home indicator) */
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  }
  #claude-chatbot-root.cb-pos-bottom-right .cb-panel,
  #claude-chatbot-root.cb-pos-bottom-left  .cb-panel {
    left: 12px !important;
    right: 12px !important;
  }
 
  /* Slightly smaller header on phones */
  #claude-chatbot-root .cb-header {
    padding: 14px 16px !important;
  }
  #claude-chatbot-root .cb-title { font-size: 14px !important; }
  #claude-chatbot-root .cb-sub   { font-size: 11px !important; }
 
  /* Make sure input area never gets pushed off-screen by the keyboard */
  #claude-chatbot-root .cb-input-wrap {
    padding: 10px !important;
  }
  #claude-chatbot-root .cb-input {
    font-size: 16px !important; /* prevents iOS auto-zoom on focus */
  }
}
 
/* Very small phones (iPhone SE 1st gen, Galaxy Fold closed, etc.) */
@media (max-width: 360px) {
  #claude-chatbot-root .cb-panel {
    left: 8px !important;
    right: 8px !important;
    bottom: 80px !important;
    height: calc(100dvh - 100px) !important;
    max-height: calc(100vh - 100px) !important;
    border-radius: 14px !important;
  }
  #claude-chatbot-root .cb-bubble {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
  }
}
 
/* Landscape phones — limit height so it doesn't go above keyboard area */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  #claude-chatbot-root .cb-panel {
    height: calc(100dvh - 90px) !important;
    max-height: calc(100vh - 90px) !important;
    bottom: 78px !important;
  }
}
