/* JtA Ask — 1.7.0-beta2; legacy and scoped Notes-backed layouts. */
:root{
  /* Fallbacks if the site tokens aren't present */
  --jta-blue: var(--wp--preset--color--custom-jt-a-link-blue, #7ab8fa);
  --jta-red:  var(--wp--preset--color--custom-jt-a-link-red,  #ff5151);
  --jta-ink:  var(--wp--preset--color--contrast, #111111);
  --jta-base: var(--wp--preset--color--base, #ffffff);
}

/* Base floating button style (Back to Top + Chat share this) */
.jta-back-to-top,
.jta-chat-toggle,
.jta-chat-new-toggle{
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0.5rem 0.875rem;
  border: 2px solid transparent;
  border-radius: 9999px;       /* match pill buttons */
  background: var(--jta-blue); /* Back to top default */
  color: var(--jta-base);
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  cursor: pointer;
  z-index: 2147483647;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity .25s ease,
    transform .25s ease,
    visibility .25s ease,
    background-color .2s ease,
    color .2s ease,
    border-color .2s ease;
}

/* Chat button uses brand red by default for contrast */
.jta-chat-toggle{
  background: var(--jta-red);
}



/* New Chat button uses the standard (blue) JtA style */
.jta-chat-new-toggle{
  background: var(--jta-blue);
}
/* When chat is open, make the toggle look like the usual (blue) button */
.jta-chat-toggle.is-open{
  background: var(--jta-blue);
  border-color: transparent;
}

/* Visible state */
.jta-back-to-top.is-visible,
.jta-chat-toggle.is-visible,
.jta-chat-new-toggle.is-visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hover/focus styles */
.jta-back-to-top:hover,
.jta-back-to-top:focus,
.jta-chat-toggle:hover,
.jta-chat-toggle:focus,
.jta-chat-new-toggle:hover,
.jta-chat-new-toggle:focus{
  background: var(--jta-red);
  color: var(--jta-base);
  border-color: var(--jta-red);
  outline: none;
}

/* Keep the open/close state visually "blue" on hover/focus */
.jta-chat-toggle.is-open:hover,
.jta-chat-toggle.is-open:focus{
  background: var(--jta-blue);
  border-color: var(--jta-blue);
  filter: brightness(0.96);
}

/* High-contrast focus ring for keyboard users */
.jta-back-to-top:focus-visible,
.jta-chat-toggle:focus-visible,
.jta-chat-new-toggle:focus-visible{
  box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 0 6px rgba(0,0,0,.3);
}

/* Wrapper (mainly for stacking context) */
.jta-btt-wrapper{
  position: relative;
  z-index: 2147483647;
}

/* Chat panel container (holds Gravity Form) */
.jta-chat-panel{
  position: fixed;
  bottom: 5.25rem; /* just above buttons */
  right: 2rem;
  max-width: 360px;
  width: calc(100% - 3rem);
  max-height: 70vh;
  background: var(--jta-base);
  color: var(--jta-ink);
  border-radius: 1.25rem;
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
  padding: 1.5rem 1.25rem 1.25rem;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity .25s ease,
    transform .25s ease,
    visibility .25s ease;
  z-index: 2147483646;
  box-sizing: border-box;
}

/*
  Single-scrollbar behaviour:
  - When a conversation is active, we make the panel non-scrollable and
    let ONE dedicated wrapper scroll (so the intro/system message + transcript
    scroll away together).
  - When no conversation is active, keep panel scrolling so the Gravity
    Form can still scroll if it ever exceeds the panel height.
*/
.jta-chat-panel.jta-has-conversation{
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/*
  IMPORTANT (GF multi-submit / re-render protection)
  Gravity Forms can re-render the form after confirmation, which can cause
  the initial "Your Question" form UI to re-appear while follow-up chat is active.
  When we're in conversation mode, hide any GF wrappers inside the chat panel.
*/
.jta-chat-panel.jta-has-conversation .gform_wrapper,
.jta-chat-panel.jta-has-conversation [id^='gform_wrapper_'],
.jta-chat-panel.jta-has-conversation [id^='gform_confirmation_wrapper_']{
  display: none !important;
}

.jta-chat-panel.jta-has-conversation .jta-chat-followup{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0; /* allow transcript to size + scroll */
}

/*
  IMPORTANT:
  When a conversation is active we want ONE scroll area for *all* content
  above the input (including the intro/system message). To achieve this we
  make a dedicated scroll wrapper and let the transcript expand naturally.
*/
.jta-chat-panel.jta-has-conversation .jta-chat-scroll{
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.25rem 0.15rem 0.5rem;
}

.jta-chat-panel.jta-has-conversation .jta-chat-transcript{
  max-height: none;
  overflow: visible;
  padding: 0;
}

/* Close button inside panel */
.jta-chat-close{
  position: absolute;
  top: 0.35rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  color: var(--jta-ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

/* Open state */
.jta-chat-panel.is-open{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce){
  .jta-back-to-top,
  .jta-chat-toggle,
  .jta-chat-panel{
    transition: none;
  }
}

/* Mobile tweaks */
@media (max-width: 480px){
  .jta-back-to-top,
  .jta-chat-toggle{
    bottom: 1rem;
    right: 1rem;
  }

  .jta-chat-panel{
    bottom: 4.5rem;
    left: 1rem;
    right: 1rem;
    width: auto;
    max-width: none;
  }
}


/* =======================
   AI Answer block (GF confirmation)
   ======================= */
.jta-ai-answer{
  margin-top: 0.75rem;
  padding: 0.9rem 0.9rem 0.75rem;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(122,184,250,0.14), rgba(255,255,255,0.0));
}
.jta-ai-answer__title{
  margin: 0 0 0.5rem;
  font-size: 1rem;
  line-height: 1.2;
}
.jta-ai-answer__disclaimer{
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  opacity: 0.85;
}


/* =======================
   Follow-up chat (persistent)
   ======================= */
.jta-chat-followup{
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.jta-chat-followup__head{
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.jta-chat-new{
  border: 1px solid rgba(0,0,0,0.14);
  background: transparent;
  border-radius: 9999px;
  padding: 0.35rem 0.65rem;
  font-size: 12px;
  cursor: pointer;
}

.jta-chat-new:hover,
.jta-chat-new:focus{
  border-color: var(--jta-blue);
  outline: none;
}

.jta-chat-transcript{
  max-height: 34vh;
  overflow: auto;
  padding: 0.25rem 0.15rem 0.5rem;
}

.jta-chat-empty{
  opacity: 0.85;
  font-size: 0.92rem;
  padding: 0.25rem 0.25rem 0.5rem;
}

.jta-chat-msg{
  display: flex;
  margin: 0.35rem 0;
}

.jta-chat-msg--user{
  justify-content: flex-end;
}

.jta-chat-msg--assistant{
  justify-content: flex-start;
}

.jta-chat-bubble{
  max-width: 88%;
  padding: 0.55rem 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(122,184,250,0.10);
  font-size: 0.95rem;
  line-height: 1.35;
}

.jta-chat-msg--user .jta-chat-bubble{
  background: rgba(0,0,0,0.04);
}

.jta-chat-bubble p{ margin: 0.4rem 0; }

.jta-chat-followup__form{
  margin-top: 0.5rem;
}

.jta-chat-followup__input{
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.14);
  padding: 0.55rem 0.65rem;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 2.5rem;
}

.jta-chat-followup__actions{
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.jta-chat-send{
  border: none;
  background: var(--jta-blue);
  color: var(--jta-base);
  border-radius: 9999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

.jta-chat-send:hover,
.jta-chat-send:focus{
  filter: brightness(0.96);
  outline: none;
}

.jta-chat-followup__form.is-sending .jta-chat-send{
  opacity: 0.65;
  cursor: wait;
}


/* =======================
   Follow-up "Thinking…" indicator
   ======================= */
.jta-chat-typing{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.1rem 0;
}

.jta-chat-typing__text{
  font-size: 0.92rem;
  opacity: 0.85;
}

.jta-chat-typing__dot{
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: currentColor;
  opacity: 0.25;
  animation: jtaChatTyping 1.15s infinite ease-in-out;
}

.jta-chat-typing__dot:nth-child(3){ animation-delay: 0.15s; }
.jta-chat-typing__dot:nth-child(4){ animation-delay: 0.30s; }

@keyframes jtaChatTyping{
  0%, 80%, 100% { transform: translateY(0); opacity: 0.25; }
  40%          { transform: translateY(-4px); opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce){
  .jta-chat-typing__dot{ animation: none; opacity: 0.45; }
}

.jta-chat-followup__form.is-sending .jta-chat-followup__input{
  opacity: 0.75;
  cursor: wait;
}

.jta-chat-send:disabled{
  opacity: 0.65;
  cursor: wait;
}


/* =======================
   AI triggers (shortcodes)
   ======================= */
.jta-ai-trigger{
  font: inherit;
}

/* Button trigger (inline) */
.jta-ai-trigger--button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 2px solid transparent;
  border-radius: 9999px;
  background: var(--jta-blue);
  color: var(--jta-base);
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.jta-ai-trigger--button:hover,
.jta-ai-trigger--button:focus{
  background: var(--jta-red);
  color: var(--jta-base);
  border-color: var(--jta-red);
  outline: none;
}

.jta-ai-trigger--button:focus-visible{
  box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 0 6px rgba(0,0,0,.25);
}

/* Question-mark trigger (inline) */
.jta-ai-trigger--qmark{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35em;
  height: 1.35em;
  margin-left: 0.15em;
  border-radius: 9999px;
  border: 2px solid var(--jta-blue);
  background: rgba(122,184,250,.12);
  color: var(--jta-blue);
  font-weight: 700;
  font-size: 0.9em;
  line-height: 1;
  cursor: pointer;
  vertical-align: text-bottom;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.jta-ai-trigger--qmark:hover,
.jta-ai-trigger--qmark:focus{
  border-color: var(--jta-red);
  background: rgba(255,81,81,.12);
  color: var(--jta-red);
  outline: none;
}

.jta-ai-trigger--qmark:focus-visible{
  box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 0 6px rgba(0,0,0,.25);
}


/* Session identity change notice */
.jta-chat-session-notice{
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.4;
}

/* Service status belongs to the interface, not to historical conversation text. */
.jta-chat-panel .jta-service-status{margin:30px 20px 12px;padding:12px 14px;border:1px solid #d8cf6b;border-radius:10px;background:#fffbed;color:#353426;font-size:14px;line-height:1.5;text-align:left;}
.jta-chat-panel .jta-service-status[hidden]{display:none;}

/* Canonical Note controls, separate from retained message history. */
.jta-note-status{font:inherit;font-size:13px;line-height:1.5;margin:8px 0;color:inherit}.jta-note-link{font:inherit;font-size:13px;border:1px solid currentColor;border-radius:8px;background:transparent;color:inherit;padding:8px 12px;margin:6px 0;cursor:pointer}.jta-note-link:focus-visible{outline:2px solid currentColor;outline-offset:3px}.jta-note-link[hidden],.jta-note-status[hidden]{display:none!important}.jta-notes-received{font:inherit;font-size:14px}


/* JtA Ask 1.7.0-beta2 — Notes-first reading layout.
   Scope intentionally excludes the legacy widget on unenrolled client sites. */
.jta-chat-panel.jta-notes-widget {
  --jta-ask-gap: 16px;
  --jta-ask-vh: 100vh;
  --jta-ask-top: 0px;
  --jta-ask-surface: #ffffff;
  --jta-ask-text: #20242a;
  top: calc(var(--jta-ask-top) + var(--jta-ask-vh) - min(740px, calc(var(--jta-ask-vh) - 2 * var(--jta-ask-gap))) - var(--jta-ask-gap));
  bottom: auto;
  right: var(--jta-ask-gap);
  left: auto;
  width: min(520px, calc(100vw - 2 * var(--jta-ask-gap)));
  max-width: none;
  height: min(740px, calc(var(--jta-ask-vh) - 2 * var(--jta-ask-gap)));
  max-height: none;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--jta-ask-surface);
  color: var(--jta-ask-text);
  border: 1px solid #dfe4eb;
  border-radius: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  letter-spacing: normal;
  box-shadow: 0 18px 70px rgba(0, 0, 0, .22);
}
@supports (height: 100dvh) {
  .jta-chat-panel.jta-notes-widget { --jta-ask-vh: 100dvh; }
}
.jta-chat-panel.jta-notes-widget.is-expanded {
  width: min(960px, calc(100vw - 2 * var(--jta-ask-gap)));
  height: calc(var(--jta-ask-vh) - 2 * var(--jta-ask-gap));
  top: calc(var(--jta-ask-top) + var(--jta-ask-gap));
}
.jta-notes-widget *, .jta-notes-widget *::before, .jta-notes-widget *::after { box-sizing: border-box; }
.jta-notes-widget [hidden] { display: none !important; }
.jta-notes-widget button, .jta-notes-widget textarea { font: inherit; letter-spacing: normal; text-transform: none; }
.jta-notes-widget button { touch-action: manipulation; }
.jta-notes-widget .jta-chat-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 12px 20px;
  border-bottom: 1px solid #e5e9ef;
  background: #fff;
}
.jta-notes-widget .jta-chat-heading { min-width: 0; }
.jta-notes-widget .jta-chat-heading h2 { margin: 0; padding: 0; font: 650 18px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #161b22; }
.jta-notes-widget .jta-chat-heading p { margin: 2px 0 0; font-size: 12px; line-height: 1.3; color: #596576; }
.jta-notes-widget .jta-chat-header__actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.jta-notes-widget .jta-chat-new-toggle,
.jta-notes-widget .jta-chat-expand,
.jta-notes-widget .jta-chat-close {
  position: static;
  min-width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #283647;
  box-shadow: none;
  font-size: 13px;
  line-height: 1.2;
  opacity: 1;
  visibility: visible;
  transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.jta-notes-widget .jta-chat-new-toggle:not(.is-visible) { display: none; }
.jta-notes-widget .jta-chat-close { font-size: 25px; }
.jta-notes-widget .jta-chat-expand svg { display: block; transition: transform .15s ease; }
.jta-notes-widget .jta-chat-expand[aria-pressed="true"] svg { transform: rotate(180deg); }
.jta-notes-widget .jta-chat-header__actions button:hover { background: #eef3f9; color: #152335; }
.jta-notes-widget button:focus-visible,
.jta-notes-widget textarea:focus-visible,
.jta-notes-widget .jta-chat-scroll:focus-visible { outline: 3px solid #2865a8; outline-offset: -3px; box-shadow: none; }
.jta-notes-widget-wrapper.jta-notes-open > .jta-chat-toggle,
.jta-notes-widget-wrapper.jta-notes-open > .jta-back-to-top { opacity: 0; visibility: hidden; pointer-events: none; }
.jta-notes-widget .jta-chat-intake { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 20px; }
.jta-notes-widget.jta-has-conversation .jta-chat-intake { display: none; }
.jta-chat-panel.jta-notes-widget.jta-has-conversation .jta-chat-followup {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
}
.jta-chat-panel.jta-notes-widget.jta-has-conversation .jta-chat-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  overflow-anchor: none;
  scrollbar-gutter: stable;
  padding: 16px 16px 20px 20px;
  background: #f8fafc;
  scroll-behavior: auto;
}
.jta-chat-panel.jta-notes-widget .jta-service-status {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #e3d69c;
  background: #fffbed;
  color: #514821;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}
.jta-notes-widget .jta-ai-answer { margin: 0 0 14px; padding: 12px; font-size: 14px; }
.jta-notes-widget .jta-chat-transcript { max-height: none; overflow: visible; padding: 0; }
.jta-notes-widget .jta-chat-msg { display: flex; margin: 0 0 16px; }
.jta-notes-widget .jta-chat-bubble {
  min-width: 0;
  max-width: 94%;
  padding: 12px 14px;
  border: 1px solid #e1e7ef;
  border-radius: 14px;
  background: #fff;
  color: #20242a;
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: normal;
}
.jta-notes-widget .jta-chat-msg--user .jta-chat-bubble { background: #eaf2fc; border-color: #dbe7f5; white-space: pre-wrap; }
.jta-notes-widget .jta-chat-author { display: block; margin: 0 0 5px; font-size: 11px; line-height: 1.3; font-weight: 650; color: #53647b; }
.jta-notes-widget .jta-chat-bubble p { margin: 0 0 10px; text-align: left; }
.jta-notes-widget .jta-chat-bubble p:last-child { margin-bottom: 0; }
.jta-notes-widget .jta-chat-bubble ul, .jta-notes-widget .jta-chat-bubble ol { margin: 8px 0; padding-left: 22px; }
.jta-notes-widget .jta-chat-bubble a { color: #18599c; text-decoration: underline; }
.jta-notes-widget .jta-chat-bubble pre { max-width: 100%; overflow-x: auto; white-space: pre; padding: 10px; background: #f1f4f8; font-size: 13px; }
.jta-notes-widget .jta-chat-bubble img { max-width: 100%; height: auto; }
.jta-notes-widget .jta-chat-bubble table { max-width: 100%; display: block; overflow-x: auto; font-size: 14px; }
.jta-notes-widget .jta-note-status { margin: 2px 2px 0; font-size: 13px; line-height: 1.45; color: #596576; text-align: left; }
.jta-notes-widget .jta-chat-followup__form { flex: 0 0 auto; margin: 0; padding: 12px 16px 14px; border-top: 1px solid #e5e9ef; background: #fff; }
.jta-notes-widget .jta-chat-followup__input {
  display: block;
  width: 100%;
  height: 60px;
  min-height: 44px;
  max-height: min(128px, calc(var(--jta-ask-vh) * .2));
  padding: 9px 12px;
  margin: 0;
  border: 1px solid #c7d1df;
  border-radius: 12px;
  background: #fff;
  color: #20242a;
  font-size: 16px;
  line-height: 1.45;
  resize: none;
  overflow-y: auto;
  text-align: left;
}
.jta-notes-widget .jta-chat-followup__input::placeholder { color: #657084; opacity: 1; }
.jta-notes-widget .jta-chat-followup__actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 0; }
.jta-notes-widget .jta-note-link { margin: 0; min-height: 40px; border: 0; padding: 8px 4px; border-radius: 8px; background: transparent; color: #235d99; font-size: 13px; line-height: 1.3; text-align: left; }
.jta-notes-widget .jta-note-link:hover { background: #edf3fa; }
.jta-notes-widget #jta-note-earlier { display: block; margin: 0 auto 12px; padding: 8px 12px; border: 1px solid #d7e0eb; background: #fff; }
.jta-notes-widget .jta-chat-send { min-height: 40px; margin: 0 0 0 auto; padding: 8px 18px; border: 1px solid transparent; border-radius: 10px; background: var(--jta-blue); color: #142a43; font-size: 14px; font-weight: 650; line-height: 1.3; }
.jta-notes-widget .jta-chat-send:hover { filter: brightness(.95); }
.jta-notes-widget .jta-chat-latest {
  position: absolute;
  right: 24px;
  bottom: calc(var(--jta-composer-height, 135px) + 12px);
  z-index: 1;
  padding: 8px 12px;
  min-height: 36px;
  border: 1px solid #cbd9e8;
  border-radius: 999px;
  background: #fff;
  color: #235d99;
  font-size: 12px;
  line-height: 1.3;
  box-shadow: 0 3px 14px rgba(20, 42, 67, .12);
}
@media (max-width: 600px) {
  .jta-chat-panel.jta-notes-widget { --jta-ask-gap: 8px; border-radius: 16px; height: calc(var(--jta-ask-vh) - 2 * var(--jta-ask-gap)); top: calc(var(--jta-ask-top) + var(--jta-ask-gap)); }
  .jta-notes-widget .jta-chat-header { padding: 10px 8px 10px 14px; }
  .jta-chat-panel.jta-notes-widget.jta-has-conversation .jta-chat-scroll { padding: 14px 10px 16px 14px; }
  .jta-notes-widget .jta-chat-followup__form { padding: 10px 12px max(10px, env(safe-area-inset-bottom)); }
}
@media (max-height: 480px) {
  .jta-notes-widget .jta-chat-header { padding-top: 4px; padding-bottom: 4px; }
  .jta-notes-widget .jta-chat-heading p { display: none; }
  .jta-notes-widget .jta-chat-followup__input { height: 44px; }
  .jta-notes-widget .jta-chat-followup__form { padding-top: 6px; padding-bottom: 6px; }
  .jta-notes-widget .jta-chat-followup__actions { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .jta-notes-widget .jta-chat-expand svg { transition: none; }
}

/* Closing the non-modal panel must also remove its controls from keyboard navigation. */
.jta-notes-widget:not(.is-open) .jta-chat-header__actions button { visibility: hidden; }
@media (max-width: 600px) {
  .jta-chat-panel.jta-notes-widget.is-expanded { --jta-ask-gap: 0px; border-radius: 0; }
}
/* Visibility switches immediately so focus can return without waiting for an animation. */
.jta-notes-widget-wrapper > .jta-chat-toggle,
.jta-notes-widget .jta-chat-header__actions button {
  transition-property: opacity, transform, background-color, color, border-color;
}

/* Shared primary action language on public JtA surfaces. */
.jta-chat-toggle,.jta-chat-send,.jta-notes-widget .gform_button{background:#173f53!important;color:#fff!important;border:0!important;border-radius:8px!important;font:600 15px/1.5 system-ui,sans-serif!important}.jta-chat-toggle:hover,.jta-chat-send:hover,.jta-notes-widget .gform_button:hover{background:#c72c35!important}.jta-chat-toggle:active,.jta-chat-send:active{background:#9d2029!important}.jta-chat-toggle:focus-visible,.jta-chat-send:focus-visible,.jta-notes-widget .gform_button:focus-visible{outline:3px solid #c72c35!important;outline-offset:3px}.jta-ask-remit{font-size:13px;line-height:1.5;margin:12px 16px;color:#526671}
