.aia-chatbot {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  font-family: "Segoe UI", sans-serif;
}

.aia-chatbot__toggle {
  border: 0;
  border-radius: 999px;
  background: #143c59;
  color: #fff;
  padding: 14px 20px;
  box-shadow: 0 12px 30px rgba(20, 60, 89, 0.25);
  cursor: pointer;
}

.aia-chatbot__panel {
  width: min(380px, calc(100vw - 32px));
  height: 640px;
  max-height: calc(100vh - 100px);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.aia-chatbot__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: linear-gradient(135deg, #143c59, #0f7f90);
  color: #fff;
}

.aia-chatbot__status {
  display: block;
  font-size: 12px;
  opacity: 0.8;
}

.aia-chatbot__close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.aia-chatbot__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background:
    radial-gradient(circle at top right, rgba(243, 167, 18, 0.12), transparent 40%),
    linear-gradient(180deg, #f8fafc, #eef4f8);
}

.aia-chatbot__message {
  max-width: 84%;
  padding: 12px 14px;
  border-radius: 18px;
  margin-bottom: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.aia-chatbot__message--bot {
  background: #fff;
  color: #0f172a;
  border-top-left-radius: 6px;
}

.aia-chatbot__message--user {
  margin-left: auto;
  background: #143c59;
  color: #fff;
  border-top-right-radius: 6px;
}

.aia-chatbot__typing,
.aia-chatbot__quick-replies,
.aia-chatbot__form,
.aia-chatbot__footer {
  padding: 12px 16px;
}

.aia-chatbot__quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aia-chatbot__quick-replies button,
.aia-chatbot__whatsapp,
.aia-chatbot__call {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
}

.aia-chatbot__whatsapp {
  background: #128c7e;
  color: #fff;
}

.aia-chatbot__call {
  background: #0f172a;
  color: #fff;
}

.aia-chatbot__actions a.is-highlighted {
  box-shadow: 0 0 0 2px rgba(243, 167, 18, 0.35);
}

.aia-chatbot__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border-top: 1px solid #e2e8f0;
}

.aia-chatbot__form textarea {
  resize: none;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  padding: 10px 12px;
}

.aia-chatbot__form button {
  border: 0;
  border-radius: 14px;
  background: #143c59;
  color: #fff;
  padding: 0 16px;
}

.aia-chatbot__footer {
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aia-chatbot__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.aia-chatbot__actions a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.aia-chatbot__call {
  background: #0f172a;
  color: #fff;
}

@media (max-width: 640px) {
  .aia-chatbot {
    right: 12px;
    left: 12px;
    bottom: 12px;
  }

  .aia-chatbot__panel {
    width: 100%;
    height: min(78vh, 680px);
  }
}
