.chat-container {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  bottom: 22px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  max-width: calc(100vw - 32px);
  opacity: 0;
  overflow: hidden;
  position: fixed;
  right: 22px;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
  width: 360px;
  z-index: 9999;
}

.chat-container.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.chat-container[hidden] {
  display: none !important;
}

.chat-container a {
  text-decoration: none;
}

.chat-container .chat-header {
  align-items: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.16), transparent 8rem),
    #095e54;
  border-radius: 18px 18px 0 0;
  display: flex;
  gap: 12px;
  padding: 16px 42px 16px 18px;
  position: relative;
}

.chat-header .close-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 999px;
  color: #d9fff6;
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 28px;
}

.chat-header .close-icon:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.chat-container .avatar {
  flex: 0 0 52px;
  height: 52px;
  width: 52px;
}

.chat-container .avatar img {
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.chat-container .header-info {
  color: #fff;
  min-width: 0;
  text-align: left;
}

.chat-container .name {
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.2;
}

.chat-container .answer-time {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.25;
  margin-top: 3px;
}

.chat-container .chat-messages {
  background:
    radial-gradient(circle at 20% 0%, rgba(37, 211, 102, 0.08), transparent 10rem),
    #f2f6f4;
  padding: 20px 24px 12px;
}

.chat-container .message {
  background: #fff;
  border-radius: 0 16px 16px 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  color: #111827;
  display: inline-block;
  max-width: 88%;
  padding: 12px 14px;
  position: relative;
  text-align: left;
}

.chat-container .message::before {
  border-bottom: 9px solid transparent;
  border-right: 9px solid #fff;
  content: "";
  left: -8px;
  position: absolute;
  top: 0;
}

.chat-container .message .text {
  color: #111827;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.42;
}

.chat-container a.start-chat-button {
  align-items: center;
  background: #14c656;
  border: 0;
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-size: 0.98rem;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  margin: 14px 24px 20px;
  padding: 12px 16px;
  text-align: center;
}

.chat-container a.start-chat-button:hover {
  background: #0e9e49;
  color: #fff;
}

@media (max-width: 575px) {
  .chat-container {
    bottom: 14px;
    right: 14px;
    width: calc(100vw - 28px);
  }
}
