/* Anii — website assistant (js/anii-bot.js) */
.anii { --a-red: #cd1f22; --a-ink: #111; --a-soft: #f3f3f4; --a-line: rgba(17,17,17,.08); position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 80; font-family: inherit; }
.anii__fab { display: flex; align-items: center; gap: .55rem; height: 3.6rem; padding: 0 1.35rem 0 .45rem; border: 0; border-radius: 999px; background: linear-gradient(135deg, #e3262b 0%, #cd1f22 55%, #a8161a 100%); color: #fff; font: inherit; font-size: .95rem; font-weight: 500; letter-spacing: .01em; cursor: pointer; box-shadow: 0 .8rem 2rem rgba(205,31,34,.38), inset 0 1px 0 rgba(255,255,255,.18); transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s; position: relative; }
.anii__fab:hover { transform: translateY(-2px); box-shadow: 0 1.1rem 2.6rem rgba(205,31,34,.45), inset 0 1px 0 rgba(255,255,255,.18); }
.anii__fab:active { transform: scale(.96); }
.anii__fab:focus-visible { outline: 2px solid var(--a-ink); outline-offset: 3px; }
.anii__fab-ic { width: 2.7rem; height: 2.7rem; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.anii__fab-ic svg { width: 2.05rem; height: 2.05rem; }
.anii__ping { position: absolute; top: .2rem; left: 2.35rem; width: .75rem; height: .75rem; border-radius: 50%; background: #f5c318; box-shadow: 0 0 0 2px #cd1f22; }
.anii.is-seen .anii__ping { display: none; }
.anii.is-nudge .anii__fab { animation: anii-nudge 1.6s cubic-bezier(.16,1,.3,1) 2; }
@keyframes anii-nudge { 0%,100% { transform: none; } 20% { transform: translateY(-6px); } 40% { transform: none; } 55% { transform: translateY(-3px); } 70% { transform: none; } }
.anii.is-open .anii__fab { display: none; }

.anii__panel { position: fixed; right: 1.25rem; bottom: 1.25rem; width: min(24.5rem, calc(100vw - 2.5rem)); height: min(40rem, calc(100vh - 2.5rem)); height: min(40rem, calc(100dvh - 2.5rem)); display: flex; flex-direction: column; background: #fff; color: var(--a-ink); border-radius: 1.5rem; overflow: hidden; box-shadow: 0 1.5rem 4rem rgba(0,0,0,.28), 0 0 0 1px var(--a-line); transform-origin: 100% 100%; animation: anii-in .35s cubic-bezier(.16,1,.3,1); }
.anii__panel[hidden] { display: none; }
@keyframes anii-in { from { transform: translateY(14px) scale(.97); } to { transform: none; } }

.anii__head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1rem 1rem 1.1rem; background: var(--a-ink); color: #fff; }
.anii__av { width: 2.7rem; height: 2.7rem; border-radius: 50%; background: linear-gradient(135deg, #e3262b, #a8161a); display: grid; place-items: center; flex: none; }
.anii__av svg { width: 1.95rem; height: 1.95rem; }
.anii__head h2 { font-size: 1.05rem; font-weight: 500; line-height: 1.2; margin: 0; }
.anii__head p { font-size: .72rem; opacity: .7; margin: .15rem 0 0; display: flex; align-items: center; gap: .35rem; }
.anii__live { width: .45rem; height: .45rem; border-radius: 50%; background: #2ecc71; display: inline-block; }
.anii__x { margin-left: auto; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.anii__x:hover { background: rgba(255,255,255,.22); }
.anii__x svg { width: 1.1rem; height: 1.1rem; }

.anii__log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--a-soft); scrollbar-width: thin; }
.anii__msg { max-width: 86%; padding: .7rem .9rem; border-radius: 1.1rem; font-size: .88rem; line-height: 1.5; word-wrap: break-word; }
.anii__msg--bot { align-self: flex-start; background: #fff; border-bottom-left-radius: .35rem; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.anii__msg--me { align-self: flex-end; background: var(--a-red); color: #fff; border-bottom-right-radius: .35rem; }
.anii__msg.is-new { animation: anii-msg .35s cubic-bezier(.16,1,.3,1); }
@keyframes anii-msg { from { transform: translateY(8px); } to { transform: none; } }
.anii__msg ul { margin: .45rem 0; padding-left: 1.1rem; }
.anii__msg li { margin: .15rem 0; }
.anii__msg a { color: var(--a-red); text-decoration: underline; text-underline-offset: 2px; }
.anii__msg--me a { color: #fff; }
.anii__wa { display: inline-flex !important; align-items: center; margin-top: .6rem; padding: .45rem .85rem; border-radius: 999px; background: #25d366; color: #fff !important; text-decoration: none !important; font-weight: 500; font-size: .8rem; }
.anii__typing { display: flex; gap: .25rem; padding: .85rem .95rem; }
.anii__typing i { width: .42rem; height: .42rem; border-radius: 50%; background: #b9b9bf; animation: anii-dot 1s infinite; }
.anii__typing i:nth-child(2) { animation-delay: .15s; } .anii__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes anii-dot { 0%,60%,100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.anii__chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem 1rem .2rem; background: #fff; border-top: 1px solid var(--a-line); }
.anii__chips:empty { display: none; }
.anii__chip { border: 1px solid rgba(17,17,17,.14); background: #fff; color: var(--a-ink); border-radius: 999px; padding: .4rem .8rem; font: inherit; font-size: .78rem; cursor: pointer; text-decoration: none; transition: background .2s, border-color .2s, transform .15s; }
.anii__chip:hover { background: var(--a-soft); border-color: rgba(17,17,17,.3); }
.anii__chip:active { transform: scale(.96); }
.anii__chip--lead { background: var(--a-red); border-color: var(--a-red); color: #fff; }
.anii__chip--lead:hover { background: #b0191c; border-color: #b0191c; }
.anii__chip--wa { border-color: #25d366; color: #128c4a; }

.anii__form { display: flex; gap: .5rem; padding: .7rem 1rem; background: #fff; }
.anii__form input { flex: 1; min-width: 0; height: 2.75rem; border: 1px solid rgba(17,17,17,.14); border-radius: 999px; padding: 0 1rem; font: inherit; font-size: 16px; color: var(--a-ink); background: #fff; }
.anii__form input:focus { outline: none; border-color: var(--a-ink); }
.anii__form button { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: var(--a-ink); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .15s, background .2s; }
.anii__form button:hover { background: var(--a-red); }
.anii__form button:active { transform: scale(.94); }
.anii__form button svg { width: 1.15rem; height: 1.15rem; }
.anii__foot { margin: 0; padding: 0 1rem .7rem; background: #fff; font-size: .66rem; color: #77777f; text-align: center; }
.anii__foot a { color: inherit; text-decoration: underline; }

/* phones: the button shrinks to a circle, the panel becomes a full-height sheet */
@media (max-width: 639px) {
  .anii { right: .9rem; bottom: .9rem; }
  .anii__fab { width: 3.75rem; height: 3.75rem; padding: 0; justify-content: center; }
  .anii__fab-ic { background: transparent; }
  .anii__fab-ic svg { width: 2.35rem; height: 2.35rem; }
  .anii__ping { top: .35rem; left: auto; right: .35rem; }
  .anii__fab-tx { display: none; }
  .anii__panel { inset: 0; right: 0; bottom: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; }
  html.anii-open, html.anii-open body { overflow: hidden; }
}
/* the icon: a white speech bubble with the brand dots, which "type" every few seconds */
.anii__bub { fill: #fff; }
.anii__d { transform-box: fill-box; transform-origin: center; }
.anii__d1, .anii__d2 { fill: #cd1f22; }
.anii__d3 { fill: #f5c318; }
.anii__fab .anii__d { animation: anii-type 4.2s ease-in-out infinite; }
.anii__fab .anii__d2 { animation-delay: .14s; } .anii__fab .anii__d3 { animation-delay: .28s; }
@keyframes anii-type { 0%, 14%, 100% { transform: none; } 5% { transform: translateY(-2.6px); } 10% { transform: translateY(.6px); } }
.anii__fab:hover .anii__d { animation: anii-hop .7s ease-in-out infinite; }
.anii__fab:hover .anii__d2 { animation-delay: .1s; } .anii__fab:hover .anii__d3 { animation-delay: .2s; }
@keyframes anii-hop { 0%, 100% { transform: none; } 40% { transform: translateY(-2.8px); } }
.anii__av .anii__d { animation: none; }
@media (prefers-reduced-motion: reduce) { .anii__panel, .anii__msg.is-new, .anii.is-nudge .anii__fab, .anii__typing i, .anii__fab .anii__d { animation: none; } }
@media print { .anii { display: none; } }
