.chatbot-root {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 4000;
  font-family: Arial, sans-serif;
}

.chatbot-toggle {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(130, 170, 255, 0.24);
  border-radius: 18px;
  background: linear-gradient(135deg, #2468ff, #11c7ff);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(17, 199, 255, 0.24);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(17, 199, 255, 0.3);
}

.chatbot-toggle svg,
.chatbot-close svg {
  width: 26px;
  height: 26px;
}

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(380px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 120px));
  background: rgba(7, 17, 31, 0.96);
  border: 1px solid rgba(130, 170, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
  overflow: hidden;
  display: none;
  flex-direction: column;
}

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

.chatbot-header {
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(130, 170, 255, 0.14);
}

.chatbot-kicker {
  color: #22e39d;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.chatbot-title {
  color: #ffffff;
  font-size: 1.02rem;
  line-height: 1.3;
  margin: 0;
}

.chatbot-subtitle {
  color: #9ab4d6;
  font-size: 0.86rem;
  line-height: 1.4;
  margin-top: 6px;
}

.chatbot-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(130, 170, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #dce8ff;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chatbot-message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.chatbot-message.bot {
  align-self: flex-start;
  color: #dce8ff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(130, 170, 255, 0.12);
}

.chatbot-message.user {
  align-self: flex-end;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(36, 104, 255, 0.9), rgba(17, 199, 255, 0.82));
}

.chatbot-actions {
  display: none;
}

.chatbot-suggestions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 2px;
  animation: chatbotFadeIn 0.18s ease;
}

.chatbot-chip,
.chatbot-link {
  border: 1px solid rgba(130, 170, 255, 0.2);
  border-radius: 12px;
  color: #dce8ff;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chatbot-chip:hover,
.chatbot-link:hover {
  background: rgba(34, 227, 157, 0.1);
  border-color: rgba(34, 227, 157, 0.35);
  color: #ffffff;
}

.chatbot-link {
  display: block;
}

.chatbot-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 0 18px 14px;
}

.chatbot-contact-row .chatbot-link:first-child {
  background: linear-gradient(135deg, #2468ff, #11c7ff);
  border-color: transparent;
  color: #ffffff;
}

.chatbot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(130, 170, 255, 0.14);
}

.chatbot-input {
  min-width: 0;
  height: 44px;
  border: 1px solid rgba(130, 170, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font: inherit;
  padding: 0 12px;
}

.chatbot-input::placeholder {
  color: #8ca6cb;
}

.chatbot-send {
  width: 48px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: #22e39d;
  color: #07111f;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.chatbot-send svg {
  width: 20px;
  height: 20px;
}

@keyframes chatbotFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .chatbot-root {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .chatbot-toggle {
    margin-left: auto;
  }

  .chatbot-panel {
    right: 0;
    bottom: 76px;
    width: 100%;
    height: min(620px, calc(100vh - 104px));
  }

  .chatbot-contact-row {
    grid-template-columns: 1fr;
  }
}
