.taic-chatbot-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99999;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: #143d59;
  color: #ffffff;
  font: 700 14px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 16px 38px rgba(20, 61, 89, 0.28);
  cursor: pointer;
}

.taic-chatbot-launcher:hover {
  background: #0e2f47;
}

.taic-chatbot-panel {
  position: fixed;
  right: 22px;
  bottom: 76px;
  z-index: 99999;
  width: min(372px, calc(100vw - 28px));
  height: min(640px, calc(100vh - 96px));
  display: none;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(20, 61, 89, 0.14);
  box-shadow: 0 24px 70px rgba(12, 35, 54, 0.24);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.taic-chatbot-panel.taic-chatbot-open {
  display: flex;
}

.taic-chatbot-header {
  flex: 0 0 auto;
  padding: 14px 15px 12px;
  background: linear-gradient(135deg, #143d59, #2f6f8f);
  color: #ffffff;
}

.taic-chatbot-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.taic-chatbot-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 800;
}

.taic-chatbot-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.3;
  opacity: 0.92;
}

.taic-chatbot-close {
  border: 0;
  background: rgba(255,255,255,0.16);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.taic-chatbot-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 12px 8px;
  background: #f7fafc;
}

.taic-chatbot-message {
  max-width: 88%;
  margin: 0 0 9px;
  padding: 9px 11px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.taic-chatbot-message-bot {
  background: #ffffff;
  color: #163040;
  border: 1px solid rgba(20, 61, 89, 0.1);
  border-top-left-radius: 5px;
}

.taic-chatbot-message-user {
  margin-left: auto;
  background: #143d59;
  color: #ffffff;
  border-top-right-radius: 5px;
}

.taic-chatbot-suggestions {
  flex: 0 0 auto;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 7px 12px 9px;
  background: #f7fafc;
  border-top: 1px solid rgba(20, 61, 89, 0.06);
  scrollbar-width: none;
}

.taic-chatbot-suggestions::-webkit-scrollbar {
  display: none;
}

.taic-chatbot-suggestion {
  flex: 0 0 auto;
  border: 1px solid rgba(20, 61, 89, 0.16);
  background: #ffffff;
  color: #143d59;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  line-height: 1.15;
  cursor: pointer;
  white-space: nowrap;
}

.taic-chatbot-suggestion:hover {
  background: #eef6fa;
}

.taic-chatbot-form {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 11px 8px;
  border-top: 1px solid rgba(20, 61, 89, 0.12);
  background: #ffffff;
}

.taic-chatbot-input {
  flex: 1;
  min-width: 0;
  resize: none;
  height: 38px;
  max-height: 86px;
  padding: 9px 10px;
  border: 1px solid rgba(20, 61, 89, 0.18);
  border-radius: 13px;
  font: 13px/1.3 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #163040;
}

.taic-chatbot-input:focus {
  outline: 2px solid rgba(47, 111, 143, 0.18);
  border-color: rgba(47, 111, 143, 0.5);
}

.taic-chatbot-send {
  flex: 0 0 auto;
  border: 0;
  border-radius: 13px;
  background: #143d59;
  color: #ffffff;
  min-width: 56px;
  height: 38px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.taic-chatbot-send:hover {
  background: #0e2f47;
}

.taic-chatbot-send:disabled,
.taic-chatbot-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.taic-chatbot-footnote {
  flex: 0 0 auto;
  padding: 0 12px 10px;
  background: #ffffff;
  color: #6b7b85;
  font-size: 10.5px;
  line-height: 1.3;
}

.taic-chatbot-footnote a {
  color: #143d59;
  font-weight: 700;
}

@media (max-width: 520px) {
  .taic-chatbot-launcher {
    right: 14px;
    bottom: 14px;
  }

  .taic-chatbot-panel {
    right: 14px;
    bottom: 68px;
    height: min(620px, calc(100vh - 86px));
  }
}
