/* Ask AI assistant (21-Oct-2026): launcher above the WhatsApp button, chat panel bottom-right, full screen on phones. */
.btn-ask { background: var(--sv-deep); color: #fff; border: 1px solid rgba(46, 197, 240, .45); font-weight: 600; }
.btn-ask:hover, .btn-ask:focus { background: var(--sv-navy); color: #fff; }
.btn-ask i { color: var(--sv-teal2); }

.ask-launch { position: fixed; right: 20px; bottom: 94px; z-index: 1031; display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1.05rem .7rem .9rem;
  border: 1px solid rgba(46, 197, 240, .5); border-radius: 999px; background: var(--sv-deep); color: #fff; font-weight: 700; font-family: 'Bricolage Grotesque', sans-serif;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35), 0 0 0 0 rgba(46, 197, 240, .5); animation: askPulse 2.6s ease-out 3; }
.ask-launch i { color: var(--sv-teal2); font-size: 1.1rem; }
.ask-launch:hover { background: var(--sv-navy); }
.ask-open .ask-launch { display: none; }
@keyframes askPulse { 0% { box-shadow: 0 14px 34px rgba(0, 0, 0, .35), 0 0 0 0 rgba(46, 197, 240, .55); } 70%, 100% { box-shadow: 0 14px 34px rgba(0, 0, 0, .35), 0 0 0 14px rgba(46, 197, 240, 0); } }

.ask-panel { position: fixed; right: 20px; bottom: 22px; z-index: 1060; width: min(390px, calc(100vw - 40px)); height: min(600px, calc(100vh - 44px));
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sv-line); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.ask-panel[hidden] { display: none; }
.ask-head { display: flex; align-items: center; gap: .7rem; padding: 14px 14px 14px 16px; background: linear-gradient(120deg, var(--sv-deep), var(--sv-navy)); color: #fff; }
.ask-head h2 { font-size: 1rem; margin: 0; color: #fff; }
.ask-head small { display: flex; align-items: center; gap: .35rem; color: rgba(255, 255, 255, .7); font-size: .76rem; }
.ask-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sv-teal); box-shadow: 0 0 0 3px rgba(26, 111, 224, .25); }
.ask-ava { width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: rgba(46, 197, 240, .16); color: var(--sv-teal2); font-size: 1.15rem; }
.ask-x { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; }
.ask-x:hover { background: rgba(255, 255, 255, .2); }

.ask-log { flex: 1; overflow-y: auto; padding: 16px 14px 6px; background: var(--sv-bg); display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.ask-msg { max-width: 88%; padding: .65rem .85rem; border-radius: 16px; font-size: .9rem; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.ask-msg.bot { align-self: flex-start; background: #fff; color: var(--sv-ink); border: 1px solid var(--sv-line); border-bottom-left-radius: 5px; }
.ask-msg.me { align-self: flex-end; background: var(--sv-navy); color: #fff; border-bottom-right-radius: 5px; }
.ask-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .55rem; white-space: normal; }
.ask-links a, .ask-links button { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 600; padding: .32rem .7rem; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--sv-line); background: var(--sv-mint); color: var(--sv-navy); }
.ask-links a:hover, .ask-links button:hover { border-color: var(--sv-teal); }
.ask-links .wa { background: #25D366; border-color: #25D366; color: #fff; }
.ask-links .cta { background: var(--sv-navy); border-color: var(--sv-navy); color: #fff; }
.ask-typing { display: inline-flex; gap: 4px; padding: .8rem .9rem; }
.ask-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--sv-muted); opacity: .4; animation: askDot 1s infinite; }
.ask-typing i:nth-child(2) { animation-delay: .15s; } .ask-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes askDot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

.ask-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; background: var(--sv-bg); scrollbar-width: none; }
.ask-chips::-webkit-scrollbar { display: none; }
.ask-chips button { flex-shrink: 0; font-size: .8rem; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--sv-line); background: #fff; color: var(--sv-navy); }
.ask-chips button:hover { border-color: var(--sv-teal); background: var(--sv-mint); }
.ask-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--sv-line); background: #fff; }
.ask-form input { flex: 1; min-width: 0; border: 1px solid var(--sv-line); border-radius: 12px; padding: .6rem .8rem; font-size: 16px; }
.ask-form input:focus { outline: 0; border-color: var(--sv-teal); box-shadow: 0 0 0 3px rgba(26, 111, 224, .18); }
.ask-form button { width: 44px; flex-shrink: 0; border: 0; border-radius: 12px; background: var(--sv-grad); color: var(--sv-deep); font-size: 1.05rem; }
.ask-form button:disabled { opacity: .5; }
.ask-note { margin: 0; padding: 0 12px 10px; background: #fff; font-size: .7rem; color: var(--sv-muted); text-align: center; }

.sv-nav .btn-ask, .sv-nav .btn-wa, .sv-nav .btn-sv { white-space: nowrap; }
/* header button only where the nav has room; the floating launcher is always there */
@media (max-width: 1399.98px) { .sv-nav .btn-ask, .sv-nav .btn-wa { display: none !important; } }
@media (max-width: 767.98px) {
  .ask-launch { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); padding: .6rem .9rem .6rem .8rem; font-size: .9rem; }
  .ask-panel { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .ask-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .ask-launch { animation: none; } .ask-typing i { animation: none; opacity: .6; } }
