#flytobot-launcher {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #006DFF;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.flytobot-icon {
  width: 100px;
}

#flytobot-window {
  position: fixed;
  bottom: 50px;
  right: 20px;
  width: 360px;
  height: 530px;
  background: white;
  border-radius: 18px;
  display: none;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  overflow: hidden;
  z-index: 99999;
}

/* HEADER */
.flytobot-header {
  background: linear-gradient(90deg, #006DFF, #00A8FF);
  padding: 15px;
  display: flex;
  align-items: center;
  color: white;
}

.bot-avatar {
  width: 60px;
  margin-right: 12px;
}

.bot-name {
  font-size: 16px;
  font-weight: bold;
}

.bot-sub {
  font-size: 12px;
  opacity: 0.85;
}

#flytobot-close {
  margin-left: auto;
  cursor: pointer;
  font-size: 20px;
}

/* MESSAGES */
#flytobot-messages {
  padding: 15px;
  overflow-y: auto;
  flex-grow: 1;
}

.flytobot-row {
  margin-bottom: 12px;
  display: flex;
}

.flytobot-row.bot { justify-content: flex-start; }
.flytobot-row.user { justify-content: flex-end; }

.flytobot-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  background: #F1F4FF;
  font-size: 14px;
}

.flytobot-row.user .flytobot-bubble {
  background: #006DFF;
  color: white;
}

/* TYPING ANIMATION */
.flytobot-bubble.typing {
  width: 40px;
  display: flex;
  justify-content: space-between;
}

.flytobot-bubble.typing span {
  width: 6px;
  height: 6px;
  background: #ccc;
  border-radius: 50%;
  animation: typing 1s infinite ease-in-out;
}

@keyframes typing {
  0% { opacity: .3; }
  50% { opacity: 1; }
  100% { opacity: .3; }
}

/* INPUT */
.flytobot-input-area {
  padding: 10px;
  display: flex;
  border-top: 1px solid #eee;
}

#flytobot-input {
  flex-grow: 1;
  border: none;
  font-size: 14px;
  outline: none;
}

#flytobot-send {
  background: #006DFF;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
}
/* FlyToBot — always on top */
#flytobot-launcher,
#flytobot-window {
    position: fixed !important;
    z-index: 999999999 !important; /* MAXIMUM priority */
}

/* Make sure launcher floats above iframes */
#flytobot-launcher {
    bottom: 24px;
    right: 24px;
}

/* Chat window also floats above everything */
#flytobot-window {
    bottom: 20px; /* adjust if needed */
    right: 24px;
}
/* =============================
   PREMIUM QUICK ACTION BUTTONS
   ============================= */

.flytobot-quick-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.flytobot-quick-btn {
  background: #ffffff;
  border: 2px solid #e6e9f0;  
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #303b5b;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Icon spacing improvement */
.flytobot-quick-btn emoji,
.flytobot-quick-btn span {
  margin-right: 5px;
}

.flytobot-quick-btn:hover {
  background: #f7faff;
  border-color: #d2e3ff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.flytobot-quick-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
  background: #eef5ff;
}
.flytobot-final {
  border: 2px solid #ffb300;
  background: #e9f3ff;
  font-weight: bold;
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
}

.flytobot-book {
  display: inline-block;
  margin-top: 8px;
  font-weight: bold;
  color: white !important;
  background: #0078ff;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
}

/* ============================
   MOBILE FULLSCREEN MODE
   ============================ */
@media (max-width: 768px) {

  /* Chat window: full width, tall, rounded top */
  #flytobot-window {
    width: 100% !important;
    height: 95vh !important;
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    padding-bottom: 70px; /* Space for input bar */
    box-shadow: 0 -4px 25px rgba(0,0,0,0.25);
    animation: flytobot-slideup 0.3s ease-out;
  }

  /* Message area grows */
  #flytobot-messages {
    height: calc(95vh - 140px) !important;
    padding-bottom: 20px;
  }

  /* Input stays fixed at bottom */
  #flytobot-input-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    background: #fff;
    border-top: 1px solid #eee;
  }

  /* Quick buttons layout */
  .flytobot-quick-btn {
    width: 100%;
    margin-bottom: 10px;
  }

  /* BEAUTIFUL FINAL HIGHLIGHT MESSAGE */
  .flytobot-final {
    background: #fffdde !important;
    border-left: 5px solid #f7c600 !important;
    font-weight: 600;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }
}

/* Slide animation */
@keyframes flytobot-slideup {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
#flytobot-bubble {
  position: fixed;
  bottom: 80px;         /* adjust to sit above the icon */
  right: 40px;           /* align it closer to the icon */
  background: #ffffff;
  color: #000;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  font-size: 15px;
  max-width: 260px;
  z-index: 999999;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Add a small pointer triangle */
#flytobot-bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 25px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid white;
}
