.bhub-ai-chatbot-widget {
  --bhub-pos-x: 40px;
  --bhub-pos-y: 40px;
  position: fixed;
  z-index: 9999;
  z-index: 9999;
  font-size: 13px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.4em;
  letter-spacing: normal;
  color: #000;
}
@media (max-width: 768px) {
  .bhub-ai-chatbot-widget {
    --bhub-pos-x: 20px;
    --bhub-pos-y: 20px;
  }
}
body.wp-admin .bhub-ai-chatbot-widget {
  --bhub-pos-x: 30px;
  --bhub-pos-y: 30px;
}
@media (max-width: 768px) {
  body.wp-admin .bhub-ai-chatbot-widget {
    --bhub-pos-x: 20px;
    --bhub-pos-y: 20px;
  }
}

.bhub-ai-chatbot-widget.bottom-left {
  left: var(--bhub-pos-x);
  bottom: var(--bhub-pos-y);
}
.bhub-ai-chatbot-widget.bottom-left .bhub-ai-chatbot-widget--chat {
  right: auto;
  left: 0;
}
.bhub-ai-chatbot-widget.bottom-right {
  right: var(--bhub-pos-x);
  bottom: var(--bhub-pos-y);
}
.bhub-ai-chatbot-widget.bottom-right .bhub-ai-chatbot-widget--bubble-text,
.bhub-ai-chatbot-widget.bottom-right .bhub-ai-chatbot-widget--chat {
  left: auto;
  right: 0;
}
.bhub-ai-chatbot-widget.top-left {
  left: var(--bhub-pos-x);
  top: var(--bhub-pos-y);
}
.bhub-ai-chatbot-widget.top-left .bhub-ai-chatbot-widget--bubble-text,
.bhub-ai-chatbot-widget.top-left .bhub-ai-chatbot-widget--chat {
  bottom: auto;
  top: calc(100% + 12px);
  left: 0;
}
.bhub-ai-chatbot-widget.top-right {
  right: var(--bhub-pos-x);
  top: var(--bhub-pos-y);
}
.bhub-ai-chatbot-widget.top-right .bhub-ai-chatbot-widget--bubble-text,
.bhub-ai-chatbot-widget.top-right .bhub-ai-chatbot-widget--chat {
  bottom: auto;
  top: calc(100% + 12px);
  right: 0;
}
.bhub-ai-chatbot-widget:not(.bhub-is-loading) .bhub-ai-chatbot-widget--loader {
  display: none;
}
.bhub-ai-chatbot-widget.bhub-is-loading .bhub-ai-chatbot-widget--messages,
.bhub-ai-chatbot-widget.bhub-is-loading .bhub-ai-chatbot-widget--message-list,
.bhub-ai-chatbot-widget.bhub-is-loading .bhub-ai-chatbot-widget--start-new-chat {
  display: none;
}
.bhub-ai-chatbot-widget--close, .bhub-ai-chatbot-widget--close-chat {
  margin-left: auto;
  cursor: pointer;
}
.bhub-ai-chatbot-widget--close:hover, .bhub-ai-chatbot-widget--close-chat:hover {
  opacity: 0.6;
}
.bhub-ai-chatbot-widget--start-new-chat {
  border-radius: 0 !important;
  justify-content: center;
  background-color: var(--bhub-chatbot-color-chat-list-button-bg) !important;
  border-color: var(--bhub-chatbot-color-chat-list-button-bg) !important;
  color: var(--bhub-chatbot-color-chat-list-button-text) !important;
  box-shadow: 0px -10px 20px 0px rgba(0, 0, 0, 0.1) !important;
  z-index: 2;
  padding: 0 !important;
  height: 70px !important;
}
.bhub-ai-chatbot-widget--start-new-chat:hover {
  padding: 0 !important;
  background-color: var(--bhub-chatbot-color-chat-list-button-bg) !important;
  color: var(--bhub-chatbot-color-chat-list-button-text) !important;
  opacity: 0.9;
}
.bhub-ai-chatbot-widget--start-new-chat i {
  font-size: 18px;
}
.bhub-ai-chatbot-widget--header {
  background: var(--bhub-chatbot-color-chatbot-header-bg);
  color: var(--bhub-chatbot-color-chatbot-header);
  line-height: 1.2;
  padding: 20px;
}
.bhub-ai-chatbot-widget--header--title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}
.bhub-ai-chatbot-widget--header--heading {
  font-size: 13px;
  line-height: 1;
  opacity: 0.6;
  font-weight: 500;
}
.bhub-ai-chatbot-widget--chat {
  width: 420px;
  box-sizing: border-box;
  height: 0;
  visibility: hidden;
  background: var(--bhub-chatbot-color-bg);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 250ms, visibility 250ms, opacity 250ms;
  opacity: 0;
  box-sizing: content-box;
  overflow: hidden;
  transform: translateY(10px);
  position: absolute;
  bottom: calc(100% + 12px);
}
@media (max-width: 576px) {
  .bhub-ai-chatbot-widget--chat {
    width: calc(100vw - var(--bhub-scrollbar-width, 0px) - var(--bhub-pos-x) * 2);
  }
}
.bhub-ai-chatbot-widget--chat.bhub-active {
  height: 640px;
  max-height: calc(100vh - var(--wp-admin--admin-bar--height) - var(--bhub-pos-y) - 58px - var(--bhub-pos-y) - 12px);
  visibility: visible;
  opacity: 1;
  transform: none;
}
.bhub-ai-chatbot-widget--chat.bhub-active-list .bhub-ai-chatbot-widget--messages,
.bhub-ai-chatbot-widget--chat.bhub-active-list .bhub-ai-chatbot-widget--form,
.bhub-ai-chatbot-widget--chat.bhub-active-list .bhub-ai-chatbot-widget--close {
  display: none;
}
.bhub-ai-chatbot-widget--chat:not(.bhub-active-list) .bhub-ai-chatbot-widget--message-list,
.bhub-ai-chatbot-widget--chat:not(.bhub-active-list) .bhub-ai-chatbot-widget--start-new-chat {
  display: none;
}
.bhub-ai-chatbot-widget--chat:not(.bhub-active-list) .bhub-ai-chatbot-widget--close-chat {
  display: none;
}
.bhub-ai-chatbot-widget--trigger {
  background: var(--bhub-chatbot-color-chatbot-trigger-bg);
  border: var(--bhub-border);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  border-radius: 99rem;
  width: 56px;
  height: 56px;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: 250ms;
  position: relative;
  overflow: hidden;
}
.bhub-ai-chatbot-widget--trigger--default, .bhub-ai-chatbot-widget--trigger--active {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 250ms;
}
.bhub-ai-chatbot-widget--trigger--active {
  transform: translate(-50%, -45px);
}
.bhub-ai-chatbot-widget--trigger.bhub-active .bhub-ai-chatbot-widget--trigger--default {
  transform: translate(-50%, 45px);
}
.bhub-ai-chatbot-widget--trigger.bhub-active .bhub-ai-chatbot-widget--trigger--active {
  transform: translate(-50%, -50%);
}
.bhub-ai-chatbot-widget--message-list {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  height: 100%;
  background-color: var(--bhub-chatbot-color-chat-list-bg);
  border-radius: var(--bhub-border-r);
  padding: 20px 0;
}
.bhub-ai-chatbot-widget--message-list--item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 30px;
  margin-bottom: 1px;
  background-color: var(--bhub-chatbot-color-chat-list-bg);
  color: var(--bhub-chatbot-color-chat-list-title);
  cursor: pointer;
  position: relative;
}
.bhub-ai-chatbot-widget--message-list--item time {
  font-size: 12px;
  color: var(--bhub-chatbot-color-chat-list-time);
  margin-left: auto;
  display: block;
  align-self: start;
}
.bhub-ai-chatbot-widget--messages {
  overflow-y: scroll;
  height: 100%;
  padding: 20px 30px;
  background-color: var(--bhub-chatbot-color-chat-bg);
  border-radius: var(--bhub-border-r);
  box-shadow: 0 0px 12px rgba(40, 39, 39, 0.06);
}
.bhub-ai-chatbot-widget--messages--message {
  padding: 12px 18px;
  margin-bottom: 4px;
  border-radius: 20px;
  background: var(--bhub-chatbot-color-message-bg);
  color: var(--bhub-chatbot-color-message-text);
  text-align: right;
  margin-left: auto;
  width: -moz-fit-content;
  width: fit-content;
  max-width: -moz-available;
  font-size: 14px;
  text-align: left;
}
.bhub-ai-chatbot-widget--messages--message .date-time-row {
  flex-direction: column;
}
.bhub-ai-chatbot-widget--messages--message .date-time-row .bhub-select {
  background-color: var(--bhub-chatbot-color-chat-bg) !important;
}
.bhub-ai-chatbot-widget--messages--message .date-time-row #bhub-date-picker {
  display: none;
}
.bhub-ai-chatbot-widget--messages--message .date-time-row .-inline-.bhub-airdatepicker {
  width: 100%;
}
.bhub-ai-chatbot-widget--messages--message input.bhub-date-picker {
  display: none !important;
}
.bhub-ai-chatbot-widget--messages--message .bhub-daterange-picker {
  display: none !important;
}
.bhub-ai-chatbot-widget--messages--message .-inline-.bhub-airdatepicker {
  width: 100% !important;
}
.bhub-ai-chatbot-widget--messages--message.ai {
  color: var(--bhub-chatbot-color-message-ai-text);
  background: var(--bhub-chatbot-color-message-ai-bg);
  text-align: left;
  margin-right: auto;
  margin-left: 0;
}
.bhub-ai-chatbot-widget--messages--message-time {
  display: block;
  width: -moz-fit-content;
  width: fit-content;
  text-align: right;
  margin-left: auto;
  font-size: 10px;
  color: var(--bhub-chatbot-color-message-time);
  margin-bottom: 12px;
}
.bhub-ai-chatbot-widget--messages--message-time.ai {
  text-align: left;
  margin-right: auto;
  margin-left: 0;
}
.bhub-ai-chatbot-widget--messages--message--loader {
  width: 20px;
  aspect-ratio: 4;
  --_g: no-repeat radial-gradient(circle closest-side, #000 90%, #0000);
  background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
  background-size: 33.3333333333% 100%;
  animation: l7 1s infinite linear;
}
@keyframes l7 {
  33% {
    background-size: 33.3333333333% 0%, 33.3333333333% 100%, 33.3333333333% 100%;
  }
  50% {
    background-size: 33.3333333333% 100%, 33.3333333333% 0%, 33.3333333333% 100%;
  }
  66% {
    background-size: 33.3333333333% 100%, 33.3333333333% 100%, 33.3333333333% 0%;
  }
}
.bhub-ai-chatbot-widget--messages--message .bhub-form {
  margin-top: 1em;
}
.bhub-ai-chatbot-widget--messages--message .bhub-form button {
  margin-top: 1em;
  justify-content: center;
  width: 100%;
}
.bhub-ai-chatbot-widget--messages--gdpr {
  position: relative;
  margin-bottom: 20px;
  z-index: 2;
}
.bhub-ai-chatbot-widget--messages--gdpr div {
  text-align: center;
  background-color: var(--bhub-chatbot-color-chat-bg);
  position: relative;
  padding: 0 20px;
}
.bhub-ai-chatbot-widget--messages--gdpr div a {
  color: inherit;
  text-decoration: underline;
}
.bhub-ai-chatbot-widget--messages--gdpr div:after {
  content: "";
  position: absolute;
  left: -40px;
  right: -40px;
  top: calc(50% - 0.5px);
  background-color: var(--bhub-color-section-border);
  height: 1px;
  z-index: -1;
}
.bhub-ai-chatbot-widget--form {
  display: flex;
  align-items: center;
  padding: 0 30px;
  background-color: var(--bhub-chatbot-color-input-bg);
  box-shadow: 0px -10px 20px 0px rgba(0, 0, 0, 0.05);
  z-index: 99;
  height: 70px;
}
.bhub-ai-chatbot-widget--form input {
  width: 100%;
  border: none;
  border-radius: 0;
  font-weight: 500;
  background-color: transparent;
  font-size: 14px;
  line-height: 70px;
  color: var(--bhub-chatbot-color-input-text);
}
.bhub-ai-chatbot-widget--form input:focus {
  outline: none;
  box-shadow: none;
}
.bhub-ai-chatbot-widget--form--buttons {
  display: flex;
}
.bhub-ai-chatbot-widget--form--buttons button {
  cursor: pointer;
  display: flex;
  background: transparent !important;
  border: none !important;
  color: var(--bhub-chatbot-color-submit-button-text) !important;
  padding: 8px !important;
  font-weight: 500 !important;
  font-size: 14px !important;
}
.bhub-ai-chatbot-widget--form--buttons button:hover {
  background: transparent !important;
  color: var(--bhub-chatbot-color-submit-button-text) !important;
}
.bhub-ai-chatbot-widget--loader {
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 8px;
  background-color: var(--bhub-color-section-bg);
  padding: 12px;
  margin: 12px;
  border-radius: var(--bhub-border-r);
  height: 100%;
}
.bhub-ai-chatbot-widget--loader--bar {
  height: 24px;
  width: 90%;
  animation: pulse 2s infinite;
  background: rgba(var(--bhub-color-primary-rgb), 0.1);
  border-radius: 99px;
}
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
  75% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}
.bhub-ai-chatbot-widget--bubble-text {
  color: var(--bhub-chatbot-color-bubble-text);
  background-color: var(--bhub-chatbot-color-bubble-text-bg);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  animation: bubble-init 0.5s ease-in-out;
  transform: translateX(0);
  position: absolute;
  white-space: nowrap;
  bottom: calc(100% + 12px);
}
@keyframes bubble-init {
  0% {
    transform: scale(0.5) translateX(100px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateX(0);
    opacity: 1;
  }
}
.bhub-ai-chatbot-widget--quick-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.bhub-ai-chatbot-widget--quick-actions span {
  cursor: pointer;
  min-width: -moz-fit-content;
  min-width: fit-content;
  background-color: var(--bhub-chatbot-color-chat-bg);
  padding: 6px 12px;
  border-radius: 4px;
}

.bhub-chatbot-messages--info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  row-gap: 20px;
  border: var(--bhub-border);
  border-radius: 0 0 4px 4px;
  padding: 12px 32px;
  margin-bottom: 30px;
  font-size: 14px;
  color: var(--bhub-color-subtitle-text);
}
.bhub-chatbot-messages--info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bhub-chatbot-messages-drawer .jconfirm-title-c {
  border: var(--bhub-border) !important;
  border-radius: 4px 4px 0 0 !important;
  margin-bottom: 0 !important;
  padding: 12px 32px !important;
  border-bottom: none !important;
}
.bhub-chatbot-messages-drawer .jconfirm-closeIcon {
  right: 8px !important;
  top: 8px !important;
}
.bhub-chatbot-messages-drawer .jconfirm-buttons {
  display: none !important;
}
.bhub-chatbot-messages-drawer .jconfirm-box {
  gap: 0 !important;
}
.bhub-chatbot-messages-drawer .bhub-modal-closer {
  top: 44px !important;
  right: 48px !important;
}
