#cara-chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #f47b20;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10001;
}
#cara-chatbot-toggle img { 
  width: 50px;
  height: 60px;
  margin: -4px 4px 0 0;
}
#cara-chatbot-container {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 370px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
  font-family: Arial, sans-serif !important;
  box-sizing: border-box;     /* prevent width overflow from padding/border */
}
@media (max-width: 430px) {
  #cara-chatbot-container {
    right: auto;                          /* stop pinning to right */
    left: 50%;                            /* center anchor */
    transform: translateX(-50%);          /* true center */
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));  /* keep clear of home indicator */
    width: min(360px, calc(100vw - 24px));/* 12px margin on each side */
    max-height: min(78vh, calc(100vh - 160px)); /* avoid top notch / URL bar */
    border-radius: 12px;
  }
}
#cara-chatbot-header {
  background: #f47b20;
  color: white;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;     /* NEW */
}
.bot-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.status {
  font-size: 12px;
  color: #13ca7e;
}
#cara-chatbox {
  background: #fff;
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
}
.bot-msg, .user-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.user-msg { 
  justify-content: flex-end;
}
.bot-msg {
  justify-content: flex-start;
}
.msg-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.msg-text {
  color: #566069;
  font-size: 13px;
  line-height: 21px;
  letter-spacing: 0.3px;
  outline: none;
  background: #f7f7f7;
  font-family: "Support Board Font", "Helvetica Neue", "Apple Color Emoji", Helvetica, Arial, sans-serif !important;
  padding: 10px 8px;
  border-radius: 8px;
  max-width: 70%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.msg-text-first {
  color: #566069;
  font-size: 13px;
  line-height: 21px;
  letter-spacing: 0.3px;
  outline: none;
  background: #f7f7f7;
  font-family: "Support Board Font", "Helvetica Neue", "Apple Color Emoji", Helvetica, Arial, sans-serif !important;
  padding: 10px 8px;
  border-radius: 8px;
  max-width: 70%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.user-msg .msg-text {
  background: #e6f3ff !important;
}
.chat-btn {
  display: inline-block;
  background: #f47b20;
  color: #fff !important;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 5px;
  margin: 5px 0;
  font-size: 14px !important;
  width: 100%;
  text-align: center;
}
.chat-btn:hover{
  background-color: rgb(39, 70, 102);
  color:#fff;
}
.input-row {
  display: flex;
  border-top: 1px solid #ccc;
  padding: 10px;
  background: #fff;
}
#userInput {
  flex: 1;
  border: none;
  border-radius: 20px;
  padding: 10px;
  font-size: 14px;
  background: #f1f1f1;
  outline: none;
  color: #566069 !important;
}
#sendBtn {
  background: #f47b20;
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  margin-left: 10px;
  cursor: pointer;
  font-size: 16px;
  height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;        /* removes the dotted outline */
  box-shadow: none;     /* removes any glow effect */
}
#sendBtn:hover{
  background-color: rgb(39, 70, 102);
}
#cara-chatbot-header strong {
  color: #fff;
  letter-spacing: 0.5px;
  font-size: 14px;
  white-space: nowrap;
  line-height: 22px;
  font-family: "Support Board Font", "Helvetica Neue", "Apple Color Emoji", Helvetica, Arial, sans-serif !important;
  font-weight: 500;
}
.header-status {
  display: flex;
  flex-direction: column;
  letter-spacing: 0.5px;
  line-height: 22px;
  font-size: 12px;
  white-space: nowrap;
}
.fw-500{
  font-weight: 500 !important;
}
#cara-chatbot-toggle {
  transition: transform 0.3s ease;
}
#cara-chatbot-toggle.open {
  transform: rotate(90deg);
}
#cara-chatbot-toggle:hover{
  background-color: rgb(39, 70, 102);
}
#cara-chatbot-toggle.open img{
  margin: 0 0 0 0 !important;
}
.typing span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 2px;
  background: #ccc;
  border-radius: 50%;
  animation: blink 1.4s infinite both;
}
.typing span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes blink {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}
/* width */
::-webkit-scrollbar {
  width: 5px;
}
/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 6px;
}
/* Handle */
::-webkit-scrollbar-thumb {
  background: #BFCBD3; 
  border-radius: 6px;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #9da1a3; 
}
.sb-main{
  display:none !important;
}
.msg-text a {
  color: #274666 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  text-decoration: underline !important;
}
 /* new */
#cara-chatbot-header .header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Close button in header */
#cara-chatbot-close.chat-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;        /* tweak size as you like */
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.1s ease;
  outline: none;        /* removes the dotted outline */
  box-shadow: none;     /* removes any glow effect */
}
#cara-chatbot-close.chat-close:hover {
  background: rgba(255,255,255,0.15);
}
#cara-chatbot-close.chat-close:active {
  transform: scale(0.96);
}
/* new */