/* Virago Assistant widget — styled entirely from brand tokens (CSS vars set by widget.js). */
#virago-assistant-root {
	--va-primary: #002B2A;
	--va-secondary: #1ABC9C;
	--va-text: #222222;
	--va-neutral: #E6E6E6;
	--va-bg: #FFFFFF;
	--va-on-primary: #FFFFFF;
	--va-bot-bg: #F2F4F4;
	--va-radius: 16px;
	--va-font: "Roboto", Arial, Helvetica, sans-serif;
	--va-side: 24px;
}
#virago-assistant-root.va-rtl { --va-font: "Noto Kufi Arabic", "Tahoma", sans-serif; }

.va-launcher,
.va-panel,
.va-panel * { box-sizing: border-box; }

/* Launcher — a fixed WRAP holding one (chat) or two (chat + call) equal
   circular buttons. Equal visual weight is the whole point of requirement 5. */
.va-launcher-wrap {
	position: fixed;
	/* Anchor coords come from .va-pos-* on the root — see below. */
	display: flex;
	gap: 10px;
	z-index: 2147483000;
}
.va-launcher-wrap.va-hidden { display: none; }
.va-launcher {
	width: 60px;
	height: 60px;
	border: 0;
	border-radius: 50%;
	background: var(--va-primary);
	color: var(--va-on-primary);
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.va-launcher:hover { transform: scale(1.06); }
.va-launcher:focus-visible { outline: 3px solid var(--va-secondary); outline-offset: 3px; }
.va-launcher img, .va-launcher svg { width: 30px; height: 30px; display: block; }
/* Call launcher: identical size (equal weight), secondary tint to tell apart. */
.va-launcher-call { background: var(--va-secondary); }

/* Panel */
.va-panel {
	position: fixed;
	/* Anchor coords come from .va-pos-* on the root — see below. */
	width: 380px;
	max-width: calc(100vw - 32px);
	height: 560px;
	max-height: calc(100vh - 120px);
	max-height: calc(100dvh - 120px); /* dvh: keep the panel clear of the mobile soft-keyboard (UX-03) */
	background: var(--va-bg);
	color: var(--va-text);
	border-radius: var(--va-radius);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
	display: none;
	flex-direction: column;
	overflow: hidden;
	z-index: 2147483000;
	font-family: var(--va-font);
	font-size: 15px;
	line-height: 1.5;
}
.va-panel.va-open { display: flex; animation: va-in 0.18s ease; }
@keyframes va-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Position variants — applied to the root, anchor BOTH the launcher and the panel
   so they always cluster on the same corner. Logical inset-inline-* keeps RTL
   correct (right/left automatically mirror in Arabic). Top variants flip the
   open-animation direction too so the panel feels like it grows away from
   the launcher, not into it. */
#virago-assistant-root.va-pos-br .va-launcher-wrap { bottom: var(--va-side); inset-inline-end: var(--va-side); top: auto; inset-inline-start: auto; }
#virago-assistant-root.va-pos-br .va-panel    { bottom: calc(var(--va-side) + 76px); inset-inline-end: var(--va-side); top: auto; inset-inline-start: auto; }
#virago-assistant-root.va-pos-bl .va-launcher-wrap { bottom: var(--va-side); inset-inline-start: var(--va-side); top: auto; inset-inline-end: auto; }
#virago-assistant-root.va-pos-bl .va-panel    { bottom: calc(var(--va-side) + 76px); inset-inline-start: var(--va-side); top: auto; inset-inline-end: auto; }
#virago-assistant-root.va-pos-tr .va-launcher-wrap { top: var(--va-side); inset-inline-end: var(--va-side); bottom: auto; inset-inline-start: auto; }
#virago-assistant-root.va-pos-tr .va-panel    { top: calc(var(--va-side) + 76px); inset-inline-end: var(--va-side); bottom: auto; inset-inline-start: auto; }
#virago-assistant-root.va-pos-tl .va-launcher-wrap { top: var(--va-side); inset-inline-start: var(--va-side); bottom: auto; inset-inline-end: auto; }
#virago-assistant-root.va-pos-tl .va-panel    { top: calc(var(--va-side) + 76px); inset-inline-start: var(--va-side); bottom: auto; inset-inline-end: auto; }
@keyframes va-in-top { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
#virago-assistant-root.va-pos-tr .va-panel.va-open,
#virago-assistant-root.va-pos-tl .va-panel.va-open { animation: va-in-top 0.18s ease; }
@media (prefers-reduced-motion: reduce) {
	.va-panel.va-open { animation: none !important; }
}

.va-header {
	background: var(--va-primary);
	color: var(--va-on-primary);
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.va-header img { height: 24px; width: auto; display: block; }
.va-header .va-title { font-weight: 600; font-size: 16px; }
.va-close {
	background: transparent; border: 0; color: var(--va-on-primary);
	cursor: pointer; font-size: 22px; line-height: 1; padding: 4px; border-radius: 8px;
}

/* Mode tabs (Chat | Voice) — two equal tabs directly under the header, always
   visible so switching is one tap and nobody gets lost. Active = brand teal. */
.va-tabs {
	display: flex;
	border-bottom: 1px solid var(--va-neutral);
	background: var(--va-bg);
	flex: 0 0 auto;
}
.va-tab {
	flex: 1 1 0;
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	background: transparent; border: 0; cursor: pointer;
	padding: 12px 8px; font: inherit; font-size: 14px; font-weight: 600;
	color: var(--va-text); opacity: 0.6;
	border-bottom: 3px solid transparent;
}
.va-tab svg { display: block; }
.va-tab:hover { opacity: 0.9; }
.va-tab-active { color: var(--va-secondary); opacity: 1; border-bottom-color: var(--va-secondary); }
.va-tab:focus-visible { outline: 2px solid var(--va-secondary); outline-offset: -2px; }

/* View containers: exactly one visible (chat or voice); each fills the panel. */
.va-view { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.va-view.va-hidden { display: none; }

/* Voice view — our own in-frame call UI: orb + status + big mic. The language toggle was
   removed: voice speaks the SITE's language (WPML), never a per-widget choice. */
.va-view-voice { align-items: center; justify-content: center; text-align: center; padding: 20px; gap: 8px; }
.va-voice-orb {
	width: 120px; height: 120px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: radial-gradient(circle at 50% 40%, var(--va-secondary) 0%, var(--va-primary) 100%);
	box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.va-voice-orb-core {
	width: 74px; height: 74px; border-radius: 50%;
	background: rgba(255,255,255,0.22);
}
.va-view-voice[data-state="listening"] .va-voice-orb { animation: va-orb-pulse 1.6s ease-in-out infinite; }
.va-view-voice[data-state="speaking"] .va-voice-orb-core { animation: va-orb-speak 0.8s ease-in-out infinite; }
.va-view-voice[data-state="connecting"] .va-voice-orb { animation: va-orb-pulse 0.9s ease-in-out infinite; opacity: 0.85; }
@keyframes va-orb-pulse { 0%,100% { box-shadow: 0 10px 30px rgba(0,0,0,0.18); } 50% { box-shadow: 0 10px 30px rgba(0,0,0,0.18), 0 0 0 14px rgba(26,188,156,0.14); } }
@keyframes va-orb-speak { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .va-voice-orb, .va-voice-orb-core { animation: none !important; } }
.va-voice-status { font-size: 16px; font-weight: 600; color: var(--va-text); margin-top: 6px; }
.va-voice-hint { font-size: 13px; color: var(--va-text); opacity: 0.6; max-width: 260px; line-height: 1.45; }
.va-voice-bar { margin-top: 14px; }
.va-voice-btn {
	width: 68px; height: 68px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--va-secondary); color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 22px rgba(0,0,0,0.22);
	transition: transform 0.15s ease;
}
.va-voice-btn:hover { transform: scale(1.06); }
.va-voice-btn:focus-visible { outline: 3px solid var(--va-primary); outline-offset: 3px; }
.va-voice-btn.va-voice-btn-live { background: #b32d2e; animation: va-orb-pulse 1.3s ease-in-out infinite; }
.va-close:focus-visible { outline: 2px solid var(--va-on-primary); }

.va-messages {
	flex: 1; overflow-y: auto; padding: 16px;
	display: flex; flex-direction: column; gap: 10px;
}
/* Row wraps a bubble + its meta line so they stay aligned together
   (left for bot, right for user; mirrored in RTL by flex defaults). */
.va-msg-row { display: flex; flex-direction: column; max-width: 100%; }
.va-msg-row.va-bot-row  { align-items: flex-start; }
.va-msg-row.va-user-row { align-items: flex-end; }
.va-msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; }
.va-msg.va-bot { background: var(--va-bot-bg); color: var(--va-text); align-self: flex-start; border-bottom-left-radius: 4px; }
.va-msg.va-user { background: var(--va-secondary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
/* Per-message meta (Intercom-style "Fin · AI Agent · Just now").
   Small muted; "AI" tag is visually identical to the rest — disclosure
   should be readable, not decorated. */
.va-meta { font-size: 11px; color: rgba(0, 0, 0, 0.5); margin-top: 4px; line-height: 1.3; }
.va-rtl .va-meta { direction: rtl; }
/* Visitor feedback (thumbs up/down) — minimalist icon buttons under the
   bot meta line. SVG icons inherit color via currentColor; the muted default
   resolves to the brand secondary on hover so the action is felt without
   the row pulling visual focus from the message. */
.va-feedback { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 11px; color: rgba(0,0,0,0.5); }
.va-feedback-label { opacity: 0.85; margin-inline-end: 4px; }
.va-feedback-btn {
	border: 0; background: transparent;
	color: rgba(0,0,0,0.4);
	width: 22px; height: 22px; padding: 0;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%; cursor: pointer; line-height: 1;
	transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.va-feedback-btn:hover  { background: rgba(0,0,0,0.06); color: var(--va-secondary); }
.va-feedback-btn:active { transform: scale(0.92); }
.va-feedback-btn:focus-visible { outline: 2px solid var(--va-secondary); outline-offset: 2px; }
.va-feedback-btn svg { display: block; }
.va-feedback-thanks { font-style: italic; opacity: 0.7; }
.va-rtl .va-msg.va-bot { border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.va-rtl .va-msg.va-user { border-bottom-right-radius: 14px; border-bottom-left-radius: 4px; }
.va-msg a { color: var(--va-primary); text-decoration: underline; word-break: break-word; }
.va-msg.va-user a { color: #fff; }

/* A18 — rich card (e.g. a location card with a directions button, or an article card with a thumbnail). */
.va-card { max-width: 86%; align-self: flex-start; margin-top: 6px; padding: 12px 14px; background: var(--va-bot-bg); border: 1px solid rgba( 0, 0, 0, 0.08 ); border-radius: 14px; border-bottom-left-radius: 4px; }
.va-card-img { display: block; width: 100%; height: auto; max-height: 150px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
.va-card-title { font-weight: 600; color: var(--va-text); margin-bottom: 2px; }
.va-card-line { color: var(--va-text); opacity: 0.8; font-size: 13px; line-height: 1.5; }
/* Text is pinned white in every state so a host theme's `a:hover` can't hide it on the dark button. */
.va-card-btn,
.va-card-btn:link,
.va-card-btn:visited,
.va-card-btn:hover,
.va-card-btn:focus,
.va-card-btn:active { display: inline-block; margin-top: 10px; padding: 8px 14px; border-radius: 10px; background: var(--va-primary); color: #fff !important; text-decoration: none; font-size: 14px; font-weight: 500; }
.va-card-btn:hover { opacity: 0.92; }
.va-rtl .va-card { border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }

/* Live human agent — a warm bubble + person avatar, unmistakably NOT the AI's cool grey. */
.va-msg-row.va-agent-row { flex-direction: row; align-items: flex-end; gap: 6px; }
.va-agent-avatar { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--va-primary); color: #fff; }
.va-agent-avatar svg { width: 15px; height: 15px; }
.va-msg.va-agent { background: #FFF3E6; color: var(--va-text); align-self: flex-start; border-bottom-left-radius: 4px; border-inline-start: 3px solid var(--va-primary); }
.va-rtl .va-msg-row.va-agent-row { flex-direction: row-reverse; }

/* AI↔human boundary banner (connecting / joined / left) + Back-to-AI. */
.va-handoff-banner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 6px auto; padding: 8px 12px; border-radius: 12px; font-size: 13px; line-height: 1.35; text-align: center; }
.va-handoff-banner .va-ho-label { display: inline-flex; align-items: center; gap: 5px; }
.va-handoff-banner svg { vertical-align: middle; }
.va-ho-waiting { background: var(--va-bot-bg); color: var(--va-text); }
.va-ho-active  { background: #E9F6EC; color: #1B5E20; }
.va-ho-ended   { background: var(--va-bot-bg); color: var(--va-text); }
.va-ho-back { background: transparent; border: 1px solid var(--va-primary); color: var(--va-primary); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 12px; cursor: pointer; }
.va-ho-back:hover { background: var(--va-primary); color: var(--va-on-primary); }
.va-ho-back:focus-visible { outline: 2px solid var(--va-primary); outline-offset: 2px; }

/* Keep Latin/number runs (phone numbers, emails, URLs) from being reordered inside RTL Arabic.
   Forced with id-specificity + !important: some RTL theme stylesheets reset <bdi>'s default
   isolation to unicode-bidi:normal, which lets RTL flip a phone number (e.g. +971 6 546 6484
   -> +2337 ...). This guarantees the isolate regardless of the host theme's RTL CSS. */
#virago-assistant-root .va-msg bdi { unicode-bidi: isolate !important; direction: ltr !important; }
/* Rendered **bold** from the assistant. */
.va-msg strong { font-weight: 700; }

/* Typing indicator */
.va-typing { display: inline-flex; gap: 4px; align-items: center; }
.va-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--va-secondary); opacity: 0.55; animation: va-bounce 1.2s infinite ease-in-out; } /* brand-tinted dots (UX-13) */
.va-typing span:nth-child(2) { animation-delay: 0.2s; }
.va-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes va-bounce { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; } 40% { transform: scale(1); opacity: 1; } }

.va-talk-row { padding: 0 16px 8px; }
.va-talk {
	background: transparent; border: 1px solid var(--va-secondary); color: var(--va-primary);
	border-radius: 999px; padding: 7px 14px; font: inherit; cursor: pointer;
}
.va-talk:hover { background: var(--va-secondary); color: #fff; }
.va-talk:focus-visible { outline: 2px solid var(--va-secondary); outline-offset: 2px; }

/* Inline lead CTA (shown after a membership/pricing answer) */
.va-lead-cta-row { padding: 2px 16px 10px; }
.va-lead-cta {
	background: var(--va-secondary); color: #fff; border: 0; border-radius: 999px;
	padding: 9px 18px; font: inherit; font-weight: 600; cursor: pointer;
}
.va-lead-cta:hover { filter: brightness(0.95); }
.va-lead-cta:focus-visible { outline: 2px solid var(--va-primary); outline-offset: 2px; }

/* Starter chips (empty state + greeting/clarify/redirect) */
.va-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 10px; }
.va-chip {
	background: #fff; border: 1px solid var(--va-secondary); color: var(--va-primary);
	border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13px; cursor: pointer;
}
.va-chip:hover { background: var(--va-secondary); color: #fff; }
.va-chip:focus-visible { outline: 2px solid var(--va-primary); outline-offset: 2px; }

/* Questionnaire progress caption ("Question 3 of 7"). */
.va-quiz-progress { padding: 2px 16px 4px; font-size: 12px; color: var(--va-muted, #8a8a8a); letter-spacing: .02em; }

.va-input {
	display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--va-neutral); align-items: flex-end;
}
.va-input textarea {
	flex: 1; resize: none; border: 1px solid var(--va-neutral); border-radius: 12px;
	padding: 10px 12px; font: inherit; color: var(--va-text); max-height: 120px; min-height: 42px; background: #fff;
}
.va-input textarea:focus-visible { outline: 2px solid var(--va-secondary); border-color: var(--va-secondary); }
.va-send {
	background: var(--va-secondary); color: #fff; border: 0; border-radius: 12px;
	width: 44px; height: 42px; cursor: pointer; flex: 0 0 auto; font-size: 18px;
}
.va-send:disabled { opacity: 0.5; cursor: default; }
.va-send:focus-visible { outline: 2px solid var(--va-primary); outline-offset: 2px; }

/* Voice: mic button (STT). Sized to match send button; sits between the
   textarea and the send arrow. Idle = neutral tint; recording = brand-primary
   with a soft pulse so the visitor sees they're live. */
.va-mic {
	background: transparent; color: var(--va-text); border: 1px solid var(--va-neutral); border-radius: 12px;
	width: 40px; height: 42px; cursor: pointer; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
}
.va-mic:focus-visible { outline: 2px solid var(--va-secondary); outline-offset: 2px; }
.va-mic:hover { background: var(--va-neutral); }
.va-mic.va-mic-on {
	background: var(--va-primary); color: var(--va-on-primary); border-color: var(--va-primary);
	animation: va-mic-pulse 1.3s ease-in-out infinite;
}
.va-mic.va-mic-busy { animation-duration: 0.9s; opacity: 0.85; }
@keyframes va-mic-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(255,0,0,0); }
	50%      { box-shadow: 0 0 0 5px rgba(255,0,0,0.15); }
}

/* Voice: per-bubble speaker button (TTS). Small icon that trails the meta
   line; brand-neutral so it doesn't compete with the reply text. */
.va-speaker {
	background: transparent; border: 0; color: var(--va-text); opacity: 0.6;
	padding: 4px 6px; margin-top: 2px; cursor: pointer; border-radius: 6px;
	display: inline-flex; align-items: center; align-self: flex-start;
}
.va-speaker:hover { opacity: 1; background: var(--va-neutral); }
.va-speaker:focus-visible { outline: 2px solid var(--va-secondary); outline-offset: 1px; }
.va-speaker.va-speaker-busy { opacity: 0.4; cursor: default; }

/* Voice: "Back to chat" escape hatch shown during a live ElevenLabs call.
   Pinned top-inline-end, well clear of ElevenLabs' bottom-corner call orb, on
   the very top layer so it sits above the third-party widget. */
.va-live-back {
	position: fixed; top: 16px; inset-inline-end: 16px; z-index: 2147483647;
	background: var(--va-primary); color: var(--va-on-primary); border: 0;
	border-radius: 999px; padding: 10px 18px; font: inherit; font-size: 14px; font-weight: 600;
	cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.va-live-back:hover { filter: brightness(1.08); }
.va-live-back:focus-visible { outline: 2px solid var(--va-secondary); outline-offset: 2px; }

/* Lead form (consent-first) */
.va-lead-wrap { max-width: 100%; width: 100%; }
.va-lead { display: flex; flex-direction: column; gap: 8px; }
.va-lead-intro { font-size: 14px; }
.va-lead-input { border: 1px solid var(--va-neutral); border-radius: 10px; padding: 9px 11px; font: inherit; color: var(--va-text); background: #fff; }
.va-lead-input:focus-visible { outline: 2px solid var(--va-secondary); border-color: var(--va-secondary); }
.va-lead-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; cursor: pointer; }
.va-lead-consent input { margin-top: 3px; flex: 0 0 auto; }
.va-lead-submit { background: var(--va-secondary); color: #fff; border: 0; border-radius: 10px; padding: 9px 16px; font: inherit; cursor: pointer; align-self: flex-start; }
.va-lead-submit:disabled { opacity: 0.5; cursor: default; }
.va-lead-submit:focus-visible { outline: 2px solid var(--va-primary); outline-offset: 2px; }

/* Pre-call gate (voice) — NO CONTACT, NO CALL. Replaces the mic in the voice view until
   the visitor gives a name + a way to reach them, so every call yields a lead. */
.va-voice-precall-open .va-voice-orb,
.va-voice-precall-open .va-voice-status,
.va-voice-precall-open .va-voice-hint,
.va-voice-precall-open .va-voice-bar { display: none; }
.va-precall { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; margin: 8px auto; text-align: start; }
.va-precall-intro { font-size: 14px; line-height: 1.5; color: var(--va-text); text-align: center; }
.va-precall-start { background: var(--va-primary); color: var(--va-on-primary); border: 0; border-radius: 10px; padding: 11px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.va-precall-start:disabled { opacity: 0.5; cursor: default; }
.va-precall-start:focus-visible { outline: 2px solid var(--va-secondary); outline-offset: 2px; }
.va-precall-fielderr { font-size: 12px; line-height: 1.4; color: var(--va-danger, #c0392b); margin-top: -6px; }
.va-precall-error { font-size: 13px; line-height: 1.45; color: var(--va-danger, #c0392b); text-align: center; padding: 6px 8px; background: rgba(192,57,43,0.08); border-radius: 8px; }

@media (max-width: 480px) {
	/* dvh keeps the panel above the mobile soft-keyboard so the input row stays visible;
	   the 100vh line is the fallback for the few browsers without dvh (UX-03). */
	.va-panel { width: calc(100vw - 24px); height: calc(100vh - 96px); height: calc(100dvh - 96px); inset-inline-end: 12px; bottom: 12px; }
}
@media (max-width: 380px) {
	.va-panel { width: calc(100vw - 12px); inset-inline-end: 6px; }
	.va-messages { padding: 12px; }
	.va-input { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.va-launcher, .va-panel, .va-typing span { transition: none; animation: none; }
}

/* Trust footer (privacy line + powered-by) pinned below the input row.
   Muted, small, never the visual focal point. Both lines are independently
   shown — see widget.js: an empty trust.privacyUrl OR powered-by-show=off
   hides the corresponding line; if both are hidden the whole footer is
   omitted at render time so there's no empty gap. */
.va-footer {
	padding: 8px 16px 10px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	background: var(--va-bg);
	font-size: 11px;
	line-height: 1.4;
	color: rgba(0, 0, 0, 0.55);
	text-align: center;
}
.va-footer a {
	color: inherit;
	text-decoration: underline;
}
.va-footer a:hover { color: var(--va-primary); }
.va-foot-privacy + .va-foot-powered { margin-top: 2px; }

/* ---- Booking entry + collapsed shortcut tray ----
   The chip row was pushing the first reply off screen on a phone. Everything except booking now
   lives behind one control; booking stays out because it is the action the assistant exists for. */
.va-chip--primary {
	background: var(--va-accent, #0F8B76);
	border-color: var(--va-accent, #0F8B76);
	color: #fff;
	font-weight: 600;
}

.va-chip--more::after {
	content: " ▾";
	font-size: 0.8em;
}

.va-chip--more[aria-expanded="true"]::after {
	content: " ▴";
}

.va-chip-tray {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	width: 100%;
	margin-top: 6px;
}

.va-chip-tray[hidden] {
	display: none;
}

.va-lead-cta--trial {
	background: var(--va-accent, #0F8B76);
	color: #fff;
	font-weight: 600;
}

.va-lead-select {
	/* The native picker, deliberately: it brings the mobile OS's own wheel, keyboard support and
	   screen-reader support for free, none of which a custom dropdown here would be worth. */
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-inline-end: 30px;
}

/* Slot selector (morning / afternoon / evening / any) — matches the full-page trial form. */
.va-lead-slot-wrap { margin: 8px 0; }
.va-lead-slot-label {
	font-size: 13px; color: var(--va-muted, #666); margin-bottom: 6px;
}
.va-lead-slot-row { display: flex; flex-wrap: wrap; gap: 6px; }
.va-lead-slot {
	display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
	padding: 6px 12px; border: 1px solid var(--va-line, #ddd); border-radius: 999px;
	font-size: 13px; transition: background 0.15s, border-color 0.15s;
}
.va-lead-slot input { display: none; }
.va-lead-slot--active {
	background: var(--va-secondary, #1ABC9C); color: #fff; border-color: var(--va-secondary, #1ABC9C);
}

/* Inline validation message inside a chat form (e.g. a mistyped email). */
.va-lead-err {
	margin: 4px 0 8px;
	color: #B3261E;
	font-size: 13px;
	line-height: 1.4;
}

/* Support ticket rows ("My tickets" view). */
.va-ticket-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	border-top: 1px solid var(--va-neutral);
	font-size: 13px;
}
.va-ticket-id {
	flex: 0 0 auto;
	font-weight: 600;
	color: var(--va-primary);
}
.va-ticket-subj {
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.va-ticket-st {
	flex: 0 0 auto;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 999px;
	text-transform: capitalize;
}
.va-ticket-st--open, .va-ticket-st--in_progress { background: #E3F2FD; color: #1565C0; }
.va-ticket-st--resolved { background: #E8F5E9; color: #2E7D32; }
.va-ticket-st--closed { background: #ECEFF1; color: #607D8B; }
