/*
 * Canonical widget presentation shared by the SaaS preview and every connected
 * WordPress widget. Keep shared visual changes in this file only.
 */
.chatboot-toggle,
.widget-launcher-preview-panel .saas-launcher-preview {
  align-items:center;
  background:var(--chatboot-accent,var(--preview-accent,var(--preview-primary,#2563eb)));
  border:0;
  border-radius:999px;
  box-shadow:0 12px 32px rgba(0,0,0,.28);
  box-sizing:border-box;
  color:#fff;
  cursor:pointer;
  display:inline-flex;
  font-family:Arial,sans-serif;
  font-size:13.3333px;
  font-weight:700;
  gap:10px;
  line-height:normal;
  margin:0;
  min-height:52px;
  padding:7px 16px 7px 7px;
  position:relative;
  z-index:1;
}

.chatboot-toggle::before,
.widget-launcher-preview-panel .saas-launcher-preview::before {
  animation:chatbootPulse 1.9s ease-out infinite;
  background:color-mix(in srgb,var(--chatboot-primary,var(--preview-primary,#2563eb)) 35%,transparent);
  border-radius:inherit;
  content:"";
  inset:0;
  position:absolute;
  z-index:-1;
}

.widget-launcher-preview-panel .saas-launcher-minimized-preview,
.widget-launcher-preview-panel .saas-launcher-preview.is-icon-only {
  border-radius:5px 26px 26px 26px;
  min-height:52px;
  padding:7px;
  width:52px;
}

.saas-launcher-avatar-wrap,
.saas-launcher-avatar-wrap img,
.chatboot-toggle-avatar-wrap,
.chatboot-toggle-avatar-wrap .chatboot-avatar {
  border-radius:50%;
  box-sizing:content-box;
  display:block;
  flex:0 0 auto;
  height:38px;
  width:38px;
}

.saas-launcher-avatar-wrap,
.chatboot-toggle-avatar-wrap { overflow:hidden; }

.saas-launcher-avatar-wrap img,
.chatboot-toggle-avatar-wrap .chatboot-avatar {
  background:#f8fafc;
  object-fit:cover;
}

.chatboot-launcher-tooltip,
.saas-launcher-tooltip-preview {
  backface-visibility:hidden;
  bottom:calc(100% + 16px);
  box-sizing:content-box;
  opacity:0;
  position:absolute;
  right:0;
  transform:perspective(800px) translateZ(-110px) rotateX(-88deg) scale(.78);
  transform-origin:calc(100% - 29px) calc(100% + 9px);
  visibility:hidden;
  white-space:nowrap;
  will-change:opacity,transform;
  z-index:3;
}

.chatboot-launcher-tooltip-open,
.saas-launcher-tooltip-open-preview {
  align-items:center;
  background:#fff;
  border:1px solid #eceef1;
  border-radius:999px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
  box-sizing:border-box;
  color:#7b818a;
  cursor:pointer;
  display:inline-flex;
  filter:drop-shadow(0 10px 13px rgba(15,23,42,.13));
  flex-direction:column;
  font-family:Arial,sans-serif;
  font-size:13.3333px;
  font-weight:400;
  gap:4px;
  margin:0;
  max-width:min(280px,calc(100vw - 40px));
  min-height:42px;
  min-width:156px;
  padding:11px 22px;
  position:relative;
  text-align:center;
  white-space:normal;
  width:156px;
}

.chatboot-launcher-tooltip-title,
.saas-launcher-tooltip-title-preview {
  box-sizing:content-box;
  font:italic 600 14px/1 Arial,sans-serif;
  white-space:nowrap;
}

.chatboot-launcher-tooltip-description,
.saas-launcher-tooltip-description-preview {
  box-sizing:content-box;
  font:normal 400 12px/1.35 Arial,sans-serif;
  max-width:240px;
}

.chatboot-launcher-tooltip-description:empty,
.saas-launcher-tooltip-description-preview:empty { display:none; }

.chatboot-launcher-tooltip-open::after,
.saas-launcher-tooltip-open-preview::after {
  background:#fff;
  border:0;
  bottom:auto;
  clip-path:polygon(0 0,100% 0,72% 100%);
  content:"";
  filter:none;
  height:33px;
  position:absolute;
  right:18px;
  top:calc(100% - 20px);
  transform:none;
  width:18px;
  z-index:-1;
}

.chatboot-launcher-tooltip-open:hover,
.chatboot-launcher-tooltip-open:focus-visible,
.saas-launcher-tooltip-open-preview:hover,
.saas-launcher-tooltip-open-preview:focus-visible {
  background:#fff;
  border-color:transparent;
  color:var(--chatboot-primary,var(--preview-primary,#2563eb));
  outline:none;
}

.chatboot-launcher-tooltip-open:hover::after,
.chatboot-launcher-tooltip-open:focus-visible::after,
.saas-launcher-tooltip-open-preview:hover::after,
.saas-launcher-tooltip-open-preview:focus-visible::after { filter:none; }

.chatboot-launcher-tooltip-dismiss,
.saas-launcher-tooltip-dismiss-preview {
  align-items:center;
  background:#fff;
  border:1px solid #eceef1;
  border-radius:50%;
  box-shadow:0 0 9px rgba(15,23,42,.14),inset 0 1px 0 rgba(255,255,255,.9);
  color:#3f454d;
  cursor:pointer;
  display:inline-flex;
  font:700 18px/1 Arial,sans-serif;
  height:27px;
  justify-content:center;
  left:5px;
  margin:0;
  padding:0 0 2px;
  position:absolute;
  top:0;
  width:27px;
  z-index:2;
}

.chatboot-launcher-tooltip-dismiss:hover,
.chatboot-launcher-tooltip-dismiss:focus-visible,
.saas-launcher-tooltip-dismiss-preview:hover,
.saas-launcher-tooltip-dismiss-preview:focus-visible {
  background:#fff;
  border-color:color-mix(in srgb,var(--chatboot-primary,var(--preview-primary,#2563eb)) 35%,#eceef1);
  color:var(--chatboot-primary,var(--preview-primary,#2563eb));
  outline:none;
}

.chatboot-widget.chatboot-ready:not(.chatboot-seen):not(.chatboot-open) .chatboot-launcher-tooltip,
.widget-launcher-preview-panel.is-preview-entering:not(.preview-seen) .saas-launcher-tooltip-preview {
  animation:chatbootTooltipReveal 1.02s cubic-bezier(.24,.68,.28,1) 1s forwards;
  visibility:visible;
}

.chatboot-seen .chatboot-launcher-tooltip,
.chatboot-open .chatboot-launcher-tooltip,
.widget-launcher-preview-panel.preview-seen .saas-launcher-tooltip-preview { display:none; }

.chatboot-seen .chatboot-toggle::before { animation:none; display:none; }
.chatboot-open .chatboot-toggle { animation:none; display:none; }
.widget-launcher-preview-panel.preview-seen .saas-launcher-preview::before { animation:none; opacity:0; }

@keyframes chatbootTooltipReveal {
  0% { opacity:0; transform:perspective(800px) translateZ(-110px) rotateX(-88deg) scale(.78); }
  100% { opacity:1; transform:perspective(800px) translateZ(0) rotateX(0deg) scale(1); }
}

@keyframes chatbootPulse {
  0% { opacity:.78; transform:scale(1); }
  55% { opacity:.38; }
  100% { opacity:0; transform:scale(1.38); }
}

@media (prefers-reduced-motion:reduce) {
  .chatboot-toggle::before,
  .widget-launcher-preview-panel .saas-launcher-preview::before { animation:none; }

  .chatboot-widget.chatboot-ready:not(.chatboot-seen):not(.chatboot-open) .chatboot-launcher-tooltip,
  .widget-launcher-preview-panel.is-preview-entering:not(.preview-seen) .saas-launcher-tooltip-preview {
    animation:none;
    opacity:1;
    transform:perspective(800px) translateZ(0) rotateX(0deg) scale(1);
  }
}

@media (min-width:769px) {
  .chatboot-widget.chatboot-desktop-icon-only .chatboot-toggle {
    border-radius:5px 26px 26px 26px;
    min-height:52px;
    padding:7px;
    width:52px;
  }
  .chatboot-widget.chatboot-desktop-icon-only .chatboot-toggle > span:not(.chatboot-toggle-avatar-wrap) { display:none; }
}

@media (max-width:768px) {
  .chatboot-widget.chatboot-mobile-icon-only .chatboot-toggle {
    border-radius:5px 26px 26px 26px;
    min-height:52px;
    padding:7px;
    width:52px;
  }
  .chatboot-widget.chatboot-mobile-icon-only .chatboot-toggle > span:not(.chatboot-toggle-avatar-wrap) { display:none; }
}

/* Initial-screen multilingual information: one exact style in both runtimes. */
.chatboot-language-welcome,
.saas-chat-preview-language-welcome {
  border-top:1px solid rgba(148,163,184,.2);
  margin-top:18px;
  padding-top:14px;
  width:100%;
}

.chatboot-language-welcome[hidden],
.saas-chat-preview-language-welcome[hidden] { display:none; }

.chatboot-language-greetings,
.saas-chat-preview-language-greetings {
  display:grid;
  gap:5px;
  margin:0 auto 10px;
  max-width:300px;
}

.chatboot-language-greetings p,
.saas-chat-preview-language-greetings p {
  color:#64748b;
  font-size:12px;
  margin:0;
}

.chatboot-language-badges,
.saas-chat-preview-language-badges {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  justify-content:center;
  pointer-events:none;
  user-select:none;
}

.chatboot-language-badge,
.saas-chat-preview-language-badge {
  align-items:center;
  background:color-mix(in srgb,var(--chatboot-primary,var(--preview-primary,#2563eb)) 5%,var(--chatboot-surface,var(--preview-bg,#fff)));
  border:1px solid rgba(100,116,139,.28);
  border-radius:999px;
  box-sizing:border-box;
  color:var(--chatboot-text,var(--preview-text,#1f2937));
  display:inline-flex;
  font-size:12px;
  gap:5px;
  min-height:32px;
  padding:5px 10px;
}

.chatboot-language-flag,
.saas-chat-preview-language-flag {
  display:block;
  flex:0 0 auto;
  height:12px;
  object-fit:contain;
  width:16px;
}

.saas-chat-preview img.saas-chat-preview-language-flag {
  border-radius:0;
  height:12px;
  width:16px;
}

/* Header and empty-state geometry shared with the WordPress widget preview. */
.chatboot-header,
.saas-chat-preview-header,
.saas-chat-preview .saas-chat-preview-header {
  align-items:center;
  background:var(--chatboot-surface,var(--preview-bg,#fff));
  border-bottom:1px solid rgba(148,163,184,.22);
  border-top:4px solid var(--chatboot-primary,var(--preview-primary,#2563eb));
  box-sizing:border-box;
  color:var(--chatboot-text,var(--preview-text,#1f2937));
  display:flex;
  flex:0 0 78px;
  gap:10px;
  height:78px;
  justify-content:space-between;
  min-height:78px;
  padding:0 16px;
}
.chatboot-header-identity,
.saas-chat-preview-header-identity { align-items:center; display:flex; gap:10px; min-width:0; }
.chatboot-header-identity .chatboot-avatar,
.saas-chat-preview-header-identity img { height:46px; width:46px; }
.chatboot-header strong,
.chatboot-header span,
.saas-chat-preview-header strong,
.saas-chat-preview-header span { display:block; }
.chatboot-header strong,
.saas-chat-preview-header strong { line-height:1.2; }
.chatboot-header > .chatboot-header-identity > div > span,
.saas-chat-preview-header > .saas-chat-preview-header-identity > div > span { align-items:center; color:#6b7280; display:flex; font-size:12px; gap:5px; }
.chatboot-header > .chatboot-header-identity > div > span i,
.saas-chat-preview-header > .saas-chat-preview-header-identity > div > span i { background:#22c55e; border-radius:50%; display:inline-block; height:8px; width:8px; }
.chatboot-header-actions,
.saas-chat-preview-header-actions { align-items:center; display:flex; gap:4px; }
.chatboot-header button,
.saas-chat-preview-header button { margin:0; }
.chatboot-expand,
.chatboot-cart-button,
.chatboot-clear,
.chatboot-close,
.saas-chat-preview-header-actions button,
.saas-chat-preview-cart-button { align-items:center; background:transparent; border:0; border-radius:50%; color:#6b7280; cursor:pointer; display:inline-flex; font-size:16px; font-weight:700; height:34px; justify-content:center; padding:0; width:34px; }
.chatboot-expand svg,
.chatboot-cart-button svg,
.chatboot-clear svg,
.saas-chat-preview-header-actions svg,
.saas-chat-preview-cart-button svg { fill:none; height:17px; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; width:17px; }
.chatboot-cart-button,
.saas-chat-preview-cart-button { flex:0 0 auto; height:42px; width:42px; }
.saas-chat-preview-cart-button[hidden] { display:none !important; }
.chatboot-header-identity .chatboot-cart-button svg,
.saas-chat-preview-header-identity .saas-chat-preview-cart-button svg { height:23px; stroke-width:1.9; width:23px; }
.saas-chat-preview-header-actions button:hover,
.saas-chat-preview-header-actions button:focus-visible,
.saas-chat-preview-cart-button:hover,
.saas-chat-preview-cart-button:focus-visible { background:rgba(148,163,184,.14); color:var(--preview-primary,#2563eb); }
.chatboot-close,
.saas-chat-preview-close { font-size:22px; line-height:1; }
.chatboot-empty-state,
.saas-chat-preview-empty { align-items:center; color:#475569; display:flex; flex:1 1 auto; flex-direction:column; justify-content:center; min-height:280px; padding:24px 14px; text-align:center; }
.chatboot-empty-state > span,
.saas-chat-preview-empty > span { align-items:center; background:#eef2f7; border-radius:50%; color:#18181b; display:inline-flex; font-size:28px; font-weight:800; height:58px; justify-content:center; margin-bottom:14px; width:58px; }
.chatboot-empty-state strong,
.saas-chat-preview-empty strong { color:#0f172a; display:block; font-size:18px; line-height:1.25; }
.chatboot-empty-state p,
.saas-chat-preview-empty p { font-size:14px; line-height:1.45; margin:8px auto 0; max-width:300px; }

/* Canonical composer and send button shared by SaaS preview and WordPress. */
.chatboot-form,
.saas-chat-preview-form {
  border-top:1px solid rgba(148,163,184,.22);
  flex:0 0 auto;
  padding:12px 14px 14px;
}

.chatboot-form-row {
  align-items:center;
  display:flex;
  gap:8px;
  min-width:0;
}

.chatboot-composer,
.saas-chat-preview-compose {
  align-items:center;
  background:var(--chatboot-surface,var(--preview-bg,#fff));
  border:1px solid #eceef1;
  border-radius:999px;
  box-shadow:0 10px 28px rgba(15,23,42,.13),inset 0 1px 0 rgba(255,255,255,.9);
  box-sizing:border-box;
  display:flex;
  gap:4px;
  margin:0;
  min-height:52px;
  padding:6px 10px 6px 18px;
}

.chatboot-composer {
  flex:1 1 auto;
  min-width:0;
  overflow:visible;
  position:relative;
}

.chatboot-form input,
.saas-chat-preview-compose > span {
  background:transparent;
  border:0;
  box-shadow:none;
  color:var(--chatboot-text,var(--preview-text,#1f2937));
  flex:1;
  font-size:14px;
  min-width:0;
  outline:none;
  padding:8px 2px;
}

.chatboot-form input {
  background:#fff !important;
}

.chatboot-form input:focus {
  border:0;
  box-shadow:none;
  outline:none;
}

.chatboot-form input::placeholder,
.saas-chat-preview-compose > span {
  color:#a0a4aa;
  font-style:italic;
}

.chatboot-send,
.chatboot-voice,
.chatboot-live,
.saas-chat-preview-send {
  align-items:center;
  border:0;
  border-radius:50%;
  cursor:pointer;
  display:inline-flex;
  flex:0 0 auto;
  height:36px;
  justify-content:center;
  margin:0 3px 0 0;
  padding:0;
  width:36px;
}

.chatboot-send,
.saas-chat-preview-send,
.saas-chat-preview-send:hover {
  background:var(--chatboot-accent,var(--preview-accent,var(--preview-primary,#2563eb)));
  box-shadow:0 5px 14px rgba(15,23,42,.2);
  color:#fff;
  height:40px;
  margin-right:3px;
  width:40px;
}

.chatboot-voice {
  background:transparent;
  border:1px solid transparent;
  box-shadow:none;
  color:var(--chatboot-primary);
  height:40px;
  touch-action:manipulation;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease,width .16s ease,height .16s ease;
  user-select:none;
  -webkit-user-select:none;
  width:40px;
}

.chatboot-live {
  background:#fff;
  border:1px solid color-mix(in srgb,var(--chatboot-primary) 48%,#fff);
  color:var(--chatboot-primary);
  height:38px;
  position:relative;
  transition:background .16s ease,border-color .16s ease,opacity .16s ease;
  width:38px;
}

.chatboot-live:hover:not(:disabled),
.chatboot-live:focus-visible {
  background:#f8fafc;
  border-color:var(--chatboot-primary);
}

.chatboot-live:disabled {
  cursor:not-allowed;
  opacity:.48;
}

.chatboot-live[hidden] {
  display:none;
}

.chatboot-live svg {
  fill:none;
  height:19px;
  stroke:currentColor;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-width:1.7;
  width:19px;
}

.chatboot-live-badge {
  background:var(--chatboot-primary);
  border:1px solid #fff;
  border-radius:4px;
  bottom:-2px;
  color:#fff;
  font-size:6px;
  font-weight:800;
  line-height:1;
  padding:2px;
  position:absolute;
  right:-3px;
}

.chatboot-voice:hover,
.chatboot-voice:focus-visible {
  background:#f8fafc;
  border-color:var(--chatboot-primary);
}

.chatboot-voice.is-recording {
  background:var(--chatboot-primary);
  border-color:var(--chatboot-primary);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--chatboot-primary) 18%,transparent),0 8px 20px color-mix(in srgb,var(--chatboot-primary) 28%,transparent);
  color:#fff;
  height:48px;
  position:relative;
  transform:scale(1.28);
  transform-origin:center;
  width:48px;
  z-index:4;
}

.chatboot-voice.is-transcribing {
  cursor:wait;
  opacity:.65;
}

.chatboot-voice[hidden] {
  display:none;
}

.chatboot-send[hidden] {
  display:none;
}

.chatboot-voice:disabled {
  cursor:wait;
  opacity:.55;
}

.chatboot-send svg,
.chatboot-voice svg,
.chatboot-live svg,
.saas-chat-preview-send svg {
  fill:none;
  height:18px;
  stroke:currentColor;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-width:1.8;
  width:18px;
}

.chatboot-send:disabled {
  cursor:wait;
  opacity:.55;
}

.chatboot-voice-wave {
  align-items:center;
  display:none;
  gap:2px;
  height:20px;
  pointer-events:none;
}

.chatboot-voice.is-recording .chatboot-voice-wave {
  display:inline-flex;
}

.chatboot-voice-wave i {
  animation:chatbootVoiceWave .72s ease-in-out infinite alternate;
  background:currentColor;
  border-radius:2px;
  display:block;
  height:8px;
  width:2px;
}

.chatboot-voice-wave i:nth-child(2) { animation-delay:-.48s; height:13px; }
.chatboot-voice-wave i:nth-child(3) { animation-delay:-.24s; height:18px; }
.chatboot-voice-wave i:nth-child(4) { animation-delay:-.56s; height:12px; }
.chatboot-voice-wave i:nth-child(5) { animation-delay:-.12s; height:7px; }

.chatboot-voice-recording {
  align-items:center;
  background:var(--chatboot-surface,#fff);
  border-radius:inherit;
  display:flex;
  gap:7px;
  inset:3px;
  padding:3px 5px 3px 6px;
  pointer-events:none;
  position:absolute;
  z-index:3;
}

.chatboot-voice-recording[hidden] {
  display:none;
}

.chatboot-voice-recording-content {
  align-items:center;
  display:flex;
  flex:1 1 auto;
  gap:7px;
  min-width:0;
  overflow:hidden;
}

.chatboot-voice-recording-status {
  color:var(--chatboot-text,#1f2937);
  flex:0 0 auto;
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
}

.chatboot-voice-recording-timer {
  color:var(--chatboot-primary);
  flex:0 0 auto;
  font-size:13px;
  font-variant-numeric:tabular-nums;
  font-weight:800;
  min-width:31px;
  white-space:nowrap;
}

.chatboot-voice-recording-timer-ms {
  font-size:.72em;
  opacity:.52;
}

.chatboot-voice-recording-wave {
  align-items:center;
  display:flex;
  flex:1 1 auto;
  gap:2px;
  height:24px;
  justify-content:center;
  min-width:42px;
  overflow:hidden;
}

.chatboot-voice-recording-wave i {
  background:var(--chatboot-primary);
  border-radius:3px;
  display:block;
  height:calc(7px + (var(--chatboot-voice-level, .45) * 17px));
  max-height:22px;
  min-height:5px;
  opacity:.86;
  transition:height .1s ease,opacity .1s ease;
  width:3px;
}

.chatboot-voice-recording-wave i:nth-child(2),
.chatboot-voice-recording-wave i:nth-child(6) { height:calc(10px + (var(--chatboot-voice-level, .45) * 13px)); }
.chatboot-voice-recording-wave i:nth-child(3),
.chatboot-voice-recording-wave i:nth-child(5) { height:calc(6px + (var(--chatboot-voice-level, .45) * 19px)); }
.chatboot-voice-recording-wave i:nth-child(4) { height:calc(12px + (var(--chatboot-voice-level, .45) * 11px)); }

.chatboot-voice-recording-hint {
  color:#64748b;
  flex:0 0 auto;
  font-size:10px;
  white-space:nowrap;
}

.chatboot-voice-recording-cancel,
.chatboot-voice-recording-submit {
  align-items:center;
  border-radius:50%;
  cursor:pointer;
  display:inline-flex;
  flex:0 0 36px;
  height:36px;
  justify-content:center;
  padding:0;
  pointer-events:auto;
  width:36px;
}

.chatboot-voice-recording-cancel {
  background:transparent;
  border:1px solid #fca5a5;
  color:#dc2626;
}

.chatboot-voice-recording-cancel:hover,
.chatboot-voice-recording-cancel:focus-visible {
  background:#dc2626;
  border-color:#dc2626;
  color:#fff;
  transform:scale(1.08);
}

.chatboot-voice-recording-submit {
  background:var(--chatboot-accent,var(--preview-accent,var(--preview-primary,#2563eb)));
  border:0;
  box-shadow:0 5px 14px rgba(15,23,42,.2);
  color:#fff;
}

.chatboot-voice-recording-cancel svg,
.chatboot-voice-recording-submit svg {
  fill:none;
  height:17px;
  stroke:currentColor;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-width:1.9;
  width:17px;
}

.chatboot-voice-recording-submit[hidden],
.chatboot-voice-recording-cancel[hidden] {
  display:none;
}

.chatboot-composer.is-voice-transcribing .chatboot-voice-recording {
  opacity:.78;
}

@media (prefers-reduced-motion: reduce) {
  .chatboot-voice-recording-wave i,
  .chatboot-voice-recording-cancel,
  .chatboot-voice,
  .chatboot-voice-recording-cancel,
  .chatboot-voice-recording-submit {
    transition:none;
  }
}

@keyframes chatbootVoiceWave {
  from { opacity:.58; transform:scaleY(.55); }
  to { opacity:1; transform:scaleY(1.15); }
}

.chatboot-audio-control {
  align-items:stretch;
  display:flex;
  flex-direction:column;
  gap:5px;
  margin:8px 0 0;
  min-width:170px;
  width:100%;
}

.chatboot-audio-visual {
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
  width:100%;
}

.chatboot-audio-wave {
  align-items:center;
  display:flex;
  gap:3px;
  height:24px;
  justify-content:space-between;
  overflow:hidden;
  width:100%;
}

.chatboot-audio-wave i {
  background:var(--chatboot-audio-muted,#94a3b8);
  background:color-mix(in srgb,var(--chatboot-assistant-bubble,var(--chatboot-surface,#f1f5f9)) 72%,#475569 28%);
  border-radius:2px;
  display:block;
  flex:1 1 1px;
  height:calc(3px + (var(--chatboot-audio-level,.28) * var(--chatboot-audio-shape,.72) * 18px));
  max-height:22px;
  min-height:3px;
  opacity:.82;
  transform-origin:center;
  transition:background-color .12s ease,height .08s ease,opacity .12s ease;
  will-change:height,transform;
}

.chatboot-audio-wave.is-playing i {
  animation:chatbootAudioLivePulse .78s ease-in-out infinite alternate;
  animation-delay:var(--chatboot-audio-delay,0s);
}

.chatboot-audio-wave i.is-played {
  background:var(--chatboot-primary);
  opacity:1;
}

@keyframes chatbootAudioLivePulse {
  from { transform:scaleY(.68); }
  to { transform:scaleY(1.12); }
}

.chatboot-audio-timeline {
  align-items:center;
  display:grid;
  gap:7px;
  grid-template-columns:25px minmax(0,1fr) max-content;
  min-width:0;
  width:100%;
}

.chatboot-audio-track {
  background:var(--chatboot-audio-muted,#94a3b8);
  background:color-mix(in srgb,var(--chatboot-assistant-bubble,var(--chatboot-surface,#f1f5f9)) 72%,#475569 28%);
  border-radius:999px;
  height:2px;
  overflow:hidden;
  position:relative;
  width:100%;
}

.chatboot-audio-progress {
  background:var(--chatboot-primary);
  border-radius:inherit;
  height:2px;
  left:0;
  position:absolute;
  top:0;
  transform-origin:left center;
  width:0;
}

.chatboot-audio-duration {
  color:var(--chatboot-primary);
  font-size:10px;
  font-variant-numeric:tabular-nums;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
}

.chatboot-audio-duration-ms {
  font-size:.72em;
  opacity:.58;
}

.chatboot-audio-play {
  align-items:center;
  background:transparent;
  border:0;
  color:var(--chatboot-primary);
  cursor:pointer;
  display:inline-flex;
  height:25px;
  justify-content:center;
  padding:0;
  width:25px;
}

.chatboot-audio-play svg {
  fill:none;
  height:18px;
  stroke:currentColor;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-width:1.8;
  width:18px;
}

.chatboot-audio-play:disabled { cursor:wait; opacity:.6; }
.chatboot-audio-status {
  height:1px;
  margin:-1px;
  overflow:hidden;
  position:absolute;
  width:1px;
  clip:rect(0 0 0 0);
}

.saas-chat-preview-send {
  flex:0 0 40px;
  pointer-events:none;
}

@media (max-width:768px) {
  .chatboot-voice.is-recording {
    height:50px;
    width:50px;
  }

  .chatboot-voice-recording-status { display:none; }
  .chatboot-voice-recording-hint { font-size:9px; }
}
