#globalChatWidget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    height: 500px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
    transition: all 0.3s ease;
    animation: fadeInUp 0.25s ease;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  #globalChatWidget .chat-header {
    background-color: var(--gray-700);
    color: white;
    padding: 12px 16px;
    font-weight: 500;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  #globalChatWidget .chat-header button {
    border: none;
    background: transparent;
    color: white;
    font-size: 22px;
    cursor: pointer;
  }

  #global-chat-box {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    font-size: 14px;
    background: #f9f9f9;
  }

  .chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    margin-bottom: 8px;
    display: inline-block;
    word-wrap: break-word;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }

  .me {
    background: var(--gray-700);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    margin-left: auto;
  }

  .them {
    background: #eaeaea;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
  }

  #globalChatWidget .chat-input {
    display: flex;
    gap: 6px;
    padding: 12px;
    border-top: 1px solid #e5e5e5;
    background: #fff;
  }

  #global-chat-input {
    flex: 1;
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 8px 14px;
    font-size: 14px;
  }

  #send-chat-btn {
    border-radius: 8px;
    border: none;
    padding: 3px 6px;
    background-color: var(--main-color);
  }

  @media (max-width: 576px) {
    #globalChatWidget {
      width: 100%;
      height: 100%;
      right: 0;
      bottom: 0;
      border-radius: 0;
    }
  }