/* Boklyft chat / voice editorial polish — PRIVATE DESIGN PREVIEW ONLY.
 * Fine-grained overrides for existing synthetic chat. No React, WebGL, backend.
 * Preserve real DOM controls, event listeners and browser speech permission.
 */

/* Calm SaaS dialog — readability and focus before decorative surfaces. */
.boklyft-chat-window {
  border:1px solid rgba(8,20,45,.13)!important;
  border-radius:24px!important;
  box-shadow:0 30px 90px rgba(5,17,37,.22)!important;
}
.boklyft-chat-window .chat {
  background:#fff!important;
  padding:24px 25px 17px!important;
}
.boklyft-chat-window .chat-top {
  padding-bottom:15px;min-height:55px;
  border-bottom:1px solid #e7ebf0;
}
.boklyft-chat-window .chat-brand {
  font-weight:690;
  color:#0e1c35;
  letter-spacing:-.015em;
}
.boklyft-chat-window .online {
  display:inline-flex;align-items:center;
  gap:7px;min-width:0;
  font-weight:560;color:#41536e;
}
.boklyft-chat-window .online::before {
  content:'';width:6px;height:6px;flex:none;border-radius:50%;
  background:#4b9a79;
}
.boklyft-chat-window .messages {
  gap:13px!important;
  scrollbar-width:thin;
  scrollbar-color:#c9d0dc transparent;
}
.boklyft-chat-window .msg {
  font-size:13.5px;
  line-height:1.58;
  border-radius:15px;
  padding:12px 15px;
}
.boklyft-chat-window .msg.bot {
  background:#f5f7fa;
  border:1px solid #e9edf2;
  border-bottom-left-radius:6px;
  color:#17253c;
}
.boklyft-chat-window .msg.user {
  background:#132743;
  border:1px solid #132743;
  color:#fff;
  border-bottom-right-radius:6px;
}

/* Make the first screen functional and quieter: remove redundant cards that
   depict only fake dates/guest quantities. The greeting remains accessible. */
.boklyft-chat-window .bl-chat-welcome {
  display:block;
  min-height:0!important;
  padding:20px 1px 17px;
}
.boklyft-chat-window .bl-chat-welcome-copy{max-width:390px}
.boklyft-chat-window .bl-welcome-art{display:none!important}
.boklyft-chat-window .bl-chat-welcome h2 {
  font-family:var(--display-serif);
  font-size:clamp(28px,3vw,35px);
  letter-spacing:-.025em;
  font-weight:510;
  line-height:1.13;
  margin:0 0 8px;
}
.boklyft-chat-window .bl-chat-welcome p {
  max-width:340px;
  color:#52617a;
  font-size:13px;
  line-height:1.6;
}

/* Quick example questions. Never style disabled buttons as interactive. */
#demo .quick,
.boklyft-chat-window .quick {
  gap:8px;
  margin:11px 0 9px;
}
#demo .quick button,
.boklyft-chat-window .quick button {
  min-height:44px;
  padding:9px 13px;
  border:1px solid #ccd6e5;
  border-radius:11px;
  background:#fff;
  color:#1b2e4d;
  font:640 12.5px/1.2 Inter,ui-sans-serif,system-ui,sans-serif;
  box-shadow:none;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease;
}
#demo .quick button:not(:disabled):hover,
.boklyft-chat-window .quick button:not(:disabled):hover {
  background:#f2f5fb;border-color:#90a7d0;
  box-shadow:0 2px 8px rgba(8,20,45,.04);
}
#demo .quick button:focus-visible,
.boklyft-chat-window .quick button:focus-visible {
  outline:2px solid #355bff;outline-offset:3px;
}
#demo .quick button:disabled,
.boklyft-chat-window .quick button:disabled {
  opacity:.52;cursor:not-allowed;box-shadow:none;
}

/* Small voice action immediately above the compose field. */
#demo .bl-voice-inline,
.boklyft-chat-window .bl-voice-inline{
  display:flex!important;align-items:center;justify-content:flex-start;
  flex-wrap:wrap;gap:8px 11px;
  padding:5px 0;
  margin:1px 0 7px;
  border:0!important;border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#demo .bl-voice-inline .voice-demo-button,
.boklyft-chat-window .bl-voice-inline .voice-demo-button {
  display:inline-flex;align-items:center;justify-content:center;
  gap:8px;flex:none;
  min-width:0;min-height:44px;
  padding:9px 12px;
  border:1px solid #cad4e4!important;
  border-radius:12px!important;
  background:#f7f9fc!important;color:#152b50!important;
  font:675 12.5px/1.2 Inter,ui-sans-serif,system-ui,sans-serif;
  letter-spacing:-.01em;
  box-shadow:none;
}
.bl-voice-inline .bl-voice-mic{flex:none;width:17px;height:17px;color:#3155c6}
#demo .bl-voice-inline .voice-demo-button:not(:disabled):hover,
.boklyft-chat-window .bl-voice-inline .voice-demo-button:not(:disabled):hover {
  background:#edf2fb!important;border-color:#91a8e9!important;
}
#demo .bl-voice-inline .voice-demo-button[data-listening="true"],
.boklyft-chat-window .bl-voice-inline .voice-demo-button[data-listening="true"] {
  color:#fff!important;
  background:#19365c!important;border-color:#19365c!important;
}
.bl-voice-inline .voice-demo-button[data-listening="true"] .bl-voice-mic {
  color:#fff;animation:bl-voice-breathe 1.55s ease-in-out infinite;
}
@keyframes bl-voice-breathe {50%{opacity:.52}}
#demo .bl-voice-inline .voice-demo-status,
.boklyft-chat-window .bl-voice-inline .voice-demo-status {
  flex:1;min-width:120px;
  color:#51627b!important;
  font:480 11.5px/1.45 Inter,ui-sans-serif,system-ui,sans-serif;
  overflow-wrap:anywhere;
  margin:0;
}
#demo .bl-voice-inline .voice-demo-stop,
.boklyft-chat-window .bl-voice-inline .voice-demo-stop {
  flex:none;min-width:0;
  text-underline-offset:3px;
  color:#324f82;
  font:630 11.5px/1.4 Inter,ui-sans-serif,system-ui,sans-serif;
  padding:7px 3px;
  border:0;background:transparent;
}
.bl-voice-inline .voice-demo-stop[hidden]{display:none!important}
.bl-voice-inline .voice-demo-button:disabled{opacity:.57;cursor:not-allowed}
.bl-voice-inline .voice-demo-button:focus-visible,
.bl-voice-inline .voice-demo-stop:focus-visible{
  outline:2px solid #355bff!important;outline-offset:3px!important;
}
/* Privacy information is present and reachable but no longer a full-width
   alert-looking feature card. Kept separate from the chat demo disclosure. */
#demo .bl-voice-disclosure,
.boklyft-chat-window .bl-voice-disclosure{
  display:block;
  color:#5a6a80;
  margin:8px 3px 2px;
  padding:0;
  font:470 11px/1.5 Inter,ui-sans-serif,system-ui,sans-serif;
}
.bl-voice-disclosure summary {
  display:table;cursor:pointer;
  color:#405779;
  text-decoration:underline;
  text-decoration-color:#c1c9d8;
  text-underline-offset:3px;
}
.bl-voice-disclosure summary:focus-visible{outline:2px solid #355bff;outline-offset:3px}
.bl-voice-disclosure p{margin:8px 0 0;color:#5c6c81;max-width:60ch}

/* Composer: input and send are a single visual control. Align glyph to its
   true center; never replace submit semantics or screen-reader labels. */
#demo .chat-input,
.boklyft-chat-window .chat-input {
  position:relative;
  display:flex;
  width:100%;align-items:center;
  gap:0!important;
  margin:0;
}
#demo .chat-input input,
.boklyft-chat-window .chat-input input {
  width:100%;min-width:0;
  height:52px!important;
  padding:11px 58px 11px 17px!important;
  background:#fff!important;
  border:1px solid #acbbd0!important;
  border-radius:16px!important;
  color:#10213e!important;
  font:490 14px/1.3 Inter,ui-sans-serif,system-ui,sans-serif!important;
  box-shadow:none!important;
  outline:none;
  transition:border-color .18s ease,box-shadow .18s ease;
}
#demo .chat-input input::placeholder,
.boklyft-chat-window .chat-input input::placeholder {color:#64748b;opacity:1}
#demo .chat-input input:focus,
.boklyft-chat-window .chat-input input:focus {
  border-color:#4169d3!important;
  box-shadow:0 0 0 3px rgba(53,91,255,.12)!important;
}
#demo .chat-input button[type="submit"],
.boklyft-chat-window .chat-input button[type="submit"]{
  position:absolute!important;
  top:calc(50% + 2px)!important;right:5px!important;
  translate:0 -50%!important;
  transform:none!important;
  display:grid!important;place-items:center!important;
  width:44px!important;height:44px!important;min-width:44px!important;
  padding:0!important;border-radius:12px!important;
  background:#edf2fa!important;
  border:1px solid #e1e7f2!important;
  color:#142b53!important;
  line-height:0!important;
  cursor:pointer;
}
#demo .chat-input button[type="submit"]::before,
.boklyft-chat-window .chat-input button[type="submit"]::before{
  display:block!important;position:static!important;
  width:19px!important;height:19px!important;
  margin:0!important;
  transform:translate(-1px,1.5px)!important;
  background-position:center center!important;
  background-size:19px 19px!important;
}
#demo .chat-input button[type="submit"]:not(:disabled):hover,
.boklyft-chat-window .chat-input button[type="submit"]:not(:disabled):hover{
  background:#e0e9ff!important;border-color:#b9cbf8!important;
}
#demo .chat-input button[type="submit"]:disabled,
.boklyft-chat-window .chat-input button[type="submit"]:disabled{
  cursor:not-allowed;opacity:.5!important;
}
/* A single quiet disclosure remains, with actual data limitations intact. */
#demo .demo-privacy,
.boklyft-chat-window .demo-privacy {
  margin:8px 2px 0;
  padding:0!important;
  color:#66768d;
  font-size:10.5px;line-height:1.55;
}

/* Prevent fake card artwork from taking over the visitor's first chat view. */
.boklyft-chat-window .chat-top .bl-demo-brand-context{
  color:#596981;font-size:10.5px;
}
@media(max-width:640px){
  .boklyft-chat-window .chat{padding:17px 15px 15px!important}
  .boklyft-chat-window .chat-top{padding-bottom:11px}
  .boklyft-chat-window .bl-chat-welcome{padding:16px 1px}
  .boklyft-chat-window .bl-chat-welcome h2{font-size:27px}
  .boklyft-chat-window .messages{gap:9px!important}
  #demo .bl-voice-inline,.boklyft-chat-window .bl-voice-inline{gap:6px 9px}
  #demo .bl-voice-inline .voice-demo-status,
  .boklyft-chat-window .bl-voice-inline .voice-demo-status{min-width:98px;font-size:11px}
  #demo .chat-input input,.boklyft-chat-window .chat-input input{height:51px!important}
}
@media(max-width:360px){
  #demo .bl-voice-inline,.boklyft-chat-window .bl-voice-inline{align-items:flex-start}
  #demo .bl-voice-inline .voice-demo-status,
  .boklyft-chat-window .bl-voice-inline .voice-demo-status{flex-basis:calc(100% - 150px);margin-top:6px}
}
@media(prefers-reduced-motion:reduce){
  .bl-voice-inline .bl-voice-mic{animation:none!important}
  #demo .chat-input input,.boklyft-chat-window .chat-input input,
  #demo .quick button,.boklyft-chat-window .quick button{transition:none!important}
}

/* Real send affordance: visibly actionable only with nonempty input.
   Stable geometry; optical adjustment deliberately moves the glyph DOWN. */
@supports selector(form:has(input:not(:placeholder-shown))) {
  #demo form.chat-input:has(input:not(:placeholder-shown)) button[type="submit"]:not(:disabled),
  .boklyft-chat-window form.chat-input:has(input:not(:placeholder-shown)) button[type="submit"]:not(:disabled) {
    background:#355bff!important;
    border-color:#355bff!important;
    color:#fff!important;
  }
  #demo form.chat-input:has(input:not(:placeholder-shown)) button[type="submit"]:not(:disabled)::before,
  .boklyft-chat-window form.chat-input:has(input:not(:placeholder-shown)) button[type="submit"]:not(:disabled)::before{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 2-7 20-4-9-9-4Z'/%3E%3Cpath d='M22 2 11 13'/%3E%3C/svg%3E")!important;
  }
  #demo form.chat-input:has(input:not(:placeholder-shown)) button[type="submit"]:not(:disabled):hover,
  .boklyft-chat-window form.chat-input:has(input:not(:placeholder-shown)) button[type="submit"]:not(:disabled):hover{
    background:#2449dd!important;border-color:#2449dd!important;
  }
}
/* Make the state explanation clear without increasing the module's height. */
#demo .bl-voice-inline .voice-demo-status,
.boklyft-chat-window .bl-voice-inline .voice-demo-status {
  max-width:36ch;
}
@media(max-width:640px){
  #demo .chat-input button[type="submit"],
  .boklyft-chat-window .chat-input button[type="submit"]{
    top:calc(50% + 1px)!important;
  }
}

/* R3: single visual hierarchy for the compact demo chat. */
#demo .chat-top,
.boklyft-chat-window .chat-top {
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;min-width:0;
}
#demo .chat-brand,
.boklyft-chat-window .chat-brand {
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr);
  grid-template-rows:auto auto;
  column-gap:10px;row-gap:1px;
  align-items:center;justify-content:start;
  min-width:0;flex:1;
  flex-wrap:initial!important;
}
#demo .chat-brand .chat-monogram,
.boklyft-chat-window .chat-brand .chat-monogram {
  grid-column:1;grid-row:1/span 2;
  justify-self:center;align-self:center;
  width:34px;height:34px;display:grid;place-items:center;
}
#demo .chat-brand > span:not(.chat-monogram),
.boklyft-chat-window .chat-brand > span:not(.chat-monogram){
  grid-column:2;grid-row:1;
  min-width:0;font-size:14px;letter-spacing:-.012em;
  color:#0e1e38;line-height:1.2;
}
#demo .chat-brand > .bl-demo-brand-context,
.boklyft-chat-window .chat-brand > .bl-demo-brand-context{
  grid-column:2;grid-row:2;flex:none!important;
  margin:0!important;padding:0;min-width:0;
  display:block;line-height:1.3;
  font:510 11px/1.35 Inter,ui-sans-serif,system-ui,sans-serif;
  color:#54647c!important;
  white-space:normal;overflow-wrap:break-word;
}
#demo .chat-top .online,
.boklyft-chat-window .chat-top .online {
  margin:0;flex:0 0 auto;
  align-self:center;
  font-size:10.5px;letter-spacing:0;white-space:nowrap;
}
.boklyft-chat-window .chat-top .online{
  color:#344963;
}
#demo .bl-voice-inline,
.boklyft-chat-window .bl-voice-inline{
  flex-wrap:wrap;
  align-items:center;
  gap:7px 9px;
  margin:0 0 6px;
  padding:4px 0;
}
#demo .bl-voice-inline .voice-demo-button,
.boklyft-chat-window .bl-voice-inline .voice-demo-button{
  min-height:44px;
  font-size:12px;
  border-color:#c7d3e4!important;
  background:#fff!important;
}
#demo .bl-voice-inline .voice-demo-status,
.boklyft-chat-window .bl-voice-inline .voice-demo-status{
  min-width:90px;max-width:none;
  flex:1 1 90px;
  line-height:1.4;
  font-size:11.5px;
  color:#40536f!important;
}
#demo .bl-voice-inline .voice-demo-stop,
.boklyft-chat-window .bl-voice-inline .voice-demo-stop{
  font-size:11px;
  white-space:nowrap;
  margin-left:auto;
  padding:8px 1px;
  color:#244778;
}
#demo .bl-voice-disclosure,
.boklyft-chat-window .bl-voice-disclosure{
  margin:4px 2px 0;
  font-size:11px;
  line-height:1.5;
}
#demo .bl-voice-disclosure summary,
.boklyft-chat-window .bl-voice-disclosure summary{
  font-size:11px;
  text-underline-offset:3px;
}
#demo .bl-voice-disclosure p,
.boklyft-chat-window .bl-voice-disclosure p{
  margin:9px 0 8px;
  max-width:57ch;line-height:1.55;
  font-size:11px;color:#41536d;
}
#demo .bl-voice-settings,
.boklyft-chat-window .bl-voice-settings{
  display:flex;align-items:center;gap:11px;
  flex-wrap:wrap;margin:10px 0 2px;
  padding-top:10px;border-top:1px solid #e3e9f1;
}
#demo .bl-voice-settings label,
.boklyft-chat-window .bl-voice-settings label{
  font:650 11.5px/1.3 Inter,ui-sans-serif,system-ui,sans-serif;
  color:#243950;
}
#demo .bl-voice-preset,
.boklyft-chat-window .bl-voice-preset {
  appearance:auto;min-height:40px;max-width:190px;
  border:1px solid #b9c9dd;border-radius:9px;
  padding:8px 12px;background:#fff;color:#122945;
  font:550 12px/1.3 Inter,ui-sans-serif,system-ui,sans-serif;
}
#demo .bl-voice-preset:focus-visible,
.boklyft-chat-window .bl-voice-preset:focus-visible{
  outline:2px solid #355bff;outline-offset:3px;
}
#demo .demo-privacy,
.boklyft-chat-window .demo-privacy{
  margin:9px 2px 0;padding:0;
  font-size:11px;line-height:1.48;
  color:#54657b;
}
.boklyft-chat-window .messages{gap:11px!important}
.boklyft-chat-window .msg.bot{background:#f6f7f9;border-color:#e8edf2}
.boklyft-chat-window .msg.user{background:#132743}
/* Prevent unexpected tall disclosure from covering the send control on small screens. */
@media(max-width:440px){
  #demo .chat-brand > .bl-demo-brand-context,
  .boklyft-chat-window .chat-brand > .bl-demo-brand-context{font-size:10px}
  #demo .chat-top .online,.boklyft-chat-window .chat-top .online{font-size:10px}
  #demo .bl-voice-inline .voice-demo-status,
  .boklyft-chat-window .bl-voice-inline .voice-demo-status{min-width:72px;flex-basis:75px}
}
@media(prefers-reduced-motion:reduce){
  #demo .bl-voice-preset,.boklyft-chat-window .bl-voice-preset{scroll-behavior:auto}
}
