
    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      min-height: 100vh;
      background: #ffffff;
      font-family: Arial, Helvetica, sans-serif;
      color: #101827;
    }

    .preview {
      padding: 36px;
    }

    .preview h1 {
      margin: 0 0 8px;
      font-size: 28px;
    }

    .preview p {
      margin: 0;
      color: #64748b;
    }

    /* Floating Chat Button */
    .chat-launcher {
      position: fixed;
      right: 24px;
      bottom: 24px;
      width: 64px;
      height: 64px;
      border-radius: 50%;
      border: none;
      background: #061326;
      color: #ffffff;
      box-shadow: 0 14px 34px rgba(2, 8, 23, 0.30);
      cursor: pointer;
      z-index: 10000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
    }
.site button.chip  {
    background: #fff !important;
}
div#messages button {
    background: #fff;
}
    .chat-launcher .chat-icon {
      width: 34px;
      height: 34px;
      display: block;
    }

    .chat-launcher .close-icon {
      width: 28px;
      height: 28px;
      display: none;
    }

    .chat-launcher.open .chat-icon {
      display: none;
    }

    .chat-launcher.open .close-icon {
      display: block;
    }

    /* Chat Window */
    .chat-widget {
      position: fixed;
      right: 24px;
      bottom: 104px;
      width: 450px;
      height: 640px;
      max-height: calc(100vh - 130px);
      background: #ffffff;
      border: 1px solid #e5e7eb;
      border-radius: 18px;
      box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
      overflow: hidden;
      z-index: 9999;
      display: none;
      flex-direction: column;
    }

    .chat-widget.open {
      display: flex;
    }

    /* Header */
    .chat-header {
      height: 84px;
      background: #061326;
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 18px;
      flex-shrink: 0;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    .brand-logo {
      width: 50px;
      height: 50px;
      border-radius: 12px;
      background: #020817;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      flex-shrink: 0;
    }

    .brand-logo img {
      width: 48px;
      height: 48px;
      object-fit: contain;
    }

    .brand-title {
      font-size: 18px;
      font-weight: 700;
      line-height: 1.1;
      margin-bottom: 3px;
    }

    .brand-subtitle {
      font-size: 13px;
      line-height: 1.1;
      color: #cbd5e1;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }

    .header-action {
      width: 24px;
      height: 24px;
      border: none;
      background: transparent;
      color: #ffffff;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
    }

    .header-action i {
      font-size: 16px;
      line-height: 1;
    }

    .header-action.close i {
      font-size: 18px;
    }

    /* Messages */
    .messages {
      flex: 1;
      overflow-y: auto;
      background: #ffffff;
      padding: 16px 18px 0;
    }

    .bot-row {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      margin: 0 0 10px;
    }

    .user-row {
      display: flex;
      justify-content: flex-end;
      margin: 0 0 10px;
    }

    .avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #020817;
      object-fit: contain;
      flex-shrink: 0;
      margin-top: 2px;
    }

    .bubble {
      max-width: 82%;
      background: #f3f4f6;
      color: #101827;
      border-radius: 14px;
      padding: 11px 13px;
      font-size: 14px;
      line-height: 1.4;
      white-space: pre-line;
    }

    .user-bubble {
      max-width: 82%;
      background: #2563eb;
      color: #ffffff;
      border-radius: 14px;
      padding: 10px 12px;
      font-size: 14px;
      line-height: 1.4;
      white-space: pre-line;
    }

    .typing-bubble {
      width: 58px;
      height: 30px;
      margin-left: 40px;
      margin-bottom: 10px;
      border-radius: 18px;
      background: #f3f4f6;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
    }

    .typing-bubble span {
      width: 6px;
      height: 6px;
      background: #9ca3af;
      border-radius: 50%;
      animation: typingDot 1s infinite ease-in-out;
    }

    .typing-bubble span:nth-child(2) {
      animation-delay: 0.15s;
      background: #4b5563;
    }

    .typing-bubble span:nth-child(3) {
      animation-delay: 0.3s;
    }

    @keyframes typingDot {
      0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.55;
      }
      40% {
        transform: translateY(-4px);
        opacity: 1;
      }
    }

    /* Choice Buttons */
    .chips {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 9px;
      margin: 14px 0 14px 40px;
    }

    .chip {
      min-height: 50px;
      border: 1px solid #cbd5e1;
      border-radius: 11px;
      background: #ffffff;
      color: #0f172a;
      cursor: pointer;
      padding: 9px 10px;
      display: flex;
      align-items: center;
      gap: 8px;
      text-align: left;
      transition: all 0.15s ease;
      overflow: hidden;
    }

    .chip:hover {
      border-color: #2563eb;
      background: #f8fbff;
    }

    .chip.full {
      grid-column: 1 / -1;
    }

    .chip-icon {
      width: 32px;
      min-width: 32px;
      height: 24px;
      padding: 0 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #061326;
    }

    .chip-icon i {
      font-size: 13px;
      line-height: 1;
    }

    .chip-label {
      font-size: 13.5px;
      line-height: 1.18;
      white-space: normal;
      overflow: visible;
      color: #111827;
    }

    /* Bottom */
    .powered {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0 18px 8px;
      color: #9ca3af;
      font-size: 12px;
      background: #ffffff;
      flex-shrink: 0;
    }

    .powered:before,
    .powered:after {
      content: "";
      height: 1px;
      background: #e5e7eb;
      flex: 1;
    }

    .footer-actions {
      display: flex;
      justify-content: flex-end;
      padding: 0 18px 8px;
      background: #ffffff;
    }

    .restart-btn {
      border: 1px solid #f59e0b;
      background: #fff7ed;
      color: #111827;
      border-radius: 999px;
      padding: 5px 10px;
      font-size: 11px;
      cursor: pointer;
    }

    .input-area {
      height: 74px;
      padding: 10px 18px 14px;
      border-top: 1px solid #e5e7eb;
      background: #ffffff;
      flex-shrink: 0;
    }

    .input-wrap {
      width: 100%;
      height: 50px;
      border: 1px solid #cbd5e1;
      border-radius: 12px;
      display: flex;
      align-items: center;
      overflow: hidden;
      background: #ffffff;
    }

    input {
      flex: 1;
      height: 100%;
      min-width: 0;
      border: none;
      outline: none;
      padding: 0 14px;
      font-size: 14px;
      color: #111827;
      background: #ffffff;
    }

    input::placeholder {
      color: #aeb6c3;
    }

    input:disabled {
      cursor: not-allowed;
      color: #aeb6c3;
    }

    .send-btn {
      width: 46px;
      height: 46px;
      border: none;
      background: transparent;
      color: #94a3b8;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
    }

    .send-btn i {
      font-size: 17px;
      line-height: 1;
    }

    .send-btn:disabled {
      cursor: not-allowed;
      opacity: 0.55;
    }

    @media (max-width: 540px) {
      .chat-widget {
        right: 12px;
        left: 12px;
        bottom: 94px;
        width: auto;
        height: 72vh;
        max-height: none;
      }

      .chat-launcher {
        right: 18px;
        bottom: 18px;
      }

      .chips {
        grid-template-columns: 1fr;
      }
    }
