
  .ta-ai-chat {
    position: fixed !important;
    z-index: 99999 !important;
    font-family: inherit !important;
  }

  .ta-ai-chat * {
    box-sizing: border-box !important;
  }

  .ta-ai-chat-toggle {
    position: relative !important;
    z-index: 2 !important;
    width: 200px !important;
    height: 200px !important;
    border: 0 !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    touch-action: none !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .ta-ai-chat-icon {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    pointer-events: none !important;
    user-select: none !important;
  }

  .ta-ai-chat-toggle.pressing,
  .ta-ai-chat-toggle.dragging {
    animation: none !important;
  }

  .ta-ai-chat-toggle.dragging {
    cursor: grabbing !important;
  }

  .ta-ai-chat-box {
    position: absolute !important;
    z-index: 1 !important;
    width: 360px !important;
    max-width: calc(100vw - 24px) !important;
    height: 860px !important;
    max-height: min(860px, calc(100vh - 240px)) !important;
    background: #ffffff !important;
    border: 1px solid #dbe4f0 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.18) !important;
    display: none !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
  }

  .ta-ai-chat-box.open {
    display: grid !important;
    height: 860px !important;
    max-height: min(860px, calc(100vh - 240px)) !important;
  }

  .ta-ai-chat-header {
    grid-row: 1 !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 16px !important;
    background: linear-gradient(135deg, #0f172a, #1e3a8a) !important;
    color: #fff !important;
  }

  .ta-ai-chat-title {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    line-height: 1.2 !important;
  }

  .ta-ai-chat-title strong {
    font-size: 15px !important;
    color: #fff !important;
  }

  .ta-ai-chat-title span {
    font-size: 12px !important;
    color: rgba(255,255,255,.78) !important;
  }

  .ta-ai-chat-close {
    border: 0 !important;
    background: rgba(255,255,255,.14) !important;
    color: #fff !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    cursor: pointer !important;
    font-size: 18px !important;
  }

  .ta-ai-chat-body {
    grid-row: 2 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    background: #f8fafc !important;
  }

  .ta-ai-chat-messages {
    height: 100% !important;
    max-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 16px !important;
    background: #f8fafc !important;
    display: block !important;
  }

  .ta-ai-chat-footer {
    grid-row: 3 !important;
    background: #fff !important;
    border-top: 1px solid #e5e7eb !important;
  }

  .ta-ai-msg {
    max-width: 82% !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    word-break: break-word !important;
    margin-bottom: 10px !important;
  }

  .ta-ai-msg:last-child {
    margin-bottom: 0 !important;
  }

  .ta-ai-msg-bot {
    background: #e5e7eb !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    border: 1px solid #d1d5db !important;
    max-width: 92% !important;
  }

  .ta-ai-msg-bot a {
    color: #1d4ed8 !important;
    -webkit-text-fill-color: #1d4ed8 !important;
    text-decoration: underline;
    word-break: break-all;
  }

  .ta-ai-msg-bot .ta-ai-msg-line {
    margin: 0 0 6px !important;
    line-height: 1.55 !important;
  }

  .ta-ai-msg-bot .ta-ai-msg-line:last-child {
    margin-bottom: 0 !important;
  }

  .ta-ai-msg-gap {
    height: 8px !important;
  }

  .ta-ai-msg-bullet {
    display: flex !important;
    gap: 8px !important;
    align-items: flex-start !important;
  }

  .ta-ai-msg-bullet-mark {
    flex: 0 0 auto !important;
    min-width: 1.1em !important;
    font-weight: 700 !important;
  }

  .ta-ai-msg-heading {
    font-weight: 700 !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    margin-top: 2px !important;
  }

  .ta-ai-msg-user {
    margin-left: auto !important;
    background: #2563eb !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }

  .ta-ai-chat-form {
    display: flex !important;
    gap: 10px !important;
    padding: 12px !important;
    border-top: 1px solid #e2e8f0 !important;
    background: #fff !important;
  }

  .ta-ai-chat-input {
    flex: 1 !important;
    height: 44px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 0 14px !important;
    outline: none !important;
    font-size: 14px !important;
    background: #fff !important;
    color: #0f172a !important;
  }

  .ta-ai-chat-send {
    height: 44px !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    background: #2563eb !important;
    color: #fff !important;
    font-weight: 700 !important;
  }

  @media (max-width: 640px) {
    .ta-ai-chat-toggle {
      width: 140px !important;
      height: 140px !important;
    }

    .ta-ai-chat-box,
    .ta-ai-chat-box.open {
      width: calc(100vw - 24px) !important;
      height: min(720px, calc(100vh - 200px)) !important;
      max-height: min(720px, calc(100vh - 200px)) !important;
    }
  }
