/* Adept Assistant — AI sales chat widget */
.aa-root { --aa-blue: #083493; --aa-navy: #033d75; --aa-red: #d42027; --aa-line: #e3e7ef; --aa-muted: #5a6478; --aa-bg: #f7f8fb;
  font-family: "Plus Jakarta Sans Variable", ui-sans-serif, system-ui, sans-serif; color: #033d75; }
.aa-root *, .aa-root *::before, .aa-root *::after { box-sizing: border-box; }

.aa-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px 0 8px; border: 0; border-radius: 999px; background: var(--aa-blue); color: #fff; cursor: pointer;
  font: 600 15px/1 inherit; font-family: inherit; box-shadow: 0 2px 4px rgb(3 30 70 / .08), 0 18px 40px -12px rgb(3 30 70 / .45); transition: transform .2s, background .2s; }
.aa-launcher:hover { background: #062a78; transform: translateY(-2px); }
.aa-launcher .aa-avatar { width: 40px; height: 40px; }
.aa-launcher[aria-expanded="true"] { display: none; }
@media (min-width: 640px) { .aa-launcher { right: 28px; bottom: 28px; } }
@media (max-width: 480px) { .aa-launcher .aa-launch-label { display: none; } .aa-launcher { padding: 0 8px; width: 56px; justify-content: center; } }

.aa-avatar { display: grid; place-items: center; border-radius: 999px; background: #fff; flex-shrink: 0; position: relative; }
.aa-avatar img { width: 72%; height: auto; }
.aa-dot { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 99px; background: #22c55e; border: 2px solid #fff; }
.aa-dot.off { background: #9aa3b5; }

.aa-teaser { position: fixed; right: 20px; bottom: 152px; z-index: 45; max-width: 290px; padding: 14px 40px 14px 16px; border-radius: 18px 18px 4px 18px;
  background: #fff; border: 1px solid var(--aa-line); box-shadow: 0 18px 40px -12px rgb(3 30 70 / .35); font-size: 14px; line-height: 1.45;
  animation: aa-pop .35s cubic-bezier(.22,1,.36,1) both; cursor: pointer; text-align: left; color: #033d75; font-family: inherit; }
.aa-teaser strong { display: block; margin-bottom: 2px; }
.aa-teaser-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; background: transparent; border-radius: 99px; cursor: pointer; color: var(--aa-muted); font-size: 18px; line-height: 1; }
.aa-teaser-x:hover { background: var(--aa-bg); }
@media (min-width: 640px) { .aa-teaser { right: 28px; bottom: 164px; } }

.aa-panel { position: fixed; z-index: 70; right: 20px; bottom: 20px; width: 400px; height: min(640px, calc(100dvh - 40px)); display: flex; flex-direction: column;
  background: #fff; border-radius: 24px; border: 1px solid var(--aa-line); overflow: hidden;
  box-shadow: 0 2px 4px rgb(3 30 70 / .06), 0 30px 70px -20px rgb(3 30 70 / .5); animation: aa-pop .3s cubic-bezier(.22,1,.36,1) both; }
.aa-panel[hidden] { display: none; }
@media (min-width: 640px) { .aa-panel { right: 28px; bottom: 28px; } }
@media (max-width: 520px) { .aa-panel { inset: 0; width: 100%; height: 100dvh; border-radius: 0; border: 0; } }
@keyframes aa-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

.aa-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--aa-navy); color: #fff; }
.aa-head .aa-avatar { width: 42px; height: 42px; }
.aa-title { font-weight: 700; font-size: 16px; line-height: 1.2; }
.aa-sub { font-size: 12px; color: rgb(255 255 255 / .75); margin-top: 2px; }
.aa-head-actions { margin-left: auto; display: flex; gap: 4px; }
.aa-icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 99px; background: transparent; color: #fff; cursor: pointer; }
.aa-icon-btn:hover { background: rgb(255 255 255 / .12); }
.aa-icon-btn svg { width: 20px; height: 20px; }

.aa-log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; background: var(--aa-bg); scroll-behavior: smooth; }
.aa-msg { display: flex; margin-bottom: 10px; }
.aa-msg.user { justify-content: flex-end; }
.aa-bubble { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.aa-msg.bot .aa-bubble { background: #fff; border: 1px solid var(--aa-line); border-top-left-radius: 6px; color: #10284d; }
.aa-msg.user .aa-bubble { background: var(--aa-blue); color: #fff; border-top-right-radius: 6px; }
.aa-bubble p { margin: 0 0 6px; } .aa-bubble p:last-child { margin: 0; }
.aa-bubble ul { margin: 4px 0 6px; padding-left: 18px; list-style: disc; } .aa-bubble li { margin: 2px 0; }
.aa-bubble a { color: inherit; text-decoration: underline; }

.aa-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.aa-typing span { width: 7px; height: 7px; border-radius: 99px; background: #9aa3b5; animation: aa-bounce 1.2s infinite ease-in-out; }
.aa-typing span:nth-child(2) { animation-delay: .15s; } .aa-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes aa-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }

.aa-card { margin: 4px 0 12px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--aa-line); font-size: 13.5px; }
.aa-card-title { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--aa-muted); }
.aa-card-big { font-size: 26px; font-weight: 800; color: var(--aa-blue); margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.aa-card dl { margin: 8px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; } .aa-card dt { color: var(--aa-muted); } .aa-card dd { margin: 0; font-weight: 600; text-align: right; }
.aa-card-note { margin-top: 8px; font-size: 12px; color: var(--aa-muted); }
.aa-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.aa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font: 600 14px/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.aa-btn svg { width: 18px; height: 18px; }
.aa-btn-wa { background: #25d366; color: #052e16; }
.aa-btn-wa:hover { background: #3ae07a; }
.aa-btn-blue { background: var(--aa-blue); color: #fff; } .aa-btn-blue:hover { background: #062a78; }
.aa-btn-outline { background: #fff; border-color: var(--aa-line); color: #033d75; } .aa-btn-outline:hover { border-color: #b8c2d6; }

.aa-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 10px; }
.aa-chip { border: 1px solid #c9d3ea; background: #fff; color: var(--aa-blue); border-radius: 999px; padding: 8px 13px; font: 600 13px/1.2 inherit; font-family: inherit; cursor: pointer; transition: all .15s; }
.aa-chip:hover { background: var(--aa-blue); color: #fff; border-color: var(--aa-blue); }

.aa-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 8px; border-top: 1px solid var(--aa-line); background: #fff; }
.aa-input { flex: 1; resize: none; max-height: 120px; min-height: 44px; padding: 11px 14px; border-radius: 22px; border: 1px solid var(--aa-line); font: 15px/1.4 inherit; font-family: inherit; color: #033d75; background: var(--aa-bg); }
.aa-input:focus { outline: none; border-color: var(--aa-blue); box-shadow: 0 0 0 4px rgb(8 52 147 / .1); background: #fff; }
.aa-send { width: 44px; height: 44px; border-radius: 99px; border: 0; background: var(--aa-red); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.aa-send:disabled { opacity: .5; cursor: not-allowed; }
.aa-send svg { width: 20px; height: 20px; }
.aa-foot { padding: 0 14px 10px; font-size: 11.5px; color: var(--aa-muted); text-align: center; background: #fff; }
.aa-foot a { color: inherit; }

.aa-root :focus-visible { outline: 2px solid #3b6fd8; outline-offset: 2px; }
.aa-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
@media (prefers-reduced-motion: reduce) { .aa-panel, .aa-teaser { animation: none; } .aa-typing span { animation: none; opacity: .7; } }
