#bpc-chatbot-root,
.bpc-embedded-root {
  --bpc-primary: #2aa8dc;
  --bpc-accent: #8dd7d2;
  --bpc-header-start: #10254d;
  --bpc-header-end: #17325d;
  --bpc-surface: #ffffff;
  --bpc-text: #10243d;
  --bpc-bot: #eef0f4;
  --bpc-user: #2aa8dc;
  --bpc-teaser-bg: #f7f8fb;
  --bpc-teaser-text: #1e293b;
  --bpc-teaser-action: #0f5fd7;
  --bpc-teaser-close-bg: #0f3d67;
  --bpc-teaser-close-color: #ff9f1a;
  --bpc-window-border: #dce5f1;
  --bpc-input-bg: #ffffff;
  --bpc-input-text: #0f172a;
  --bpc-bot-text: #273549;
  --bpc-user-text: #0f3d67;
  --bpc-choice-solid-text: #ffffff;
  --bpc-teaser-font-size: 18px;
  --bpc-message-font-size: 15px;
  --bpc-radius: 28px;
  --bpc-muted: #7b8798;
  --bpc-app-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#bpc-chatbot-root.bpc-chatbot-root { position: fixed; z-index: 999999; }
.bpc-pos-bottom-right { right: 24px; bottom: 24px; }
.bpc-pos-bottom-left { left: 24px; bottom: 24px; }
#bpc-chatbot-root[data-shadow="none"] .bpc-window { box-shadow: none; }
#bpc-chatbot-root[data-shadow="soft"] .bpc-window,
.bpc-embedded-root[data-shadow="soft"] .bpc-window { box-shadow: 0 24px 60px rgba(16,36,61,.18); }
#bpc-chatbot-root[data-shadow="strong"] .bpc-window,
.bpc-embedded-root[data-shadow="strong"] .bpc-window { box-shadow: 0 32px 84px rgba(16,36,61,.24); }

#bpc-chatbot-root, #bpc-chatbot-root *,
.bpc-embedded-root, .bpc-embedded-root * {
  box-sizing: border-box;
}

.bpc-chat-trigger,
.bpc-open-chat-trigger,
.bpc-toggle-chat-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--bpc-primary) 72%, #0f172a 28%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--bpc-primary) 92%, #ffffff 8%) 0%, var(--bpc-primary) 100%);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--bpc-primary) 20%, transparent);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}

.bpc-chat-trigger:hover,
.bpc-chat-trigger:focus-visible,
.bpc-open-chat-trigger:hover,
.bpc-open-chat-trigger:focus-visible,
.bpc-toggle-chat-trigger:hover,
.bpc-toggle-chat-trigger:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px color-mix(in srgb, var(--bpc-primary) 24%, transparent);
  filter: brightness(1.02);
}

.bpc-chat-trigger:focus-visible,
.bpc-open-chat-trigger:focus-visible,
.bpc-toggle-chat-trigger:focus-visible {
  outline: 3px solid rgba(42,168,220,.28);
  outline-offset: 2px;
}

.bpc-chat-trigger__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  min-width: 1.1em;
  line-height: 1;
  font-size: 1.05em;
}

.bpc-chat-trigger__label {
  display: inline-block;
}

.bpc-chat-trigger.is-full-width {
  display: flex;
  width: 100%;
}

.bpc-chat-trigger--sm {
  min-height: 40px;
  padding: 10px 16px;
  font-size: 14px;
}

.bpc-chat-trigger--md {
  min-height: 46px;
  padding: 12px 20px;
  font-size: 15px;
}

.bpc-chat-trigger--lg {
  min-height: 54px;
  padding: 14px 24px;
  font-size: 16px;
}

.bpc-chat-trigger--outline {
  background: #ffffff;
  color: var(--bpc-primary);
  border-color: color-mix(in srgb, var(--bpc-primary) 28%, #cbd5e1 72%);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
}

.bpc-chat-trigger--soft {
  background: color-mix(in srgb, var(--bpc-primary) 12%, #ffffff 88%);
  color: color-mix(in srgb, var(--bpc-primary) 80%, #0f172a 20%);
  border-color: color-mix(in srgb, var(--bpc-primary) 18%, #dbeafe 82%);
  box-shadow: none;
}

.bpc-chat-trigger--ghost,
.bpc-chat-trigger--link,
.bpc-chat-trigger--button.bpc-chat-trigger--link,
.bpc-chat-trigger--link.bpc-chat-trigger--link {
  padding-left: 0;
  padding-right: 0;
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--bpc-primary);
  box-shadow: none;
}

.bpc-chat-trigger--ghost:hover,
.bpc-chat-trigger--ghost:focus-visible,
.bpc-chat-trigger--link:hover,
.bpc-chat-trigger--link:focus-visible,
.bpc-open-chat-trigger--link:hover,
.bpc-open-chat-trigger--link:focus-visible {
  box-shadow: none;
}

.bpc-chat-trigger--ghost {
  padding: 10px 0;
}

.bpc-chat-trigger--toggle .bpc-chat-trigger__icon {
  font-size: 1em;
}

.bpc-teaser {
  display: none;
  position: absolute;
  right: 0;
  bottom: 96px;
  width: 360px;
  max-width: calc(100vw - 32px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
#bpc-chatbot-root.bpc-teaser-visible .bpc-teaser,
.bpc-teaser.is-visible {
  display: block !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.bpc-pos-bottom-left .bpc-teaser { left: 0; right: auto; }
.bpc-teaser-card {
  position: relative;
  background: var(--bpc-teaser-bg);
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 28px;
  padding: 20px 20px 16px;
  padding-right: 20px;
  box-shadow: 0 20px 46px rgba(16,36,61,.12);
}
.bpc-teaser-card:after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: -14px;
  width: 24px;
  height: 24px;
  background: var(--bpc-teaser-bg);
  border-right: 1px solid rgba(15, 23, 42, .06);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  transform: rotate(45deg);
}
.bpc-teaser-copy {
  font-size: var(--bpc-teaser-font-size);
  line-height: 1.48;
  font-weight: 400;
  color: var(--bpc-teaser-text);
  letter-spacing: 0;
  padding-right: 4px;
  text-wrap: pretty;
}
.bpc-teaser-copy p,
.bpc-teaser-copy div,
.bpc-bubble--welcome-rich p,
.bpc-bubble--welcome-rich div { margin: 0 0 .75em; }
.bpc-teaser-copy p:last-child,
.bpc-teaser-copy div:last-child,
.bpc-bubble--welcome-rich p:last-child,
.bpc-bubble--welcome-rich div:last-child { margin-bottom: 0; }
.bpc-teaser-copy ul,
.bpc-teaser-copy ol,
.bpc-bubble--welcome-rich ul,
.bpc-bubble--welcome-rich ol { margin: .55em 0 .8em 1.25em; padding: 0; }
.bpc-teaser-copy li,
.bpc-bubble--welcome-rich li { margin: .2em 0; }
.bpc-teaser-copy strong,
.bpc-teaser-copy b,
.bpc-bubble--welcome-rich strong,
.bpc-bubble--welcome-rich b { font-weight: 700; }
.bpc-teaser-copy a,
.bpc-bubble--welcome-rich a { color: var(--bpc-teaser-action); text-decoration: underline; text-underline-offset: 2px; }
.bpc-teaser-actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 95, 215, .18);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bpc-teaser-link {
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 16px;
  border: 1px solid rgba(15, 95, 215, .25);
  background: #fff;
  text-align: center;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--bpc-teaser-action);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.bpc-teaser-link:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(15,95,215,.12); }
.bpc-teaser-link.is-primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--bpc-primary) 92%, #ffffff 8%) 0%, var(--bpc-primary) 100%);
  color: var(--bpc-choice-solid-text);
  border-color: color-mix(in srgb, var(--bpc-primary) 72%, #0f172a 28%);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--bpc-primary) 22%, transparent);
}
.bpc-teaser-close {
  position: absolute;
  top: -14px;
  right: -10px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: var(--bpc-teaser-close-bg);
  color: var(--bpc-teaser-close-color);
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(15,61,103,.18);
}

.bpc-teaser-close:hover, .bpc-teaser-close:focus-visible { transform: translateY(-1px); filter: brightness(1.02); }
.bpc-teaser-link:focus-visible, .bpc-header-icon:focus-visible, .bpc-launcher:focus-visible, .bpc-send:focus-visible { outline: 3px solid rgba(42,168,220,.28); outline-offset: 2px; }
#bpc-chatbot-root .bpc-choice,
#bpc-chatbot-root .bpc-send,
#bpc-chatbot-root .bpc-tool,
.bpc-embedded-root .bpc-choice,
.bpc-embedded-root .bpc-send,
.bpc-embedded-root .bpc-tool {
  font: inherit;
}
#bpc-chatbot-root button.bpc-choice,
#bpc-chatbot-root button.bpc-send,
#bpc-chatbot-root button.bpc-tool,
.bpc-embedded-root button.bpc-choice,
.bpc-embedded-root button.bpc-send,
.bpc-embedded-root button.bpc-tool {
  appearance: none !important;
  -webkit-appearance: none !important;
  font-family: inherit !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

.bpc-launcher {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: visible;
  padding: 0;
}
.bpc-launcher-icon {
  width: 28px;
  height: 20px;
  border-radius: 6px;
  background: #1b4a72;
  position: relative;
  display: inline-block;
}
.bpc-launcher-icon:after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: #1b4a72;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.bpc-launcher-image { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; object-position: center 22%; }
.bpc-launcher-glyph, .bpc-launcher-emoji { font-size: 34px; line-height: 1; }
.bpc-badge {
  position: absolute;
  right: -4px;
  top: -6px;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ef234d;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid #fff;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 8px 16px rgba(239,35,77,.24);
}
#bpc-chatbot-root.bpc-is-open .bpc-launcher {
  opacity: 0;
  pointer-events: none;
  transform: scale(.92);
}

.bpc-window {
  position: absolute;
  right: 0;
  bottom: 92px;
  width: 392px;
  max-width: calc(100vw - 28px);
  height: min(740px, calc(var(--bpc-app-height, 100vh) - 110px));
  background: var(--bpc-surface);
  border: 1px solid var(--bpc-window-border);
  border-radius: calc(var(--bpc-radius) + 2px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bpc-pos-bottom-left .bpc-window { left: 0; right: auto; }
.bpc-window.is-hidden { display: none; }
.bpc-window.is-embedded { position: relative; right: auto; bottom: auto; width: 100%; max-width: 100%; height: 760px; }

.bpc-header {
  padding: 16px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--bpc-header-start) 0%, var(--bpc-header-end) 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.bpc-header-left, .bpc-header-right { display: flex; align-items: center; gap: 12px; }
.bpc-head-avatar, .bpc-avatar {
  width: 36px;
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
}
.bpc-head-avatar img, .bpc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bpc-avatar-image { width: 100%; height: 100%; object-fit: cover; }
.bpc-avatar-letter { font-size: 13px; font-weight: 700; color: #17325d; }
.bpc-brand-name { font-size: 16px; font-weight: 800; }
.bpc-brand-sub { font-size: 12px; color: rgba(255,255,255,.72); }
.bpc-header-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bpc-header-icon.is-minimize { font-size: 20px; padding-bottom: 7px; }
.bpc-header-icon.is-close { font-size: 24px; }

.bpc-messages {
  flex: 1;
  overflow: auto;
  padding: 18px 16px 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
/* Conversation restoration: immediate, readable feedback on slow REST replies. */
.bpc-conversation-loading,
.bpc-conversation-recovery {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 100%;
  margin-top: 4px;
  padding: 16px;
  border: 1px solid #dce8f4;
  border-radius: 16px;
  background: #f6faff;
  color: #203955;
  overflow-wrap: anywhere;
}
.bpc-conversation-loading-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e1edff;
  color: #3478d2;
  font-size: 13px;
}
.bpc-conversation-loading-copy { display: grid; min-width: 0; gap: 5px; font-size: 13px; line-height: 1.5; }
.bpc-conversation-loading-copy strong { font-size: 14px; font-weight: 700; }
.bpc-conversation-loading-copy > span { color: #61738c; }
.bpc-conversation-loading-bars { display: grid; gap: 7px; margin-top: 9px; }
.bpc-conversation-loading-bars i { display: block; width: 190px; max-width: 100%; height: 7px; border-radius: 10px; background: #dce7f5; animation: bpc-resume-pulse 1.6s ease-in-out infinite alternate; }
.bpc-conversation-loading-bars i:last-child { width: 115px; animation-delay: .3s; }
@keyframes bpc-resume-pulse { from { opacity: .55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bpc-conversation-loading-bars i { animation: none; } }
#bpc-chatbot-root .bpc-window.is-restoring button.bpc-tool--agent,
.bpc-embedded-root .bpc-window.is-restoring button.bpc-tool--agent { display: none !important; }
.bpc-conversation-recovery { display: grid; gap: 10px; }
.bpc-conversation-recovery strong { font-size: 14px; }
.bpc-conversation-recovery p { margin: 0; font-size: 13px; line-height: 1.5; color: #53657b; }
.bpc-conversation-retry { width: max-content; max-width: 100%; padding: 9px 15px; border: 1px solid #b2ccef; border-radius: 10px; background: #fff; color: #2052a2; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.bpc-conversation-retry:focus-visible { outline: 3px solid #97bcfc; outline-offset: 2px; }
.bpc-row { display: flex; gap: 10px; margin-bottom: 16px; align-items: flex-end; }
.bpc-row.user { justify-content: flex-end; }
.bpc-stack { max-width: 77%; }
.bpc-bubble {
  border-radius: 18px 18px 18px 8px;
  padding: 14px 16px;
  font-size: var(--bpc-message-font-size);
  line-height: 1.48;
  font-weight: 600;
  color: var(--bpc-bot-text);
  background: var(--bpc-bot);
  border: 1px solid rgba(15,23,42,.05);
  box-shadow: 0 1px 0 rgba(255,255,255,.75) inset;
}
.bpc-row.user .bpc-bubble {
  background: var(--bpc-user);
  color: var(--bpc-user-text);
  border: 0;
  border-radius: 18px 18px 8px 18px;
  font-weight: 700;
}
.bpc-row.user .bpc-stack { max-width: 70%; }
.bpc-row.user .bpc-avatar { display: none; }
/* A live agent uses their own photo/initials, distinct from the brand bot. */
.bpc-row.agent .bpc-avatar { position: relative; background: #e3ebfc; color: #17325d; border: 1px solid rgba(36,85,153,.09); flex-shrink: 0; }
.bpc-row.agent .bpc-avatar img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 120ms ease; }
.bpc-row.agent .bpc-avatar img.is-loaded { opacity: 1; }
.bpc-row.agent .bpc-avatar-letter[hidden] { display: none !important; }
.bpc-row.agent .bpc-bubble { background: #eff6ff; color: #1e3a8a; }
.bpc-typing { display:flex; gap:6px; align-items:center; padding: 4px 12px 14px 46px; }
.bpc-typing span { width: 8px; height: 8px; background: #c7cfda; border-radius: 50%; animation: bpc-blink 1.2s infinite; }
.bpc-typing span:nth-child(2){animation-delay:.15s}.bpc-typing span:nth-child(3){animation-delay:.3s}
@keyframes bpc-blink { 0%,80%,100%{opacity:.35;transform:translateY(0)} 40%{opacity:1;transform:translateY(-2px)} }

.bpc-prompt-shell {
  padding: 14px 16px 10px;
  border-top: 1px solid #e6eaf0;
  background: #fff;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.bpc-prompt-body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.bpc-prompt-body.is-busy {
  opacity: .72;
  pointer-events: none;
}
.bpc-prompt-body.is-busy .bpc-send {
  cursor: wait;
}
.bpc-prompt-error { min-height: 18px; color: #dc2626; font-size: 12px; margin-bottom: 4px; }
/* Completed enquiries are informational, not validation failures. */
.bpc-prompt-notice { margin: 0 0 9px; padding: 9px 11px; border: 1px solid #d9e6ee; border-radius: 10px; background: #f4f8fb; color: #24445d; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.bpc-prompt-notice[hidden] { display: none !important; }
/* v2.14.20: show the unanswered form question above the live-chat composer.
   Never expand the transcript or obscure the send control on narrow phones. */
.bpc-active-form-question {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid #d5e5f3;
  border-left: 3px solid var(--bpc-primary, #2563eb);
  border-radius: 11px;
  background: #f6faff;
  color: #192d46;
  overflow-wrap: anywhere;
}
.bpc-active-form-question[hidden] { display: none !important; }
.bpc-active-form-question-caption {
  margin: 0 0 4px;
  color: #58728c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .015em;
}
.bpc-active-form-question-text {
  max-height: min(108px, 22vh);
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 650;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bpc-choice-grid { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; width: 100%; max-width: 100%; min-width: 0; }
.bpc-choice {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0 !important;
  min-height: 34px;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(15,95,215,.22);
  background: #fff;
  color: var(--bpc-primary);
  font-size: 12px;
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  box-shadow: none !important;
  cursor: pointer;
  flex: 0 1 auto !important;
}
.bpc-choice.is-solid { background: var(--bpc-primary); color: var(--bpc-choice-solid-text); border-color: transparent; }
.bpc-choice--option { max-width: min(100%, 168px); }
.bpc-choice--action { min-width: 112px; }
.bpc-choice--submit { min-width: 104px; }
#bpc-chatbot-root .bpc-choice-grid,
.bpc-embedded-root .bpc-choice-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 8px !important;
  justify-content: start;
}
#bpc-chatbot-root button.bpc-choice,
.bpc-embedded-root button.bpc-choice {
  min-height: 34px !important;
  padding: 7px 10px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  line-height: 1.22 !important;
  font-weight: 500 !important;
  width: auto !important;
  max-width: 168px !important;
}
#bpc-chatbot-root button.bpc-choice.bpc-choice--option,
.bpc-embedded-root button.bpc-choice.bpc-choice--option {
  width: auto !important;
  min-width: 0 !important;
  max-width: 168px !important;
}
#bpc-chatbot-root button.bpc-choice.bpc-choice--action,
#bpc-chatbot-root button.bpc-choice.bpc-choice--submit,
.bpc-embedded-root button.bpc-choice.bpc-choice--action,
.bpc-embedded-root button.bpc-choice.bpc-choice--submit {
  max-width: none !important;
}

/* Returning-visitor entry actions: primary enquiry, premium human handoff,
   and a quieter browsing option. */
#bpc-chatbot-root .bpc-choice-grid.bpc-choice-grid--entry,
.bpc-embedded-root .bpc-choice-grid.bpc-choice-grid--entry {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: 100% !important;
  align-items: stretch !important;
}
#bpc-chatbot-root .bpc-choice-grid--entry button.bpc-choice,
.bpc-embedded-root .bpc-choice-grid--entry button.bpc-choice {
  width: 100% !important;
  max-width: none !important;
  min-height: 42px !important;
  padding: 9px 12px !important;
  border-radius: 12px !important;
  font-weight: 650 !important;
}
#bpc-chatbot-root .bpc-choice-grid--entry button.bpc-choice.is-agent-choice,
.bpc-embedded-root .bpc-choice-grid--entry button.bpc-choice.is-agent-choice {
  position: relative;
  border-color: color-mix(in srgb, var(--bpc-primary) 32%, #dbe7f5 68%) !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bpc-primary) 4%, #ffffff 96%) 0%, color-mix(in srgb, var(--bpc-primary) 8%, #ffffff 92%) 100%) !important;
  color: color-mix(in srgb, var(--bpc-primary) 90%, #17233a 10%) !important;
  box-shadow: 0 5px 14px rgba(15, 61, 103, .07) !important;
}
#bpc-chatbot-root .bpc-choice-grid--entry button.bpc-choice.is-agent-choice::before,
.bpc-embedded-root .bpc-choice-grid--entry button.bpc-choice.is-agent-choice::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 7px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: #22a06b;
  box-shadow: 0 0 0 3px rgba(34, 160, 107, .12);
}
#bpc-chatbot-root .bpc-choice-grid--entry button.bpc-choice.is-browse-choice,
.bpc-embedded-root .bpc-choice-grid--entry button.bpc-choice.is-browse-choice {
  grid-column: 1 / -1;
  justify-self: start;
  width: auto !important;
  min-width: 148px !important;
  background: #ffffff !important;
  color: color-mix(in srgb, var(--bpc-primary) 82%, #475569 18%) !important;
  box-shadow: none !important;
}
#bpc-chatbot-root .bpc-choice-grid--entry button.bpc-choice:disabled,
.bpc-embedded-root .bpc-choice-grid--entry button.bpc-choice:disabled {
  opacity: .62 !important;
  cursor: wait !important;
}
.bpc-composer { display: flex; gap: 10px; align-items: center; width: 100%; max-width: 100%; min-width: 0; }
.bpc-input {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  max-width: none !important;
  height: 54px;
  border-radius: 16px;
  border: 1px solid var(--bpc-window-border);
  background: var(--bpc-input-bg);
  padding: 0 16px;
  font-size: 16px;
  color: var(--bpc-input-text);
  outline: none;
  touch-action: manipulation;
}
.bpc-input::placeholder { color: #94a3b8; }
.bpc-input:focus { border-color: var(--bpc-primary); box-shadow: 0 0 0 3px rgba(42,168,220,.12); }
.bpc-send {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 0;
  background: linear-gradient(180deg, var(--bpc-accent) 0%, var(--bpc-primary) 100%);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.bpc-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.bpc-tools.is-agent-hidden { justify-content: flex-end; }
.bpc-tool {
  border: 0;
  background: transparent;
  color: var(--bpc-primary);
  font-size: 13px;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}
/* Premium live-agent CTA. The scoped !important declarations intentionally
   neutralise aggressive theme-level button rules from Astra/Kadence/Elementor. */
#bpc-chatbot-root button.bpc-tool--agent,
.bpc-embedded-root button.bpc-tool--agent {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 36px !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  border: 1px solid color-mix(in srgb, var(--bpc-primary) 24%, #dbe7f5 76%) !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--bpc-primary) 5%, #ffffff 95%) 100%) !important;
  color: var(--bpc-primary) !important;
  box-shadow: 0 5px 14px rgba(15, 61, 103, .08) !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease !important;
}
#bpc-chatbot-root button.bpc-tool--agent::before,
.bpc-embedded-root button.bpc-tool--agent::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: #22a06b;
  box-shadow: 0 0 0 3px rgba(34, 160, 107, .12);
}
#bpc-chatbot-root button.bpc-tool--agent:hover,
.bpc-embedded-root button.bpc-tool--agent:hover {
  transform: translateY(-1px) !important;
  border-color: color-mix(in srgb, var(--bpc-primary) 42%, #dbe7f5 58%) !important;
  box-shadow: 0 8px 20px rgba(15, 61, 103, .12) !important;
}
#bpc-chatbot-root button.bpc-tool--agent:focus-visible,
.bpc-embedded-root button.bpc-tool--agent:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--bpc-primary) 20%, transparent) !important;
  outline-offset: 2px !important;
}
#bpc-chatbot-root button.bpc-tool--agent[hidden],
.bpc-embedded-root button.bpc-tool--agent[hidden] { display: none !important; }
#bpc-chatbot-root button.bpc-tool--agent:disabled,
.bpc-embedded-root button.bpc-tool--agent:disabled {
  opacity: .62 !important;
  cursor: wait !important;
  transform: none !important;
}
.bpc-powered, .bpc-privacy {
  font-size: 11px;
  color: #96a0ae;
}
.bpc-privacy { padding: 0 16px 14px; display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px; }
.bpc-visitor-reference{color:#6e8095;font-size:10px;font-weight:700;white-space:nowrap;letter-spacing:.02em}
.bpc-visitor-reference[hidden]{display:none!important}
.bpc-privacy a { color: var(--bpc-primary); text-decoration: none; }
.bpc-complete-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }

@media (max-width: 420px) {
  #bpc-chatbot-root .bpc-choice-grid.bpc-choice-grid--entry,
  .bpc-embedded-root .bpc-choice-grid.bpc-choice-grid--entry {
    grid-template-columns: 1fr !important;
  }
  #bpc-chatbot-root .bpc-choice-grid.bpc-choice-grid--entry.bpc-choice-grid--yes-no,
  .bpc-embedded-root .bpc-choice-grid.bpc-choice-grid--entry.bpc-choice-grid--yes-no {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #bpc-chatbot-root .bpc-choice-grid--entry button.bpc-choice.is-browse-choice,
  .bpc-embedded-root .bpc-choice-grid--entry button.bpc-choice.is-browse-choice {
    grid-column: auto;
    width: 100% !important;
  }
}

@media (max-width: 640px) {
  .bpc-pos-bottom-right, .bpc-pos-bottom-left { right: 12px; left: auto; bottom: 12px; }
  .bpc-teaser { width: min(360px, calc(100vw - 20px)); bottom: 88px; }
  .bpc-teaser-card { padding: 20px 18px 14px; border-radius: 22px; }
  .bpc-teaser-copy { font-size: var(--bpc-teaser-font-size); }
  .bpc-teaser-actions { gap: 8px; }
  .bpc-teaser-link { flex: 1 1 calc(50% - 4px); font-size: 15px; padding: 10px 14px; }
  .bpc-teaser-close { width: 36px; height: 36px; font-size: 22px; top: -10px; right: -6px; }

  .bpc-teaser-close:hover, .bpc-teaser-close:focus-visible { transform: translateY(-1px); filter: brightness(1.02); }
  .bpc-teaser-link:focus-visible, .bpc-header-icon:focus-visible, .bpc-launcher:focus-visible, .bpc-send:focus-visible { outline: 3px solid rgba(42,168,220,.28); outline-offset: 2px; }
#bpc-chatbot-root .bpc-choice,
#bpc-chatbot-root .bpc-send,
#bpc-chatbot-root .bpc-tool,
.bpc-embedded-root .bpc-choice,
.bpc-embedded-root .bpc-send,
.bpc-embedded-root .bpc-tool {
  font: inherit;
}
#bpc-chatbot-root button.bpc-choice,
#bpc-chatbot-root button.bpc-send,
#bpc-chatbot-root button.bpc-tool,
.bpc-embedded-root button.bpc-choice,
.bpc-embedded-root button.bpc-send,
.bpc-embedded-root button.bpc-tool {
  appearance: none !important;
  -webkit-appearance: none !important;
  font-family: inherit !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

  .bpc-choice { min-height: 34px; padding: 7px 10px; font-size: 12px; }
  .bpc-choice--option { max-width: 100%; }
  .bpc-choice--action, .bpc-choice--submit { min-width: 0; }
  .bpc-launcher { width: 66px; height: 66px; }
  .bpc-launcher-image { width: 100%; height: 100%; object-position: center 22%; }
  .bpc-window {
    /* A mobile chat is a viewport layer, not an offset of the launcher. */
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    height: var(--bpc-app-height, 100dvh);
    max-height: var(--bpc-app-height, 100dvh);
    border-radius: 0;
  }
  .bpc-window.is-embedded { height: 86vh; border-radius: 20px; }
  .bpc-header { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
  .bpc-prompt-shell { padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)); }
  .bpc-choice-grid { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .bpc-choice { min-height: 32px; padding: 6px 8px; font-size: 11px; border-radius: 10px; }
  .bpc-choice--option { max-width: none; width: 100% !important; }
  .bpc-choice--action { min-width: 0; }
}

@supports (height: 100dvh) {
  .bpc-window { height: min(740px, calc(100dvh - 110px)); }
  @media (max-width: 640px) {
    .bpc-window { height: 100dvh; max-height: 100dvh; }
  }
}

/* ─── Progress bar (Phase 4) ─── */
.bpc-progress-wrap {
  height: 3px;
  background: rgba(15, 23, 42, .06);
  overflow: hidden;
}
.bpc-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--bpc-primary), var(--bpc-accent));
  transition: width .4s ease;
  border-radius: 0 2px 2px 0;
}

/* ─── Offline state (Phase 3) ─── */
.bpc-launcher[style*="opacity: 0.5"] {
  cursor: pointer;
  animation: bpc-pulse 2s ease-in-out infinite;
}
@keyframes bpc-pulse {
  0%, 100% { opacity: .5; }
  50% { opacity: .7; }
}

/* ─── Skip link for embedded mode (Phase 2 A11y) ─── */
.bpc-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 8px 14px;
  background: var(--bpc-primary);
  color: #fff;
  border-radius: 0 0 8px 0;
  font-size: 13px;
  font-weight: 600;
}
.bpc-skip-link:focus {
  left: 0;
}

/* ─── High contrast focus ring (Phase 2 A11y) ─── */
.bpc-choice:focus-visible,
.bpc-input:focus-visible {
  outline: 3px solid rgba(42, 168, 220, .35);
  outline-offset: 2px;
}

/* ─── Enhancement #8: Social proof bubble ─── */
.bpc-social-proof {
  background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%) !important;
  color: #854d0e !important;
  border: 1px solid rgba(202, 138, 4, .2) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 10px 14px !important;
}
.bpc-proof-icon { font-size: 14px; margin-right: 4px; }

/* ─── Enhancement #9: Calculated result display ─── */
.bpc-calculated {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
  border: 1px solid rgba(16, 185, 129, .2) !important;
}
.bpc-calc-result {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(16, 185, 129, .2);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.bpc-calc-label { font-size: 12px; color: #065f46; font-weight: 600; }
.bpc-calc-value { font-size: 22px; font-weight: 800; color: #047857; }

/* ─── Enhancement #2: Calendar booking embed ─── */
.bpc-booking-bubble { padding-bottom: 6px !important; }
.bpc-booking-frame { margin-top: 8px; }
.bpc-booking-iframe { transition: opacity .3s; }

/* ─── Enhancement #14: OTP input ─── */
.bpc-otp-wrap { display: grid; gap: 8px; }
.bpc-otp-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; }
.bpc-resend { margin-top: 4px; font-size: 12px !important; color: var(--bpc-muted) !important; }

/* ─── Enhancement #13: File upload ─── */
.bpc-file-wrap { display: grid; gap: 10px; }
.bpc-file-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 2px dashed var(--bpc-window-border);
  background: var(--bpc-input-bg);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--bpc-primary);
  transition: border-color .15s;
}
.bpc-file-label:hover { border-color: var(--bpc-primary); }
.bpc-file-icon { font-size: 18px; }
.bpc-file-name { font-size: 12px; color: var(--bpc-muted); }

/* ─── Enhancement #17: Full-page / landing page mode ─── */
.bpc-window.is-fullpage {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  border-radius: 0;
  border: 0;
  z-index: 999999;
}
.bpc-window.is-fullpage .bpc-messages { max-width: 640px; margin: 0 auto; }
.bpc-window.is-fullpage .bpc-prompt-shell { max-width: 640px; margin: 0 auto; }

/* ─── Enhancement #1: Exit-intent teaser animation ─── */
@keyframes bpc-slide-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.bpc-teaser[style*="display: block"] .bpc-teaser-card { animation: bpc-slide-in .35s ease-out; }

/* v2.10.0 — live-agent typing presence */
.bpc-live-agent-typing{display:flex;align-items:center;gap:7px;margin:7px 0 8px;padding:0 4px;color:#72849a;font-size:11px;line-height:1.3}
.bpc-live-typing-avatar{width:20px;height:20px;border-radius:50%;background:linear-gradient(145deg,#e9f2ff,#dceaff);border:1px solid #cadbf2;position:relative}
.bpc-live-typing-avatar:after{content:"";position:absolute;left:6px;top:5px;width:6px;height:6px;border-radius:50%;background:#4775ad;box-shadow:0 5px 0 -1px #4775ad}
.bpc-live-typing-dots{display:inline-flex;align-items:center;gap:2px}
.bpc-live-typing-dots i{width:3px;height:3px;border-radius:50%;background:#7790aa;animation:bpcLiveTyping 1.1s infinite ease-in-out}
.bpc-live-typing-dots i:nth-child(2){animation-delay:.15s}.bpc-live-typing-dots i:nth-child(3){animation-delay:.3s}
@keyframes bpcLiveTyping{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-2px);opacity:1}}
@media(prefers-reduced-motion:reduce){.bpc-live-typing-dots i{animation:none}}

/* Visitor-approved proactive invitation. Not rendered until explicit consented tracking and offer. */
.bpc-proactive-offer{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:100px;z-index:2147482900;width:min(340px,calc(100vw - 32px));padding:20px;border:1px solid #dae5f4;border-radius:18px;background:#fff;color:#132f55;box-shadow:0 16px 45px rgba(14,44,87,.18);font:inherit;line-height:1.5}
.bpc-proactive-offer strong{display:block;font-weight:700;font-size:16px}.bpc-proactive-offer p{margin:8px 0 14px;font-size:14px}.bpc-proactive-offer>div{display:flex;gap:8px;flex-wrap:wrap}
.bpc-proactive-offer button{border:1px solid #1d64e5;background:#1d64e5;color:#fff;border-radius:11px;padding:9px 14px;font-size:14px;cursor:pointer;font-weight:600}
.bpc-proactive-offer button.is-secondary{background:#fff;color:#284c7a;border-color:#cfdbee}.bpc-proactive-offer button:focus-visible{outline:3px solid #7aafff;outline-offset:2px}.bpc-proactive-offer button:disabled{opacity:.55;cursor:wait}
@media(max-width:560px){.bpc-proactive-offer{right:12px;bottom:calc(82px + env(safe-area-inset-bottom));width:calc(100vw - 24px)}}

/* v2.14.4 visitor-approved page handoff, constrained to the current site */
.bpc-agent-page-cta{display:block;width:fit-content;max-width:100%;padding:10px 14px;margin-top:9px;background:#eaf4ff;border:1px solid #99c5ff;border-radius:10px;color:#0057b8!important;font-weight:750;text-decoration:none!important;overflow-wrap:anywhere}
.bpc-agent-page-cta:hover,.bpc-agent-page-cta:focus-visible{background:#d6eaff;outline:2px solid #0057b8;outline-offset:2px}

/* v2.14.7 — flow footer action matches Talk to a person: small, theme-safe, left aligned. */
#bpc-chatbot-root button.bpc-tool--form,
.bpc-embedded-root button.bpc-tool--form{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 auto!important; width:auto!important;max-width:100%!important;
  min-height:36px!important;margin:0!important;padding:8px 12px!important;
  border:1px solid color-mix(in srgb,var(--bpc-primary) 24%,#dbe7f5 76%)!important;
  border-radius:12px!important;background:linear-gradient(180deg,#fff 0%,color-mix(in srgb,var(--bpc-primary) 5%,#fff 95%) 100%)!important;
  color:var(--bpc-primary)!important;box-shadow:0 5px 14px rgba(15,61,103,.08)!important;
  font-family:inherit!important;font-size:12px!important;line-height:1.2!important;font-weight:700!important;
  white-space:nowrap!important;text-align:center!important;text-decoration:none!important;
  cursor:pointer!important;
}
#bpc-chatbot-root button.bpc-tool--form[hidden],
.bpc-embedded-root button.bpc-tool--form[hidden]{display:none!important}
#bpc-chatbot-root button.bpc-tool--form:disabled,
.bpc-embedded-root button.bpc-tool--form:disabled{opacity:.6!important;cursor:wait!important}
#bpc-chatbot-root button.bpc-tool--form[aria-pressed="true"],
.bpc-embedded-root button.bpc-tool--form[aria-pressed="true"]{
  background:#eaf9f2!important;color:#107256!important;border-color:#b2e8cf!important;
}


/* v2.14.16 — Keep the welcome question and answers in one conversation block,
   but reduce the visual weight of Yes/No so the initial screen feels more compact. */
#bpc-chatbot-root .bpc-row--welcome-entry,
.bpc-embedded-root .bpc-row--welcome-entry {
  align-items: flex-start;
  margin-bottom: 10px;
}
#bpc-chatbot-root .bpc-row--welcome-entry .bpc-stack,
.bpc-embedded-root .bpc-row--welcome-entry .bpc-stack {
  width: min(100%, 350px);
  max-width: calc(100% - 46px);
  min-width: 0;
}
#bpc-chatbot-root .bpc-choice-grid--welcome-inline,
.bpc-embedded-root .bpc-choice-grid--welcome-inline {
  margin-top: 10px;
  grid-template-columns: repeat(2, minmax(112px, max-content)) !important;
  justify-content: start !important;
  gap: 9px !important;
  width: auto !important;
  max-width: 100% !important;
}
#bpc-chatbot-root .bpc-choice-grid--welcome-inline button.bpc-choice,
.bpc-embedded-root .bpc-choice-grid--welcome-inline button.bpc-choice {
  min-height: 38px !important;
  width: auto !important;
  min-width: 112px !important;
  max-width: 152px !important;
  padding: 6px 14px !important;
  border-radius: 14px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}
#bpc-chatbot-root .bpc-choice-grid--welcome-inline button.bpc-choice.is-solid,
.bpc-embedded-root .bpc-choice-grid--welcome-inline button.bpc-choice.is-solid {
  background: var(--bpc-primary) !important;
  color: var(--bpc-choice-solid-text) !important;
  border-color: var(--bpc-primary) !important;
}
#bpc-chatbot-root .bpc-choice-grid--welcome-inline button.bpc-choice:focus-visible,
.bpc-embedded-root .bpc-choice-grid--welcome-inline button.bpc-choice:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--bpc-primary) 28%, transparent) !important;
  outline-offset: 2px !important;
}
/* Compact welcome footer: one human-contact action and subdued site credit. */
#bpc-chatbot-root .bpc-prompt-shell.is-welcome-inline,
.bpc-embedded-root .bpc-prompt-shell.is-welcome-inline { padding-top: 11px; padding-bottom: 9px; }
#bpc-chatbot-root .bpc-prompt-shell.is-welcome-inline .bpc-tools,
.bpc-embedded-root .bpc-prompt-shell.is-welcome-inline .bpc-tools { margin-top: 0; gap: 10px; }
#bpc-chatbot-root .bpc-prompt-shell.is-welcome-inline .bpc-powered,
.bpc-embedded-root .bpc-prompt-shell.is-welcome-inline .bpc-powered {
  margin-left: auto;
  max-width: 42%;
  line-height: 1.35;
  text-align: right;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
/* These dots were decorative, NOT indicators of agent availability. */
#bpc-chatbot-root button.bpc-tool--agent::before,
.bpc-embedded-root button.bpc-tool--agent::before { display:none !important; }
#bpc-chatbot-root .bpc-prompt-error:empty,
.bpc-embedded-root .bpc-prompt-error:empty { display:none !important; }
/* Compact desktop welcome; mobile still uses the existing full-height layer. */
@media (min-width: 641px) {
  #bpc-chatbot-root .bpc-window.is-entry-welcome:not(.is-embedded),
  .bpc-embedded-root .bpc-window.is-entry-welcome:not(.is-embedded) {
    height: min(570px, calc(var(--bpc-app-height, 100vh) - 110px));
  }
}
