#divibot-btn {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #4e63e5;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  z-index: 9999;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  display: flex;
  transition: background 0.2s;
}
#divibot-btn:hover {
  background: #3546a3;
}
#divibot-btn .divibot-icon {
  font-size: 2rem;
}
#divibot-chat-widget {
  display: flex;
  flex-direction: column;
  position: fixed;
  bottom: 32px;
  right: 32px;
  min-width: 260px;
  min-height: 400px;
  max-width: 98vw;
  max-height: 80vh;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  border-radius: 12px;
  background: #fff;
  z-index: 10000;
  overflow: hidden;
}
.divibot-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  background: #4e63e5;
  color: #fff;
  padding: 12px 16px;
  font-size: 1.1rem;
  font-weight: 600;
  justify-content: space-between;
}
.divibot-header .divibot-icon {
  margin-right: 8px;
  font-size: 1.5rem;
}
.divibot-header .divibot-title {
  flex: 1;
}
.divibot-header .divibot-close {
  cursor: pointer;
  font-size: 1.5rem;
  margin-left: 12px;
}
.divibot-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  padding: 16px 12px 8px 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
}
.divibot-msg.bot {
  background: #e6eaff;
  color: #222;
  padding: 8px 12px;
  border-radius: 10px 10px 10px 2px;
  margin-bottom: 8px;
  max-width: 80%;
  align-self: flex-start;
  text-align: left;
}
.divibot-msg.user {
  background: #dcf8c6;
  color: #222;
  padding: 8px 12px;
  border-radius: 10px 10px 2px 10px;
  margin-bottom: 8px;
  max-width: 80%;
  align-self: flex-end;
  text-align: left;
}
.divibot-input-row {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 8px 12px 8px 12px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  z-index: 9;
}
#divibot-chat-widget .divibot-input,
textarea.divibot-input {
  flex-grow: 1;
  border: none;
  padding: 10px;
  border-radius: 4px;
  outline: none;
  resize: none;
  overflow-y: auto;
  min-height: 60px;
}
.divibot-send {
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: .9rem;
  cursor: pointer;
  transition: opacity .2s;
  opacity: .7;
}
.divibot-summary-btn-row {
  flex: 0 0 auto;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0 12px 0;
}
.divibot-send-summary {
  width: 60%;
  min-width: 160px;
  max-width: 320px;
  background: #4e63e5;
  color: #fff;
  padding: 10px 0;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  margin: 0 auto;
  display: block;
}
@media (max-width: 500px) {
  #divibot-chat-widget {
    width: 98vw;
    right: 1vw;
    bottom: 70px;
    border-radius: 10px;
    min-height: 300px;
  }
  #divibot-btn {
    right: 12px;
    bottom: 12px;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
}
.divibot-icon img.divibot-avatar-image {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

#divibot-chat-widget .divibot-header .divibot-icon img.divibot-avatar-image {
    width: 38px;
    height: 38px;
}

.divibot-email-summary-btn {
    margin-left: 6px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f0f2f5;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s, opacity 0.2s;
    opacity: 1;
}
.divibot-email-summary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.divibot-email-summary-btn:hover:not(:disabled) {
    background: #e0e4f7;
}

.divibot-shortcode-chatbox .divibot-input {
    width: 80%;
    margin-left: 0;
    display: block;
    border: none;
    resize: none;
}

.divibot-shortcode-chatbox .divibot-input-row {
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

.divibot-reset-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    vertical-align: middle;
    padding: 0;
}

.divibot-reset-btn svg {
    display: block;
    margin: auto;
    /* Optional: fine-tune vertical alignment */
    /* margin-top: 1px; */
}

.divibot-shortcode-chatbox .divibot-messages {
  max-height: 320px;
  overflow-y: auto;
} 
.typing-indicator {
  display: flex;
  align-items: center;
  margin: 8px 0 0 0;
  font-size: 1.1em;
  color: #888;
  background: transparent;
  box-shadow: none;
}
.typing-dots {
  display: inline-block;
  vertical-align: middle;
}
.typing-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 2px;
  background: #b3b3b3;
  border-radius: 50%;
  opacity: 0.5;
  animation: typing-blink 1.4s infinite both;
}
.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typing-blink {
  0%, 80%, 100% { opacity: 0.5; }
  40% { opacity: 1; }
} 
.divibot-msg.bot ol li > p,
.divibot-msg.bot ul li > p {
  display: inline;
  margin: 0;
} 