.sb-email-body { white-space: normal; word-break: break-word; }
.sb-email-body table { border-collapse: collapse; max-width: 100%; }
.sb-email-body img { max-width: 100%; height: auto; }

.mb-5 {
  margin-bottom: 0.5rem;
}

.sb-icon-help {
  display: none !important;
}

#hb_case {
  margin-left: 0;
}

.sb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px; /* optional spacing between items */
}

.sb-top a {
  flex: 1 1 auto; /* allow it to grow/shrink */
  min-width: 0; /* needed for text-overflow to work in flex */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sb-menu-mobile {
  flex-shrink: 0; /* prevent it from shrinking */
}

.sb-btn-bot {
  display: block;
  background-color: #e3efff; /* Messenger blue */
  color: #004c7d;
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
  text-align: center;
  user-select: none; 
  margin-bottom: 10px;
  border: none;
  width: 100%; 
  max-width:80%; 
  opacity: 1;
  cursor: default;

  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px auto;
}

.sb-btn-btn:last-child {
  margin-bottom: 0;
}

.sb-image-msg {
  border-radius: 4px;
}

.sb-image-msg>img{
  max-width: 100%;
  height: 200px;
  border-radius: 3px;
  display: block;
  transition: all 0.4s;
}

.sb-fbbot-overlay {
  position: absolute;
  height: 14vh;
  min-height: 80px !important;
  background: rgb(144 172 194 / 88%);
  left: 10px;
  right: 10px;
  bottom: 10px;
  border-radius: 5px;
  overflow: hidden;

  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: 
      opacity 0.4s ease,
      transform 0.4s ease,
      height 0.6s ease;
  pointer-events: none;
}

/* Active state (after appending or before removing) */
.sb-fbbot-overlay.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.sb-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #fff;
  text-align: center;
  padding: 10px;
  position: relative;
  z-index: 2;
}

.sb-overlay-text {
  font-size: 14px;
  margin-bottom: 10px;
  font-family:"Support Board Font", "Helvetica Neue", "Apple Color Emoji", Helvetica, Arial, sans-serif;
}

.sb-pause-bot-btn,.sb-resume-bot-btn {
  background-color: #3bb2ff;
  color: #f7f0f0;
  border: none;
  padding: 8px 16px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.sb-pause-bot-btn:hover,.sb-pause-bot-btn:hover{
  background-color: #0056e0;
}

.sb-resume-bot-wrapper {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding-left: 10px;
}

.sb-bar {
  display: flex;
  align-items: center;
}
.waiting-indicator > .sb-icon-chatbot{
  color:red;
  font-size: 12px;
}
.waiting-indicator {
  position: relative;
  display: inline-block;
  top: -15px !important;
  left: -23px;
} 
/* Square pulsing ring*/
.waiting-indicator::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  bottom: 11px;
  background-color: rgba(255, 0, 4, 0.7); /* softer red pulse */
  border-radius: 20px 15px 15px 20px;
  z-index: 1;
  animation: square-pulse 1.5s infinite;
  transform: scale(1);
  opacity: 0;
}

/* Pulse animation */
@keyframes square-pulse {
  0% {
      transform: scale(1);
      opacity: 0.6;
  }
  50% {
      transform: scale(1.3);
      opacity: 0.3;
  }
  100% {
      transform: scale(1);
      opacity: 0;
  }
}

.dot-indicator{
  position: absolute;
  top: -4px;
  left: 39px;
  background-color: #FFD700;
  color: white;
  border-radius: 50%;
  padding: 4px;
  font-size: 10px;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.8);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}
