.f8la,
.f8la * {
  box-sizing: border-box;
}

.f8la {
  --f8la-black: #050505;
  --f8la-panel: rgba(7, 9, 10, 0.96);
  --f8la-white: #f4f6f6;
  --f8la-muted: #9aa2a6;
  --f8la-line: rgba(255, 255, 255, 0.14);
  --f8la-accent: #b9dbe8;
  --f8la-gold: #b6a06b;
  --f8la-font: Manrope, Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f8la-base-size: 15px;
  --f8la-title-size: 26px;
  --f8la-title-weight: 300;
  --f8la-border-width: 1px;
  --f8la-panel-radius: 26px;
  --f8la-panel-width: 396px;
  --f8la-panel-height: 650px;
  --f8la-shadow: rgba(0, 0, 0, 0.58);
  --f8la-launcher-bg: #040607;
  --f8la-launcher-text: #f4f6f6;
  --f8la-launcher-radius: 999px;
  --f8la-assistant-bg: #121516;
  --f8la-user-bg: #172227;
  --f8la-composer-bg: #111415;
  --f8la-control-bg: #1b2428;
  font-family: var(--f8la-font);
  font-style: normal;
  color: var(--f8la-white);
  font-size: var(--f8la-base-size);
  line-height: 1.45;
  position: fixed;
  z-index: 2147483000;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
}

/*
 * Elementor themes often add late, site-wide button and form rules. Keep the
 * assistant visually self-contained so global colours, italics, borders and
 * padding cannot leak into its controls.
 */
#f8la,
#f8la * {
  font-style: normal;
}

#f8la button,
#f8la textarea {
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  text-transform: none;
  text-decoration: none;
  text-shadow: none;
}

#f8la .f8la-launcher {
  width: auto;
  min-width: 62px;
  height: 62px;
  margin: 0;
  padding: 0 19px 0 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: var(--f8la-border-width) solid var(--f8la-line);
  border-radius: var(--f8la-launcher-radius);
  background:
    linear-gradient(110deg, rgba(185, 219, 232, 0.2), transparent 44%),
    var(--f8la-launcher-bg);
  color: var(--f8la-launcher-text);
  box-shadow: 0 16px 50px var(--f8la-shadow);
}

#f8la .f8la-header h2 {
  color: var(--f8la-white);
  font-family: inherit;
  font-size: var(--f8la-title-size);
  font-weight: var(--f8la-title-weight);
  line-height: 1.1;
}

#f8la .f8la-icon-button {
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: var(--f8la-border-width) solid var(--f8la-line);
  border-radius: 50%;
  background: var(--f8la-control-bg);
  color: var(--f8la-white);
  box-shadow: none;
}

#f8la .f8la-modes button {
  height: 34px;
  margin: 0;
  padding: 0;
  display: block;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--f8la-muted);
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
}

#f8la .f8la-modes button.is-active {
  background: var(--f8la-control-bg);
  color: var(--f8la-white);
  box-shadow: inset 0 0 0 1px rgba(185, 219, 232, 0.13);
}

#f8la .f8la-composer textarea {
  margin: 0;
  padding: 7px 0 5px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--f8la-white);
  box-shadow: none;
}

#f8la .f8la-composer button {
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: var(--f8la-border-width) solid var(--f8la-line);
  border-radius: 50%;
  background: var(--f8la-control-bg);
  color: var(--f8la-white);
  box-shadow: none;
}

#f8la .f8la-control {
  min-height: 56px;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--f8la-muted);
  box-shadow: none;
  font-size: 10px;
  line-height: 1.2;
}

#f8la .f8la-control:disabled {
  color: var(--f8la-muted);
  opacity: 0.32;
}

#f8la .f8la-control.is-active {
  color: var(--f8la-white);
}

#f8la .f8la-talk {
  height: 54px;
  margin: 0;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: var(--f8la-border-width) solid var(--f8la-line);
  border-radius: 999px;
  background:
    linear-gradient(110deg, rgba(185, 219, 232, 0.16), transparent),
    var(--f8la-control-bg);
  color: var(--f8la-white);
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.03em;
}

#f8la.is-call-active:not(.is-push-to-talk) .f8la-talk,
#f8la.is-push-to-talk.is-ptt-speaking .f8la-talk {
  border-color: rgba(108, 231, 165, 0.68);
  background: rgba(26, 132, 82, 0.78);
  color: var(--f8la-white);
}

.f8la button,
.f8la textarea {
  font: inherit;
}

.f8la button {
  -webkit-tap-highlight-color: transparent;
}

.f8la-launcher {
  min-width: 62px;
  height: 62px;
  padding: 0 19px 0 11px;
  border: var(--f8la-border-width) solid var(--f8la-line);
  border-radius: var(--f8la-launcher-radius);
  background:
    linear-gradient(110deg, rgba(185, 219, 232, 0.2), transparent 44%),
    var(--f8la-launcher-bg);
  color: var(--f8la-launcher-text);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 16px 50px var(--f8la-shadow);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.f8la-launcher:hover,
.f8la-launcher:focus-visible {
  transform: translateY(-2px);
  border-color: var(--f8la-accent);
  outline: none;
}

.f8la-launcher-copy {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.f8la-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 66% 34%, rgba(255, 255, 255, 0.85) 0 4%, transparent 5%),
    radial-gradient(circle at 35% 66%, rgba(185, 219, 232, 0.92), rgba(92, 132, 152, 0.24) 48%, transparent 70%);
}

.f8la-mark span {
  position: absolute;
  width: 17px;
  height: 28px;
  border: 1.4px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  transform: rotate(28deg);
}

.f8la-mark span:last-child {
  transform: rotate(-28deg);
}

.f8la-panel {
  width: min(var(--f8la-panel-width), calc(100vw - 32px));
  height: min(var(--f8la-panel-height), calc(100vh - 116px));
  min-height: min(520px, var(--f8la-panel-height));
  position: absolute;
  right: 0;
  bottom: 76px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: var(--f8la-border-width) solid var(--f8la-line);
  border-radius: var(--f8la-panel-radius);
  background:
    radial-gradient(circle at 106% -2%, rgba(185, 219, 232, 0.2), transparent 35%),
    linear-gradient(160deg, rgba(182, 160, 107, 0.06), transparent 30%),
    var(--f8la-panel);
  box-shadow: 0 28px 90px var(--f8la-shadow);
  backdrop-filter: blur(24px);
  transform-origin: right bottom;
  animation: f8la-enter 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.f8la-panel[hidden] {
  display: none;
}

.f8la-wave {
  position: absolute;
  width: 270px;
  height: 160px;
  top: -66px;
  right: -88px;
  pointer-events: none;
  opacity: 0.43;
  filter: blur(2px);
  transform: rotate(-14deg);
  background:
    radial-gradient(ellipse at 18% 60%, rgba(185, 219, 232, 0.58) 0 8%, transparent 38%),
    radial-gradient(ellipse at 65% 48%, rgba(107, 151, 170, 0.66) 0 12%, transparent 56%),
    radial-gradient(ellipse at 86% 32%, rgba(208, 232, 240, 0.35), transparent 48%);
}

.f8la-header {
  min-height: 104px;
  padding: 23px 22px 18px;
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--f8la-line);
}

.f8la-header h2 {
  margin: 1px 0 0;
  color: var(--f8la-white);
  font-family: inherit;
  font-size: var(--f8la-title-size);
  font-weight: var(--f8la-title-weight);
  line-height: 1.1;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.f8la-eyebrow,
.f8la-subtitle,
.f8la-privacy,
.f8la-call-hint,
.f8la-call-status,
.f8la-typing {
  margin: 0;
}

.f8la-eyebrow {
  color: var(--f8la-gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.f8la-subtitle {
  margin-top: 5px;
  color: var(--f8la-muted);
  font-size: 12px;
}

.f8la-icon-button {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: var(--f8la-border-width) solid var(--f8la-line);
  border-radius: 50%;
  background: var(--f8la-control-bg);
  color: var(--f8la-white);
  cursor: pointer;
}

.f8la-icon-button svg,
.f8la-control svg,
.f8la-composer button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.f8la-modes {
  margin: 14px 22px 0;
  padding: 3px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--f8la-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.f8la-modes[hidden] {
  display: none;
}

.f8la-modes button {
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--f8la-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.f8la-modes button.is-active {
  background: var(--f8la-control-bg);
  color: var(--f8la-white);
  box-shadow: inset 0 0 0 1px rgba(185, 219, 232, 0.13);
}

.f8la-body {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
}

.f8la-chat-view,
.f8la-call-view {
  width: 100%;
  height: 100%;
}

.f8la-chat-view[hidden],
.f8la-call-view[hidden] {
  display: none;
}

.f8la-chat-view {
  display: flex;
  flex-direction: column;
}

.f8la-messages {
  flex: 1;
  min-height: 0;
  padding: 20px 18px 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(185, 219, 232, 0.3) transparent;
}

.f8la-message {
  display: flex;
  margin: 0 0 13px;
}

.f8la-message > div {
  max-width: 84%;
  padding: 11px 13px;
  border: var(--f8la-border-width) solid var(--f8la-line);
  border-radius: 15px 15px 15px 4px;
  background: var(--f8la-assistant-bg);
  color: #e8ebec;
  font-size: 13px;
  line-height: 1.48;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.f8la-message.is-user {
  justify-content: flex-end;
}

.f8la-message.is-user > div {
  border-color: var(--f8la-line);
  border-radius: 15px 15px 4px 15px;
  background: var(--f8la-user-bg);
  color: var(--f8la-white);
}

.f8la-message.is-streaming > div::after {
  content: '';
  width: 5px;
  height: 14px;
  margin-left: 3px;
  display: inline-block;
  vertical-align: -2px;
  background: var(--f8la-accent);
  animation: f8la-blink 800ms steps(1) infinite;
}

.f8la-message.is-processing > div {
  min-width: 58px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.f8la-message.is-processing > div > span {
  width: 6px;
  height: 6px;
  display: block;
  border-radius: 50%;
  background: var(--f8la-accent);
  opacity: 0.35;
  animation: f8la-thinking-dot 1.05s ease-in-out infinite;
}

.f8la-message.is-processing > div > span:nth-child(2) {
  animation-delay: 140ms;
}

.f8la-message.is-processing > div > span:nth-child(3) {
  animation-delay: 280ms;
}

.f8la-typing {
  padding: 0 22px 8px;
  color: var(--f8la-muted);
  font-size: 11px;
}

.f8la-call-view {
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.f8la-orb-wrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.f8la-orb {
  width: 96px;
  height: 96px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(185, 219, 232, 0.38);
  border-radius: 50%;
  background:
    radial-gradient(circle at 67% 30%, rgba(255, 255, 255, 0.72), transparent 7%),
    radial-gradient(circle at 38% 64%, rgba(185, 219, 232, 0.86), rgba(67, 105, 122, 0.48) 38%, rgba(4, 5, 6, 0.96) 73%);
  box-shadow: 0 0 0 12px rgba(185, 219, 232, 0.025), 0 24px 70px rgba(114, 170, 194, 0.16);
}

.f8la-orb span {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 44% 56% 50% 50%;
  animation: f8la-orbit 8s linear infinite;
}

.f8la-orb span:nth-child(2) {
  inset: 26% 17%;
  border-color: rgba(182, 160, 107, 0.6);
  animation-duration: 11s;
  animation-direction: reverse;
}

.f8la-orb span:nth-child(3) {
  inset: 34% 25%;
  border-color: rgba(255, 255, 255, 0.64);
  animation-duration: 6s;
}

.f8la.is-listening .f8la-orb,
.f8la.is-thinking .f8la-orb,
.f8la.is-speaking .f8la-orb {
  animation: f8la-pulse 1.4s ease-in-out infinite;
}

.f8la.is-speaking .f8la-orb {
  animation-duration: 780ms;
}

.f8la-call-status {
  margin-top: 12px;
  color: var(--f8la-white);
  font-size: 16px;
  font-weight: 500;
}

.f8la-call-hint {
  max-width: 260px;
  margin-top: 7px;
  color: var(--f8la-muted);
  font-size: 11px;
}

.f8la-call-transcript {
  flex: 1 1 auto;
  min-height: 116px;
  padding: 8px 0 2px;
  scroll-behavior: smooth;
}

.f8la-call-transcript .f8la-message {
  margin-bottom: 9px;
}

.f8la-call-transcript .f8la-message > div {
  max-width: 88%;
  padding: 9px 11px;
  font-size: 12px;
}

.f8la-call-controls {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  gap: 10px;
}

.f8la-control,
.f8la-talk {
  border: 0;
  color: var(--f8la-white);
  cursor: pointer;
}

.f8la-control {
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  color: var(--f8la-muted);
  font-size: 10px;
}

.f8la-control:disabled {
  opacity: 0.32;
  cursor: default;
}

.f8la-control.is-active {
  color: var(--f8la-white);
}

.f8la-talk {
  position: relative;
  height: 54px;
  border: var(--f8la-border-width) solid var(--f8la-line);
  border-radius: 999px;
  background:
    linear-gradient(110deg, rgba(185, 219, 232, 0.16), transparent),
    var(--f8la-control-bg);
  font-weight: 600;
  letter-spacing: 0.03em;
  transform: translateX(var(--f8la-drag-x, 0px));
  transition: transform 55ms linear, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.f8la.is-call-active:not(.is-push-to-talk) .f8la-talk,
.f8la.is-push-to-talk.is-ptt-speaking .f8la-talk {
  border-color: rgba(108, 231, 165, 0.68);
  background: rgba(26, 132, 82, 0.78);
  box-shadow: 0 9px 26px rgba(31, 162, 98, 0.24);
}

#f8la.is-push-to-talk.is-ptt-speaking.is-ptt-warning .f8la-talk {
  border-color: rgba(255, 190, 99, 0.9);
  background: rgba(190, 106, 25, 0.92);
  box-shadow: 0 9px 26px rgba(215, 125, 34, 0.3);
}

#f8la.is-push-to-talk.is-ptt-speaking.is-ptt-cancel .f8la-talk {
  border-color: rgba(255, 144, 138, 0.96);
  background: rgba(199, 53, 47, 0.96);
  box-shadow: 0 9px 28px rgba(226, 70, 62, 0.4);
}

#f8la.is-ptt-warning .f8la-call-status {
  color: #f0aa55;
}

#f8la.is-ptt-cancel .f8la-call-status {
  color: #ff8a83;
}

.f8la.is-push-to-talk .f8la-talk {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

#f8la.is-push-to-talk .f8la-mute {
  width: 50px;
  height: 50px;
  min-height: 50px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #e34b43;
  color: #fff;
  box-shadow: 0 8px 22px rgba(227, 75, 67, 0.3);
}

#f8la.is-push-to-talk .f8la-mute:hover:not(:disabled),
#f8la.is-push-to-talk .f8la-mute:focus-visible {
  background: #f05249;
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 2px;
}

#f8la.is-push-to-talk .f8la-mute:disabled {
  background: #e34b43;
  color: #fff;
  opacity: 0.34;
}

#f8la.is-push-to-talk .f8la-mute span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#f8la.is-push-to-talk .f8la-end-icon rect {
  fill: currentColor;
  stroke: none;
}

.f8la-end-icon[hidden],
.f8la-mute-icon[hidden] {
  display: none !important;
}

.f8la-composer {
  margin: 0 16px;
  min-height: 52px;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 8px 8px 14px;
  border: var(--f8la-border-width) solid var(--f8la-line);
  border-radius: 17px;
  background: var(--f8la-composer-bg);
}

.f8la-composer[hidden] {
  display: none;
}

.f8la-composer textarea {
  width: 100%;
  min-height: 34px;
  max-height: 110px;
  padding: 7px 0 5px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--f8la-white);
  font-size: 13px;
  line-height: 1.45;
}

.f8la-composer textarea::placeholder {
  color: #7f878a;
}

.f8la-composer button {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: var(--f8la-border-width) solid var(--f8la-line);
  border-radius: 50%;
  background: var(--f8la-control-bg);
  color: var(--f8la-white);
  cursor: pointer;
}

.f8la-privacy {
  padding: 9px 18px 13px;
  color: #71787b;
  font-size: 9px;
  text-align: center;
}

.f8la-notice {
  position: absolute;
  inset: auto 16px 16px;
  padding: 10px 12px;
  border: 1px solid rgba(182, 160, 107, 0.35);
  border-radius: 12px;
  background: rgba(21, 18, 11, 0.96);
  color: #e9e0cb;
  font-size: 11px;
  text-align: center;
}

.f8la-notice[hidden] {
  display: none;
}

.f8la :focus-visible {
  outline: 2px solid var(--f8la-accent);
  outline-offset: 2px;
}

@keyframes f8la-enter {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes f8la-orbit {
  to { transform: rotate(360deg); }
}

@keyframes f8la-pulse {
  0%, 100% { transform: scale(1); filter: saturate(1); }
  50% { transform: scale(1.045); filter: saturate(1.35); }
}

@keyframes f8la-blink {
  50% { opacity: 0; }
}

@keyframes f8la-thinking-dot {
  0%, 65%, 100% { opacity: 0.28; transform: translateY(0); }
  32% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 520px) {
  .f8la {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .f8la-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;
    min-height: 0;
    border-radius: min(var(--f8la-panel-radius), 22px);
  }

  .f8la-launcher {
    min-width: 58px;
    height: 58px;
  }

  .f8la-header {
    min-height: 96px;
  }

  .f8la-header h2 {
    font-size: min(var(--f8la-title-size), 23px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .f8la-panel,
  .f8la-orb,
  .f8la-orb span,
  .f8la-message.is-streaming > div::after,
  .f8la-message.is-processing > div > span {
    animation: none !important;
  }
}
