/* Webgital website assistant (loaded only when the assistant is switched on) */
.wgc-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 0.55rem; min-height: 56px; padding: 0 1.15rem 0 0.9rem;
  border: 0; border-radius: 999px; cursor: pointer; color: #fff;
  font: 700 0.98rem var(--font-display);
  background: radial-gradient(circle at 30% 25%, #5aa6ff, var(--blue) 45%, var(--cobalt));
  box-shadow: 0 16px 34px -12px rgba(1, 64, 180, 0.6), 0 0 0 4px rgba(255, 255, 255, 0.9);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wgc-launcher:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(1, 64, 180, 0.7), 0 0 0 4px #fff; }
.wgc-launcher:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.wgc-launcher svg { width: 26px; height: 26px; flex: none; }
.wgc-launcher[aria-expanded="true"] { display: none; }
body.has-mobile-cta .wgc-launcher { bottom: 88px; }
@media (max-width: 520px) { .wgc-launcher { padding: 0; width: 56px; justify-content: center; } .wgc-launcher-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

.wgc-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 61;
  width: min(390px, calc(100vw - 40px)); height: min(620px, calc(100vh - 40px));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 20px; background: #fff; color: var(--text);
  box-shadow: 0 30px 70px -20px rgba(7, 29, 74, 0.55), 0 0 0 1px rgba(7, 29, 74, 0.06);
}
.wgc-panel[hidden] { display: none; }
@media (max-width: 520px) { .wgc-panel { inset: 0; width: 100%; height: 100%; border-radius: 0; } }

.wgc-head {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.95rem 0.9rem 0.95rem 1.1rem; color: #fff;
  background: radial-gradient(70% 120% at 100% 0%, rgba(90, 170, 255, 0.45), transparent 60%), linear-gradient(135deg, var(--royal), var(--navy, #0b2a66));
}
.wgc-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.wgc-avatar svg { width: 22px; height: 22px; }
.wgc-title { margin: 0; font: 700 1.02rem var(--font-display); color: #fff; }
.wgc-sub { margin: 0.1rem 0 0; font-size: 0.82rem; color: var(--cyan); }
.wgc-head-actions { margin-left: auto; display: flex; gap: 0.25rem; }
.wgc-icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
.wgc-icon-btn:hover { background: rgba(255, 255, 255, 0.14); }
.wgc-icon-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.wgc-icon-btn svg { width: 20px; height: 20px; }

.wgc-notice { margin: 0; padding: 0.55rem 1.1rem; font-size: 0.78rem; line-height: 1.45; color: var(--muted); background: var(--sky-50, #f3f8ff); border-bottom: 1px solid var(--rule); }
.wgc-notice a { color: var(--blue-text); }

.wgc-log { flex: 1; overflow-y: auto; padding: 1rem 1rem 0.5rem; display: flex; flex-direction: column; gap: 0.6rem; overscroll-behavior: contain; }
.wgc-msg { max-width: 86%; padding: 0.65rem 0.9rem; border-radius: 16px; font-size: 0.95rem; line-height: 1.5; overflow-wrap: anywhere; }
.wgc-msg p { margin: 0 0 0.45rem; } .wgc-msg p:last-child { margin: 0; }
.wgc-msg ul { margin: 0.2rem 0 0.45rem; padding-left: 1.1rem; }
.wgc-msg a { color: inherit; font-weight: 700; }
.wgc-msg--bot { align-self: flex-start; background: var(--sky-100, #e8f1fe); color: var(--heading); border-bottom-left-radius: 6px; }
.wgc-msg--bot a { color: var(--blue-text); }
.wgc-msg--user { align-self: flex-end; background: var(--blue-hover); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.wgc-status { align-self: center; display: inline-flex; align-items: center; gap: 0.4rem; margin: 0.2rem 0; padding: 0.4rem 0.8rem; border-radius: 999px; font-size: 0.82rem; font-weight: 700; }
.wgc-status--ok { background: #e6f4ec; color: var(--ok); }
.wgc-status--error { background: #fdecea; color: var(--error); font-weight: 400; border-radius: 12px; text-align: center; max-width: 92%; }
.wgc-status--error a, .wgc-status--error button { color: var(--error); font-weight: 700; }
.wgc-status button { border: 0; background: none; padding: 0; cursor: pointer; text-decoration: underline; font: inherit; }

.wgc-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 0.8rem 0.95rem; border-radius: 16px; background: var(--sky-100, #e8f1fe); }
.wgc-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--azure, #2b7fe8); animation: wgc-dot 1.2s infinite ease-in-out; }
.wgc-typing span:nth-child(2) { animation-delay: 0.15s; } .wgc-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes wgc-dot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .wgc-typing span { animation: none; opacity: 0.7; } .wgc-launcher { transition: none; } }

.wgc-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0.15rem 0 0.4rem; }
.wgc-chip { border: 1px solid var(--sky-200, #dcebff); background: #fff; color: var(--royal); border-radius: 999px; padding: 0.45rem 0.8rem; min-height: 38px; font: 700 0.86rem var(--font-body); cursor: pointer; }
.wgc-chip:hover { background: var(--sky-50, #f3f8ff); border-color: var(--azure, #2b7fe8); }
.wgc-chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.wgc-form { display: flex; align-items: flex-end; gap: 0.5rem; padding: 0.7rem 0.75rem 0.8rem; border-top: 1px solid var(--rule); background: #fff; }
.wgc-input { flex: 1; resize: none; max-height: 120px; min-height: 46px; padding: 0.7rem 0.85rem; border: 1px solid #c9d2dc; border-radius: 14px; font: inherit; font-size: 1rem; line-height: 1.4; color: var(--text); }
.wgc-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.2); }
.wgc-send { flex: none; width: 46px; height: 46px; border: 0; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--blue-hover); cursor: pointer; }
.wgc-send:hover { background: var(--royal); }
.wgc-send:disabled { background: #9db5d6; cursor: not-allowed; }
.wgc-send:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.wgc-send svg { width: 20px; height: 20px; }
.wgc-count { font-size: 0.75rem; color: var(--muted); padding: 0 1rem 0.4rem; text-align: right; margin-top: -0.4rem; }
.wgc-count[hidden] { display: none; }
