/* ============================================================
   Awurama chat widget
   ============================================================ */
.aw-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  display: flex; align-items: center; gap: 11px;
  background: #1799c4;
  color: #fff;
  border: none; border-radius: 999px; padding: 8px 26px 8px 8px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55), 0 12px 30px rgba(0, 40, 86, 0.4);
  cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: 0.2px;
  overflow: hidden;
  transition: transform 0.2s var(--ease, ease), box-shadow 0.2s ease;
}
/* subtle deeper-teal swoosh curving in behind the avatar */
.aw-launcher::before {
  content: ""; position: absolute; left: -30px; top: -30px; width: 124px; height: 124px;
  border-radius: 50%; background: rgba(16, 122, 158, 0.6); pointer-events: none;
}
/* faint light ring accent on the right */
.aw-launcher::after {
  content: ""; position: absolute; right: -38px; top: -24px; width: 92px; height: 92px;
  border-radius: 50%; border: 6px solid rgba(255, 255, 255, 0.25); pointer-events: none;
}
.aw-launcher:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7), 0 16px 38px rgba(0, 40, 86, 0.5); }
.aw-launcher > * { position: relative; z-index: 1; }
.aw-launcher .aw-ava { width: 48px; height: 48px; border-radius: 50%; background: #1799c4; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9); }
.aw-launcher .aw-ava img { width: 100%; height: 100%; object-fit: cover; }
.aw-launcher.hidden { display: none; }
.aw-launcher .aw-dot { width: 9px; height: 9px; border-radius: 50%; background: #2fd07f; position: absolute; top: 9px; left: 35px; border: 2px solid #1799c4; z-index: 2; box-shadow: 0 0 0 2px rgba(47,208,127,0.3); }

.aw-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 950;
  width: 400px; max-width: calc(100vw - 24px);
  height: 640px; max-height: calc(100vh - 44px);
  background: #fff; border: 1px solid var(--line, #e8edf3); border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 40, 86, 0.22); display: flex; flex-direction: column;
  font-family: inherit;
  transform-origin: bottom right;
  animation: awIn 0.26s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes awIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
.aw-panel.hidden { display: none; }

.aw-head { background: #fff; color: var(--ink, #202124); padding: 14px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line, #e8edf3); }
.aw-head .aw-ava { width: 40px; height: 40px; border-radius: 50%; background: #002856; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.aw-head .aw-ava img { width: 100%; height: 100%; object-fit: cover; }
.aw-head .aw-title { flex: 1; line-height: 1.2; }
.aw-head .aw-title h4 { margin: 0; font-size: 16px; font-weight: 700; color: var(--blue-text, #003a70); }
.aw-head .aw-title p { margin: 2px 0 0; font-size: 12px; color: var(--muted, #37546d); display: flex; align-items: center; gap: 6px; }
.aw-head .aw-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #2fd07f; display: inline-block; }
.aw-head .aw-close { background: #fff4e8; border: none; color: var(--orange-600, #df7c09); width: 32px; height: 32px; border-radius: 999px; cursor: pointer; font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0; transition: background 0.15s ease, color 0.15s ease; }
.aw-head .aw-close:hover { background: var(--orange, #f4911e); color: #fff; }
.aw-head .aw-icon-btn { background: #fff4e8; border: none; color: var(--orange-600, #df7c09); width: 32px; height: 32px; border-radius: 999px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s ease, color 0.15s ease; }
.aw-head .aw-icon-btn:hover { background: var(--orange, #f4911e); color: #fff; }

.aw-verifybar {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: 12.5px;
  background: #fff8ef; border-bottom: 1px solid #f5e2ca; color: #92600f;
}
.aw-verifybar.verified { background: var(--green-bg, #e7f6ef); border-color: #c9ecdb; color: #2c7a59; }
.aw-verifybar .aw-vtext { flex: 1; }
.aw-verifybar button {
  border: none; background: var(--orange, #f4911e); color: #fff; font-weight: 700; font-family: inherit;
  font-size: 12px; padding: 6px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.aw-verifybar button:hover { background: var(--orange-600, #e87200); }
.aw-verifybar.verified button { background: transparent; color: #2c7a59; text-decoration: underline; padding: 6px 4px; }

.aw-verify-form { padding: 12px 14px; border-bottom: 1px solid var(--line-soft, #f0f2f5); background: #fffdfb; }
.aw-verify-form.hidden { display: none; }
.aw-verify-form p { margin: 0 0 8px; font-size: 12.5px; color: var(--muted, #5d6b80); }
.aw-verify-row { display: flex; gap: 8px; }
.aw-verify-row input {
  flex: 1; padding: 9px 12px; font-size: 14px; font-family: inherit; border: 1px solid var(--line, #e8edf3);
  border-radius: 999px; outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.aw-verify-row input:focus { border-color: var(--orange, #f4911e); box-shadow: 0 0 0 3px rgba(244,145,30,0.15); }
.aw-verify-row button {
  border: none; background: var(--orange, #f4911e); color: #fff; font-weight: 700; font-family: inherit;
  font-size: 13px; padding: 9px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.aw-verify-row button:hover { background: var(--orange-600, #df7c09); }
.aw-verify-row button:disabled { opacity: 0.6; cursor: default; }
.aw-verify-msg { margin: 8px 0 0; font-size: 12px; }
.aw-verify-msg.err { color: #b53636; }
.aw-verify-msg.ok { color: #2c7a59; }

.aw-body { flex: 1; overflow-y: auto; padding: 12px 14px; background: #fafafa; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: #c6d0dc transparent; }
.aw-body::-webkit-scrollbar { width: 8px; }
.aw-body::-webkit-scrollbar-track { background: transparent; }
.aw-body::-webkit-scrollbar-thumb { background: #c6d0dc; border-radius: 999px; border: 2px solid #fafafa; }
.aw-body::-webkit-scrollbar-thumb:hover { background: #9fb0c2; }
.aw-msg { display: flex; gap: 9px; max-width: 100%; }
.aw-msg .aw-bubble { padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.55; max-width: 80%; word-wrap: break-word; }
.aw-msg.bot .aw-mava { width: 28px; height: 28px; border-radius: 50%; background: #002856; border: 1px solid var(--line, #e8edf3); flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.aw-msg.bot .aw-mava img { width: 100%; height: 100%; object-fit: cover; }
.aw-msg.bot .aw-bubble { background: #fff; border: 1px solid var(--line, #e8edf3); color: var(--ink, #202124); border-top-left-radius: 4px; }
.aw-msg.user { flex-direction: row-reverse; }
.aw-msg.user .aw-bubble { background: var(--blue-text, #003a70); color: #fff; border-top-right-radius: 4px; }
.aw-bubble p { margin: 0 0 8px; }
.aw-bubble p:last-child { margin-bottom: 0; }
.aw-bubble p.aw-h { margin: 10px 0 4px; font-size: 13.5px; }
.aw-bubble p.aw-h:first-child { margin-top: 0; }
.aw-bubble ul, .aw-bubble ol { margin: 6px 0; padding-left: 20px; }
.aw-bubble li { margin: 2px 0; }
.aw-bubble a { color: var(--orange-600, #e87200); font-weight: 700; }
.aw-msg.user .aw-bubble a { color: #ffd9a8; }
.aw-bubble code { background: rgba(0,0,0,0.06); padding: 1px 5px; border-radius: 4px; font-size: 13px; }

.aw-typing { display: flex; gap: 4px; padding: 12px 14px; }
.aw-typing span { width: 7px; height: 7px; border-radius: 50%; background: #b9c2d0; animation: awblink 1.2s infinite both; }
.aw-typing span:nth-child(2) { animation-delay: 0.2s; }
.aw-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes awblink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

.aw-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px 6px; }
.aw-chip {
  border: 1px solid var(--line, #e4e9f1); background: #fff; color: var(--navy, #002856);
  font-family: inherit; font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.aw-chip:hover { background: var(--navy-050, #eef3f9); border-color: var(--navy, #002856); }

.aw-composer { border-top: 1px solid var(--line, #e8edf3); padding: 10px 12px; background: #fff; }
.aw-composer.menu-only { padding: 6px 12px 8px; }
.aw-composer.menu-only.empty-foot { padding: 0; border-top: none; }
.aw-composer-row { display: flex; gap: 8px; align-items: flex-end; }
.aw-composer-row.hidden { display: none; }
.aw-composer textarea {
  flex: 1; resize: none; border: 1px solid var(--line, #e8edf3); border-radius: 999px; padding: 10px 14px;
  font-family: inherit; font-size: 14px; max-height: 110px; outline: none; line-height: 1.45;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.aw-composer textarea:focus { border-color: var(--orange, #f4911e); box-shadow: 0 0 0 3px rgba(244,145,30,0.15); }
.aw-send {
  border: none; background: var(--orange, #f4911e); color: #fff; width: 42px; height: 42px; border-radius: 999px;
  cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.aw-send:hover { background: var(--orange-600, #e87200); }
.aw-send:disabled { opacity: 0.5; cursor: default; }
.aw-foot { text-align: center; padding: 7px 12px 0; }
.aw-composer.menu-only .aw-foot { padding-top: 0; }
.aw-foot a { font-size: 12px; color: var(--muted, #5d6b80); cursor: pointer; }
.aw-foot a:hover { color: var(--navy, #002856); }
.aw-foot b { color: var(--orange-600, #e87200); }

/* ---- Guided menu cards ------------------------------------------------- */
.aw-intro { display: flex; gap: 9px; align-items: flex-start; }
.aw-intro .aw-mava { width: 28px; height: 28px; border-radius: 50%; background: #002856; border: 1px solid var(--line, #e8edf3); flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.aw-intro .aw-mava img { width: 100%; height: 100%; object-fit: cover; }
.aw-introtext { background: #fff; border: 1px solid var(--line, #e8edf3); border-top-left-radius: 4px; border-radius: 16px; padding: 9px 12px; font-size: 13.5px; line-height: 1.45; color: var(--ink, #202124); }
.aw-introtext p { margin: 0 0 8px; } .aw-introtext p:last-child { margin: 0; }

.aw-card { background: #fff; border: 1px solid var(--line, #e8edf3); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,40,86,0.04); flex-shrink: 0; }
.aw-intro, .aw-navbar, .aw-msg { flex-shrink: 0; }
.aw-card-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--orange-600, #df7c09); padding: 10px 14px 6px; }
.aw-faq-entry .aw-opt { justify-content: center; text-align: center; padding: 12px 14px; }
.aw-faq-entry .aw-opt-txt { flex: 0 1 auto; text-align: center; }
.aw-faq-entry .aw-opt-chev { margin-left: auto; }

.aw-opt {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  background: #fff; border: none; border-top: 1px solid var(--line-soft, #f0f2f5);
  padding: 11px 14px; cursor: pointer; font-family: inherit; color: var(--ink, #202124);
  transition: background 0.13s ease;
}
.aw-card-h + .aw-opt, .aw-opt:first-child { border-top: none; }
.aw-opt:hover { background: #fffaf4; }
.aw-opt-ic { width: 32px; height: 32px; border-radius: 999px; background: #fff4e8; color: var(--orange-600, #df7c09); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.aw-opt-ic svg { width: 18px; height: 18px; }
.aw-opt-txt { flex: 1; min-width: 0; line-height: 1.3; }
.aw-opt-label { display: block; font-size: 14px; font-weight: 600; }
.aw-opt-sub { display: block; font-size: 12px; color: var(--muted, #37546d); margin-top: 1px; }
.aw-opt-chev { color: #b9c2d0; display: flex; flex-shrink: 0; }
.aw-opt-chev svg { width: 16px; height: 16px; }

/* ---- Nav bar (back / menu) -------------------------------------------- */
.aw-navbar { display: flex; align-items: center; gap: 8px; }
.aw-navback, .aw-navhome {
  display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line, #e8edf3);
  background: #fff; color: var(--blue-text, #003a70); font-family: inherit; font-size: 12.5px; font-weight: 600;
  padding: 6px 11px; border-radius: 999px; cursor: pointer; transition: background 0.13s ease, border-color 0.13s ease;
}
.aw-navback svg { width: 15px; height: 15px; }
.aw-navback:hover, .aw-navhome:hover { background: #fffaf4; border-color: rgba(244,145,30,0.35); }
.aw-navtitle { flex: 1; font-size: 13px; font-weight: 700; color: var(--blue-text, #003a70); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Answers ---------------------------------------------------------- */
.aw-answer { padding: 4px 14px 12px; font-size: 14px; line-height: 1.6; color: var(--ink, #202124); }
.aw-answer p { margin: 0 0 9px; } .aw-answer p:last-child { margin: 0; }
.aw-answer ul, .aw-answer ol { margin: 6px 0; padding-left: 20px; }
.aw-answer a { color: var(--orange-600, #e87200); font-weight: 700; }
.aw-answer-note { padding: 0 14px 12px; font-size: 12.5px; color: var(--muted, #37546d); }
.aw-video-link { cursor: pointer; }
.aw-video-link span { color: #f4911e; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.aw-video-link:hover span { color: #d97b06; }

/* ---- Action buttons --------------------------------------------------- */
.aw-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid var(--line-soft, #f0f2f5); }
.aw-btn { border: 1px solid var(--line, #e8edf3); background: #fff; color: var(--blue-text, #003a70); font-family: inherit; font-size: 13px; font-weight: 700; padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: all 0.13s ease; }
.aw-btn:hover { background: #fffaf4; border-color: rgba(244,145,30,0.35); }
.aw-btn.primary { background: var(--orange, #f4911e); border-color: var(--orange, #f4911e); color: #fff; }
.aw-btn.primary:hover { background: var(--orange-600, #e87200); border-color: var(--orange-600, #e87200); }
.aw-btn.ghost { background: #fff; }
.aw-btn.link { border: none; background: transparent; color: var(--muted, #5d6b80); padding: 9px 6px; text-decoration: underline; font-weight: 600; }
.aw-btn.link:hover { color: var(--navy, #002856); background: transparent; }
.aw-inline-verify { display: block; margin-top: 10px; }

/* ---- FAQ search ------------------------------------------------------- */
.aw-faqsearch { padding: 12px 12px; overflow: visible; }
.aw-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line, #e8edf3); border-radius: 999px; padding: 8px 12px; }
.aw-search:focus-within { border-color: var(--orange, #f4911e); box-shadow: 0 0 0 3px rgba(244,145,30,0.15); }
.aw-search-ic { color: var(--muted, #5d6b80); display: flex; }
.aw-search-ic svg { width: 17px; height: 17px; }
.aw-search input { flex: 1; border: none; outline: none; font-family: inherit; font-size: 14px; background: transparent; }
.aw-faqsearch #awFaqResults .aw-opt, .aw-faqsearch #awFaqResults { margin-top: 6px; }
.aw-faqsearch #awFaqResults .aw-opt { border-top: 1px solid var(--line-soft, #eef1f6); }
.aw-noresults { padding: 12px 4px 2px; font-size: 13px; color: var(--muted, #5d6b80); }

@media (max-width: 480px) {
  .aw-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
  .aw-launcher { right: 16px; bottom: 16px; }
  .aw-msg .aw-bubble { max-width: 86%; }
}
@media (prefers-reduced-motion: reduce) {
  .aw-panel, .aw-launcher { animation: none !important; transition: none !important; }
}
