.salento-ai {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
}

.salento-ai * {
  box-sizing: border-box;
}

.salento-ai__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px 12px 12px;
  background: #06b6d4;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(6, 182, 212, .34);
  cursor: pointer;
}

.salento-ai__toggle-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  font-size: 12px;
  letter-spacing: .04em;
}

.salento-ai__panel {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: min(380px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(2, 6, 23, .28);
}

.salento-ai__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: #071e38;
  color: #fff;
}

.salento-ai__header strong,
.salento-ai__header span {
  display: block;
}

.salento-ai__header strong {
  font-size: 15px;
}

.salento-ai__header span {
  margin-top: 2px;
  color: #7dd3fc;
  font-size: 12px;
}

.salento-ai__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.salento-ai__messages {
  height: 300px;
  padding: 16px;
  overflow-y: auto;
  background: #f8fafc;
}

.salento-ai__message {
  width: fit-content;
  max-width: 88%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.salento-ai__message--assistant {
  background: #e0f2fe;
  color: #082f49;
  border-bottom-left-radius: 4px;
}

.salento-ai__message--user {
  margin-left: auto;
  background: #0f172a;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.salento-ai__form,
.salento-ai__lead {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.salento-ai__form {
  grid-template-columns: 1fr auto;
}

.salento-ai__form textarea,
.salento-ai__lead input {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 11px 12px;
  color: #0f172a;
  font: inherit;
  resize: none;
}

.salento-ai__form textarea:focus,
.salento-ai__lead input:focus {
  border-color: #06b6d4;
  outline: 2px solid rgba(6, 182, 212, .16);
}

.salento-ai__form button,
.salento-ai__lead button,
.salento-ai__whatsapp {
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  background: #06b6d4;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.salento-ai__form button {
  min-height: 48px;
}

.salento-ai__lead button {
  min-height: 44px;
}

.salento-ai__whatsapp {
  display: block;
  margin: 0 12px 12px;
  padding: 12px 14px;
  background: #25d366;
}

.salento-ai__form button:disabled,
.salento-ai__lead button:disabled {
  opacity: .6;
  cursor: wait;
}

@media (max-width: 520px) {
  .salento-ai {
    right: 14px;
    bottom: 14px;
  }

  .salento-ai__panel {
    bottom: 60px;
  }

  .salento-ai__messages {
    height: 280px;
  }
}
