* {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }

      body {
        min-height: 100vh;
        background: #f5f7fa;
        font-family: Arial, Helvetica, sans-serif;
      }

      /* =========================
           CHATBOT CONTAINER
        ========================= */

      .chatbot {
        position: fixed;
        right: 20px;
        bottom: 20px;

        width: 380px;
        height: 500px;

        background: #fff;
        border: 1px solid #d7d7d7;
        border-radius: 10px;

        overflow: hidden;

        display: flex;
        flex-direction: column;

        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);

        z-index: 9999;
      }

      .chatbot.hidden {
        display: none;
      }

      /* =========================
           LAUNCHER BUTTON
        ========================= */

      .chat-launcher {
        position: fixed;
        right: 20px;
        bottom: 20px;

        display: flex;
        align-items: center;
        gap: 10px;

        background: #c9892e;
        color: #fff;

        border: none;
        border-radius: 30px;

        padding: 14px 20px;

        font-size: 15px;
        font-weight: 700;
        font-family: Arial, Helvetica, sans-serif;

        cursor: pointer;

        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);

        z-index: 9999;
      }

      .chat-launcher:hover {
        background: #b47724;
      }

      .chat-launcher.hidden {
        display: none;
      }

      .chat-launcher svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
      }

      @media (max-width: 500px) {
        .chat-launcher {
          right: 10px;
          bottom: 10px;
          padding: 12px 16px;
          font-size: 14px;
        }
      }

      /* =========================
           HEADER
        ========================= */

      .chat-header {
        height: 72px;
        background: #c9892e;
        color: white;

        display: flex;
        align-items: center;

        padding: 8px 10px;
      }

      .bot-avatar {
        width: 58px;
        height: 58px;

        border-radius: 50%;

        background: #000;

        border: 2px solid #fff;

        display: flex;
        align-items: center;
        justify-content: center;

        overflow: hidden;

        flex-shrink: 0;
      }

      .bot-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .bot-avatar-text {
        font-size: 28px;
        color: white;
        font-weight: bold;
      }

      .bot-info {
        flex: 1;
        margin-left: 12px;
      }

      .bot-name {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 4px;
      }

      .bot-role {
        font-size: 14px;
        font-weight: 600;
      }

      .header-actions {
        display: flex;
        gap: 6px;
      }

      .header-btn {
        width: 30px;
        height: 30px;

        border: none;
        border-radius: 6px;

        background: rgba(255, 255, 255, 0.2);
        color: white;

        cursor: pointer;

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 14px;
      }

      .header-btn:hover {
        background: rgba(255, 255, 255, 0.35);
      }

      .header-btn svg {
        width: 16px;
        height: 16px;
      }

      /* =========================
           NEW CHAT
        ========================= */

      .new-chat-container {
        padding: 10px 15px 0;
      }

      .new-chat {
        border: 1px solid #ddd;
        background: #f7f7f7;
        color: #777;

        border-radius: 4px;

        padding: 3px 7px;

        font-size: 11px;

        cursor: pointer;
      }

      .new-chat:hover {
        background: #eee;
      }

      /* =========================
           CHAT BODY
        ========================= */

      .chat-body {
        flex: 1;

        padding: 5px 12px 10px;

        overflow-y: auto;
        scroll-behavior: smooth;

        background: #fff;
      }

      .message {
        margin-bottom: 14px;

        font-size: 16px;
        line-height: 1.45;

        color: #333;
      }

      .bot-message {
        text-align: left;
      }

      .user-message {
        display: flex;
        justify-content: flex-end;
      }

      .user-message .message-content {
        max-width: 82%;

        background: #dff3fc;

        padding: 9px 11px;

        border-radius: 8px;

        color: #333;
      }

      .bot-message .message-content {
        max-width: 100%;
      }

      /* =========================
           QUICK ACTIONS
        ========================= */

      .quick-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;

        margin-top: 10px;
      }

      .quick-btn {
        border: 1px solid #d5d5d5;

        background: #f5f6f7;

        color: #0666cc;

        border-radius: 18px;

        padding: 6px 11px;

        font-size: 13px;

        cursor: pointer;
      }

      .quick-btn:hover {
        background: #eaf3ff;
      }

      .quick-btn:disabled {
        opacity: 0.5;
        cursor: default;
      }

      /* =========================
           TYPING
        ========================= */

      .typing {
        display: none;

        color: #777;

        font-size: 13px;

        margin-bottom: 10px;
      }

      /* =========================
           FOOTER
        ========================= */

      .chat-footer {
        border-top: 1px solid #ddd;

        padding: 8px 10px;

        background: #fff;

        display: flex;
        gap: 8px;
      }

      .chat-input {
        flex: 1;

        height: 34px;

        border: 1px solid #d2d2d2;

        padding: 7px 8px;

        outline: none;

        font-size: 14px;
      }

      .chat-input:focus {
        border-color: #c9892e;
      }

      .chat-input:disabled {
        background: #f5f5f5;
      }

      .send-btn {
        height: 34px;

        padding: 0 16px;

        border: none;

        border-radius: 8px;

        background: #c9892e;

        color: white;

        font-size: 16px;
        font-weight: 600;

        cursor: pointer;
      }

      .send-btn:hover {
        background: #b47724;
      }

      .send-btn:disabled {
        background: #d9b47c;
        cursor: default;
      }

      /* =========================
           MINIMIZED (collapsed to header only)
        ========================= */

      .chatbot.minimized {
        height: 72px;
      }

      .chatbot.minimized .new-chat-container,
      .chatbot.minimized .chat-body,
      .chatbot.minimized .chat-footer {
        display: none;
      }

      /* =========================
           MAXIMIZED (expanded full-screen-ish view)
        ========================= */

      .chatbot.maximized {
        right: 20px;
        bottom: 20px;

        width: min(1100px, calc(100vw - 40px));
        height: calc(100vh - 40px);
      }

      .chatbot.maximized .chat-body {
        padding: 10px 24px 14px;
      }

      .chatbot.maximized .message {
        font-size: 15px;
      }

      @media (max-width: 500px) {
        .chatbot.maximized {
          right: 10px;
          bottom: 10px;
          width: calc(100vw - 20px);
          height: calc(100vh - 20px);
        }
      }

      /* =========================
           MOBILE
        ========================= */

      @media (max-width: 500px) {
        .chatbot {
          right: 10px;
          bottom: 10px;

          width: calc(100vw - 20px);
          height: 520px;
        }
      }
