/* RESET */
#shiny-chat-toggle, #shiny-chatbot, #shiny-chatbot * {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* FLOATING ICON */
#shiny-chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg,#ff7a18,#ffb347);
  border-radius: 50%;
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99999;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

/* CHAT BOX */
#shiny-chatbot {
  position: fixed;
  bottom: 12px;
  right: 24px;
  width: 360px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,.35);
  z-index: 99998;
  display: none;
}

/* HEADER */
.shiny-header {
  background: linear-gradient(135deg,#ff7a18,#ffb347);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}

#shiny-close {
  cursor: pointer;
  font-size: 22px;
}

/* CHAT WINDOW */
.shiny-window {
  height: 300px;
  padding: 12px;
  background: #f5f5f5;
  overflow-y: auto;
}

/* MESSAGES */
.bot {
  background: #fff;
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  margin-bottom: 10px;
  max-width: 85%;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

.user {
  background: linear-gradient(135deg,#ff7a18,#ffb347);
  color: #fff;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  margin-bottom: 10px;
  max-width: 85%;
  margin-left: auto;
}

/* INPUT AREA */
.shiny-input-area {
  padding: 10px;
  border-top: 1px solid #ddd;
}

/* INPUT WRAPPER */
.shiny-input-wrapper {
  position: relative;
}

#shiny-input {
  width: 100%;
  padding: 12px 44px 12px 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 14px;
  outline: none;
}

/* SEND BUTTON */
#shiny-send {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
/*  background: linear-gradient(135deg,#ff7a18,#ffb347);
  color: #fff;*/
  font-size: 14px;
}

/* LOADING DOTS */
.loading span {
  width: 6px;
  height: 6px;
  background: #ff9800;
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.4s infinite both;
  margin-right: 4px;
}

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

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

/* MOBILE */
@media (max-width: 480px) {
  #shiny-chatbot { width: 94%; right: 3%; }
}
