/* Paleta tradicional: marco/encabezado negro, fondo blanco, texto oscuro. */
.ta-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.ta-panel {
  position: fixed;
  bottom: 88px;
  right: 20px;
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 460px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border: 2px solid #111111;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 2147483000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ta-panel.ta-open {
  display: flex;
}

.ta-header {
  background: #111111;
  color: #ffffff;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ta-header button {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.ta-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #ffffff;
}

.ta-msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.ta-msg.ta-user {
  align-self: flex-end;
  background: #111111;
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.ta-msg.ta-bot {
  align-self: flex-start;
  background: #f1f1f1;
  color: #1a1a1a;
  border: 1px solid #e0e0e0;
  border-bottom-left-radius: 2px;
}

.ta-msg.ta-typing {
  align-self: flex-start;
  color: #777777;
  font-style: italic;
}

.ta-product-link {
  display: inline-block;
  margin-top: 6px;
  color: #111111;
  font-weight: 600;
  text-decoration: underline;
}

.ta-product-link:hover {
  text-decoration: none;
}

.ta-inputbar {
  display: flex;
  border-top: 1px solid #111111;
  background: #ffffff;
  padding: 8px;
  gap: 8px;
}

.ta-inputbar input {
  flex: 1;
  background: #ffffff;
  border: 1px solid #bbbbbb;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 13.5px;
  color: #1a1a1a;
  outline: none;
}

.ta-inputbar input::placeholder {
  color: #999999;
}

.ta-inputbar button {
  background: #111111;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13.5px;
  cursor: pointer;
}

.ta-inputbar button:disabled {
  opacity: 0.6;
  cursor: default;
}
