/*
 * SiteChatBot v0.2.15.2
 * Floating public interface.
 */

#site-chatbot-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999999;
  font-family: inherit;
}

#site-chatbot-launcher {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #222;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .25);
}

.site-chatbot-launcher-icon {
  display: block;
  font-size: 25px;
  font-weight: 700;
  line-height: 56px;
  text-align: center;
}

#site-chatbot-panel {
  display: none;
  position: absolute;
  right: 0;
  bottom: 70px;

  width:
    min(
      400px,
      calc(100vw - 32px)
    );

  height:
    min(
      600px,
      calc(100vh - 115px)
    );

  overflow: hidden;

  background: #fff;

  border:
    1px solid #ccc;

  border-radius:
    12px;

  box-shadow:
    0 10px 34px
    rgba(0, 0, 0, .24);
}

#site-chatbot-panel.is-open {
  display: flex;
  flex-direction: column;
}

.site-chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  gap: 12px;

  padding:
    13px 14px;

  border-bottom:
    1px solid #ddd;

  background:
    #f6f6f6;
}

.site-chatbot-title {
  font-weight: 700;
  font-size: 16px;
}

.site-chatbot-scope {
  margin-top: 2px;
  font-size: 12px;
  color: #666;
}

#site-chatbot-close {
  padding: 0 3px;
  border: 0;
  background: transparent;
  color: #333;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

#site-chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
}

.site-chatbot-message {
  margin-bottom: 12px;
}

.site-chatbot-user {
  text-align: right;
}

.site-chatbot-bubble {
  display: inline-block;

  max-width:
    90%;

  padding:
    9px 11px;

  border-radius:
    10px;

  line-height:
    1.42;

  text-align:
    left;

  white-space:
    pre-wrap;
}

.site-chatbot-assistant
.site-chatbot-bubble {
  background: #f0f0f0;
  color: #111;
}

.site-chatbot-user
.site-chatbot-bubble {
  background: #222;
  color: #fff;
}

.site-chatbot-results {
  margin-top: 7px;
}

.site-chatbot-result {
  display: block;

  margin:
    6px 0;

  padding:
    9px 10px;

  border:
    1px solid #ddd;

  border-radius:
    8px;

  background:
    #fff;

  color:
    inherit;

  text-align:
    left;

  text-decoration:
    none;
}

.site-chatbot-result:hover,
.site-chatbot-result:focus {
  border-color: #888;
  background: #fafafa;
}

.site-chatbot-result-meta {
  margin-top: 3px;
  color: #666;
  font-size: 12px;
}

.site-chatbot-result-excerpt {
  margin-top: 5px;
  color: #333;
  font-size: 13px;
  line-height: 1.35;
}

#site-chatbot-form {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto;
  align-items: end;

  gap:
    8px;

  padding:
    10px;

  border-top:
    1px solid #ddd;

  background:
    #fafafa;
}

#site-chatbot-input {
  width: 100%;
  min-width: 0;
  min-height:
    43px;

  max-height:
    110px;

  box-sizing:
    border-box;

  padding:
    8px;

  resize:
    none;

  overflow-x:
    hidden;

  overflow-y:
    auto;

  white-space:
    pre-wrap;

  overflow-wrap:
    anywhere;

  border:
    1px solid #bbb;

  border-radius:
    7px;

  font:
    inherit;
}

#site-chatbot-send {
  flex-shrink: 0;
  padding:
    9px 12px;

  border:
    0;

  border-radius:
    7px;

  background:
    #222;

  color:
    #fff;

  cursor:
    pointer;
}

.site-chatbot-footer {
  padding:
    0 10px 9px;

  background:
    #fafafa;

  color:
    #666;

  font-size:
    11px;
}

.site-chatbot-sr-only {
  position:
    absolute !important;

  width:
    1px !important;

  height:
    1px !important;

  padding:
    0 !important;

  margin:
    -1px !important;

  overflow:
    hidden !important;

  clip:
    rect(
      0,
      0,
      0,
      0
    ) !important;

  white-space:
    nowrap !important;

  border:
    0 !important;
}

@media (max-width: 600px) {
  #site-chatbot-root {
    right: 12px;
    bottom: 12px;
  }

  #site-chatbot-panel {
    right: 0;
    bottom: 65px;

    width:
      calc(100vw - 24px);

    height:
      min(
        72vh,
        620px
      );
  }
}


/* UPDATED v0.1.6: explicit loading/ready state */
#site-chatbot-send:disabled {
  opacity: .45;
  cursor: not-allowed;
}

#site-chatbot-status {
  display: inline-block;
}


/* v0.2 protected-search state */
#site-chatbot-send:disabled {
  opacity: .5;
  cursor: not-allowed;
}

#site-chatbot-status {
  display: inline-block;
}


.site-chatbot-progress-message .site-chatbot-bubble {
  font-style: italic;
  opacity: 0.8;
}
