/* AVO.AI float v1 — compact panel (from chat-ia-1-improved). */

.avo-float [hidden] {
  display: none !important;
}

.avo-float {
  box-sizing: border-box;
  font-family: "HurmeGeometricSans4", Arial, sans-serif;
}

.avo-float *,
.avo-float *::before,
.avo-float *::after {
  box-sizing: border-box;
}

.avo-float .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

html.avo-float-lock,
html.avo-float-lock body {
  overflow: hidden;
}

/* —— Floating CTA (keep animation) —— */
.avo-float__cta {
  position: fixed;
  z-index: 1000000002;
  right: 20px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  overflow: visible;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

@media (min-width: 768px) {
  .avo-float__cta {
    right: 32px;
    bottom: 32px;
    width: 76px;
    height: 76px;
  }
}

@media (hover: hover) and (min-width: 768px) {
  .avo-float__cta:hover .avo-float__halo,
  .avo-float__cta:focus-visible .avo-float__halo {
    opacity: 1;
  }

  .avo-float__cta:hover .avo-float__disc,
  .avo-float__cta:focus-visible .avo-float__disc {
    transform: translate(-50%, -50%) scale(1.1053);
  }
}

.avo-float__halo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  display: block;
  width: 168px;
  height: 168px;
  max-width: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.28s ease;
}

.avo-float__disc {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 2.5px solid #b8f800;
  border-radius: 50%;
  background: #005123;
  box-shadow: 0 8px 10px rgba(0, 38, 13, 0.35);
  overflow: hidden;
  transform: translate(-50%, -50%);
  transition: transform 0.28s ease;
}

@media (min-width: 768px) {
  .avo-float__disc {
    width: 76px;
    height: 76px;
    border-width: 3px;
    box-shadow: 0 10px 12px rgba(0, 38, 13, 0.35);
  }
}

.avo-float__rive {
  display: block;
  width: 85%;
  height: 85%;
  pointer-events: none;
  background: transparent;
}

.avo-float__rive--header,
.avo-float__rive--prompt,
.avo-float__rive--hello {
  width: 80%;
  height: 80%;
}

.avo-float__ping {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 2px solid #b8f800;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: avo-float-ping 2.4s ease-out infinite;
}

.avo-float__ping--late {
  animation-delay: 1.2s;
}

/* Desktop: CTA stays visible while the panel is open; soft handoff */
@media (max-width: 767px) {
  .avo-float.is-open .avo-float__cta {
    opacity: 0;
    pointer-events: none;
  }
}


/* —— Prompt tip (kept) —— */
.avo-float__prompt {
  position: fixed;
  z-index: 1000000001;
  right: 16px;
  bottom: 108px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: max-content;
  max-width: min(340px, calc(100vw - 96px));
  min-height: 0;
  height: auto;
  padding: 12px 14px 14px;
  border: 1.5px solid rgba(184, 248, 0, 0.9);
  border-radius: 20px 20px 6px 20px;
  background: linear-gradient(160deg, rgba(0, 102, 44, 0.96), rgba(0, 48, 22, 0.94));
  color: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 26, 10, 0.35), 0 0 0 1px rgba(184, 248, 0, 0.15);
  opacity: 1;
  transform: translateY(0);
  transition: box-shadow 0.6s ease, opacity 0.45s ease, transform 0.45s ease;
}

.avo-float__prompt.is-away {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.avo-float__prompt.is-typing {
  box-shadow:
    0 12px 24px rgba(0, 26, 10, 0.28),
    0 0 16px rgba(184, 248, 0, 0.28);
}

.avo-float__prompt::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: #003816;
  border-right: 1.5px solid rgba(184, 248, 0, 0.9);
  border-bottom: 1.5px solid rgba(184, 248, 0, 0.9);
  transform: rotate(45deg);
}

.avo-float__prompt-avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1.5px solid #b8f800;
  border-radius: 50%;
  background: #005123;
  box-shadow: 0 0 0 4px rgba(184, 248, 0, 0.12);
  overflow: hidden;
}


.avo-float__prompt-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  flex: 0 1 auto;
}

.avo-float__prompt-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b8f800;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.avo-float__prompt-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b8f800;
  box-shadow: 0 0 0 0 rgba(184, 248, 0, 0.7);
  animation: avo-float-dot 1.4s ease-out infinite;
}

.avo-float__prompt-line {
  display: block;
  min-height: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  transition: opacity 0.45s ease;
}

.avo-float__prompt.is-wrap .avo-float__prompt-line {
  white-space: normal;
}

.avo-float__prompt.is-clear .avo-float__prompt-line {
  opacity: 0;
}

.avo-float__prompt-caret {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 2px;
  background: #b8f800;
  vertical-align: text-bottom;
  animation: avo-float-caret 1.15s ease-in-out infinite;
  transition: opacity 0.35s ease;
}

.avo-float__prompt.is-holding .avo-float__prompt-caret {
  animation: none;
  opacity: 0;
}

.avo-float__prompt:hover,
.avo-float__prompt:focus-visible {
  border-color: #d6ff6a;
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .avo-float__prompt {
    right: 28px;
    bottom: 128px;
    max-width: 340px;
  }

  .avo-float__prompt-line {
    font-size: 16px;
  }
}

.avo-float.is-open .avo-float__prompt {
  opacity: 0;
  pointer-events: none;
}

/* —— Dim (mobile) —— */
.avo-float__dim {
  position: fixed;
  inset: 0;
  z-index: 1000000000;
  padding: 0;
  border: 0;
  background: #00230f;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.32s ease, visibility 0s linear 0.32s;
}

.avo-float.is-open .avo-float__dim {
  opacity: 0.45;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.32s ease, visibility 0s linear 0s;
}

@media (min-width: 768px) {
  .avo-float__dim {
    display: none;
  }
}

/* —— Compact panel —— */
.avo-float__panel {
  position: fixed;
  z-index: 1000000001;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: #00331a;
  border: 1.5px solid rgba(184, 248, 0, 0.35);
  box-shadow: 0 18px 44px rgba(0, 31, 13, 0.4);
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform-origin: bottom right;
}

.avo-float.is-history .avo-float__body,
.avo-float.is-history .avo-float__composer {
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.2s;
}

.avo-float__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
  transition: opacity 0.8s ease 0.2s, transform 9s ease;
}

.avo-float.is-open .avo-float__video {
  opacity: 0.7;
  transform: scale(1);
}

.avo-float__shade,
.avo-float__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.avo-float__shade {
  background:
    linear-gradient(180deg, rgba(0, 81, 35, 0.72) 0%, rgba(0, 51, 26, 0.78) 48%, rgba(0, 35, 18, 0.9) 100%);
}

.avo-float__grid {
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(184, 248, 0, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 248, 0, 0.16) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: avo-float-grid 14s linear infinite;
}

/* Mobile: full-screen panel with circular open/close */
@media (max-width: 767px) {
  .avo-float__dim {
    display: none;
  }

  .avo-float__panel {
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    opacity: 1;
    transform: none;
    clip-path: circle(0px at var(--avo-ox, calc(100% - 64px)) var(--avo-oy, calc(100% - 64px)));
    transition:
      clip-path 0.72s cubic-bezier(0.45, 0, 0.2, 1),
      visibility 0s linear 0.72s;
  }

  .avo-float.is-open .avo-float__panel {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: none;
    clip-path: circle(160vmax at var(--avo-ox, calc(100% - 64px)) var(--avo-oy, calc(100% - 64px)));
    transition:
      clip-path 0.72s cubic-bezier(0.45, 0, 0.2, 1),
      visibility 0s linear 0s;
  }
}

/* Desktop: floating card above CTA */
@media (min-width: 768px) {
  .avo-float__panel {
    right: 32px;
    bottom: 124px;
    width: 400px;
    height: 600px;
    border-radius: 24px;
    transform: translateY(14px) scale(0.98);
    transition:
      opacity 0.3s ease,
      transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.4s;
  }

  .avo-float.is-open .avo-float__panel {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition:
      opacity 0.3s ease,
      transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0s;
  }
}

.avo-float__glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(28px);
}

.avo-float__glow--top {
  top: -110px;
  right: -80px;
  width: 320px;
  height: 220px;
  background: radial-gradient(ellipse at center, rgba(184, 248, 0, 0.28) 0%, rgba(184, 248, 0, 0) 70%);
}

.avo-float__glow--bottom {
  left: -120px;
  bottom: 40px;
  width: 260px;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(0, 164, 54, 0.45) 0%, rgba(0, 164, 54, 0) 70%);
}

.avo-float__bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  min-height: 72px;
  padding: 16px 16px 15px;
  border-bottom: 1px solid rgba(184, 248, 0, 0.25);
}

.avo-float__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.avo-float__avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(184, 248, 0, 0.75);
  border-radius: 50%;
  background: #005123;
  box-shadow: 0 0 0 3px rgba(184, 248, 0, 0.08), 0 6px 14px rgba(0, 20, 10, 0.28);
  overflow: hidden;
}

.avo-float.is-open .avo-float__avatar {
  animation: avo-float-avatar-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.avo-float__avatar::before {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: 1;
  border: 1px solid rgba(184, 248, 0, 0.28);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.avo-float.is-open .avo-float__avatar::before {
  animation: avo-float-avatar-ring 2.6s ease-out 0.35s infinite;
}

.avo-float__hello-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: #005123;
  overflow: hidden;
}

.avo-float__name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #b8f800;
  letter-spacing: 0.02em;
}

.avo-float__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.avo-float__new-chat,
.avo-float__history-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 51, 26, 0.48);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(0, 12, 6, 0.16);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.avo-float__new-chat {
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}

.avo-float__history-btn {
  padding: 0 12px;
}

.avo-float__new-chat:hover,
.avo-float__new-chat:focus-visible,
.avo-float__history-btn:hover,
.avo-float__history-btn:focus-visible {
  background: rgba(0, 61, 31, 0.62);
  border-color: rgba(184, 248, 0, 0.45);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 12, 6, 0.22);
  outline: none;
}

.avo-float__history-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #b8f800;
  color: #005123;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.avo-float__history-count[hidden] {
  display: none !important;
}

.avo-float__history {
  position: absolute;
  inset: 72px 0 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 16px;
  background: rgba(0, 35, 18, 0.96);
  border-top: 1px solid rgba(184, 248, 0, 0.2);
  backdrop-filter: blur(10px);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  pointer-events: none;
  transition:
    opacity 0.34s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.42s;
}

.avo-float.is-history .avo-float__history {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition:
    opacity 0.34s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

.avo-float__history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.avo-float__history-title {
  margin: 0;
  color: #b8f800;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.avo-float__history-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.avo-float__history-close:hover,
.avo-float__history-close:focus-visible {
  color: #b8f800;
  outline: none;
}

.avo-float__history-list {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.avo-float__history-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.avo-float__history-item,
.avo-float__history-empty {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 0 0 8px;
}

.avo-float__history-empty {
  padding: 12px 14px;
  border: 1px solid rgba(184, 248, 0, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.35;
}

.avo-float__history-open {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(184, 248, 0, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.avo-float__history-open.is-active {
  background: rgba(184, 248, 0, 0.14);
  border-color: #b8f800;
}

.avo-float__history-open strong {
  display: block;
  overflow: hidden;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.avo-float__history-delete {
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.avo-float__history-delete svg {
  display: block;
}

.avo-float__history-delete:hover,
.avo-float__history-delete:focus-visible {
  color: #ffb39a;
  background: rgba(255, 179, 154, 0.12);
  outline: none;
}

.avo-float__history-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  line-height: 1.3;
}

.avo-float__close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.avo-float__close:hover,
.avo-float__close:focus-visible {
  opacity: 0.85;
  transform: rotate(90deg);
}

.avo-float__close img {
  display: block;
  width: 28px;
  height: 28px;
}

.avo-float__body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.avo-float__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 20px 0px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.avo-float__scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.avo-float__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.avo-float.is-chat .avo-float__intro {
  display: none;
}

.avo-float__hello {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.avo-float__hello-bubble {
  flex: 0 1 auto;
  max-width: calc(100% - 50px);
  padding: 12px 16px;
  border-radius: 4px 18px 18px 18px;
  background: #fff;
  color: #14321f;
}

.avo-float__hello-bubble p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 130%;
}

.avo-float__suggest {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin: 12px 0 0;
  padding: 0;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.avo-float.is-suggest-visible .avo-float__suggest {
  opacity: 1;
  pointer-events: auto;
}

.avo-float.is-entering.is-suggest-visible:not(.is-chat) .avo-float__suggest {
  opacity: 0;
  animation: avo-float-fade 0.4s ease 0.4s forwards;
}

.avo-float__suggest[hidden] {
  display: none !important;
}

.avo-float.is-chat .avo-float__suggest {
  margin-top: 8px;
}

.avo-float__chips {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.avo-float__suggest-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.avo-float__suggest-arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  line-height: 0;
  transition: color 0.18s ease, transform 0.18s ease;
}

.avo-float__suggest-arrow svg {
  display: block;
  width: 12px;
  height: 12px;
}

.avo-float__suggest-item:hover,
.avo-float__suggest-item:focus-visible {
  color: #fff;
  outline: none;
}

.avo-float__suggest-item:hover .avo-float__suggest-arrow,
.avo-float__suggest-item:focus-visible .avo-float__suggest-arrow {
  color: #b8f800;
  transform: translateX(2px);
}

.avo-float__thread {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.avo-float.is-chat .avo-float__thread {
  display: flex;
}

.avo-float__day {
  align-self: center;
  display: inline-flex;
  margin: 4px 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 20, 10, 0.38);
  border: 1px solid rgba(184, 248, 0, 0.18);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.avo-float__turn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: min(320px, 100%);
}

.avo-float__day.is-animating-in,
.avo-float__msg--user.is-animating-in,
.avo-float__turn.is-animating-in {
  animation: avo-float-soft 0.42s ease var(--enter-delay, 0ms) both;
}

.avo-float__who {
  display: block;
  margin: 0 0 5px 2px;
  color: #b8f800;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.avo-float__msg {
  position: relative;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.avo-float__msg--user {
  align-self: flex-end;
  margin-left: auto;
  max-width: min(320px, 92%);
  padding: 10px 14px 18px;
  border-radius: 18px 18px 4px 18px;
  background: #00a436;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 130%;
}

.avo-float__msg--ai {
  padding: 12px 14px 20px;
  border-radius: 18px 18px 18px 4px;
  background: #fff;
  color: #14321f;
  font-size: 16px;
  font-weight: 400;
  line-height: 130%;
  box-shadow: 0 4px 14px rgba(0, 26, 10, 0.18);
}

.avo-float__msg--ai p {
  margin: 0 0 10px;
  padding-right: 28px;
}

.avo-float__msg--ai p:last-of-type {
  margin-bottom: 0;
}

.avo-float__msg--ai:has(.avo-float__thinking) {
  display: inline-flex;
  width: fit-content;
  min-width: 116px;
  padding: 12px 16px;
  border-radius: 18px;
  line-height: 0;
}

.avo-float__msg-text {
  display: block;
  padding-right: 36px;
}

.avo-float__msg-time {
  position: absolute;
  right: 10px;
  bottom: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.avo-float__msg--user .avo-float__msg-time {
  color: rgba(255, 255, 255, 0.82);
}

.avo-float__msg--ai .avo-float__msg-time {
  color: rgba(20, 50, 31, 0.5);
}

.avo-float__caret {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 2px;
  background: #00a436;
  vertical-align: text-bottom;
  animation: avo-float-caret 1.15s ease-in-out infinite;
}

.avo-float__thinking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avo-float__think {
  transform-box: fill-box;
  transform-origin: center;
  animation: avo-float-think 1.1s ease-in-out infinite;
}

.avo-float__think:nth-child(2) {
  animation-delay: 0.15s;
}

.avo-float__think:nth-child(3) {
  animation-delay: 0.3s;
}

.avo-float__composer {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 10px 16px 16px;
  overflow: visible;
}

@media (max-width: 767px) {
  .avo-float__composer {
    padding-bottom: 8px;
  }
}

.avo-float__form {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 7px 7px 7px 18px;
  border: 2px solid #b8f800;
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  transition: border-color 0.25s ease, box-shadow 0.3s ease;
}

.avo-float.is-open .avo-float__form {
  animation: avo-float-input-pulse 3.6s ease-in-out 1s infinite;
}

.avo-float__form:hover,
.avo-float__form.is-focused,
.avo-float__form.has-value {
  border-color: #d6ff6a;
  box-shadow: 0 0 0 2px rgba(184, 248, 0, 0.2);
  animation: none;
}

.avo-float__form textarea {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 22px;
  max-height: 66px;
  padding: 0;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: #14321f;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  overflow-y: hidden;
}

.avo-float__form textarea::placeholder {
  color: #5b6e60;
  font-weight: 400;
}

.avo-float__form textarea:disabled {
  opacity: 0.7;
}

.avo-float__send {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(160deg, #067a38 0%, #005123 55%, #003d1b 100%);
  box-shadow: 0 4px 12px rgba(0, 38, 13, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s ease, opacity 0.2s ease, box-shadow 0.22s ease;
}

.avo-float__send::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 25%, rgba(184, 248, 0, 0.35), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.avo-float__send:hover:not(:disabled),
.avo-float__send:focus-visible:not(:disabled) {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px rgba(184, 248, 0, 0.28), 0 8px 18px rgba(0, 38, 13, 0.4);
}

.avo-float__form.is-focused .avo-float__send:not(:disabled),
.avo-float__form.has-value .avo-float__send:not(:disabled) {
  background: linear-gradient(160deg, #0a9a46 0%, #00692e 55%, #005123 100%);
  box-shadow: 0 0 0 3px rgba(184, 248, 0, 0.2), 0 6px 16px rgba(0, 38, 13, 0.38);
}

.avo-float__send:disabled {
  cursor: default;
  opacity: 0.7;
}

.avo-float__send img {
  position: relative;
  z-index: 1;
  display: block;
}

.avo-float__disclaimer {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

@keyframes avo-float-ping {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.75;
  }

  70%,
  100% {
    transform: translate(-50%, -50%) scale(1.75);
    opacity: 0;
  }
}

@keyframes avo-float-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(184, 248, 0, 0.55);
  }

  70%,
  100% {
    box-shadow: 0 0 0 7px rgba(184, 248, 0, 0);
  }
}

@keyframes avo-float-caret {
  0%,
  45% {
    opacity: 0.9;
  }

  70%,
  100% {
    opacity: 0;
  }
}

@keyframes avo-float-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes avo-float-soft {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes avo-float-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes avo-float-grid {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 56px 56px, 56px 56px;
  }
}

@keyframes avo-float-avatar-in {
  from {
    opacity: 0;
    transform: scale(0.72);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes avo-float-avatar-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-1.5px);
  }
}

@keyframes avo-float-avatar-spark {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.88) rotate(-8deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.08) rotate(8deg);
  }
}

@keyframes avo-float-avatar-ring {
  0% {
    opacity: 0.55;
    transform: scale(0.92);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes avo-float-think {
  0%,
  70%,
  100% {
    transform: translateY(0);
  }

  35% {
    transform: translateY(-6px);
  }
}

@keyframes avo-float-input-pulse {
  0%,
  100% {
    border-color: #b8f800;
    box-shadow: 0 0 0 0 rgba(184, 248, 0, 0);
  }

  50% {
    border-color: #d6ff6a;
    box-shadow: 0 0 0 2px rgba(184, 248, 0, 0.16);
  }
}

/* —— Open choreography: content first, suggestions after —— */
.avo-float.is-open .avo-float__bar,
.avo-float.is-open:not(.is-chat) .avo-float__hello,
.avo-float.is-open .avo-float__composer {
  animation: avo-float-soft 0.4s ease 0.08s both;
}

.avo-float.is-open .avo-float__composer {
  animation-delay: 0.14s;
}

@media (prefers-reduced-motion: reduce) {
  .avo-float__panel,
  .avo-float.is-open .avo-float__panel,
  .avo-float__dim,
  .avo-float.is-open .avo-float__dim,
  .avo-float__video,
  .avo-float.is-open .avo-float__video,
  .avo-float__grid,
  .avo-float__halo,
  .avo-float__disc,
  .avo-float__ping,
  .avo-float__prompt,
  .avo-float__prompt-caret,
  .avo-float__prompt-live,
  .avo-float__caret,
  .avo-float__turn,
  .avo-float__day,
  .avo-float__history,
  .avo-float__avatar,
  .avo-float__avatar::before,
  .avo-float__msg--user,
  .avo-float__msg--ai,
  .avo-float__think,
  .avo-float__close,
  .avo-float__form,
  .avo-float__send,
  .avo-float__bar,
  .avo-float__hello,
  .avo-float__composer,
  .avo-float__suggest,
  .avo-float__cta {
    animation: none !important;
    transition: none !important;
  }

  .avo-float__panel {
    transform: none;
    clip-path: none;
  }

  .avo-float.is-open .avo-float__panel {
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .avo-float.is-open .avo-float__video {
    opacity: 0.45;
    transform: none;
  }

  .avo-float.is-suggest-visible .avo-float__suggest {
    opacity: 1;
    transition-delay: 0s;
  }
}
