.chatbot_chat-window,
.chatbot_chat-window * {
  box-sizing: border-box;
  font-family: Inter, Arial, sans-serif;
}

/* ================= CHAT TOGGLE ICON ================= */
.chatbot_toggle-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  pointer-events: none; /* prevents click issues */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}

/* Optional hover glow */
.chatbot_chat-toggle:hover .chatbot_toggle-icon {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}


/* FLOAT BUTTON */
.chatbot_chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 26px;
  background: linear-gradient(135deg,#062e6f,#0a48a0);
  color: #fff;
  box-shadow: 0 15px 35px rgba(6,46,111,.55);
  border: 3px solid #ffffff;
}

.chatbot_badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: red;
  color: white;
  font-size: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CHAT WINDOW */
.chatbot_chat-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 360px;
  max-width: 92vw;
  height: 560px;
  background: linear-gradient(180deg,#fff,#f5f8ff);
  border-radius: 25px;
  box-shadow: 0 30px 70px rgba(6,46,111,.35);
  display: flex;
  flex-direction: column;
  animation: chatbot_slideUp .25s ease;
}

.chatbot_hidden {
  display: none !important;
}

@keyframes chatbot_slideUp {
  from { opacity: 0; transform: translateY(30px) scale(.95); }
  to { opacity: 1; transform: none; }
}

/* HEADER */
.chatbot_chat-header {
  height: 66px;
  border-radius: 18px 18px 0px 0px;
  padding: 0 14px;
  background: linear-gradient(135deg,#062e6f,#0a48a0);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot_header-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

.chatbot_avatar {
  width: 32px;
  height: 32px;
  background: #fff;
  color: #062e6f;
  border-radius: 50%;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot_status {
  font-size: 11px;
  opacity: .9;
}

.chatbot_chat-header button {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

/* BODY */
.chatbot_chat-body {
  flex: 1;
  padding: 14px;
  border-radius: 0px 0px 18px 18px;
  overflow-y: auto;
  background: linear-gradient(180deg,#f8fafc,#eef3fb,#e6edf7);
}
/* ================= MESSAGE ICONS ================= */
/* ================= AVATAR ICONS ================= */
.chatbot_icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

/* BOT ICON */
.chatbot_bot-icon {
  background: #f3f4f6;
  padding: 2px;
}

/* USER ICON */
.chatbot_user-icon {
  background: #f3f4f6;
  padding: 2px;
}

/* ALIGNMENT */
.chatbot_message {
  align-items: flex-end;
}


/* MESSAGE */
.chatbot_message {
  display: flex;
  margin-bottom: 10px;
  align-items: flex-end;
}

.chatbot_message.chatbot_bot {
  justify-content: flex-start;
}

.chatbot_message.chatbot_user {
  justify-content: flex-end;
}


/* ===== BASE BUBBLE ===== */
.chatbot_bubble {
  max-width: 72%;
  padding: 11px 15px;
  font-size: 13px;
  line-height: 1.5;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

/* ===== BOT MESSAGE (GLASS CARD) ===== */
.chatbot_bot .chatbot_bubble {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.92),
    rgba(245,248,255,0.85)
  );

  border: 1px solid rgba(6,46,111,0.14);
  border-radius: 18px 18px 18px 6px;

  color: #1f2937;

  box-shadow:
    0 6px 20px rgba(6,46,111,0.18),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

/* ===== USER MESSAGE (PREMIUM GRADIENT) ===== */
.chatbot_user .chatbot_bubble {
  background: linear-gradient(
    135deg,
    #062e6f 0%,
    #0a48a0 60%,
    #0d5cc8 100%
  );

  color: #ffffff;
  font-weight: 500;

  border-radius: 18px 18px 6px 18px;

  box-shadow:
    0 10px 28px rgba(6,46,111,0.45),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

/* ===== MICRO INTERACTION ===== */
.chatbot_bubble:hover {
  transform: translateY(-1px);
}

/* ===== OPTIONAL: TEXT SMOOTHING ===== */
.chatbot_bubble {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* OPTIONS */
.chatbot_options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.chatbot_option-btn {
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 999px;

  /* Glass background */
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.75),
    rgba(240,245,255,0.6)
  );

  border: 1px solid rgba(6, 46, 111, 0.22);
  color: #062e6f;
  font-weight: 500;
  letter-spacing: 0.2px;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow:
    0 4px 12px rgba(6, 46, 111, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.6);

  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

/* Hover */
.chatbot_option-btn:hover {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.9),
    rgba(235,242,255,0.75)
  );

  transform: translateY(-1px);
  box-shadow:
    0 8px 22px rgba(6, 46, 111, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.75);

  border-color: rgba(6, 46, 111, 0.35);
}

/* Active (click) */
.chatbot_option-btn:active {
  transform: translateY(0);
  box-shadow:
    0 3px 10px rgba(6, 46, 111, 0.2),
    inset 0 2px 4px rgba(0,0,0,0.12);
}

/* Focus (keyboard accessibility) */
.chatbot_option-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(10, 72, 160, 0.25),
    0 6px 18px rgba(6, 46, 111, 0.25);
}


/* TYPING */
.chatbot_typing {
  font-size: 11px;
  opacity: .6;
}

/* ================= HOME SCREEN ================= */
.chatbot_home-screen {
  height: 100%;
  border-radius: 0px 0px 18px 18px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg,#f8fafc,#eef3fb 55%,#e6edf7);
}

.chatbot_home-top {
  text-align: center;
  padding-top: 8px;
}

.chatbot_home-cta {
  margin: 32px auto 8px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 28px;
  background: linear-gradient(135deg,#062e6f,#0a48a0);
  color: white;
  box-shadow: 0 18px 40px rgba(6,46,111,.5);
  transition: all .25s ease;
}

.chatbot_home-cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 24px 50px rgba(6,46,111,.65);
}

.chatbot_home-title {
  font-size: 13px;
  font-weight: 600;
}

.chatbot_home-subtitle {
  font-size: 11.5px;
  opacity: .7;
}

/* MIDDLE */
.chatbot_home-middle {
  flex: 1;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.chatbot_home-icon {
  font-size: 36px;
  color: rgb(6,46,111);
  margin-bottom: 6px;
}

.chatbot_home-middle-title {
  font-size: 13px;
  font-weight: 600;
}

.chatbot_home-middle-desc {
  font-size: 12px;
  opacity: .7;
  max-width: 260px;
}

/* BOTTOM */
.chatbot_home-bottom {
  text-align: center;
  padding-bottom: 8px;
}

.chatbot_home-divider {
  width: 44px;
  height: 3px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: linear-gradient(135deg,#062e6f,#0a48a0);
}

.chatbot_home-icons {
  font-size: 18px;
}

.chatbot_home-footer {
  font-size: 11px;
  margin-top: 6px;
  opacity: .65;
}

.chatbot_home-powered {
  font-size: 10.5px;
  margin-top: 6px;
  opacity: .5;
}
