* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

/* FLOAT BUTTON */
#delecon-ai-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #000;
  color: #fff;
  padding: 12px 18px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  z-index: 9999;
}

/* OVERLAY */
#ai-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
}

/* CHAT BOX */
#ai-chat {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 360px;
  height: 520px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 16px;

  /* SIMPLE STACK – NO COLLAPSE */
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* HEADER */
.ai-header {
  background: #000;
  color: #fff;
  padding: 14px;
  display: flex;
  justify-content: space-between;
}

.ai-close {
  cursor: pointer;
}

/* MESSAGES */
#ai-messages {
  padding: 14px;
  overflow-y: auto;
}

/* CHAT BUBBLES */
.ai-msg {
  background: #f2f2f2;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 14px;
}

.ai-user {
  background: #dff1ff;
  text-align: right;
}

/* CTA */
#ai-cta {
  background: #eef5ff;
  padding: 14px;
  border-radius: 10px;
}

#ai-cta input {
  width: 100%;
  padding: 10px;
  margin: 6px 0;
}

#ai-cta button {
  width: 100%;
  padding: 12px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* INPUT BAR – ALWAYS VISIBLE */
#ai-input-bar {
  padding: 10px;
  border-top: 1px solid #ddd;
  display: none; /* shown after CTA */
  gap: 8px;
}

#ai-input {
  width: 70%;
  padding: 10px;
}

#ai-send {
  width: 30%;
  padding: 10px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* MOBILE FULLSCREEN */
@media (max-width: 768px) {

  #delecon-ai-btn {
    right: 50%;
    transform: translateX(50%);
  }

  #ai-chat {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
}