/* UR Mom Kitchen — Chatbot CSS */

#umkChatRoot {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 999999 !important;
  font-family: 'Inter', Arial, sans-serif !important;
}

#umkChatBtn {
  width: 58px !important;
  height: 58px !important;
  background: linear-gradient(135deg, #1a3a0e, #2d5016) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.35) !important;
  transition: transform .2s !important;
  position: relative !important;
  font-size: 1.5rem !important;
  border: none !important;
  outline: none !important;
}
#umkChatBtn:hover { transform: scale(1.1) !important; }
#umkChatBtn.open { background: linear-gradient(135deg, #b91c1c, #ef4444) !important; }

.umk-chat-notif {
  position: absolute !important;
  top: -3px !important;
  right: -3px !important;
  background: #FF7A00 !important;
  color: #fff !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  font-size: .65rem !important;
  font-weight: 800 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #fff !important;
}

#umkChatWindow {
  position: absolute !important;
  bottom: 68px !important;
  right: 0 !important;
  width: 350px !important;
  max-height: 500px !important;
  background: #ffffff !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 40px rgba(0,0,0,.2) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  opacity: 0 !important;
  transform: translateY(12px) scale(.95) !important;
  pointer-events: none !important;
  transition: opacity .25s, transform .25s !important;
  border: 1px solid rgba(0,0,0,.1) !important;
}
#umkChatWindow.open {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: all !important;
}

.ucw-head {
  background: linear-gradient(135deg, #1a3a0e, #2d5016) !important;
  padding: 13px 15px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-shrink: 0 !important;
}
.ucw-head-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.ucw-avatar {
  width: 36px !important;
  height: 36px !important;
  background: rgba(255,255,255,.15) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1rem !important;
  flex-shrink: 0 !important;
}
.ucw-name {
  font-size: .85rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  line-height: 1.2 !important;
}
.ucw-status {
  font-size: .67rem !important;
  color: rgba(255,255,255,.7) !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-top: 2px !important;
}
.ucw-online-dot {
  width: 6px !important;
  height: 6px !important;
  background: #4ade80 !important;
  border-radius: 50% !important;
  display: inline-block !important;
}
.ucw-close {
  background: rgba(255,255,255,.15) !important;
  border: none !important;
  color: #fff !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  font-size: .82rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}
.ucw-close:hover { background: rgba(255,255,255,.3) !important; }

.ucw-messages {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  background: #f5f5f5 !important;
  min-height: 200px !important;
}

.ucw-welcome { text-align: center !important; padding: 6px 0 !important; }
.ucw-welcome-ico { font-size: 2rem !important; margin-bottom: 6px !important; display: block !important; }
.ucw-welcome-title {
  font-size: .88rem !important;
  font-weight: 700 !important;
  color: #1a3a0e !important;
  font-family: 'Poppins', Arial, sans-serif !important;
  margin-bottom: 4px !important;
  display: block !important;
}
.ucw-welcome-sub {
  font-size: .74rem !important;
  color: #555 !important;
  line-height: 1.5 !important;
  margin-bottom: 10px !important;
  display: block !important;
}
.ucw-quick-btns {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  justify-content: center !important;
}
.ucw-qbtn {
  background: #fff !important;
  border: 1.5px solid #ddd !important;
  color: #1a3a0e !important;
  padding: 5px 9px !important;
  border-radius: 99px !important;
  font-size: .68rem !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  transition: all .15s !important;
  font-family: inherit !important;
}
.ucw-qbtn:hover {
  background: #1a3a0e !important;
  color: #fff !important;
  border-color: #1a3a0e !important;
}

.ucw-msg {
  display: flex !important;
  align-items: flex-end !important;
  gap: 7px !important;
  max-width: 100% !important;
}
.ucw-msg-bot { flex-direction: row !important; }
.ucw-msg-user { flex-direction: row-reverse !important; }

.ucw-msg-avatar {
  width: 26px !important;
  height: 26px !important;
  background: linear-gradient(135deg, #1a3a0e, #2d5016) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: .72rem !important;
  flex-shrink: 0 !important;
}

.ucw-bubble {
  max-width: 80% !important;
  padding: 9px 12px !important;
  border-radius: 14px !important;
  font-size: .78rem !important;
  line-height: 1.55 !important;
  word-break: break-word !important;
}
.ucw-msg-bot .ucw-bubble {
  background: #fff !important;
  color: #333 !important;
  border-radius: 4px 14px 14px 14px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.1) !important;
}
.ucw-msg-user .ucw-bubble {
  background: linear-gradient(135deg, #1a3a0e, #2d5016) !important;
  color: #fff !important;
  border-radius: 14px 14px 4px 14px !important;
}
.ucw-bubble p { margin: 0 0 5px !important; }
.ucw-bubble p:last-child { margin: 0 !important; }
.ucw-bubble ul { margin: 4px 0 !important; padding-left: 14px !important; }
.ucw-bubble li { margin-bottom: 2px !important; }
.ucw-bubble strong { font-weight: 700 !important; }

.ucw-typing {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 10px 12px !important;
}
.ucw-typing span {
  width: 7px !important;
  height: 7px !important;
  background: #aaa !important;
  border-radius: 50% !important;
  display: inline-block !important;
  animation: ucwBounce 1.2s infinite !important;
}
.ucw-typing span:nth-child(2) { animation-delay: .2s !important; }
.ucw-typing span:nth-child(3) { animation-delay: .4s !important; }
@keyframes ucwBounce {
  0%,80%,100% { transform: scale(.8); opacity:.4; }
  40% { transform: scale(1.1); opacity:1; }
}

.ucw-input-area {
  padding: 9px 11px !important;
  display: flex !important;
  gap: 7px !important;
  align-items: center !important;
  border-top: 1px solid #eee !important;
  background: #fff !important;
  flex-shrink: 0 !important;
}
#umkChatInput {
  flex: 1 !important;
  border: 1.5px solid #e0e0e0 !important;
  border-radius: 99px !important;
  padding: 8px 13px !important;
  font-size: .8rem !important;
  outline: none !important;
  color: #333 !important;
  background: #f8f8f8 !important;
  font-family: inherit !important;
  min-width: 0 !important;
}
#umkChatInput:focus {
  border-color: #2d5016 !important;
  background: #fff !important;
}
#umkSendBtn {
  width: 35px !important;
  height: 35px !important;
  background: linear-gradient(135deg, #1a3a0e, #2d5016) !important;
  border: none !important;
  border-radius: 50% !important;
  color: #fff !important;
  font-size: .9rem !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#umkSendBtn:hover { opacity: .85 !important; }

@media (max-width: 480px) {
  #umkChatRoot { bottom: 80px !important; right: 10px !important; }
  #umkChatWindow { width: calc(100vw - 20px) !important; right: -10px !important; max-height: 65vh !important; }
}
