#live-chat-icon {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: linear-gradient(93.64deg, #EC4B4B 3.47%, #BB0000 97.14%);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  border: none;
  font-size: 28px;
}
#live-chat-icon i.fas {
    animation: cococ 2s infinite ease;
}

#live-chat-box {
  position: fixed;
  bottom: 150px;
  right: 20px;
  width: 320px;
  height: 500px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  display: none;
  flex-direction: column;
  overflow-y: hidden;
  z-index: 1000;
}

.chat-header {
  background: linear-gradient(93.64deg, #EC4B4B 3.47%, #BB0000 97.14%);
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-info {
    display: flex;
    justify-content: flex-start;;
    align-items: center;
    gap: 10px;
}

.chat-header img {
    width: 36px;
}
.chat-header-info strong {
    font-size: 14px;
}

#chat-subject {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    font-family: inherit;
    resize: vertical;
}

/* Thêm style cho textarea khi có lỗi */
#chat-subject.error {
    border: 1px solid red;
}

#chat-step-1 {
  padding: 15px;
	flex-direction: column;
	gap: 5px;
}

#chat-step-1 label {
	padding-top: 5px;
}
#chat-step-1 input {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
}

#chat-step-1 button {
  width: 100%;
  padding: 10px;
  background: #d21e1e;
  color: white;
  border: none;
  margin-top: 1rem;
}

#chat-step-2 {
  display: none;
  flex-direction: column;
  height: 100%;
}

#chat-messages {
  flex: 1;
  padding: 10px;
  padding-bottom: 60px; /* cách bottom 50px */
  box-sizing: border-box;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

#chat-form {
  display: flex;
  gap: 5px;
  padding: 10px;
  border-top: 1px solid #ccc;
  position: sticky;
  bottom: 0;
  background: white;
}

#chat-input {
  flex: 1;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #ccc;
  background: #E1E1E1;

}
#chat-form input {
    font-size: 14px;
    height: 40px;
	border-radius: 1px solid #ccc;
}
#chat-form button {
  background: #fff;
  border: none;
  outline:none;
  color: white;
  padding: 5px 10px;
  border-radius: 50%;
}

#chat-form button  img {
    width: 20px;
}

#chat-messages {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE và Edge cũ */
}

#chat-messages::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge mới */
}

@media(max-width:768px) {
    #live-chat-icon {
        bottom: 120px;
        right: 10px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    #live-chat-box {
        bottom: 180px;
        right: 10px;
    }
}
