/**
 * SiteBot — widget styles
 * Self-contained, scoped under #sitebot-root so it can't leak into or
 * clash with the host page's styles (important once this embeds into
 * the WordPress site).
 */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

#sitebot-root {
  --tb-brand: #0032a0;
  --tb-brand-deep: #001f66;
  --tb-brand-light: #e1e8f7;
  --tb-amber: #a85a1a;
  --tb-amber-bg: #fbeadb;
  --tb-amber-deep: #7a3f10;
  --tb-ink: #23261c;
  --tb-ink-dim: #6b6d5e;
  --tb-surface: #fbfaf5;
  --tb-line: #d8d6c8;
  --tb-radius: 10px;

  all: initial;
  /* !important: the host WordPress theme has a sitewide
     "body *:not(...) { font-family: 'Fraunces', serif !important; }" rule
     that otherwise leaks into every element here despite "all: initial" --
     that only resets #sitebot-root itself, not descendants targeted
     directly by the theme's own !important rule. */
  font-family: Calibri, "Segoe UI", system-ui, sans-serif !important;
  color: var(--tb-ink);
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999999;
}

#sitebot-root *, #sitebot-root *::before, #sitebot-root *::after {
  box-sizing: border-box;
  font-family: inherit !important;
}

/* ---------- Launcher button ---------- */
.tb-launcher {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--tb-brand);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 18px 12px 12px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 31, 102, 0.35);
  font-size: 14.5px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tb-launcher:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 31, 102, 0.42); }
.tb-launcher:focus-visible { outline: 2px solid var(--tb-brand-deep); outline-offset: 3px; }

.tb-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--tb-brand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.tb-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Panel ---------- */
.tb-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: 372px;
  max-width: calc(100vw - 40px);
  height: 580px;
  max-height: calc(100vh - 110px);
  background: var(--tb-surface);
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  box-shadow: 0 16px 48px rgba(35, 38, 28, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
#sitebot-root.tb-open .tb-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .tb-panel, .tb-launcher { transition: none; }
}

.tb-header {
  background: var(--tb-brand);
  color: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tb-header .tb-avatar { width: 30px; height: 30px; background: rgba(255,255,255,0.18); }
.tb-header-text { flex: 1; min-width: 0; }
.tb-header-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tb-header-sub {
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tb-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  opacity: 0.85;
}
.tb-close:hover { opacity: 1; background: rgba(255,255,255,0.14); }
.tb-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.tb-search-wrap { padding: 12px 14px 8px; border-bottom: 1px solid var(--tb-line); }
.tb-search-row { display: flex; gap: 6px; }
.tb-search {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--tb-line);
  border-radius: 7px;
  font-size: 13.5px;
  background: #fff;
  color: var(--tb-ink);
}
.tb-search::placeholder { color: var(--tb-brand); opacity: 0.72; }
.tb-search:focus-visible { outline: 2px solid var(--tb-brand); outline-offset: 1px; }
.tb-search-submit {
  flex-shrink: 0;
  width: 36px;
  border: 1px solid var(--tb-brand);
  border-radius: 7px;
  background: var(--tb-brand);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* .tb-search-submit is itself a flex container, so its <svg> child is a
   flex item too -- an inline SVG's width/height HTML attributes aren't
   reliably used as intrinsic size inside flex layout, and the flex
   algorithm can collapse it to 0 width even with width="18" set. Force
   the real size via CSS, which flexbox does respect, and pin it so it
   can never get squeezed by flex-shrink. */
.tb-search-submit svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.tb-search-submit:hover { background: var(--tb-brand-deep); border-color: var(--tb-brand-deep); }
.tb-search-submit:focus-visible { outline: 2px solid var(--tb-brand-deep); outline-offset: 2px; }
.tb-search-hint { font-size: 11.5px; color: var(--tb-ink-dim); margin-top: 5px; }

.tb-body { flex: 1; overflow-y: auto; padding: 6px 0; }

.tb-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px 4px;
  font-size: 12px;
  color: var(--tb-ink-dim);
}
.tb-back {
  background: none;
  border: none;
  color: var(--tb-brand-deep);
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 12.5px;
}
.tb-back:hover { text-decoration: underline; }

.tb-category-list, .tb-question-list { list-style: none; margin: 0; padding: 6px 8px; }
.tb-category-item, .tb-question-item { margin-bottom: 4px; }

.tb-cat-btn, .tb-q-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 11px 12px;
  font-size: 14.5px;
  cursor: pointer;
  color: var(--tb-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  /* Browsers default <button> to white-space: pre -- without this, a long
     FAQ question title never wraps and overflows the panel instead. */
  white-space: normal;
  overflow-wrap: break-word;
}
/* !important + the #sitebot-root prefix: the host WordPress theme has a
   sitewide "body *:not(...) { font-family: 'Fraunces', serif !important; }"
   rule that was leaking into this "self-contained" widget and winning over
   both the widget's own reset and a plain (non-important) override here. */
#sitebot-root .tb-cat-btn, #sitebot-root .tb-q-btn {
  font-family: "Poppins", Calibri, "Segoe UI", system-ui, sans-serif !important;
  font-weight: 500 !important;
}
.tb-cat-btn:hover, .tb-q-btn:hover { background: var(--tb-brand-light); }
.tb-cat-btn:focus-visible, .tb-q-btn:focus-visible { outline: 2px solid var(--tb-brand); outline-offset: -1px; }
.tb-cat-btn .tb-chev, .tb-q-btn .tb-chev { color: var(--tb-ink-dim); flex-shrink: 0; }

.tb-answer {
  margin: 4px 14px 14px;
  padding: 12px 14px;
  background: var(--tb-brand-light);
  border-radius: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--tb-ink);
}
.tb-answer-q { font-weight: 700; margin-bottom: 6px; font-size: 14.5px; }

.tb-empty { padding: 24px 18px; text-align: center; color: var(--tb-ink-dim); font-size: 13.5px; }

.tb-cta {
  margin: 4px 14px 14px;
  padding: 10px 12px;
  background: var(--tb-amber);
  color: #fff;
  border-radius: 8px;
  font-size: 12.5px;
  text-align: center;
  cursor: pointer;
  border: none;
  white-space: normal;
  overflow-wrap: break-word;
  width: calc(100% - 28px);
  font-weight: 600;
}
.tb-cta:hover { filter: brightness(1.05); }
.tb-cta:focus-visible { outline: 2px solid var(--tb-brand-deep); outline-offset: 2px; }

.tb-footer {
  border-top: 1px solid var(--tb-line);
  padding: 9px 14px;
  font-size: 11px;
  color: var(--tb-ink-dim);
  line-height: 1.45;
  background: var(--tb-surface);
}

.tb-persistent-cta {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--tb-line);
}
.tb-consult-note {
  margin-top: 8px;
  padding: 9px 12px;
  background: var(--tb-brand-light);
  border-radius: 7px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--tb-ink);
}

/* ---------- Consultation booking embed (consultationMode: "embed") ---------- */
.tb-consult-overlay {
  position: absolute;
  inset: 0;
  background: var(--tb-surface);
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.tb-consult-bar {
  flex-shrink: 0;
  padding: 8px 10px;
  border-bottom: 1px solid var(--tb-line);
}
.tb-consult-back {
  background: none;
  border: none;
  color: var(--tb-brand-deep);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
}
.tb-consult-back:hover { text-decoration: underline; }
.tb-consult-back:focus-visible { outline: 2px solid var(--tb-brand); outline-offset: 2px; }
.tb-consult-frame {
  flex: 1;
  width: 100%;
  border: none;
}

/* ---------- Proactive greeting card ---------- */
/* Character image bleeds above the top-left corner of the card, close
   button sits top-right — same composition family as those illustrated
   chat-launcher popups (e.g. CJdropshipping's "Alex"), sized to fit a
   bottom-right-anchored widget instead of a centered modal. */
.tb-teaser {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: 254px;
  background: var(--tb-surface);
  border: 1px solid var(--tb-line);
  border-radius: 14px;
  padding: 14px 16px 16px;
  padding-top: 68px;
  box-shadow: 0 14px 36px rgba(0, 31, 102, 0.22);
  cursor: pointer;
  animation: tb-pop-in 0.22s ease;
}
@keyframes tb-pop-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .tb-teaser { animation: none; }
}
.tb-teaser-character {
  position: absolute;
  top: -76px;
  left: 4px;
  width: 104px;
  height: auto;
  filter: drop-shadow(0 10px 14px rgba(0, 31, 102, 0.28));
  pointer-events: none;
}
.tb-teaser-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--tb-ink);
}
.tb-teaser-dismiss {
  position: absolute;
  top: -12px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--tb-ink);
  color: #fff;
  border: 2px solid var(--tb-surface);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.tb-teaser-dismiss:hover { background: var(--tb-brand-deep); }
.tb-teaser-dismiss:focus-visible { outline: 2px solid var(--tb-brand); outline-offset: 2px; }

.tb-greet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 30, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 20px;
  animation: tb-fade-in 0.18s ease;
}
@keyframes tb-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.tb-greet-modal {
  position: relative;
  background: var(--tb-surface);
  border-radius: 18px;
  max-width: 380px;
  width: 100%;
  padding: 28px 26px 22px;
  box-shadow: 0 24px 60px rgba(0, 10, 40, 0.35);
  text-align: center;
  animation: tb-pop-in 0.22s ease;
}
.tb-greet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--tb-ink-dim);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tb-greet-close:hover { background: var(--tb-line); color: var(--tb-ink); }
.tb-greet-character {
  width: 120px;
  height: auto;
  margin: 0 auto 10px;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 10, 40, 0.25));
}
.tb-greet-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--tb-ink);
  margin-bottom: 8px;
}
.tb-greet-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--tb-ink-dim);
  margin-bottom: 20px;
}
.tb-greet-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.tb-greet-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--tb-line);
  background: #fff;
  color: var(--tb-ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.tb-greet-btn:hover { background: var(--tb-line); }
.tb-greet-btn-primary {
  background: var(--tb-brand);
  border-color: var(--tb-brand);
  color: #fff;
}
.tb-greet-btn-primary:hover { background: var(--tb-brand-deep); border-color: var(--tb-brand-deep); }
.tb-greet-btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--tb-ink-dim);
}
.tb-greet-btn-ghost:hover { background: var(--tb-line); color: var(--tb-ink); }
@media (prefers-reduced-motion: reduce) {
  .tb-greet-overlay, .tb-greet-modal { animation: none; }
}

/* ---------- Chat-style greeting bubble ---------- */
.tb-bubble {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 14px 14px;
}
.tb-bubble .tb-avatar { width: 26px; height: 26px; flex-shrink: 0; font-size: 11px; }
.tb-bubble-text {
  background: var(--tb-brand-light);
  border-radius: 10px 10px 10px 3px;
  padding: 10px 13px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--tb-ink);
}

/* ---------- Name capture form ---------- */
.tb-name-form {
  display: flex;
  gap: 8px;
  margin: 0 14px 10px;
}
.tb-name-input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--tb-line);
  border-radius: 7px;
  font-size: 13.5px;
  background: #fff;
  color: var(--tb-ink);
}
.tb-name-input:focus-visible { outline: 2px solid var(--tb-brand); outline-offset: 1px; }
.tb-name-submit {
  background: var(--tb-brand);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.tb-name-submit:hover { filter: brightness(1.06); }
.tb-name-submit:focus-visible { outline: 2px solid var(--tb-brand-deep); outline-offset: 2px; }

.tb-skip {
  display: block;
  margin: 0 14px;
  background: none;
  border: none;
  color: var(--tb-ink-dim);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 0;
}
.tb-skip:hover { color: var(--tb-ink); }

/* ---------- Lead capture form ---------- */
.tb-lead-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 14px 12px;
}
.tb-lead-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tb-lead-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--tb-ink-dim);
  letter-spacing: 0.01em;
}
.tb-req { color: #d33b30; font-weight: 700; }
.tb-lead-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--tb-line);
  border-radius: 7px;
  font-size: 13.5px;
  background: #fff;
  color: var(--tb-ink);
}
.tb-lead-input:required:invalid { border-color: #e6b8b4; }
.tb-lead-input:focus-visible { outline: 2px solid var(--tb-brand); outline-offset: 1px; }
.tb-lead-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--tb-ink-dim);
  margin-top: 2px;
}
.tb-lead-consent-box { margin-top: 2px; flex-shrink: 0; }
.tb-lead-consent a { color: var(--tb-brand-deep); }
.tb-lead-submit {
  background: var(--tb-brand);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 2px;
}
.tb-lead-submit:hover { filter: brightness(1.06); }
.tb-lead-submit:disabled { opacity: 0.6; cursor: default; }
.tb-lead-submit:focus-visible { outline: 2px solid var(--tb-brand-deep); outline-offset: 2px; }
.tb-lead-error {
  font-size: 12px;
  color: var(--tb-amber-deep);
  background: var(--tb-amber-bg);
  border-radius: 6px;
  padding: 7px 10px;
}
.tb-verify-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}
.tb-linkish {
  background: none;
  border: none;
  padding: 4px 2px;
  font-size: 12.5px;
  color: var(--tb-brand-deep);
  cursor: pointer;
  text-decoration: underline;
}
.tb-linkish:hover { opacity: 0.8; }
.tb-linkish:disabled { opacity: 0.5; cursor: default; text-decoration: none; }
.tb-linkish:focus-visible { outline: 2px solid var(--tb-brand); outline-offset: 2px; border-radius: 4px; }
#sitebot-root #tb-otp {
  letter-spacing: 6px;
  font-size: 18px;
  text-align: center;
  font-weight: 700;
}
.tb-lead-note {
  margin: 0 14px 8px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--tb-ink-dim);
}

/* Disclaimer line under every AI answer */
.tb-ai-disclaimer {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(0, 50, 160, 0.14);
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--tb-ink-dim);
}

/* Free-question cap message — a touch more prominent than a normal answer */
.tb-ai-answer.tb-limit {
  border: 1px solid var(--tb-amber);
  background: var(--tb-amber-bg);
}
.tb-ai-answer.tb-limit .tb-ai-answer-label { color: var(--tb-amber-deep); }

/* ---------- PII warning ---------- */
.tb-pii-warning {
  margin: 8px 14px 10px;
  padding: 9px 12px;
  background: var(--tb-amber-bg);
  border: 1px solid var(--tb-amber);
  border-radius: 7px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--tb-amber-deep);
}
.tb-pii-warning-block { margin: 10px 14px; }

/* ---------- Ask AI fallback (Phase 01) ---------- */
.tb-ask-ai-wrap { margin: 4px 14px 14px; }
.tb-ask-ai-btn {
  width: 100%;
  text-align: left;
  background: var(--tb-brand-light);
  border: 1px solid var(--tb-brand);
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 13.5px;
  color: var(--tb-brand-deep);
  cursor: pointer;
  font-weight: 600;
  /* Browsers default <button> to white-space: pre, not normal -- without
     this override a long query never wraps, overflows the button's width,
     and escapes the panel as a page-level horizontal scrollbar. */
  white-space: normal;
  overflow-wrap: break-word;
}
.tb-ask-ai-btn:hover { background: #d3ddf4; }
.tb-ask-ai-btn:focus-visible { outline: 2px solid var(--tb-brand); outline-offset: 1px; }
.tb-ask-ai-query { font-weight: 400; font-style: italic; }

.tb-ai-loading {
  padding: 12px 13px;
  font-size: 13px;
  color: var(--tb-ink-dim);
  font-style: italic;
}

.tb-ai-answer {
  background: var(--tb-brand-light);
  border-radius: 8px;
  padding: 12px 13px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--tb-ink);
}
.tb-ai-answer-label {
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tb-brand-deep);
  margin-bottom: 5px;
}
/* AI answer body — output of renderMarkdown() in the widget JS. Keep the
   whitelist here in sync with the tags that function can emit. */
.tb-ai-answer-body p { margin: 0 0 8px; }
.tb-ai-answer-body p:last-child { margin-bottom: 0; }
.tb-ai-answer-body ul,
.tb-ai-answer-body ol { margin: 4px 0 8px; padding-left: 20px; }
.tb-ai-answer-body ul:last-child,
.tb-ai-answer-body ol:last-child { margin-bottom: 0; }
.tb-ai-answer-body li { margin-bottom: 3px; }
.tb-ai-answer-body li:last-child { margin-bottom: 0; }
.tb-ai-answer-body strong { font-weight: 700; }
.tb-ai-answer-body em { font-style: italic; }
.tb-ai-answer-body code {
  background: rgba(0, 31, 102, 0.08);
  padding: 1px 4px;
  border-radius: 3px;
  font-family: "Cascadia Code", Consolas, ui-monospace, monospace;
  font-size: 0.92em;
}
.tb-ai-answer-body a { color: var(--tb-brand-deep); }

.tb-ai-sources {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 50, 160, 0.15);
  font-size: 11.5px;
  color: var(--tb-ink-dim);
}
.tb-ai-sources a { color: var(--tb-brand-deep); }

/* ---------- Expand / maximize ---------- */
.tb-expand {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 5px 6px;
  border-radius: 6px;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tb-expand:hover { opacity: 1; background: rgba(255, 255, 255, 0.14); }
.tb-expand:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Same flex-child-SVG sizing issue as .tb-search-submit above. */
.tb-expand svg { width: 15px; height: 15px; flex-shrink: 0; }

#sitebot-root.tb-max .tb-panel {
  width: min(760px, calc(100vw - 40px));
  height: min(80vh, calc(100vh - 96px));
}

/* ---------- Bot face in the header — on every view, never vanishes ---------- */
.tb-header-mascot {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}
.tb-header-mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#sitebot-root.tb-max .tb-header-mascot { width: 54px; height: 54px; }

/* ---------- Full-figure mascot in the top-left corner of the panel ---------- */
.tb-corner-mascot {
  position: absolute;
  left: 4px;
  top: 14px;                 /* stands in the header's left slot, feet near its base */
  width: 52px;
  z-index: 6;
  pointer-events: none;
}
.tb-corner-mascot img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(35, 38, 28, 0.22));
}
#sitebot-root.tb-max .tb-corner-mascot { width: 92px; top: 30px; }

/* the corner mascot is the bot's face on these views — so drop the header
   avatar and the little bubble avatar, and slide the greeting bubble clear
   of the figure. Other views keep the header avatar. */
/* keep the header slot as empty space the corner figure stands in, so
   the header text stays clear of it */
.tb-panel.tb-has-corner .tb-header-mascot { visibility: hidden; width: 42px; background: none; }
#sitebot-root.tb-max .tb-panel.tb-has-corner .tb-header-mascot { width: 80px; }
.tb-panel.tb-has-corner .tb-bubble .tb-avatar { display: none; }
.tb-panel.tb-has-corner .tb-bubble,
.tb-panel.tb-has-corner .tb-lead-note { margin-left: 66px; }
#sitebot-root.tb-max .tb-panel.tb-has-corner .tb-bubble,
#sitebot-root.tb-max .tb-panel.tb-has-corner .tb-lead-note { margin-left: 150px; }

/* ---------- Bigger, easier-to-read type when maximized ---------- */
#sitebot-root.tb-max .tb-search { font-size: 15px; }
#sitebot-root.tb-max .tb-search-hint { font-size: 12.5px; }
#sitebot-root.tb-max .tb-category-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
#sitebot-root.tb-max .tb-category-item { margin-bottom: 0; }
#sitebot-root.tb-max .tb-cat-btn,
#sitebot-root.tb-max .tb-q-btn { font-size: 14.5px; padding: 11px 12px; }
#sitebot-root.tb-max .tb-bubble-text { font-size: 15px; }
#sitebot-root.tb-max .tb-answer,
#sitebot-root.tb-max .tb-answer-q { font-size: 15.5px; line-height: 1.65; }
#sitebot-root.tb-max .tb-header-title { font-size: 16.5px; }
#sitebot-root.tb-max .tb-footer { font-size: 12px; }
#sitebot-root.tb-max .tb-consult-note { font-size: 14px; }
