/* Panel layout and conversation surfaces. Action controls live in buttons.css. */
.fpc-assistant {
  --assistant-bottom: max(20px, env(safe-area-inset-bottom));
  --assistant-height: 100dvh;
  position: fixed;
  z-index: 900;
  right: 24px;
  bottom: var(--assistant-bottom);
  color: var(--ink, #142c47);
  font: 400 14px / 1.55 var(--font, Manrope, system-ui, sans-serif);
  text-align: left;
}
.fpc-assistant *,
.fpc-assistant *::before,
.fpc-assistant *::after {
  box-sizing: border-box;
}
.fpc-assistant [hidden] {
  display: none !important;
}
.fpc-assistant .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.fpc-assistant p,
.fpc-assistant h2,
.fpc-assistant h3 {
  margin: 0;
}
.fpc-assistant a {
  color: var(--brand, #2264c4);
  text-underline-offset: 3px;
}
.fpc-assistant-launcher-mark,
.fpc-assistant-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  background: #edf8f7;
  border-radius: 16px;
}
.fpc-assistant-launcher-mark {
  width: 40px;
  height: 40px;
}
.fpc-assistant-avatar {
  width: 44px;
  height: 44px;
}
.fpc-assistant-avatar img,
.fpc-assistant-launcher-mark img {
  display: block;
  width: 80%;
  height: auto;
}
.fpc-assistant-launcher-label {
  display: grid;
  gap: 2px;
  text-align: left;
  line-height: 1.3;
}
.fpc-assistant-launcher-short { display: none; }
.fpc-assistant-teaser {
  position: absolute;
  right: 0;
  bottom: 0;
  display: block;
  width: 304px;
  max-width: calc(100vw - 24px);
  padding: 16px;
  border: 1px solid #d4e4e7;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 28px rgb(20 44 71 / 12%), 0 2px 6px rgb(20 44 71 / 4%);
  animation: assistant-arrive 180ms ease-out;
}
.fpc-assistant.is-greeting .fpc-assistant-launcher {
  visibility: hidden;
}
/* Listen reports its live height, including expanded reading/error states. */
.has-page-listen .fpc-assistant-teaser {
  bottom: max(80px, calc(var(--listen-height, 64px) + 24px));
}
@media (600px < width < 840px) {
  .has-page-listen .fpc-assistant-panel {
    --assistant-clearance: calc(var(--listen-height, 64px) + 56px);
    bottom: calc(var(--listen-height, 64px) + 16px);
    height: min(600px, calc(var(--assistant-height) - calc(var(--listen-height, 64px) + 56px)));
    min-height: min(280px, calc(var(--assistant-height) - calc(var(--listen-height, 64px) + 56px)));
  }
}
.fpc-assistant-teaser-top {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  color: #536473;
  font-size: 13px;
}
.fpc-assistant-teaser-top img {
  flex: 0 0 auto;
  object-fit: contain;
}
.fpc-assistant .fpc-assistant-teaser-title {
  color: #142c47;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.3;
}
.fpc-assistant .fpc-assistant-teaser-label {
  margin-top: 2px;
  color: #536473;
  font-size: 13px;
  line-height: 1.4;
}
.fpc-assistant .fpc-assistant-teaser-copy {
  margin-top: 12px;
  color: #536473;
  font-size: 14px;
  line-height: 1.55;
}
.fpc-assistant-panel {
  --assistant-clearance: 40px;
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: 420px;
  max-width: calc(100vw - 32px);
  height: min(600px, calc(var(--assistant-height) - 40px));
  min-height: 280px;
  overflow: hidden;
  border: 1px solid #d4e3e8;
  border-radius: 26px;
  background: #fbfcfc;
  box-shadow: 0 18px 60px rgb(20 44 71 / 17%), 0 3px 10px rgb(20 44 71 / 5%);
  isolation: isolate;
  animation: assistant-arrive 180ms ease-out;
}
.fpc-assistant-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  position: relative;
  gap: 10px;
  padding: 6px 12px;
  border-bottom: 1px solid #d5e7e7;
  background: #fff;
  color: #142c47;
}
.fpc-assistant-header h2 {
  color: inherit;
  font: 750 15px / 1.3 var(--font, Manrope, sans-serif);
  letter-spacing: -.3px;
}
.fpc-assistant-header p {
  margin-top: 2px;
  color: #536473;
  font-size: 11px;
}
.fpc-assistant-header .fpc-assistant-avatar { width: 32px; height: 32px; border-radius: 12px; }
.fpc-assistant-header-actions { display: flex; align-items: center; margin-left: auto; gap: 0; }
.fpc-assistant-options {
  position: absolute;
  z-index: 5;
  top: calc(100% - 2px);
  right: 12px;
  display: grid;
  min-width: 192px;
  max-width: calc(100% - 24px);
  max-height: min(320px, calc(var(--assistant-height) - 90px));
  overflow: auto;
  padding: 6px;
  border: 1px solid #d5e2e7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgb(20 44 71 / 15%);
}
.fpc-assistant-options > a { display: flex; align-items: center; min-height: 44px; padding: 8px 10px; font-size: 13px; }
.fpc-assistant-intro { flex: 1 1 auto; min-height: 0; padding: 26px 24px; overflow: auto; }
.fpc-assistant-intro h3 { margin: 0 0 18px; font: 750 24px / 1.3 var(--font, Manrope, sans-serif); }
.fpc-assistant-intro p { color: #536473; font-size: 14px; line-height: 1.65; }
.fpc-assistant-intro p + p { margin-top: 14px; }
.fpc-assistant-intro-links { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 20px; font-size: 13px; }
.fpc-assistant.is-intro .fpc-assistant-panel {
  height: auto;
  min-height: 0;
  max-height: min(680px, calc(var(--assistant-height) - var(--assistant-clearance)));
}
.fpc-assistant.is-open .fpc-assistant-launcher { visibility: hidden; }
.fpc-assistant-close {
  margin-left: auto;
}
.fpc-assistant-mode {
  flex: 0 0 auto;
  padding: 9px 20px;
  border-bottom: 1px solid #dce8ee;
  background: #edf7f7;
  color: #355c64;
  font-size: 12px;
}
.fpc-assistant-chat {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}
.fpc-assistant-scroll,
.fpc-assistant-callback {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.fpc-assistant-welcome h3,
.fpc-assistant-callback h3 {
  margin-bottom: 10px;
  color: #142c47;
  font: 750 25px / 1.3 var(--font, Manrope, sans-serif);
  letter-spacing: -.8px;
}
.fpc-assistant-welcome > p {
  color: #536473;
  font-size: 14px;
  line-height: 1.65;
}
.fpc-assistant-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.fpc-assistant-choice-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #edf8f7;
  color: #237c83;
}
.fpc-assistant-choice-icon svg {
  display: block;
  width: 19px;
  height: 19px;
}
.fpc-assistant-welcome .fpc-assistant-welcome-note {
  margin-top: 14px;
  color: #536473;
  font-size: 12px;
}
.fpc-assistant-welcome-note a { font-weight: 650; white-space: nowrap; }
.fpc-assistant-transcript {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.fpc-assistant-transcript:not(:empty) { margin-top: 0; }
.fpc-assistant-message {
  max-width: 100%;
  overflow-wrap: anywhere;
  animation: assistant-arrive 150ms ease-out;
}
.fpc-assistant-message-bubble {
  padding: 10px 13px;
  border: 1px solid #e1ebed;
  border-radius: 7px 18px 18px;
  background: #fff;
}
.fpc-assistant-message-text { white-space: pre-line; }
.fpc-assistant-message.is-user {
  align-self: flex-end;
  max-width: 90%;
}
.fpc-assistant-message.is-user .fpc-assistant-message-bubble {
  border-color: #2264c4;
  border-radius: 18px 7px 18px 18px;
  background: #2264c4;
  color: #fff;
}
.fpc-assistant-sources { display: grid; gap: 2px; margin-top: 8px; }
.fpc-assistant-source { display: block; padding: 5px 0; color: #2264c4; font-size: 13px; font-weight: 650; line-height: 1.5; text-decoration: underline; }
.fpc-assistant-source:hover { color: #184f9f; }
.fpc-assistant-working {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  color: #536473;
  font-size: 12px;
}
.fpc-assistant-working-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2264c4;
  animation: assistant-breathe 1.1s ease-in-out infinite alternate;
}
.fpc-assistant-error {
  margin-top: 18px;
  padding: 12px;
  border: 1px solid #e3c7bd;
  border-radius: 12px;
  background: #fff8f4;
}
.fpc-assistant-error > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fpc-assistant-error > div {
  margin-top: 8px;
}
.fpc-assistant-limit {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #cbdde9;
  border-radius: 12px;
  background: #f4f8fc;
  font-size: 14px;
}
.fpc-assistant-challenge {
  margin-top: 16px;
  padding: 12px 10px;
  border: 1px solid #d6e3e9;
  border-radius: 14px;
  background: #fff;
  color: #142c47;
  font-size: 14px;
}
.fpc-assistant-challenge > p {
  font-weight: 650;
}
.fpc-assistant-challenge > div {
  display: flex;
  justify-content: flex-start;
  min-width: 0;
  margin-top: 12px;
  overflow-x: auto;
}
.fpc-assistant-challenge > div > div,
.fpc-assistant-challenge > div > iframe {
  margin-inline: auto;
}
.fpc-assistant-limit h3 {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.4;
}
.fpc-assistant-limit nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.fpc-assistant-limit nav a {
  padding-block: 6px;
}
.fpc-assistant-composer {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  gap: 8px;
  margin: 6px 12px 10px;
  padding: 5px;
  border: 1px solid #b8cdd8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 4px rgb(20 44 71 / 3%);
}
.fpc-assistant-contact {
  flex: 0 0 auto;
  padding: 0 18px;
  font-size: 14px;
}
.fpc-assistant-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.fpc-assistant-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 12px;
}
.fpc-assistant-composer:focus-within {
  outline: 2px solid #2264c4;
  outline-offset: 2px;
}
.fpc-assistant-composer textarea {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  min-height: 44px;
  max-height: 108px;
  margin: 0;
  padding: 11px 9px;
  overflow: hidden;
  resize: none;
  border: 0;
  border-radius: 10px;
  outline: none;
  background: transparent;
  color: #142c47;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}
.fpc-assistant-composer textarea::placeholder {
  color: #64717d;
  opacity: 1;
}
.fpc-assistant-callback > p {
  margin-bottom: 14px;
  color: #536473;
}
.fpc-assistant-callback h3 {
  margin-top: 14px;
}
.fpc-assistant-callback-notice {
  padding: 12px;
  border-radius: 10px;
  background: #edf7f7;
  color: #355c64 !important;
  font-size: 12px;
}
.fpc-assistant-callback form > label:not(.fpc-assistant-consent) {
  display: block;
  margin-bottom: 5px;
  color: #142c47;
  font-weight: 700;
}
.fpc-assistant-callback label > span {
  font-weight: 400;
}
.fpc-assistant-callback form > input {
  display: block;
  width: 100%;
  min-height: 46px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #a9c1d3;
  border-radius: 9px;
  background: #fff;
  color: #142c47;
  font-size: 16px;
}
.fpc-assistant-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  font-size: 12px;
}
.fpc-assistant-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #2264c4;
}
.fpc-assistant-callback-success {
  padding: 16px;
  border-radius: 12px;
  background: #edf7f7;
}
.fpc-assistant-callback-success p + p {
  margin-top: 10px;
}
@keyframes assistant-arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes assistant-breathe {
  from { opacity: .4; }
  to { opacity: 1; }
}
@media (width <= 600px) {
  .fpc-assistant-launcher-label { display: none; }
  .fpc-assistant-launcher-short { display: block; }
  .fpc-assistant-launcher-mark { width: 32px; height: 30px; border-radius: 12px; }
  .fpc-assistant {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .fpc-assistant-panel {
    --assistant-clearance: 16px;
    position: fixed;
    top: var(--assistant-top, auto);
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100vw - 16px);
    max-width: none;
    height: min(760px, calc(var(--assistant-height) - 16px));
    min-height: 180px;
    border-radius: 26px;
  }
  .fpc-assistant-header {
    gap: 8px;
    padding: 6px 12px;
  }
  .fpc-assistant-scroll,
  .fpc-assistant-callback {
    padding: 20px 16px;
  }
  .fpc-assistant.is-open::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background: #142c4733;
    content: "";
  }
  .fpc-assistant.is-open .fpc-assistant-launcher {
    visibility: hidden;
  }
  .fpc-assistant.is-open .fpc-assistant-teaser {
    display: none;
  }
  /* Landscape screens and the visible area above a phone keyboard keep a
     usable conversation viewport rather than only the header and composer. */
  .fpc-assistant.is-compact .fpc-assistant-header {
    padding: 0 12px;
  }
  .fpc-assistant.is-compact .fpc-assistant-avatar {
    width: 32px;
    height: 32px;
  }
  .fpc-assistant.is-compact .fpc-assistant-header h2 {
    font-size: 15px;
  }
  .fpc-assistant.is-compact .fpc-assistant-mode {
    display: none;
  }
  .fpc-assistant.is-compact .fpc-assistant-scroll,
  .fpc-assistant.is-compact .fpc-assistant-callback {
    padding: 12px 16px;
  }
  .fpc-assistant.is-compact .fpc-assistant-composer {
    margin-block: 1px;
  }
  .fpc-assistant.is-compact .fpc-assistant-contact a {
    min-height: 24px;
  }
}
@media (width <= 359px) {
  .fpc-assistant-header { padding-block: 4px; }
  .fpc-assistant-scroll,
  .fpc-assistant-callback {
    padding: 16px;
  }
  .fpc-assistant-welcome h3 {
    font-size: 22px;
  }
  .fpc-assistant-welcome > p {
    font-size: 13px;
  }
  .fpc-assistant-choice-icon {
    display: none;
  }
  .fpc-assistant-welcome .fpc-assistant-welcome-note {
    margin-top: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fpc-assistant *,
  .fpc-assistant *::before {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  .fpc-assistant { display: none; }
}

.fpc-assistant-close svg { display: block; flex: 0 0 auto; }
.fpc-assistant-feedback { margin-top: 10px; color: #64717d; font-size: 11px; }
.fpc-assistant-feedback-question { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 4px; }
.fpc-assistant-feedback-question > span { margin-right: 4px; }
.fpc-assistant-feedback > p { padding-block: 8px; }

.fpc-assistant-intro .fpc-assistant-continuity-note { margin-top: 18px; }
.fpc-assistant-safety {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #2264c4;
  border-radius: 8px;
  background: #eaf3f8;
}
.fpc-assistant-safety h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.fpc-assistant-safety p {
  margin: 0 0 12px;
}
.fpc-assistant-safety nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.fpc-assistant-safety nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #142c47;
  font-weight: 700;
  text-decoration: underline;
}
