/* Neon Jets Concierge (neon-chat.js): a quiet launcher bottom-right and one panel (a full-height sheet on phones).
   White and mist surfaces, ink type, one bronze accent; champagne metal only on the send button. Slow, eased motion;
   prefers-reduced-motion gets none. "html body:is(*,#nj-ch)" borrows one ID of weight so the site's global field, link
   and legacy-page "p, li" rules never restyle the chat. The panel is a modal <dialog> (top layer: no z-index fights). */
@keyframes njcIn { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
@keyframes njcDot { 0%, 100% { opacity: .25 } 45% { opacity: 1 } }

html body:is(*,#nj-ch) .njc-sr { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; border: 0 !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important }

/* ---------- launcher: mirrors the privileges pill (bottom-left), sits under the header (10050) and the pill (9400) */
html body:is(*,#nj-ch) .njc-launch { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 9300; box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; height: 38px; min-height: 0; margin: 0; padding: 0 17px 0 14px; border: 1px solid rgba(15,33,71,.14) !important; border-radius: 999px !important; background: rgba(255,255,255,.97) !important; color: #0f2147 !important; font: 600 12.5px/1 'Manrope', system-ui, sans-serif !important; letter-spacing: .04em !important; text-transform: none !important; text-decoration: none !important; box-shadow: 0 8px 26px rgba(15,33,71,.1) !important; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .8s ease, transform .9s cubic-bezier(.22,1,.36,1), visibility 0s linear .9s, border-color .5s ease }
html body:is(*,#nj-ch) .njc-launch::after { content: ''; position: absolute; inset: -4px } /* 46px tap target, same look */
html body:is(*,#nj-ch) .njc-launch.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s }
html body:is(*,#nj-ch) .njc-launch:hover { border-color: rgba(127,95,42,.5) !important }
html body:is(*,#nj-ch) .njc-launch svg { flex: none; width: 15px; height: 15px; fill: none; stroke: #7f5f2a; stroke-width: 1.15; stroke-linejoin: round }
/* steps aside while the panel is open, a page field is being typed in, or it would sit over a form or the footer */
html.njc-open body:is(*,#nj-ch) .njc-launch, html body:is(*,#nj-ch) .njc-launch:is(.is-away, .is-under) { opacity: 0 !important; visibility: hidden !important; pointer-events: none; transition: opacity .4s ease, visibility 0s linear .4s !important }

/* ---------- panel */
html body:is(*,#nj-ch) dialog.njc { position: fixed; inset: auto 16px calc(16px + env(safe-area-inset-bottom, 0px)) auto; box-sizing: border-box; width: min(400px, calc(100vw - 32px)); height: min(640px, calc(100vh - 32px)); height: min(640px, calc(100dvh - 32px)); max-width: none; max-height: none; margin: 0; padding: 0; overflow: hidden; flex-direction: column; border: 1px solid rgba(15,33,71,.1) !important; border-radius: 14px !important; background: #ffffff !important; color: #3b4866; text-align: left !important; font-family: 'Manrope', system-ui, sans-serif; box-shadow: 0 2px 6px rgba(15,33,71,.05), 0 30px 80px rgba(15,33,71,.18) !important; opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .7s cubic-bezier(.22,1,.36,1); transition: opacity .5s ease, transform .7s cubic-bezier(.22,1,.36,1), overlay .7s allow-discrete, display .7s allow-discrete }
html body:is(*,#nj-ch) dialog.njc[open] { display: flex; opacity: 1; transform: none }
@starting-style { html body:is(*,#nj-ch) dialog.njc[open] { opacity: 0; transform: translateY(14px) } }
html body:is(*,#nj-ch) dialog.njc:is(:focus, :focus-visible) { outline: none !important; box-shadow: 0 2px 6px rgba(15,33,71,.05), 0 30px 80px rgba(15,33,71,.18) !important }
html body:is(*,#nj-ch) dialog.njc::backdrop { background: rgba(245,246,248,.55); opacity: 0; transition: opacity .5s ease; transition: opacity .5s ease, overlay .7s allow-discrete, display .7s allow-discrete }
html body:is(*,#nj-ch) dialog.njc[open]::backdrop { opacity: 1 }
@starting-style { html body:is(*,#nj-ch) dialog.njc[open]::backdrop { opacity: 0 } }

html body:is(*,#nj-ch) .njc-head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 12px 16px 24px; border-bottom: 1px solid rgba(15,33,71,.08) }
html body:is(*,#nj-ch) .njc-title { margin: 0 !important; padding: 0 !important; font: 600 22px/1.15 'Cormorant Garamond', Georgia, serif !important; letter-spacing: 0 !important; text-transform: none !important; text-align: left !important; color: #0f2147 !important }
html body:is(*,#nj-ch) .njc-sub { margin: 5px 0 0 !important; padding: 0 !important; font: 500 12px/1.4 'Manrope', system-ui, sans-serif !important; letter-spacing: .02em !important; text-transform: none !important; color: #5f6a85 !important }
html body:is(*,#nj-ch) .njc-x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; margin: -8px 0 0; padding: 0; border: 0 !important; border-radius: 50% !important; background: transparent !important; color: #5f6a85 !important; box-shadow: none; cursor: pointer; transition: color .5s ease, background-color .5s ease }
html body:is(*,#nj-ch) .njc-x:hover { color: #0f2147 !important; background: #f5f6f8 !important }
html body:is(*,#nj-ch) .njc-x svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round }

/* the conversation: assistant lines are plain text, the visitor's sit right in a mist bubble */
html body:is(*,#nj-ch) .njc-log { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 16px; padding: 24px 24px 18px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(15,33,71,.16) transparent; outline: none }
html body:is(*,#nj-ch) .njc-log:focus-visible { outline: none !important; box-shadow: inset 0 0 0 1px rgba(127,95,42,.45) !important }
html body:is(*,#nj-ch) .njc-msg { flex: none; box-sizing: border-box; max-width: 88%; margin: 0 !important; padding: 0; font: 400 15px/1.65 'Manrope', system-ui, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; color: #3b4866 !important; white-space: pre-wrap; overflow-wrap: anywhere; animation: njcIn .6s cubic-bezier(.22,1,.36,1) both }
html body:is(*,#nj-ch) .njc-msg--ai { align-self: flex-start }
html body:is(*,#nj-ch) .njc-msg--me { align-self: flex-end; padding: 10px 15px; border-radius: 16px 16px 4px 16px; background: #f5f6f8; color: #0f2147 !important; line-height: 1.55 !important }
html body:is(*,#nj-ch) .njc-msg--me.is-failed { opacity: .6 }
html body:is(*,#nj-ch) .njc-msg--me.is-failed::after { content: 'Not sent'; display: block; margin-top: 4px; font: 500 11px/1.3 'Manrope', system-ui, sans-serif; color: #5f6a85; text-align: right }
html body:is(*,#nj-ch) .njc-hello { max-width: 100%; font: 600 23px/1.3 'Cormorant Garamond', Georgia, serif !important; color: #0f2147 !important; text-wrap: balance }
html body:is(*,#nj-ch) .njc-msg--err { padding-left: 14px; border-left: 1px solid rgba(127,95,42,.55) }
html body:is(*,#nj-ch) .njc-msg a { color: #0f2147 !important; font-weight: 500; text-decoration: underline !important; text-decoration-color: rgba(127,95,42,.55) !important; text-underline-offset: 3px; overflow-wrap: anywhere }
html body:is(*,#nj-ch) .njc-msg a[href^="tel:"] { white-space: nowrap }
html body:is(*,#nj-ch) .njc-typing { display: flex; gap: 5px; padding: 9px 0 }
html body:is(*,#nj-ch) .njc-typing i { width: 5px; height: 5px; border-radius: 50%; background: #9aa4b8; animation: njcDot 1.4s ease-in-out infinite }
html body:is(*,#nj-ch) .njc-typing i:nth-child(2) { animation-delay: .2s }
html body:is(*,#nj-ch) .njc-typing i:nth-child(3) { animation-delay: .4s }

/* request received: one slim line above the composer (empty = takes no room) */
html body:is(*,#nj-ch) .njc-lead { flex: none; display: flex; align-items: center; gap: 9px; margin: 0 !important; padding: 11px 24px; border-top: 1px solid rgba(15,33,71,.08); font: 500 12px/1.45 'Manrope', system-ui, sans-serif !important; letter-spacing: 0 !important; color: #3b4866 !important; text-wrap: balance; animation: njcIn .6s cubic-bezier(.22,1,.36,1) both }
html body:is(*,#nj-ch) .njc-lead:empty { padding: 0; border: 0 }
html body:is(*,#nj-ch) .njc-lead b { font-weight: 600; color: #0f2147; white-space: nowrap; font-variant-numeric: tabular-nums }
html body:is(*,#nj-ch) .njc-lead svg { flex: none; width: 15px; height: 15px; fill: none; stroke: #7f5f2a; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round }

/* composer: one hairline box, the field borderless inside it, the send button at its end */
html body:is(*,#nj-ch) .njc-form { flex: none; display: flex; align-items: flex-end; gap: 8px; margin: 4px 16px 0; padding: 5px 5px 5px 16px; border: 1px solid rgba(15,33,71,.16); border-radius: 14px; background: #ffffff; transition: border-color .35s cubic-bezier(.22,1,.36,1), box-shadow .35s cubic-bezier(.22,1,.36,1) }
html body:is(*,#nj-ch) .njc-form:hover { border-color: rgba(15,33,71,.3) }
html body:is(*,#nj-ch) .njc-form:focus-within { border-color: rgba(127,95,42,.6); box-shadow: 0 0 0 4px rgba(127,95,42,.08) }
html body:is(*,#nj-ch) .njc-form .njc-in.njc-in { flex: 1 1 auto; box-sizing: border-box; width: auto; min-width: 0; height: 36px; min-height: 36px !important; max-height: 132px; margin: 0 !important; padding: 8px 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; outline: none !important; resize: none !important; overflow-y: auto; overscroll-behavior: contain; color: #0f2147 !important; font: 400 15px/1.35 'Manrope', system-ui, sans-serif !important; letter-spacing: 0 !important }
html body:is(*,#nj-ch) .njc-form .njc-in.njc-in::placeholder { color: #6b7591 !important; -webkit-text-fill-color: #6b7591; opacity: 1 }
html body:is(*,#nj-ch) .njc-send { flex: none; display: grid; place-items: center; width: 36px; height: 36px; min-height: 0; margin: 0; padding: 0; border: 0 !important; border-radius: 50% !important; background: var(--nj-metal, linear-gradient(180deg, #f0ddb2 0%, #d7ba80 52%, #bf9d61 100%)) !important; color: #0f2147 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -1px 0 rgba(120,90,40,.22), 0 4px 12px rgba(15,33,71,.12) !important; cursor: pointer; transition: filter .5s ease, box-shadow .5s ease }
html body:is(*,#nj-ch) .njc-send:hover:not(:disabled) { filter: brightness(1.04) }
html body:is(*,#nj-ch) .njc-send:disabled { background: #f5f6f8 !important; color: #9aa4b8 !important; box-shadow: none !important; cursor: default }
html body:is(*,#nj-ch) .njc-send svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round }

html body:is(*,#nj-ch) .njc-note { flex: none; margin: 0 !important; padding: 10px 24px 14px; font: 400 11px/1.5 'Manrope', system-ui, sans-serif !important; letter-spacing: .01em !important; text-transform: none !important; text-align: center !important; text-wrap: balance; color: #5f6a85 !important }
html body:is(*,#nj-ch) .njc-note a { color: #5f6a85 !important; text-decoration: underline !important; text-decoration-color: rgba(95,106,133,.45) !important; text-underline-offset: 3px }
html body:is(*,#nj-ch) .njc-note a:hover { color: #0f2147 !important }

/* phones and tablets: 16px stops iOS from zooming into the page when the field is tapped; bigger send target */
@media (max-width: 760px), (pointer: coarse) {
  html body:is(*,#nj-ch) .njc-form .njc-in.njc-in { height: 40px; min-height: 40px !important; padding: 9px 0 !important; font-size: 16px !important }
  html body:is(*,#nj-ch) .njc-send { width: 40px; height: 40px }
}

/* phones (and landscape phones): a full-height sheet that follows the on-screen keyboard (neon-chat.js sets --njc-h/--njc-t
   from visualViewport); the page underneath stays still */
@media (max-width: 599px), (max-height: 520px) {
  html body:is(*,#nj-ch) dialog.njc { inset: var(--njc-t, 0px) 0 auto 0; width: 100%; height: var(--njc-h, 100dvh); border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: translateY(100%) }
  html body:is(*,#nj-ch) dialog.njc[open] { transform: none }
  @starting-style { html body:is(*,#nj-ch) dialog.njc[open] { transform: translateY(100%) } }
  html body:is(*,#nj-ch) dialog.njc:is(:focus, :focus-visible) { box-shadow: none !important }
  html body:is(*,#nj-ch) .njc-head { padding: calc(14px + env(safe-area-inset-top, 0px)) calc(8px + env(safe-area-inset-right, 0px)) 14px calc(20px + env(safe-area-inset-left, 0px)) }
  html body:is(*,#nj-ch) .njc-x { margin-top: -6px }
  html body:is(*,#nj-ch) .njc-log { padding: 22px calc(20px + env(safe-area-inset-right, 0px)) 16px calc(20px + env(safe-area-inset-left, 0px)) }
  html body:is(*,#nj-ch) .njc-lead { padding: 10px 20px }
  html body:is(*,#nj-ch) .njc-form { margin: 4px calc(12px + env(safe-area-inset-right, 0px)) 0 calc(12px + env(safe-area-inset-left, 0px)) }
  html body:is(*,#nj-ch) .njc-note { padding: 9px 20px calc(10px + env(safe-area-inset-bottom, 0px)) }
  html body:is(*,#nj-ch) dialog.njc.njc-kb .njc-note { padding-bottom: 8px }
  html.njc-open body { overflow: hidden !important }
}

@media (prefers-reduced-motion: reduce) {
  html body:is(*,#nj-ch) :is(.njc-launch, dialog.njc, .njc-msg, .njc-lead, .njc-typing i, .njc-form, .njc-send, .njc-x) { animation: none !important; transition: none !important }
  html body:is(*,#nj-ch) dialog.njc::backdrop { transition: none !important }
  html body:is(*,#nj-ch) .njc-typing i { opacity: .6 }
}
