.awcb-floating-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: auto !important;
  transform: none !important;
  z-index: 99999;
  font-family: "Segoe UI", sans-serif;
  width: auto;
  max-width: min(92vw, 420px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.awcb-launcher-bubble {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: fit-content;
  min-width: 0;
  max-width: min(360px, calc(100vw - 48px));
  background: #fcfdff;
  color: #1f2937;
  border: 1px solid #d6dfeb;
  border-radius: 14px;
  padding: 8px 12px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-align: left;
  pointer-events: none;
  z-index: 2;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.awcb-launcher-bubble::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 100%;
  width: 10px;
  height: 10px;
  background: #fcfdff;
  border-right: 1px solid #d6dfeb;
  border-bottom: 1px solid #d6dfeb;
  transform: translateY(-5px) rotate(45deg);
}
.awcb-launcher-bubble.is-muted {
  background: rgba(252, 253, 255, 0.56);
  border-color: rgba(214, 223, 235, 0.58);
  color: rgba(31, 41, 55, 0.72);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.awcb-launcher-bubble.is-muted::after {
  background: rgba(252, 253, 255, 0.56);
  border-right-color: rgba(214, 223, 235, 0.58);
  border-bottom-color: rgba(214, 223, 235, 0.58);
}
.awcb-launcher {
  background: var(--awcb-primary, #0d6efd);
  color: #fff;
  border: 0;
  border-radius: 999px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin: 0;
  align-self: flex-end;
}
.awcb-launcher-hidden { display: none !important; }
.awcb-launcher-close { margin-left: 8px; font-weight: 700; }
.awcb-launcher-mode-image {
  padding: 0;
  background: transparent;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  overflow: visible;
}
.awcb-launcher-shape-circle { border-radius: 999px; }
.awcb-launcher-shape-rounded { border-radius: 16px; }
.awcb-launcher-size-sm { width: 52px; height: 52px; }
.awcb-launcher-size-md { width: 64px; height: 64px; }
.awcb-launcher-size-lg { width: 78px; height: 78px; }
.awcb-launcher-media {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}
.awcb-launcher-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
.awcb-launcher-mode-image .awcb-launcher-close {
  margin-left: 0;
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(42%, -42%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.92);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.28);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  z-index: 3;
}
.awcb-panel {
  width: min(360px, 92vw);
  height: 460px;
  background: var(--awcb-chat-bg, #ffffff);
  border: 1px solid #d9e1ec;
  border-radius: 12px;
  margin-top: 10px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}
.awcb-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #e6ecf3;
  background: var(--awcb-chat-header-bg, #f8fafc);
  color: var(--awcb-chat-header-fg, #111827);
}
.awcb-panel-header strong {
  min-width: 0;
  max-width: calc(100% - 30px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.awcb-panel-open .awcb-panel {
  margin-top: 0;
}
.awcb-panel-open .awcb-launcher-bubble {
  opacity: 0;
  pointer-events: none;
}
.awcb-panel-close { border: 0; background: transparent; font-size: 18px; cursor: pointer; }
.awcb-messages {
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--awcb-chat-bg, #ffffff);
}
.awcb-message {
  max-width: 90%;
  padding: 8px 10px;
  border-radius: 10px;
  line-height: 1.45;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.awcb-message-user {
  align-self: flex-end;
  background: var(--awcb-user-bubble-bg, #e8f2ff);
  color: var(--awcb-user-bubble-fg, #0f172a);
}
.awcb-message-assistant {
  align-self: flex-start;
  background: var(--awcb-ai-bubble-bg, #f4f5f7);
  color: var(--awcb-ai-bubble-fg, #1f2937);
  text-align: left;
}
.awcb-loading-bubble {
  min-width: 54px;
  color: #6b7280;
}
.awcb-typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 12px;
}
.awcb-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #98a2b3;
  opacity: 0.35;
  animation: awcb-typing-dot 1.2s ease-in-out infinite;
}
.awcb-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.awcb-typing-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes awcb-typing-dot {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  40% {
    transform: translateY(-2px);
    opacity: 0.85;
  }
}
.awcb-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #e6ecf3;
  background: var(--awcb-chat-bg, #ffffff);
}
.awcb-input {
  border: 1px solid #ccd6e2;
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--awcb-input-bg, #ffffff);
  color: var(--awcb-input-fg, #111827);
}
.awcb-input::placeholder {
  color: var(--awcb-input-placeholder, #94a3b8);
  opacity: 1;
}
.awcb-input::-webkit-input-placeholder {
  color: var(--awcb-input-placeholder, #94a3b8);
}
.awcb-input::-moz-placeholder {
  color: var(--awcb-input-placeholder, #94a3b8);
  opacity: 1;
}
.awcb-input:-ms-input-placeholder {
  color: var(--awcb-input-placeholder, #94a3b8);
}
.awcb-input::-ms-input-placeholder {
  color: var(--awcb-input-placeholder, #94a3b8);
}
.awcb-send {
  border: 0;
  border-radius: 8px;
  background: var(--awcb-send-bg, var(--awcb-primary, #0d6efd));
  color: var(--awcb-send-fg, #ffffff);
  padding: 8px 12px;
  cursor: pointer;
}
.awcb-send:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.awcb-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}
.awcb-cta-button {
  display: inline-block;
  text-decoration: none;
  border: 1px solid #bfd4ff;
  background: #eff5ff;
  color: #16438f;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
}
.awcb-related-links {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}
.awcb-default-questions {
  display: grid;
  gap: 8px;
  padding: 0 10px 8px;
  margin-bottom: 2px;
  background: var(--awcb-chat-bg, #ffffff);
}
.awcb-default-questions-intro {
  align-self: flex-start;
  display: inline-block;
  max-width: 90%;
  text-align: left;
  font-size: 13px;
  color: #334155;
  line-height: 1.4;
  background: #f4f5f7;
  border: 1px solid #e3e9f2;
  border-radius: 10px;
  padding: 8px 10px;
  margin-right: auto;
}
.awcb-default-question-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.awcb-default-question-chip {
  border: 1px solid #d5deea;
  background: #ffffff;
  color: #213754;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
  text-align: left;
}
.awcb-default-question-chip:hover {
  background: #f7fbff;
  border-color: #c4d4ea;
}
.awcb-related-link-title {
  display: block;
  text-decoration: none;
  border: 1px solid #d7e1ee;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px;
  color: #1f3d66;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.awcb-related-link-title:hover {
  background: #f8fbff;
  border-color: #c7d6ea;
}
.awcb-link-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  border: 1px solid #d7e1ee;
  background: #ffffff;
  border-radius: 10px;
  padding: 8px;
}
.awcb-link-card:hover {
  background: #f8fbff;
  border-color: #c7d6ea;
}
.awcb-link-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f7;
}
.awcb-link-body {
  min-width: 0;
}
.awcb-link-title {
  color: #1f3d66;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.awcb-link-excerpt {
  margin-top: 4px;
  color: #617084;
  font-size: 12px;
  line-height: 1.35;
}
.awcb-embed {
  border: 1px solid #d8e0ea;
  border-radius: 12px;
  overflow: hidden;
  max-width: 100%;
  margin: 12px 0;
  font-family: "Segoe UI", sans-serif;
  background: var(--awcb-chat-bg, #ffffff);
  display: grid;
  grid-template-rows: auto 1fr;
}
.awcb-embed-header {
  padding: 10px 12px;
  font-weight: 600;
  border-bottom: 1px solid #e6ecf3;
  background: var(--awcb-chat-header-bg, #f8fafc);
  color: var(--awcb-chat-header-fg, #111827);
}
.awcb-embed-body {
  background: var(--awcb-chat-bg, #ffffff);
}
.awcb-embed .awcb-messages {
  background: var(--awcb-chat-bg, #ffffff);
}
.awcb-embed .awcb-input-row {
  background: var(--awcb-chat-bg, #ffffff);
}

/* Card: content card for article blocks / LP sections */
.awcb-template-card {
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}
.awcb-template-card .awcb-embed-header {
  padding: 14px 16px;
  background: var(--awcb-chat-header-bg, linear-gradient(90deg, #f2f7ff, #f8fbff));
}
.awcb-template-card .awcb-embed-body {
  padding: 10px;
}
.awcb-template-card .awcb-messages {
  min-height: 230px;
  border: 1px solid #e3e9f2;
  border-radius: 12px;
}
.awcb-template-card .awcb-input-row {
  margin-top: 10px;
  border: 1px solid #e3e9f2;
  border-radius: 12px;
}

/* Chat: standard conversation-first layout */
.awcb-template-chat {
  border-color: #cad5e5;
  border-radius: 14px;
}
.awcb-template-chat .awcb-embed-header {
  background: var(--awcb-chat-header-bg, #101828);
  color: var(--awcb-chat-header-fg, #ffffff);
}
.awcb-template-chat .awcb-messages {
  min-height: 280px;
}

/* Compact: slim and space-saving */
.awcb-template-compact {
  border-radius: 10px;
}
.awcb-template-compact .awcb-embed-header {
  padding: 8px 10px;
  font-size: 13px;
  background: var(--awcb-chat-header-bg, #f7fafc);
}
.awcb-template-compact .awcb-messages {
  min-height: 150px;
  max-height: 220px;
  padding: 8px;
  gap: 6px;
}
.awcb-template-compact .awcb-message {
  font-size: 13px;
  line-height: 1.35;
  padding: 6px 8px;
}
.awcb-template-compact .awcb-input-row {
  padding: 8px;
  gap: 6px;
}
.awcb-template-compact .awcb-send {
  padding: 7px 10px;
  font-size: 12px;
}

/* Panel: support/FAQ panel feel */
.awcb-template-panel {
  border-width: 1px 1px 1px 4px;
  border-color: #d4deec #d4deec #d4deec #8fb4ff;
  border-radius: 14px;
}
.awcb-template-panel .awcb-embed-header {
  background: var(--awcb-chat-header-bg, #f7faff);
}
.awcb-template-panel .awcb-embed-body {
  padding: 12px 12px 10px;
}
.awcb-template-panel .awcb-messages {
  min-height: 220px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: var(--awcb-chat-bg, #ffffff);
}
.awcb-template-panel .awcb-input-row {
  margin-top: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: var(--awcb-chat-bg, #ffffff);
}

/* Minimal: neutral and low-contrast */
.awcb-template-minimal {
  border-color: #ecf1f6;
  border-radius: 10px;
  box-shadow: none;
}
.awcb-template-minimal .awcb-embed-header {
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  background: var(--awcb-chat-header-bg, #ffffff);
  border-bottom: 1px solid #eef2f7;
}
.awcb-template-minimal .awcb-messages {
  min-height: 180px;
  padding: 10px;
  gap: 7px;
}
.awcb-template-minimal .awcb-message {
  border-radius: 8px;
  font-size: 13px;
}
.awcb-template-minimal .awcb-input-row {
  padding: 8px 10px;
  border-top: 1px solid #eef2f7;
}
.awcb-embed-error {
  border: 1px solid #f3c2c2;
  background: #fff5f5;
  color: #8d1e1e;
  border-radius: 8px;
  padding: 8px 10px;
}
@media (max-width: 768px) {
  .awcb-floating-root {
    right: 12px;
    bottom: 12px;
    left: auto !important;
    width: auto;
    max-width: calc(100vw - 24px);
    align-items: flex-end;
    text-align: right;
  }
  .awcb-launcher {
    margin: 0 !important;
    align-self: flex-end;
  }
  .awcb-launcher-mode-image .awcb-launcher-close {
    width: 20px;
    height: 20px;
    transform: translate(36%, -36%);
    font-size: 12px;
    border-width: 1.5px;
  }
  .awcb-panel { width: 95vw; height: 70vh; }
  .awcb-launcher-bubble {
    right: 0;
    min-width: 0;
    width: fit-content;
    max-width: 50vw;
    font-size: 10px;
    line-height: 1.35;
    padding: 6px 9px;
    border-radius: 12px;
  }
  .awcb-link-card {
    grid-template-columns: 1fr;
  }
  .awcb-link-thumb {
    width: 100%;
    height: 120px;
  }
}
