.applebite-chatbot-root {
  --abc-color: #1767ff;
  --abc-color-secondary: #78a7ff;
  --abc-navy: #050b14;
  --abc-navy-2: #091426;
  --abc-navy-3: #0d1d36;
  --abc-ink: #f7f9ff;
  --abc-muted: #aebbd1;
  --abc-line: rgba(183, 211, 255, .19);
  --abc-line-strong: rgba(183, 211, 255, .34);
  --abc-danger: #4c8bff;
  position: fixed;
  right: 22px;
  right: max(22px, env(safe-area-inset-right));
  bottom: 22px;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 999999;
  color: var(--abc-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.applebite-chatbot-root *,
.applebite-chatbot-root *::before,
.applebite-chatbot-root *::after { box-sizing: border-box; }
.applebite-chatbot-root [hidden] { display: none !important; }
.applebite-chatbot-root.is-inline { position: relative; right: auto; bottom: auto; min-height: 650px; }
.applebite-chatbot-root button,
.applebite-chatbot-root input,
.applebite-chatbot-root textarea { font-family: inherit; }
.applebite-chatbot-root button { -webkit-tap-highlight-color: transparent; }

.abc-launcher {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 15px;
  background: linear-gradient(135deg, var(--abc-color), #0f5cf2); color: #fff;
  box-shadow: 0 16px 44px rgba(0, 53, 168, .38), inset 0 1px 0 rgba(255, 255, 255, .18);
  cursor: pointer; font-size: 15px; font-weight: 720;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.abc-launcher:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 20px 52px rgba(0, 70, 210, .46), inset 0 1px 0 rgba(255, 255, 255, .2); }
.abc-launcher span:first-child { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 9px; background: rgba(255, 255, 255, .13); }

.abc-panel {
  display: none; flex-direction: column; position: absolute; right: 0; bottom: 68px;
  width: min(410px, calc(100vw - 28px)); height: min(690px, calc(100vh - 104px)); overflow: hidden;
  border: 1px solid var(--abc-line-strong); border-radius: 24px; background: var(--abc-navy);
  box-shadow: 0 34px 90px rgba(0, 6, 18, .62), 0 0 0 1px rgba(23, 103, 255, .08); isolation: isolate;
}
.abc-panel::before { content: ""; position: absolute; z-index: -1; top: -170px; right: -150px; width: 390px; height: 390px; border-radius: 50%; background: radial-gradient(circle, rgba(23, 103, 255, .24), rgba(23, 103, 255, 0) 68%); pointer-events: none; }
.is-open .abc-panel { display: flex; animation: abc-panel-in .22s ease-out both; }
.is-inline .abc-panel { position: relative; display: flex; right: auto; bottom: auto; width: 100%; max-width: 540px; height: 650px; margin: auto; }
.is-inline .abc-launcher { display: none; }

.abc-header {
  display: flex; align-items: center; gap: 11px; min-height: 76px; padding: 14px 14px 14px 16px;
  border-bottom: 1px solid var(--abc-line);
  background: linear-gradient(135deg, rgba(23, 103, 255, .96), rgba(15, 92, 242, .82) 48%, rgba(9, 20, 38, .96));
  color: #fff; box-shadow: 0 10px 34px rgba(0, 18, 58, .24);
}
.abc-avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .32); border-radius: 14px; background: rgba(255, 255, 255, .96); color: var(--abc-color); box-shadow: 0 8px 22px rgba(0, 18, 60, .24); font-weight: 900; }
.abc-heading { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.abc-heading strong { overflow: hidden; font-size: 15px; font-weight: 760; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.abc-heading small { overflow: hidden; color: rgba(255, 255, 255, .78); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.abc-language-switch, .abc-mode-switch, .abc-stop-audio, .abc-close {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .24); border-radius: 12px; background: rgba(255, 255, 255, .09);
  color: #fff; cursor: pointer; line-height: 1; transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.abc-language-switch { font-size: 10px; font-weight: 900; letter-spacing: .04em; }
.abc-mode-switch { font-size: 15px; }
.abc-stop-audio { font-size: 11px; }
.abc-close { font-size: 24px; font-weight: 300; }
.abc-language-switch:hover, .abc-mode-switch:hover, .abc-stop-audio:hover, .abc-close:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .18); }

.abc-messages {
  flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 18px 14px 16px;
  background: radial-gradient(circle at 85% 0%, rgba(23, 103, 255, .13), transparent 35%), linear-gradient(180deg, #07101e, var(--abc-navy));
  scrollbar-color: rgba(120, 167, 255, .45) transparent; scrollbar-width: thin;
  overscroll-behavior: contain;
}
.abc-messages::-webkit-scrollbar { width: 7px; }
.abc-messages::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(120, 167, 255, .38); }
.abc-row { display: flex; margin: 0 0 11px; }
.abc-row.is-user { justify-content: flex-end; }
.abc-message-stack { display: flex; flex-direction: column; align-items: flex-start; max-width: 86%; }
.is-user .abc-message-stack { align-items: flex-end; }
.abc-speaker-label { margin: 0 4px 4px; color: #bdcbe0; font-size: 11px; font-weight: 760; line-height: 1.2; }
.is-user .abc-speaker-label { color: #dce9ff; }
.abc-bubble { max-width: 100%; padding: 11px 13px; border: 1px solid var(--abc-line); border-radius: 16px 16px 16px 5px; background: linear-gradient(145deg, rgba(17, 36, 66, .98), rgba(10, 24, 45, .98)); color: #eef4ff; box-shadow: 0 8px 24px rgba(0, 7, 20, .2); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.is-user .abc-bubble { border-color: rgba(255, 255, 255, .1); border-radius: 16px 16px 5px 16px; background: linear-gradient(135deg, var(--abc-color), #0f5cf2); color: #fff; box-shadow: 0 10px 28px rgba(0, 68, 200, .28); }
.abc-bubble a { color: #cfe1ff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.is-user .abc-bubble a { color: #fff; }
.abc-typing { padding: 5px 3px; color: var(--abc-muted); font-size: 12px; }

.abc-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: none; gap: 8px; max-height: 118px; overflow-x: hidden; overflow-y: auto; padding: 11px 12px; border-top: 1px solid var(--abc-line); background: rgba(6, 14, 27, .98); scrollbar-width: thin; }
.abc-chip { min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid rgba(120, 167, 255, .34); border-radius: 13px; background: linear-gradient(145deg, rgba(23, 103, 255, .11), rgba(255, 255, 255, .025)); color: #dce9ff; cursor: pointer; font-size: 11px; font-weight: 720; line-height: 1.25; overflow-wrap: anywhere; text-align: left; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.abc-chip:hover { transform: translateY(-1px); border-color: rgba(120, 167, 255, .72); background: linear-gradient(145deg, rgba(23, 103, 255, .26), rgba(23, 103, 255, .08)); box-shadow: 0 8px 22px rgba(0, 40, 124, .22); }

.abc-voice-bar { display: flex; align-items: center; flex: none; flex-wrap: wrap; gap: 8px; min-height: 42px; padding: 8px 12px; border-top: 1px solid var(--abc-line); background: linear-gradient(90deg, rgba(23, 103, 255, .14), rgba(9, 20, 38, .96)); }
.abc-voice-status { flex: 1; min-width: 120px; color: #bdcbe0; font-size: 11px; }
.abc-voice-status::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0; border-radius: 50%; background: #4c8bff; box-shadow: 0 0 0 4px rgba(76, 139, 255, .13); }
.abc-voice-status.is-error { color: #b7d3ff; }
.abc-voice-status.is-error::before { background: var(--abc-danger); box-shadow: 0 0 0 4px rgba(76, 139, 255, .15); }
.abc-voice-transport { flex: none; padding: 4px 8px; border: 1px solid rgba(120,167,255,.36); border-radius: 999px; background: rgba(23,103,255,.1); color: #dce9ff; font-size: 9px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.abc-voice-transport.is-connecting { border-color: rgba(120,167,255,.42); color: #bfd4ff; }
.abc-voice-transport.is-realtime { border-color: rgba(70,220,170,.52); background: rgba(25,155,115,.15); color: #bff8e2; }
.abc-voice-transport.is-fallback { border-color: rgba(255,190,92,.48); background: rgba(170,105,20,.16); color: #ffe0ae; }
.abc-play-audio, .abc-end-voice { flex: none; min-height: 44px; padding: 7px 10px; border-radius: 10px; cursor: pointer; font-size: 10px; font-weight: 800; line-height: 1.2; }
.abc-play-audio { border: 1px solid rgba(120, 167, 255, .36); background: rgba(23, 103, 255, .14); color: #dce9ff; }
.abc-end-voice { border: 1px solid rgba(120, 167, 255, .52); background: rgba(23, 103, 255, .14); color: #e7efff; }

.abc-composer { display: flex; align-items: flex-end; flex: none; gap: 8px; padding: 11px 12px 13px; border-top: 1px solid var(--abc-line); background: #07101e; }
.abc-input, .abc-field { width: 100%; border: 1px solid rgba(183, 211, 255, .22); background: rgba(255, 255, 255, .045); color: #f7f9ff; outline: none; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.abc-input { flex: 1; min-height: 46px; max-height: 112px; resize: none; border-radius: 14px; padding: 11px 13px; font-size: 14px; }
.abc-input::placeholder, .abc-field::placeholder { color: #8392aa; opacity: 1; }
.abc-input:focus, .abc-field:focus { border-color: rgba(120, 167, 255, .82); background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 3px rgba(23, 103, 255, .2); }
.abc-field[aria-invalid="true"] { border-color: #8fb9ff; box-shadow: 0 0 0 3px rgba(23, 103, 255, .22); }

.abc-send, .abc-mic { display: grid; place-items: center; flex: none; width: 46px; height: 46px; padding: 0; border-radius: 14px; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease; }
.abc-send { border: 1px solid rgba(255, 255, 255, .09); background: linear-gradient(135deg, var(--abc-color), #0f5cf2); color: #fff; box-shadow: 0 10px 26px rgba(0, 65, 196, .35); font-size: 17px; }
.abc-mic { border: 1px solid rgba(120, 167, 255, .4); background: rgba(23, 103, 255, .1); color: #9fc1ff; font-size: 18px; }
.abc-send:hover, .abc-mic:hover { transform: translateY(-1px); filter: brightness(1.1); }
.abc-mic.is-recording { border-color: rgba(120, 167, 255, .92); background: linear-gradient(135deg, #1767ff, #0f5cf2); color: #fff; animation: abc-pulse 1.2s ease-in-out infinite; }
.abc-mic.is-muted { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; animation: none; }
.abc-send:disabled, .abc-mic:disabled, .abc-primary:disabled { cursor: wait; filter: grayscale(.18); opacity: .55; transform: none; }

.abc-mode-overlay, .abc-lead-overlay { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 18px; background: rgba(1, 6, 14, .8); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.abc-lead-overlay { z-index: 5; padding: 14px; }
.abc-mode-card, .abc-lead-form { width: 100%; max-height: 100%; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border: 1px solid var(--abc-line-strong); background: radial-gradient(circle at 100% 0%, rgba(23, 103, 255, .17), transparent 36%), linear-gradient(145deg, #0d1d36, #07101e); color: #f7f9ff; box-shadow: 0 26px 70px rgba(0, 5, 15, .58); }
.abc-mode-card { max-width: 360px; padding: 23px; border-radius: 22px; }
.abc-lead-form { padding: 19px; border-radius: 20px; }
.abc-mode-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.abc-mode-card h3, .abc-lead-form h3 { margin: 0; color: #fff; letter-spacing: -.02em; }
.abc-mode-card h3 { margin-bottom: 8px; font-size: 21px; line-height: 1.25; }
.abc-lead-form h3 { margin-bottom: 14px; font-size: 18px; }
.abc-mode-description { margin: 0 0 17px; color: var(--abc-muted); font-size: 13px; }
.abc-mode-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.abc-mode-option { min-height: 82px; padding: 13px; border: 1px solid rgba(120, 167, 255, .34); border-radius: 15px; background: rgba(255, 255, 255, .035); color: #dce9ff; cursor: pointer; font-size: 13px; font-weight: 800; line-height: 1.3; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.abc-mode-option.is-voice { border-color: rgba(255, 255, 255, .1); background: linear-gradient(135deg, var(--abc-color), #0f5cf2); color: #fff; box-shadow: 0 12px 28px rgba(0, 65, 196, .28); }
.abc-mode-option:hover { transform: translateY(-2px); border-color: rgba(120, 167, 255, .76); background-color: rgba(23, 103, 255, .15); box-shadow: 0 11px 26px rgba(0, 36, 112, .28); }
.abc-mode-language { display: grid; place-items: center; min-height: 44px; margin: 0; padding: 6px 11px; border: 1px solid rgba(120, 167, 255, .36); border-radius: 10px; background: rgba(23, 103, 255, .09); color: #bfd4ff; cursor: pointer; font-size: 11px; font-weight: 800; }
.abc-mode-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 1px solid rgba(120, 167, 255, .42); border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; font-size: 25px; font-weight: 300; line-height: 1; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.abc-mode-close:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, .58); background: rgba(255, 255, 255, .14); }
.abc-voice-disclosure { margin: 17px 0 7px; padding: 10px 11px; border: 1px solid rgba(120, 167, 255, .22); border-left: 3px solid var(--abc-color); border-radius: 10px; background: rgba(23, 103, 255, .09); color: #d5e4ff; font-size: 11px; }
.abc-voice-privacy { margin: 0; color: var(--abc-muted); font-size: 10px; }
.abc-voice-privacy a { color: #b7d3ff; text-decoration: underline; text-underline-offset: 2px; }
.abc-captions-notice { margin: 7px 0 0; color: var(--abc-muted); font-size: 10px; font-style: italic; }

.abc-field-label { display: block; margin: 1px 0 5px; color: #dce9ff; font-size: 12px; font-weight: 720; }
.abc-field { margin: 0 0 9px; padding: 10px 11px; border-radius: 11px; font-size: 13px; }
.abc-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.abc-consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 5px; color: var(--abc-muted); font-size: 11px; }
.abc-consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--abc-color); }
.abc-consent a { color: #9fc1ff; text-underline-offset: 2px; }
.abc-form-feedback { min-height: 18px; margin: 8px 0; color: #b7d3ff; font-size: 12px; }
.abc-form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.abc-primary, .abc-secondary { min-height: 44px; padding: 9px 14px; border-radius: 12px; cursor: pointer; font-weight: 760; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.abc-primary { border: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(135deg, var(--abc-color), #0f5cf2); color: #fff; box-shadow: 0 10px 25px rgba(0, 65, 196, .28); }
.abc-secondary { border: 1px solid rgba(120, 167, 255, .3); background: rgba(255, 255, 255, .04); color: #dce9ff; }
.abc-primary:hover, .abc-secondary:hover { transform: translateY(-1px); border-color: rgba(120, 167, 255, .68); }

.abc-quote-row { display: block; }
.abc-quote-card { width: 100%; padding: 15px; border: 1px solid rgba(120, 167, 255, .34); border-left: 4px solid var(--abc-color); border-radius: 16px; background: linear-gradient(145deg, rgba(17, 36, 66, .98), rgba(8, 20, 38, .98)); box-shadow: 0 12px 28px rgba(0, 7, 20, .28); }
.abc-quote-card h4 { margin: 0 0 5px; color: #fff; font-size: 15px; line-height: 1.35; }
.abc-quote-description { margin: 0 0 12px; color: var(--abc-muted); font-size: 12px; }
.abc-quote-label, .abc-prepared-label { display: block; margin: 0 0 6px; color: #cfe1ff; font-size: 11px; }
.abc-quote-summary { max-height: 180px; overflow: auto; margin: 0; padding: 11px; border: 1px solid var(--abc-line); border-radius: 11px; background: rgba(0, 7, 19, .42); color: #e7efff; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.abc-quote-actions { display: grid; grid-template-columns: 1fr 1.45fr; gap: 8px; margin-top: 11px; }
.abc-quote-actions button { font-size: 11px; line-height: 1.25; }
.abc-prepared-summary { min-height: 118px; background: rgba(0, 7, 19, .42); color: #e7efff; cursor: default; font-size: 11px; line-height: 1.5; }
.abc-summary-edit { display: block; margin: -2px 0 9px auto; padding: 5px 0; border: 0; background: transparent; color: #9fc1ff; cursor: pointer; font-size: 11px; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.abc-quote-edit-overlay { z-index: 6; }
.abc-quote-edit-field { min-height: 210px; line-height: 1.5; }

.abc-language-switch:focus-visible, .abc-mode-switch:focus-visible, .abc-stop-audio:focus-visible,
.abc-close:focus-visible, .abc-launcher:focus-visible, .abc-chip:focus-visible, .abc-mic:focus-visible,
.abc-send:focus-visible, .abc-mode-option:focus-visible, .abc-mode-language:focus-visible, .abc-mode-close:focus-visible,
.abc-play-audio:focus-visible, .abc-end-voice:focus-visible, .abc-primary:focus-visible, .abc-secondary:focus-visible,
.abc-summary-edit:focus-visible { outline: 3px solid #9fc1ff; outline-offset: 3px; }

/* Keep WordPress themes and page builders from recoloring the widget controls. */
.applebite-chatbot-root .abc-launcher,
.applebite-chatbot-root .abc-language-switch,
.applebite-chatbot-root .abc-mode-switch,
.applebite-chatbot-root .abc-stop-audio,
.applebite-chatbot-root .abc-close,
.applebite-chatbot-root .abc-chip,
.applebite-chatbot-root .abc-play-audio,
.applebite-chatbot-root .abc-end-voice,
.applebite-chatbot-root .abc-send,
.applebite-chatbot-root .abc-mic,
.applebite-chatbot-root .abc-mode-option,
.applebite-chatbot-root .abc-mode-language,
.applebite-chatbot-root .abc-mode-close,
.applebite-chatbot-root .abc-primary,
.applebite-chatbot-root .abc-secondary,
.applebite-chatbot-root .abc-summary-edit {
  -webkit-appearance: none;
  appearance: none;
}
.applebite-chatbot-root .abc-launcher { border-color: rgba(255,255,255,.08); color: #fff; }
.applebite-chatbot-root .abc-language-switch,
.applebite-chatbot-root .abc-mode-switch,
.applebite-chatbot-root .abc-stop-audio,
.applebite-chatbot-root .abc-close { border-color: rgba(255,255,255,.24); color: #fff; }
.applebite-chatbot-root .abc-chip { border-color: rgba(120,167,255,.34); color: #dce9ff; }
.applebite-chatbot-root .abc-play-audio { border-color: rgba(120,167,255,.36); color: #dce9ff; }
.applebite-chatbot-root .abc-end-voice { border-color: rgba(120,167,255,.52); color: #e7efff; }
.applebite-chatbot-root .abc-send { border-color: rgba(255,255,255,.09); color: #fff; }
.applebite-chatbot-root .abc-mic { border-color: rgba(120,167,255,.4); color: #9fc1ff; }
.applebite-chatbot-root .abc-mic.is-recording { border-color: rgba(120,167,255,.92); color: #fff; }
.applebite-chatbot-root .abc-mode-option { border-color: rgba(120,167,255,.34); color: #dce9ff; }
.applebite-chatbot-root .abc-mode-option.is-voice { border-color: rgba(255,255,255,.1); color: #fff; }
.applebite-chatbot-root .abc-mode-language { border-color: rgba(120,167,255,.36); color: #bfd4ff; }
.applebite-chatbot-root .abc-mode-close { border-color: rgba(120,167,255,.42); color: #fff; }
.applebite-chatbot-root .abc-primary { border-color: rgba(255,255,255,.08); color: #fff; }
.applebite-chatbot-root .abc-secondary { border-color: rgba(120,167,255,.3); color: #dce9ff; }
.applebite-chatbot-root .abc-summary-edit { border: 0; color: #9fc1ff; }

/* Complete isolation from Hello Elementor's generic button reset and hover colors. */
.applebite-chatbot-root button { white-space: normal; }
.applebite-chatbot-root .abc-language-switch,
.applebite-chatbot-root .abc-mode-language,
.applebite-chatbot-root .abc-mode-close,
.applebite-chatbot-root .abc-send {
  min-width: 44px !important;
  min-height: 44px !important;
}
.applebite-chatbot-root .abc-launcher,
.applebite-chatbot-root .abc-launcher:hover,
.applebite-chatbot-root .abc-launcher:focus,
.applebite-chatbot-root .abc-launcher:active {
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 15px;
  background: linear-gradient(135deg,var(--abc-color),#0f5cf2) !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 720;
}
.applebite-chatbot-root .abc-language-switch,
.applebite-chatbot-root .abc-language-switch:hover,
.applebite-chatbot-root .abc-language-switch:focus,
.applebite-chatbot-root .abc-language-switch:active,
.applebite-chatbot-root .abc-mode-switch,
.applebite-chatbot-root .abc-mode-switch:hover,
.applebite-chatbot-root .abc-mode-switch:focus,
.applebite-chatbot-root .abc-mode-switch:active,
.applebite-chatbot-root .abc-stop-audio,
.applebite-chatbot-root .abc-stop-audio:hover,
.applebite-chatbot-root .abc-stop-audio:focus,
.applebite-chatbot-root .abc-stop-audio:active,
.applebite-chatbot-root .abc-close,
.applebite-chatbot-root .abc-close:hover,
.applebite-chatbot-root .abc-close:focus,
.applebite-chatbot-root .abc-close:active {
  padding: 0;
  border: 1px solid rgba(255,255,255,.24) !important;
  border-radius: 12px;
  background: rgba(255,255,255,.09) !important;
  color: #fff !important;
  font-weight: 700;
}
.applebite-chatbot-root .abc-language-switch { font-size: 10px; }
.applebite-chatbot-root .abc-mode-switch { font-size: 15px; }
.applebite-chatbot-root .abc-stop-audio { font-size: 11px; }
.applebite-chatbot-root .abc-close { font-size: 24px; font-weight: 300; }
.applebite-chatbot-root .abc-chip,
.applebite-chatbot-root .abc-chip:focus,
.applebite-chatbot-root .abc-chip:active {
  padding: 8px 10px;
  border: 1px solid rgba(120,167,255,.34) !important;
  border-radius: 13px;
  background: linear-gradient(145deg,rgba(23,103,255,.11),rgba(255,255,255,.025)) !important;
  color: #dce9ff !important;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.25;
  overflow: visible;
  overflow-wrap: anywhere;
  text-align: left;
  white-space: normal;
}
.applebite-chatbot-root .abc-chip:hover {
  border-color: rgba(120,167,255,.72) !important;
  background: linear-gradient(145deg,rgba(23,103,255,.26),rgba(23,103,255,.08)) !important;
  color: #fff !important;
}
.applebite-chatbot-root .abc-play-audio,
.applebite-chatbot-root .abc-play-audio:hover,
.applebite-chatbot-root .abc-play-audio:focus,
.applebite-chatbot-root .abc-play-audio:active {
  padding: 6px 10px;
  border: 1px solid rgba(120,167,255,.36) !important;
  border-radius: 10px;
  background: rgba(23,103,255,.14) !important;
  color: #dce9ff !important;
  font-size: 10px;
  font-weight: 800;
}
.applebite-chatbot-root .abc-end-voice,
.applebite-chatbot-root .abc-end-voice:hover,
.applebite-chatbot-root .abc-end-voice:focus,
.applebite-chatbot-root .abc-end-voice:active {
  padding: 7px 10px;
  border: 1px solid rgba(120,167,255,.52) !important;
  border-radius: 10px;
  background: rgba(23,103,255,.14) !important;
  color: #e7efff !important;
  font-size: 10px;
  font-weight: 800;
}
.applebite-chatbot-root .abc-send,
.applebite-chatbot-root .abc-send:hover,
.applebite-chatbot-root .abc-send:focus,
.applebite-chatbot-root .abc-send:active {
  padding: 0;
  border: 1px solid rgba(255,255,255,.09) !important;
  border-radius: 14px;
  background: linear-gradient(135deg,var(--abc-color),#0f5cf2) !important;
  color: #fff !important;
  font-size: 17px;
}
.applebite-chatbot-root .abc-mic,
.applebite-chatbot-root .abc-mic:hover,
.applebite-chatbot-root .abc-mic:focus,
.applebite-chatbot-root .abc-mic:active {
  padding: 0;
  border: 1px solid rgba(120,167,255,.4) !important;
  border-radius: 14px;
  background: rgba(23,103,255,.1) !important;
  color: #9fc1ff !important;
  font-size: 18px;
}
.applebite-chatbot-root .abc-mic.is-recording,
.applebite-chatbot-root .abc-mic.is-recording:hover,
.applebite-chatbot-root .abc-mic.is-recording:focus {
  border-color: rgba(120,167,255,.92) !important;
  background: linear-gradient(135deg,#1767ff,#0f5cf2) !important;
  color: #fff !important;
}
.applebite-chatbot-root .abc-mode-option,
.applebite-chatbot-root .abc-mode-option:focus,
.applebite-chatbot-root .abc-mode-option:active {
  padding: 13px;
  border: 1px solid rgba(120,167,255,.34) !important;
  border-radius: 15px;
  background: rgba(255,255,255,.035) !important;
  color: #dce9ff !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  white-space: normal;
}
.applebite-chatbot-root .abc-mode-option:hover {
  border-color: rgba(120,167,255,.76) !important;
  background: rgba(23,103,255,.15) !important;
  color: #fff !important;
}
.applebite-chatbot-root .abc-mode-option.is-voice,
.applebite-chatbot-root .abc-mode-option.is-voice:hover,
.applebite-chatbot-root .abc-mode-option.is-voice:focus,
.applebite-chatbot-root .abc-mode-option.is-voice:active {
  border-color: rgba(255,255,255,.1) !important;
  background: linear-gradient(135deg,var(--abc-color),#0f5cf2) !important;
  color: #fff !important;
}
.applebite-chatbot-root .abc-mode-language,
.applebite-chatbot-root .abc-mode-language:hover,
.applebite-chatbot-root .abc-mode-language:focus,
.applebite-chatbot-root .abc-mode-language:active {
  padding: 6px 11px;
  border: 1px solid rgba(120,167,255,.36) !important;
  border-radius: 10px;
  background: rgba(23,103,255,.09) !important;
  color: #bfd4ff !important;
  font-size: 11px;
  font-weight: 800;
}
.applebite-chatbot-root .abc-mode-close,
.applebite-chatbot-root .abc-mode-close:hover,
.applebite-chatbot-root .abc-mode-close:focus,
.applebite-chatbot-root .abc-mode-close:active {
  padding: 0;
  border: 1px solid rgba(120,167,255,.42) !important;
  border-radius: 12px;
  background: rgba(255,255,255,.06) !important;
  color: #fff !important;
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
}
.applebite-chatbot-root .abc-mode-close:hover,
.applebite-chatbot-root .abc-mode-close:focus {
  border-color: rgba(255,255,255,.58) !important;
  background: rgba(255,255,255,.14) !important;
}
.applebite-chatbot-root .abc-primary,
.applebite-chatbot-root .abc-primary:hover,
.applebite-chatbot-root .abc-primary:focus,
.applebite-chatbot-root .abc-primary:active {
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 12px;
  background: linear-gradient(135deg,var(--abc-color),#0f5cf2) !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 760;
  white-space: normal;
}
.applebite-chatbot-root .abc-secondary,
.applebite-chatbot-root .abc-secondary:hover,
.applebite-chatbot-root .abc-secondary:focus,
.applebite-chatbot-root .abc-secondary:active {
  padding: 9px 14px;
  border: 1px solid rgba(120,167,255,.3) !important;
  border-radius: 12px;
  background: rgba(255,255,255,.04) !important;
  color: #dce9ff !important;
  font-size: 13px;
  font-weight: 760;
  white-space: normal;
}
.applebite-chatbot-root .abc-summary-edit,
.applebite-chatbot-root .abc-summary-edit:hover,
.applebite-chatbot-root .abc-summary-edit:focus,
.applebite-chatbot-root .abc-summary-edit:active {
  padding: 5px 0;
  border: 0 !important;
  background: transparent !important;
  color: #9fc1ff !important;
  font-size: 11px;
  font-weight: 800;
  white-space: normal;
}

/* Two-row header: full identity on top, controls neatly aligned underneath. */
.applebite-chatbot-root .abc-header {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) 44px 44px 44px;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 8px;
  row-gap: 7px;
  min-height: 108px;
}
.applebite-chatbot-root .abc-avatar { grid-column: 1; grid-row: 1 / 3; align-self: start; }
.applebite-chatbot-root .abc-heading { grid-column: 2 / 6; grid-row: 1; }
.applebite-chatbot-root .abc-heading strong,
.applebite-chatbot-root .abc-heading small {
  max-width: none;
  overflow: visible;
  line-height: 1.3;
  text-overflow: clip;
  white-space: normal;
}
.applebite-chatbot-root .abc-language-switch { grid-column: 2; grid-row: 2; justify-self: end; }
.applebite-chatbot-root .abc-mode-switch { grid-column: 3; grid-row: 2; }
.applebite-chatbot-root .abc-stop-audio { grid-column: 4; grid-row: 2; }
.applebite-chatbot-root .abc-close { grid-column: 5; grid-row: 2; }

.applebite-chatbot-root .abc-row.is-live .abc-bubble,
.applebite-chatbot-root .abc-row.is-streaming .abc-bubble {
  opacity: 1;
}
.applebite-chatbot-root .abc-row.is-live .abc-bubble::after,
.applebite-chatbot-root .abc-row.is-streaming .abc-bubble::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 4px;
  border-radius: 2px;
  background: #78a7ff;
  vertical-align: -.13em;
  animation: abc-stream-caret .92s steps(1, end) infinite;
}
.applebite-chatbot-root .abc-row.is-interrupted .abc-bubble {
  border-color: rgba(120, 167, 255, .44);
}
.applebite-chatbot-root .abc-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes abc-panel-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes abc-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(23, 103, 255, .34); } 50% { box-shadow: 0 0 0 8px rgba(23, 103, 255, 0); } }
@keyframes abc-stream-caret { 0%, 52% { opacity: 1; } 53%, 100% { opacity: .18; } }

@supports (height: 100dvh) {
  .applebite-chatbot-root:not(.is-inline) .abc-panel { height: min(690px, calc(100dvh - 104px)); }
}

@media (max-width: 600px) {
  html.abc-chat-open-mobile,
  html.abc-chat-open-mobile body { overflow: hidden !important; overscroll-behavior: none; }
  .applebite-chatbot-root.applebite-chatbot-root:not(.is-inline) { right: 10px; right: max(10px, env(safe-area-inset-right)); bottom: 10px; bottom: max(10px, env(safe-area-inset-bottom)); }
  .applebite-chatbot-root.applebite-chatbot-root.is-left:not(.is-inline) { right: auto; left: 10px; left: max(10px, env(safe-area-inset-left)); }
  .applebite-chatbot-root:not(.is-inline) .abc-panel { position: fixed; inset: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); width: auto; height: auto; border-radius: 20px; }
  .is-open .abc-launcher { visibility: hidden; }
  .abc-launcher-label { display: none; }
  .abc-launcher { min-width: 52px; padding: 0 11px; }
  .abc-header { padding: 12px; }
  .abc-avatar { width: 40px; height: 40px; }
  .abc-language-switch, .abc-mode-switch, .abc-stop-audio, .abc-close, .abc-mode-close { width: 44px; height: 44px; }
  .abc-input, .abc-field { font-size: 16px; }
  .abc-field-label, .abc-voice-privacy, .abc-captions-notice { font-size: 12px; }
  .abc-voice-status { font-size: 12px; }
}

@media (max-width: 420px) {
  .abc-heading small { max-width: 106px; }
  .abc-mode-card { padding: 19px; }
  .abc-mode-actions, .abc-quote-actions { grid-template-columns: 1fr; }
  .abc-mode-option { min-height: 60px; }
  .abc-quick { grid-template-columns: 1fr; max-height: 126px; }
  .abc-quote-summary { max-height: 150px; }
  .abc-form-actions { flex-wrap: wrap; }
  .abc-form-actions .abc-primary, .abc-form-actions .abc-secondary { flex: 1 1 128px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  html.abc-chat-open-mobile,
  html.abc-chat-open-mobile body { overflow: hidden !important; overscroll-behavior: none; }
  .applebite-chatbot-root:not(.is-inline) .abc-panel {
    position: fixed;
    inset: max(4px, env(safe-area-inset-top)) max(4px, env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left));
    width: auto;
    height: auto;
    max-height: none;
    border-radius: 16px;
  }
  .applebite-chatbot-root .abc-header {
    grid-template-columns: 40px minmax(110px,1fr) 44px 44px 44px 44px;
    grid-template-rows: 1fr;
    min-height: 62px;
    padding: 8px 10px;
  }
  .applebite-chatbot-root .abc-avatar { grid-column: 1; grid-row: 1; align-self: center; width: 40px; height: 40px; }
  .applebite-chatbot-root .abc-heading { grid-column: 2; grid-row: 1; }
  .applebite-chatbot-root .abc-language-switch { grid-column: 3; grid-row: 1; }
  .applebite-chatbot-root .abc-mode-switch { grid-column: 4; grid-row: 1; }
  .applebite-chatbot-root .abc-stop-audio { grid-column: 5; grid-row: 1; }
  .applebite-chatbot-root .abc-close { grid-column: 6; grid-row: 1; }
  .abc-quick { display: flex; max-height: 62px; overflow-x: auto; overflow-y: hidden; padding: 7px 9px; }
  .abc-chip { flex: 0 0 150px; }
  .abc-messages { padding: 10px 12px; }
  .abc-composer { padding: 7px 9px; }
  .abc-input, .abc-field { font-size: 16px; }
  .abc-mode-overlay, .abc-lead-overlay { padding: 8px; }
  .abc-mode-card { max-width: 520px; padding: 14px 18px; }
  .abc-mode-card h3 { font-size: 18px; }
  .abc-mode-description { margin-bottom: 10px; }
  .abc-voice-disclosure { margin-top: 10px; }
}

@media (forced-colors: active) {
  .applebite-chatbot-root .abc-panel,
  .applebite-chatbot-root .abc-bubble,
  .applebite-chatbot-root .abc-mode-card,
  .applebite-chatbot-root .abc-lead-form,
  .applebite-chatbot-root button,
  .applebite-chatbot-root input,
  .applebite-chatbot-root textarea {
    border-color: CanvasText !important;
    background: Canvas !important;
    color: CanvasText !important;
    box-shadow: none !important;
    forced-color-adjust: auto;
  }
  .applebite-chatbot-root .is-user .abc-bubble,
  .applebite-chatbot-root .abc-primary,
  .applebite-chatbot-root .abc-mic.is-recording { background: Highlight !important; color: HighlightText !important; }
  .applebite-chatbot-root :focus-visible { outline: 3px solid Highlight !important; outline-offset: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .is-open .abc-panel, .abc-mic.is-recording { animation: none; }
  .abc-launcher, .abc-chip, .abc-mode-option, .abc-primary, .abc-secondary, .abc-send, .abc-mic { transition: none; }
  .applebite-chatbot-root .abc-row.is-live .abc-bubble::after,
  .applebite-chatbot-root .abc-row.is-streaming .abc-bubble::after { animation: none; }
}

.applebite-chatbot-root.is-reduced-motion .abc-row.is-live .abc-bubble::after,
.applebite-chatbot-root.is-reduced-motion .abc-row.is-streaming .abc-bubble::after { animation: none; }
