.ai-live-support-wrap * {
  box-sizing: border-box;
}

.ai-live-support-wrap {
  width: 100%;
}

.ai-live-support-card {
  width: 100%;
  max-width: 900px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid #eee;
}

.ai-live-support-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
  gap: 16px;
}

.ai-live-support-topbar h2 {
  margin: 0;
  font-size: 20px;
}

.ai-live-support-topbar p {
  margin: 6px 0 0;
  color: #666;
  font-size: 14px;
}

.ai-live-support-chatbox {
  height: 540px;
  overflow-y: auto;
  padding: 20px;
  background: #fafafa;
}

.ai-live-support-bubble {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 14px;
  line-height: 1.45;
  margin-bottom: 12px;
  white-space: pre-wrap;
}

.ai-live-support-bubble.user {
  margin-left: auto;
  background: #dbeafe;
}

.ai-live-support-bubble.assistant {
  background: #ececec;
}

.ai-live-support-composer {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid #eee;
}

.ai-live-support-composer input {
  flex: 1;
  padding: 14px;
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  outline: none;
}

.ai-live-support-composer button,
.ai-live-support-human,
.ai-live-support-handoff-form button {
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
}

.ai-live-support-composer button {
  background: #2563eb;
  color: white;
}

.ai-live-support-human,
.ai-live-support-handoff-form button {
  background: #111827;
  color: white;
}

.ai-live-support-handoff {
  padding: 16px;
  border-top: 1px solid #eee;
  background: #fff;
}

.ai-live-support-handoff-form {
  display: grid;
  gap: 10px;
}

.ai-live-support-handoff-form input,
.ai-live-support-handoff-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  outline: none;
  font: inherit;
}

.ai-live-support-handoff-status {
  margin-top: 10px;
  font-size: 14px;
  color: #444;
}

@media (max-width: 640px) {
  .ai-live-support-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .ai-live-support-bubble {
    max-width: 92%;
  }

  .ai-live-support-composer {
    flex-direction: column;
  }
}
