/* ===============================
   CHATBOT CONTAINER
=============================== */
#up-toggle {
  z-index: 9999 ;
}
#up-chatbot {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 360px;
  max-height: 520px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  font-family: Inter, Arial, sans-serif;
  z-index: 9999 ;
}

#up-text {
  pointer-events: auto !important;
  user-select: text !important;
  -webkit-user-select: text !important;
  cursor: text !important;
  background: #fff !important;
  color: #000 !important;
}
#up-header {
  background: #0b3c5d;
  color: #fff;
  padding: 14px;
  font-weight: 600;
  text-align: center;
  border-radius: 14px 14px 0 0;
}

/* ===============================
   MESSAGES
=============================== */
#up-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #f7f9fb;
}

.up-msg {
  margin-bottom: 10px;
  line-height: 1.4;
}

.up-user {
  text-align: right;
}

.up-user span {
  display: inline-block;
  background: #0b3c5d;
  color: #fff;
  padding: 8px 12px;
  border-radius: 14px 14px 0 14px;
}

.up-bot {
  text-align: left;
}

.up-bot span {
  display: inline-block;
  background: #e9eef3;
  color: #000;
  padding: 8px 12px;
  border-radius: 14px 14px 14px 0;
}

/* ===============================
   TYPING INDICATOR
=============================== */
.up-typing {
  display: flex;
  align-items: center;
  gap: 6px;
}

.up-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0b3c5d;
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.up-dots span {
  animation: blink 1.4s infinite both;
  font-size: 20px;
}

.up-dots span:nth-child(2) { animation-delay: .2s; }
.up-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes blink {
  0% { opacity: .2 }
  20% { opacity: 1 }
  100% { opacity: .2 }
}

/* ===============================
   PRODUCT CARD
=============================== */
.up-product {
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 8px;
  margin-top: 6px;
  background: #fff;
}

.up-product a {
  display: inline-block;
  margin-top: 6px;
  background: #0b3c5d;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
}

/* ===============================
   SKELETON LOADER
=============================== */
.skeleton {
  height: 60px;
  border-radius: 6px;
  background: linear-gradient(90deg,#eee,#f5f5f5,#eee);
  animation: shimmer 1.2s infinite;
  margin-top: 8px;
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

/* ===============================
   INPUT AREA
=============================== */
#up-input {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ddd;
}

#up-text {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

#up-send {
  margin-left: 6px;
  padding: 8px 14px;
  border: none;
  background: #0b3c5d;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}

#up-send:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* ===============================
   TOGGLE BUTTON
=============================== */
#up-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0b3c5d;
  color: #fff;
  padding: 14px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}
.grecaptcha-badge {
  right: 90px !important;
  bottom: 24px !important;
}
/* ===============================
   FIX INPUT NOT CLICKABLE
=============================== */

#up-chatbot {
  position: fixed;
  pointer-events: auto;
  isolation: isolate;
}

#up-chatbot * {
  pointer-events: auto;
}

#up-input,
#up-text,
#up-send {
  position: relative;
  z-index: 2;
}
