.wsa-root { --wsa-accent: #1e66f5; --wsa-accent-dark: #123f99; --wsa-accent-soft: #e8f0fe; position: fixed; right: 20px; bottom: 20px; z-index: 99999; font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #1f2328; }
.wsa-root *, .wsa-root *::before, .wsa-root *::after { box-sizing: border-box; }
.wsa-root [hidden] { display: none !important; }
.wsa-root button { font: inherit; }

/* ---------- launcher + teaser ---------- */
.wsa-launcher { position: relative; width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--wsa-accent); background: linear-gradient(135deg, var(--wsa-accent), var(--wsa-accent-dark)); color: #fff; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.28); display: grid; place-items: center; padding: 0; overflow: visible; transition: transform .2s; animation: wsa-pop .4s ease-out; }
.wsa-launcher img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; background: #fff; padding: 8px; }
.wsa-launcher:hover { transform: scale(1.07); }
.wsa-launcher-dot { position: absolute; right: 1px; top: 1px; width: 14px; height: 14px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
@keyframes wsa-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.wsa-teaser { position: absolute; right: 4px; bottom: 78px; background: #fff; color: #1f2328; padding: 12px 34px 12px 16px; border-radius: 14px 14px 4px 14px; box-shadow: 0 8px 28px rgba(0,0,0,.18); white-space: nowrap; font-weight: 600; cursor: pointer; animation: wsa-rise .35s ease-out; }
.wsa-teaser-x { position: absolute; top: 4px; right: 6px; border: 0; background: none; color: #8b949e; font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 4px; }
@keyframes wsa-rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- panel ---------- */
.wsa-panel { width: 390px; max-width: calc(100vw - 24px); height: 620px; max-height: calc(100vh - 40px); background: #fff; border-radius: 18px; box-shadow: 0 16px 48px rgba(0,0,0,.28); display: flex; flex-direction: column; overflow: hidden; animation: wsa-rise .25s ease-out; }
.wsa-head { background: linear-gradient(135deg, var(--wsa-accent), var(--wsa-accent-dark)); color: #fff; padding: 14px 12px 14px 14px; display: flex; align-items: center; gap: 10px; }
.wsa-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wsa-title { font-weight: 700; font-size: 16px; letter-spacing: .2px; }
.wsa-status { font-size: 12px; opacity: .9; display: flex; align-items: center; gap: 6px; }
.wsa-status i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
.wsa-head button { background: transparent; border: 0; color: #fff; cursor: pointer; padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.wsa-head button:hover { background: rgba(255,255,255,.18); }

.wsa-avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.wsa-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.wsa-avatar-letter { color: var(--wsa-accent); font-weight: 700; }
.wsa-head .wsa-avatar { width: 42px; height: 42px; }

.wsa-body { flex: 1; display: flex; flex-direction: column; min-height: 0; background: #f5f7fa; }
.wsa-chat { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* ---------- details form ---------- */
.wsa-details { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.wsa-details-intro { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid #e3e6ea; border-radius: 14px; padding: 12px; margin-bottom: 4px; }
.wsa-details-intro p { margin: 2px 0 0; color: #57606a; font-size: 14px; }
.wsa-details label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #3b434b; }
.wsa-details .wsa-opt { font-weight: 400; color: #8b949e; }
.wsa-details input:not([type=checkbox]) { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #cfd4da; border-radius: 10px; background: #fff; }
.wsa-details input:focus { outline: 2px solid var(--wsa-accent); outline-offset: -1px; border-color: transparent; }
.wsa-details label.wsa-invalid input { border-color: #d1242f; background: #fff5f5; }
.wsa-details .wsa-consent { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; font-size: 12px; color: #57606a; }
.wsa-details .wsa-consent input { margin-top: 2px; }
.wsa-details .wsa-consent.wsa-invalid span { color: #d1242f; }
.wsa-details .wsa-consent a { color: var(--wsa-accent); }
.wsa-form-error { margin: 0; color: #d1242f; font-size: 13px; }
.wsa-start { border: 0; border-radius: 12px; padding: 12px; background: linear-gradient(135deg, var(--wsa-accent), var(--wsa-accent-dark)); color: #fff; font-weight: 700; cursor: pointer; margin-top: 4px; }
.wsa-start:disabled { opacity: .6; cursor: wait; }

/* ---------- messages ---------- */
.wsa-log { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.wsa-row { display: flex; gap: 8px; align-items: flex-end; }
.wsa-row-user { justify-content: flex-end; }
.wsa-row .wsa-avatar { width: 28px; height: 28px; }
.wsa-msg { max-width: 80%; padding: 10px 13px; border-radius: 16px; word-wrap: break-word; animation: wsa-rise .2s ease-out; }
.wsa-msg p { margin: 0 0 6px; } .wsa-msg p:last-child { margin: 0; }
.wsa-msg ul { margin: 4px 0; padding-left: 18px; } .wsa-msg li { margin: 3px 0; }
.wsa-bot { background: #fff; border: 1px solid #e3e6ea; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.wsa-bot a { color: var(--wsa-accent); font-weight: 600; }
.wsa-user { background: linear-gradient(135deg, var(--wsa-accent), var(--wsa-accent-dark)); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }

.wsa-typing { display: flex; gap: 4px; padding: 13px 15px; }
.wsa-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa3ad; animation: wsa-dot 1.2s infinite ease-in-out; }
.wsa-typing span:nth-child(2) { animation-delay: .15s; } .wsa-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes wsa-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.wsa-starters { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 36px; }
.wsa-starters button { border: 1px solid var(--wsa-accent); background: #fff; color: var(--wsa-accent); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; transition: background .15s; }
.wsa-starters button:hover { background: var(--wsa-accent-soft); }

.wsa-actions { display: flex; gap: 8px; padding: 8px 12px; border-top: 1px solid #e3e6ea; background: #fff; }
.wsa-btn { flex: 1; text-align: center; padding: 9px; border-radius: 10px; border: 1px solid var(--wsa-accent); color: var(--wsa-accent); text-decoration: none; font-weight: 600; font-size: 14px; }
.wsa-btn.wsa-primary { background: var(--wsa-accent); color: #fff; }

.wsa-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #e3e6ea; background: #fff; align-items: flex-end; }
.wsa-form textarea { flex: 1; resize: none; border: 1px solid #cfd4da; border-radius: 12px; padding: 10px 12px; font: inherit; max-height: 120px; background: #f8f9fb; }
.wsa-form textarea:focus { outline: 2px solid var(--wsa-accent); outline-offset: -1px; border-color: transparent; background: #fff; }
.wsa-form button { border: 0; background: linear-gradient(135deg, var(--wsa-accent), var(--wsa-accent-dark)); color: #fff; border-radius: 12px; width: 44px; height: 42px; cursor: pointer; display: grid; place-items: center; }
.wsa-form button:disabled { opacity: .5; cursor: wait; }
.wsa-foot { margin: 0; padding: 6px 12px 8px; font-size: 11px; color: #6b737c; text-align: center; background: #fff; }

@media (max-width: 480px) {
	.wsa-root { right: 12px; bottom: 12px; }
	.wsa-panel { width: calc(100vw - 24px); height: calc(100vh - 24px); }
	.wsa-teaser { white-space: normal; max-width: 70vw; }
}

/* Round mascot/avatar logos fill the whole circle */
.wsa-logo-fill .wsa-launcher { border: 0; background: transparent; }
.wsa-logo-fill .wsa-launcher img, .wsa-logo-fill .wsa-avatar img { padding: 0; object-fit: cover; background: transparent; }
.wsa-logo-fill .wsa-launcher { width: 70px; height: 70px; }
.wsa-logo-fill .wsa-head .wsa-avatar { width: 46px; height: 46px; }

/* ---------- stand-out launcher: label pill, glow pulse, bigger button ---------- */
.wsa-root { --wsa-glow: #22d3ee; }
.wsa-dock { display: flex; align-items: center; gap: 12px; }
.wsa-launcher { width: 76px; height: 76px; }
.wsa-logo-fill .wsa-launcher { width: 80px; height: 80px; }
.wsa-launcher::before, .wsa-launcher::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid var(--wsa-glow); opacity: 0; animation: wsa-pulse 2.6s ease-out infinite; pointer-events: none; }
.wsa-launcher::after { animation-delay: 1.3s; }
@keyframes wsa-pulse { 0% { transform: scale(.95); opacity: .75; } 100% { transform: scale(1.45); opacity: 0; } }
.wsa-launcher { box-shadow: 0 10px 28px rgba(0,0,0,.30), 0 0 0 4px rgba(34,211,238,.25); }
.wsa-launcher-dot { width: 16px; height: 16px; right: 3px; top: 3px; z-index: 1; }

.wsa-label { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; border: 0; cursor: pointer; text-align: left;
	background: linear-gradient(135deg, var(--wsa-accent), var(--wsa-accent-dark)); color: #fff; padding: 10px 18px 10px 16px; border-radius: 999px;
	box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: wsa-slide .5s ease-out .3s both, wsa-nudge 6s ease-in-out 4s infinite; transition: transform .2s; }
.wsa-label:hover { transform: translateX(-3px); }
.wsa-label strong { font-size: 15px; font-weight: 700; letter-spacing: .2px; white-space: nowrap; }
.wsa-label small { font-size: 12px; opacity: .9; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.wsa-label small i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.3); }
@keyframes wsa-slide { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wsa-nudge { 0%, 88%, 100% { transform: none; } 92% { transform: translateX(-6px); } 96% { transform: translateX(2px); } }
.wsa-teaser { bottom: 92px; }

@media (max-width: 480px) {
	.wsa-launcher { width: 64px; height: 64px; }
	.wsa-logo-fill .wsa-launcher { width: 66px; height: 66px; }
	.wsa-label { padding: 8px 14px; }
	.wsa-label small { display: none; }
	.wsa-teaser { bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
	.wsa-launcher::before, .wsa-launcher::after, .wsa-label { animation: none; }
}

/* ---------- newsletter ---------- */
.wsa-chip-news { display: inline-block; border-radius: 999px; padding: 6px 12px; font-size: 13px; text-decoration: none; font-weight: 600;
	background: linear-gradient(135deg, var(--wsa-accent), var(--wsa-accent-dark)); color: #fff !important; border: 1px solid transparent; }
.wsa-chip-news:hover { filter: brightness(1.15); }
.wsa-foot a { color: var(--wsa-accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.wsa-foot a:hover { text-decoration: underline; }

/* Sit above a site's fixed mobile contact bar (e.g. introstat.co.za .ib-mbar) */
@media (max-width: 767px) {
	body:has(.ib-mbar) .wsa-root { bottom: 74px; }
}

/* Move Google reCAPTCHA badge to the bottom-left so Zeta doesn't cover it (badge stays visible, as Google requires) */
.grecaptcha-badge { left: 4px !important; right: auto !important; width: 70px !important; overflow: hidden !important; transition: width .3s ease !important; z-index: 99990 !important; }
.grecaptcha-badge:hover { width: 256px !important; }

/* ---------- More services ---------- */
.wsa-starters .wsa-chip-more { border-style: dashed; font-weight: 600; }
.wsa-starters .wsa-chip-other { border-color: #8b949e; color: #3b434b; }
.wsa-starters .wsa-chip-other:hover { background: #f0f2f5; }
