.laibniz_chatbot_bridge-widget {
  --laibniz_chatbot_bridge-primary: #1f7a5c;
  --laibniz_chatbot_bridge-accent: #2563eb;
  --laibniz_chatbot_bridge-bg: #fff;
  --laibniz_chatbot_bridge-bot-bg: #f3f4f6;
  --laibniz_chatbot_bridge-bot-color: #111827;
  --laibniz_chatbot_bridge-user-bg: #dbeafe;
  --laibniz_chatbot_bridge-user-color: #0f172a;
  --laibniz_chatbot_bridge-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --laibniz_chatbot_bridge-font-size: 14px;
  --laibniz_chatbot_bridge-text-color: #111827;
  color: var(--laibniz_chatbot_bridge-text-color);
  font-family: var(--laibniz_chatbot_bridge-font-family);
  font-size: var(--laibniz_chatbot_bridge-font-size);
}

.laibniz_chatbot_bridge-font-sans {
  --laibniz_chatbot_bridge-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.laibniz_chatbot_bridge-font-serif {
  --laibniz_chatbot_bridge-font-family: Georgia, "Times New Roman", serif;
}

.laibniz_chatbot_bridge-font-mono {
  --laibniz_chatbot_bridge-font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.laibniz_chatbot_bridge-floating {
  position: fixed;
  z-index: 99999;
  bottom: 24px;
}

.laibniz_chatbot_bridge-bottom-right {
  right: 24px;
}

.laibniz_chatbot_bridge-bottom-left {
  left: 24px;
}

.laibniz_chatbot_bridge-launcher {
  align-items: center;
  background: var(--laibniz_chatbot_bridge-primary);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
  color: #fff;
  cursor: pointer;
  display: flex;
  font-family: var(--laibniz_chatbot_bridge-font-family);
  font-size: calc(var(--laibniz_chatbot_bridge-font-size) + 1px);
  font-weight: 700;
  gap: 9px;
  padding: 14px 18px;
}

.laibniz_chatbot_bridge-launcher-dot {
  background: var(--laibniz_chatbot_bridge-accent);
  border: 2px solid #fff;
  border-radius: 50%;
  display: inline-block;
  height: 13px;
  width: 13px;
}

.laibniz_chatbot_bridge-window {
  background: var(--laibniz_chatbot_bridge-bg);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.25);
  display: none;
  flex-direction: column;
  height: min(620px, calc(100vh - 112px));
  overflow: hidden;
  width: min(390px, calc(100vw - 32px));
}

.laibniz_chatbot_bridge-inline .laibniz_chatbot_bridge-window,
.laibniz_chatbot_bridge-widget.is-open .laibniz_chatbot_bridge-window {
  display: flex;
}

.laibniz_chatbot_bridge-widget.is-open .laibniz_chatbot_bridge-launcher {
  display: none;
}

.laibniz_chatbot_bridge-inline .laibniz_chatbot_bridge-window {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  height: 560px;
  width: 100%;
}

.laibniz_chatbot_bridge-header {
  align-items: center;
  background: linear-gradient(135deg, var(--laibniz_chatbot_bridge-primary), var(--laibniz_chatbot_bridge-accent));
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 15px 16px;
}

.laibniz_chatbot_bridge-header-main {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.laibniz_chatbot_bridge-header strong,
.laibniz_chatbot_bridge-header span {
  display: block;
}

.laibniz_chatbot_bridge-header span {
  font-size: 12px;
  opacity: 0.82;
}

.laibniz_chatbot_bridge-close {
  background: rgba(255, 255, 255, 0.18);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  height: 30px;
  width: 30px;
}

.laibniz_chatbot_bridge-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 16px;
}

.laibniz_chatbot_bridge-message-row {
  align-items: flex-end;
  display: flex;
  gap: 8px;
  max-width: 100%;
}

.laibniz_chatbot_bridge-message-row-user {
  flex-direction: row-reverse;
}

.laibniz_chatbot_bridge-avatar,
.laibniz_chatbot_bridge-header-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  height: 30px;
  justify-content: center;
  overflow: hidden;
  width: 30px;
}

.laibniz_chatbot_bridge-header-icon {
  height: 34px;
  width: 34px;
}

.laibniz_chatbot_bridge-avatar img,
.laibniz_chatbot_bridge-header-icon img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.laibniz_chatbot_bridge-standard-icon::before {
  background: currentColor;
  content: "";
  display: block;
  height: 24px;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  width: 24px;
}

.laibniz_chatbot_bridge-header-icon.laibniz_chatbot_bridge-standard-icon::before {
  height: 26px;
  width: 26px;
}

.laibniz_chatbot_bridge-standard-icon-bot::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.3'%3E%3Cpath d='M12 8V4H8'/%3E%3Crect width='16' height='12' x='4' y='8' rx='2'/%3E%3Cpath d='M2 14h2M20 14h2M15 13v2M9 13v2'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.3'%3E%3Cpath d='M12 8V4H8'/%3E%3Crect width='16' height='12' x='4' y='8' rx='2'/%3E%3Cpath d='M2 14h2M20 14h2M15 13v2M9 13v2'/%3E%3C/g%3E%3C/svg%3E");
}

.laibniz_chatbot_bridge-standard-icon-user::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.3'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.3'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/g%3E%3C/svg%3E");
}

.laibniz_chatbot_bridge-standard-icon-chat::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.3'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H7l-4 4V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.3'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H7l-4 4V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3C/g%3E%3C/svg%3E");
}

.laibniz_chatbot_bridge-standard-icon-spark::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2.5 14.35 9.65 21.5 12 14.35 14.35 12 21.5 9.65 14.35 2.5 12 9.65 9.65zM18.4 3.6l.75 2.25 2.25.75-2.25.75-.75 2.25-.75-2.25-2.25-.75 2.25-.75z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2.5 14.35 9.65 21.5 12 14.35 14.35 12 21.5 9.65 14.35 2.5 12 9.65 9.65zM18.4 3.6l.75 2.25 2.25.75-2.25.75-.75 2.25-.75-2.25-2.25-.75 2.25-.75z'/%3E%3C/svg%3E");
  transform: translate(0.5px, 0.5px);
}

.laibniz_chatbot_bridge-standard-icon-book::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M6 3.5h12.5c.8 0 1.5.7 1.5 1.5v14.5H7.2c-.9 0-1.6.7-1.6 1.5s.7 1.5 1.6 1.5H20V24H7.2C5.4 24 4 22.7 4 21V6c0-1.4.8-2.2 2-2.5zM7.2 5.5c-.9 0-1.6.7-1.6 1.5v11.6c.5-.3 1-.5 1.6-.5H18V5.5zM8.2 8h7.6v2H8.2zm0 3.7h6.4v2H8.2z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M6 3.5h12.5c.8 0 1.5.7 1.5 1.5v14.5H7.2c-.9 0-1.6.7-1.6 1.5s.7 1.5 1.6 1.5H20V24H7.2C5.4 24 4 22.7 4 21V6c0-1.4.8-2.2 2-2.5zM7.2 5.5c-.9 0-1.6.7-1.6 1.5v11.6c.5-.3 1-.5 1.6-.5H18V5.5zM8.2 8h7.6v2H8.2zm0 3.7h6.4v2H8.2z'/%3E%3C/svg%3E");
  transform: translate(0.5px, -0.5px);
}

.laibniz_chatbot_bridge-message {
  border-radius: 10px;
  font-size: var(--laibniz_chatbot_bridge-font-size);
  line-height: 1.45;
  max-width: 86%;
  padding: 10px 12px;
  word-break: break-word;
}

.laibniz_chatbot_bridge-message-bot {
  align-self: flex-start;
  background: var(--laibniz_chatbot_bridge-bot-bg);
  color: var(--laibniz_chatbot_bridge-bot-color);
}

.laibniz_chatbot_bridge-message-user {
  align-self: flex-end;
  background: var(--laibniz_chatbot_bridge-user-bg);
  color: var(--laibniz_chatbot_bridge-user-color);
}

.laibniz_chatbot_bridge-message.is-loading {
  opacity: 0.72;
}

.laibniz_chatbot_bridge-form {
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  display: flex;
  gap: 8px;
  padding: 12px;
}

.laibniz_chatbot_bridge-form input {
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 8px;
  flex: 1;
  color: var(--laibniz_chatbot_bridge-text-color);
  font-family: var(--laibniz_chatbot_bridge-font-family);
  font-size: var(--laibniz_chatbot_bridge-font-size);
  min-width: 0;
  padding: 10px 11px;
}

.laibniz_chatbot_bridge-form button {
  background: var(--laibniz_chatbot_bridge-primary);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  font-family: var(--laibniz_chatbot_bridge-font-family);
  font-size: var(--laibniz_chatbot_bridge-font-size);
  padding: 10px 13px;
}

.laibniz_chatbot_bridge-form button:disabled,
.laibniz_chatbot_bridge-form input:disabled {
  opacity: 0.6;
}

.laibniz_chatbot_bridge-native-warning {
  background: #fff7ed;
  border-left: 4px solid #f97316;
  margin: 10px 0;
  padding: 10px;
}

@media (max-width: 480px) {
  .laibniz_chatbot_bridge-floating {
    bottom: 16px;
    left: 16px;
    right: 16px;
  }

  .laibniz_chatbot_bridge-window {
    width: 100%;
  }
}
