    /* Simple fixed chat icon bottom right */
    #chatIcon {
      position: fixed;
      bottom: 20px;
      right: 24px;
      background: rgba(0, 0, 0, 0.7);
      color: white;
      border-radius: 50%;
      width: 45px;
      height: 45px;
      font-size: 25px;
      text-align: center;
      line-height: 45px;
      cursor: pointer;
      box-shadow: 0 0 10px #fffaf7ab;
      user-select: none;
	  display: none; /* default hidden */
      z-index: 1000;
    }
	#chatInfoBox {
    position: fixed;
    bottom: 12px;
    right: 70px;
background: linear-gradient(135deg, #ffffff, #f7f7f7);
    color: #333;
    padding: 20px 20px 16px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 999;
    width: 280px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    position: fixed;
}

#chatInfoBox.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Pointer Triangle */
#chatInfoBox::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 30px;
    border-width: 10px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.05));
}

/* Header of chat box */
.chat-box-header {
    position: relative;
    margin-bottom: 10px;
}

/* Team Icon (half inside, half outside) */
.chat-team-icon {
    position: absolute;
    top: -80px;
    left: -25px;
    font-size: 28px;
    padding: 8px;
    border-radius: 50%;
    z-index: 1001;
	width: 100px;
}

/* Close Button */
.chat-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #ccc;
    color: #333;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    text-align: center;
    line-height: 22px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.chat-close:hover {
    background-color: #999;
}
    #chatBox {
      position: fixed;
      bottom: 90px;
      right: 20px;
      width: 320px;
      max-height: 480px;
      background: white;
      box-shadow: 0 0 10px #aaa;
      border-radius: 10px;
      display: none;
      flex-direction: column;
      overflow: hidden;
      font-family: Arial, sans-serif;
      z-index: 1001;
    }
    #chatHeader {
      background: rgba(0, 0, 0, 0.7);
      color: white;
      padding: 10px;
      font-weight: bold;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    #chatHeader button {
      background: transparent;
      border: none;
      color: white;
      font-size: 20px;
      cursor: pointer;
      padding: 0 5px;
      line-height: 1;
    }
    #chatContent {
      padding: 10px;
      flex: 1;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 8px;
      background: #f9f9f9;
    }
    #chatContent p {
      margin: 0;
      padding: 8px 12px;
      border-radius: 12px;
      max-width: 75%;
      word-wrap: break-word;
    }
    .customerMsg {
      background: #d1e7ff;
      align-self: flex-start;
      color: #003d99;
      border-bottom-left-radius: 4px;
      border-bottom-right-radius: 18px;
    }
    .agentMsg {
      background: #ff6700;
      color: white;
      align-self: flex-end;
      border-bottom-right-radius: 4px;
      border-bottom-left-radius: 18px;
    }
    #inputArea {
      padding: 10px;
      border-top: 1px solid #ddd;
      display: flex;
      flex-direction: column;
      gap: 8px;
      background: white;
    }
	#inputArea input, #inputArea textarea {
  transition: all 0.3s ease-in-out;
}
    #inputArea input, #inputArea textarea {
      width: 100%;
      padding: 8px;
      border-radius: 6px;
      border: 1px solid #ccc;
      font-size: 14px;
      resize: vertical;
      box-sizing: border-box;
    }
    #inputArea button {
      background: #ff6700;
      border: none;
      color: white;
      padding: 10px;
      font-weight: bold;
      border-radius: 6px;
      cursor: pointer;
      font-size: 16px;
    }
    #inputArea button:disabled {
      background: rgba(0, 0, 0, 0.7);
      cursor: not-allowed;
    }
	#emojiPicker .emoji {
  cursor: pointer;
  text-align: center;
  line-height: 1.5;
  border-radius: 6px;
  transition: background 0.2s;
}
#emojiPicker .emoji:hover {
  background: #f0f0f0;
}
