.contact-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  gap: 10px;
  justify-items: end;
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
}

.whatsapp-float,
.chatbot-toggle {
  display: grid;
  width: 58px;
  min-width: 58px;
  height: 56px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 16px 36px rgba(18, 31, 63, 0.22);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-float:hover,
.chatbot-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(18, 31, 63, 0.28);
}

.whatsapp-float .bi,
.chatbot-toggle .bi {
  font-size: 1.55rem;
  line-height: 1;
}

.whatsapp-float {
  background: #1fa855;
}

.chatbot-toggle {
  background: var(--red);
}

.chatbot-widget {
  width: min(360px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(18, 31, 63, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(18, 31, 63, 0.28);
}

.chatbot-widget.is-open {
  display: block;
}

.chatbot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: #101b3d;
  color: #fff;
}

.chatbot-head strong,
.chatbot-head span {
  display: block;
}

.chatbot-head strong {
  font-size: 1rem;
}

.chatbot-head span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
}

.chatbot-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.chatbot-messages {
  display: grid;
  max-height: 360px;
  min-height: 230px;
  gap: 10px;
  overflow-y: auto;
  padding: 14px;
  background: #f6f8fc;
}

.chatbot-message {
  width: fit-content;
  max-width: 92%;
  border: 1px solid rgba(18, 31, 63, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.45;
}

.chatbot-message.user {
  justify-self: end;
  background: #fff0f1;
  color: var(--navy);
}

.chatbot-message.bot a {
  display: inline-block;
  margin: 8px 8px 0 0;
  color: var(--red);
  font-weight: 800;
}

.chatbot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border-top: 1px solid rgba(18, 31, 63, 0.1);
  padding: 10px;
  background: #fff;
}

.chatbot-form input {
  min-width: 0;
  border: 1px solid rgba(18, 31, 63, 0.14);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  font: inherit;
}

.chatbot-form button {
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

@media (max-width: 680px) {
  .contact-float {
    right: 12px;
    bottom: 12px;
  }

  .whatsapp-float,
  .chatbot-toggle {
    width: 52px;
    min-width: 52px;
    height: 52px;
  }

  .chatbot-messages {
    max-height: 330px;
  }
}
