.vfaq-ask-bubble {
	--vfaq-ab-font: inherit;
	--vfaq-ab-font-size: 15px;
	--vfaq-ab-text: #1d2327;
	--vfaq-ab-bg: #fff;
	--vfaq-ab-border: #c3c4c7;
	--vfaq-ab-avatar: 32px;
	position: relative;
	display: inline-block;
	vertical-align: middle;
	z-index: 20;
	font-family: var(--vfaq-ab-font);
	font-size: var(--vfaq-ab-font-size);
	line-height: 1.2;
}

.vfaq-ask-bubble__btn {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0.35em 0.7em;
	border: 1px solid var(--vfaq-ab-border);
	background: var(--vfaq-ab-bg);
	color: var(--vfaq-ab-text);
	font: inherit;
	cursor: pointer;
	text-decoration: none;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
}

.vfaq-ask-bubble--bubble .vfaq-ask-bubble__btn {
	border-radius: 999px;
	padding: 0.4em 0.85em;
}

.vfaq-ask-bubble--rectangle .vfaq-ask-bubble__btn {
	border-radius: 6px;
	width: var(--vfaq-ab-width, auto);
	height: var(--vfaq-ab-height, auto);
	min-height: var(--vfaq-ab-height, auto);
	justify-content: center;
}

.vfaq-ask-bubble--inherit .vfaq-ask-bubble__btn {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
	background: transparent;
	border-color: currentColor;
}

/* Closer to theme menu-link height when inheriting */
.menu-item .vfaq-ask-bubble--inherit .vfaq-ask-bubble__btn,
.vfaq-ask-bubble-menu-item .vfaq-ask-bubble--inherit .vfaq-ask-bubble__btn,
.mega-menu-item .vfaq-ask-bubble--inherit .vfaq-ask-bubble__btn,
.ubermenu-item .vfaq-ask-bubble--inherit .vfaq-ask-bubble__btn,
.elementor-nav-menu .vfaq-ask-bubble--inherit .vfaq-ask-bubble__btn {
	padding: 0.15em 0.45em;
	border-width: 1px;
	line-height: inherit;
	font-weight: inherit;
}

.vfaq-ask-bubble__inner {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	white-space: nowrap;
}

.vfaq-ask-bubble__label--text,
.vfaq-ask-bubble__name {
	font-weight: 600;
}

.vfaq-ask-bubble__label-img {
	display: block;
	max-height: 1.4em;
	width: auto;
	height: auto;
}

.vfaq-ask-bubble__avatar {
	display: inline-flex;
	flex-shrink: 0;
}

.vfaq-ask-bubble__avatar-img {
	display: block;
	width: var(--vfaq-ab-avatar);
	height: var(--vfaq-ab-avatar);
	border-radius: 50%;
	object-fit: cover;
}

.vfaq-ask-bubble__panel {
	position: absolute;
	left: 0;
	top: calc(100% + 8px);
	width: min(320px, 85vw);
	padding: 0.85rem;
	border: 1px solid var(--vfaq-ab-border, #c3c4c7);
	border-radius: 10px;
	background: var(--vfaq-ab-bg, #fff);
	color: var(--vfaq-ab-text, #1d2327);
	font-family: var(--vfaq-ab-font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	font-size: var(--vfaq-ab-font-size, 15px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	z-index: 30;
	overflow: visible;
}

.vfaq-ask-bubble--popup_up .vfaq-ask-bubble__panel {
	top: auto;
	bottom: calc(100% + 8px);
}

.vfaq-ask-bubble--reveal_below .vfaq-ask-bubble__panel {
	position: static;
	margin-top: 8px;
	width: min(320px, 100%);
	box-shadow: none;
}

.vfaq-ask-bubble__panel-title {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
	font-weight: 600;
}

.vfaq-ask-bubble__form {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.vfaq-ask-bubble__input {
	width: 100%;
	min-height: 4.5rem;
	padding: 0.5rem 0.65rem;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font: inherit;
	resize: vertical;
	box-sizing: border-box;
}

.vfaq-ask-bubble__submit {
	align-self: flex-end;
	padding: 0.45rem 0.9rem;
	border: 0;
	border-radius: 6px;
	background: var(--vfaq-ab-submit-bg, #1d2327);
	color: var(--vfaq-ab-submit-text, #fff);
	font-family: inherit;
	font-size: var(--vfaq-ab-submit-font-size, 14px);
	font-weight: 600;
	cursor: pointer;
}

.vfaq-ask-bubble__submit:hover {
	filter: brightness(1.08);
}

.vfaq-ask-bubble__status {
	margin: 0.5rem 0 0;
	font-size: 0.9em;
	font-style: italic;
	color: #64748b;
}

.vfaq-ask-bubble__status[hidden] {
	display: none;
}

.vfaq-ask-bubble__new-wrap {
	margin: 0.55rem 0 0;
	display: flex;
	justify-content: flex-end;
}

.vfaq-ask-bubble__new-wrap[hidden] {
	display: none;
}

.vfaq-ask-bubble__new {
	padding: 0.35rem 0.75rem;
	border: 1px solid var(--vfaq-ab-border, #c3c4c7);
	border-radius: 6px;
	background: transparent;
	color: var(--vfaq-ab-text, #1d2327);
	font-family: inherit;
	font-size: var(--vfaq-ab-submit-font-size, 14px);
	font-weight: 600;
	cursor: pointer;
}

.vfaq-ask-bubble__new:hover {
	background: rgba(0, 0, 0, 0.04);
}

.vfaq-ask-bubble__result {
	margin-top: 0.65rem;
	padding: 0.65rem;
	background: var(--vfaq-ab-answer-bg, #f8fafc);
	color: var(--vfaq-ab-answer-text, #1d2327);
	border-radius: 6px;
	font-size: 0.92rem;
	line-height: 1.5;
	max-height: var(--vfaq-ab-answer-max-h, 220px);
	max-height: min(var(--vfaq-ab-answer-max-h, 220px), 45vh);
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	white-space: normal;
	word-break: break-word;
	box-sizing: border-box;
}

.vfaq-ask-bubble--answer-inherit .vfaq-ask-bubble__result {
	background: transparent;
	color: inherit;
	border: 1px solid currentColor;
}

.vfaq-ask-bubble__result.is-typing::after {
	content: "▋";
	display: inline;
	margin-left: 1px;
	animation: vfaq-ab-caret 0.8s steps(1) infinite;
	color: currentColor;
	opacity: 0.55;
}

@keyframes vfaq-ab-caret {
	50% { opacity: 0; }
}

/* Beat theme link styles so Ask Layout “Answer link colour” always applies. */
.vfaq-ask-bubble .vfaq-ask-bubble__result a,
.vfaq-ask-bubble .vfaq-ask-bubble__result a:link,
.vfaq-ask-bubble .vfaq-ask-bubble__result a:visited,
.vfaq-ask-bubble .vfaq-ask-bubble__result a:hover,
.vfaq-ask-bubble .vfaq-ask-bubble__result a:focus,
.vfaq-ask-bubble .vfaq-ask-bubble__result a:active {
	color: var(--vfaq-ab-answer-link, #1d4ed8) !important;
	text-decoration: var(--vfaq-ab-answer-link-decoration, none) !important;
	word-break: break-word;
}

.vfaq-ask-bubble--link-underline .vfaq-ask-bubble__result a,
.vfaq-ask-bubble--link-underline .vfaq-ask-bubble__result a:link,
.vfaq-ask-bubble--link-underline .vfaq-ask-bubble__result a:visited,
.vfaq-ask-bubble--link-underline .vfaq-ask-bubble__result a:hover,
.vfaq-ask-bubble--link-underline .vfaq-ask-bubble__result a:focus,
.vfaq-ask-bubble--link-underline .vfaq-ask-bubble__result a:active {
	text-decoration: underline !important;
}

.vfaq-ask-bubble__result[data-mode="local"]::before,
.vfaq-ask-bubble__result[data-mode="business"]::before,
.vfaq-ask-bubble__result[data-mode="website"]::before {
	content: "✓ ";
	color: #16a34a;
}

.vfaq-ask-bubble__result[data-mode="ai"]::before {
	content: "AI · ";
	color: #64748b;
	font-size: 0.85em;
}

.vfaq-ask-bubble--hide-ai-attr .vfaq-ask-bubble__result[data-mode="ai"]::before {
	content: none;
}

.vfaq-ask-bubble__result[data-mode="unanswered"]::before {
	content: none;
}

.vfaq-ask-bubble__contact {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	margin-top: 0.65rem;
}

.vfaq-ask-bubble__turnstile,
.vfaq-turnstile {
	margin: 0.35rem 0;
	min-height: 65px;
	width: 100%;
	max-width: 100%;
	overflow: visible;
}

.vfaq-ask-bubble__turnstile.is-complete,
.vfaq-turnstile.is-complete {
	/* Collapse after a successful ask — keep token in DOM, avoid display:none */
	max-height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
	opacity: 0;
	pointer-events: none;
}

.vfaq-ask-bubble__turnstile[hidden],
.vfaq-turnstile[hidden] {
	display: none !important;
	margin: 0;
	min-height: 0;
}

.vfaq-ask-bubble__contact[hidden] {
	display: none;
}

.vfaq-ask-bubble__contact-prompt {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 600;
}

.vfaq-ask-bubble__contact-input {
	width: 100%;
	padding: 0.45rem 0.65rem;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font: inherit;
	box-sizing: border-box;
}

.vfaq-ask-bubble__contact-submit {
	align-self: flex-end;
	padding: 0.4rem 0.85rem;
	border: 0;
	border-radius: 6px;
	background: var(--vfaq-ab-submit-bg, #1d2327);
	color: var(--vfaq-ab-submit-text, #fff);
	font-size: var(--vfaq-ab-submit-font-size, 14px);
	font-weight: 600;
	cursor: pointer;
}

.vfaq-ask-bubble__contact-thanks {
	margin: 0;
	font-size: 0.9em;
	color: #16a34a;
}

.vfaq-ask-bubble__result[data-mode="unanswered"]::before {
	content: none;
}

/* Keep usable inside WP / builder / mega menus */
.menu-item .vfaq-ask-bubble,
.vfaq-ask-bubble-menu-item .vfaq-ask-bubble,
.mega-menu-item .vfaq-ask-bubble,
.ubermenu-item .vfaq-ask-bubble,
.elementor-nav-menu .vfaq-ask-bubble {
	display: inline-block;
	vertical-align: middle;
	list-style: none;
}

.menu-item .vfaq-ask-bubble__btn,
.vfaq-ask-bubble-menu-item .vfaq-ask-bubble__btn,
.mega-menu-item .vfaq-ask-bubble__btn,
.ubermenu-item .vfaq-ask-bubble__btn,
.elementor-nav-menu .vfaq-ask-bubble__btn {
	width: auto;
	max-width: 100%;
}

/* Gap vs neighbouring menu links (first or last item) */
.vfaq-ask-bubble--menu-spacing-snug {
	margin-block: 0.15em;
}

.vfaq-ask-bubble--menu-spacing-default {
	margin-block: 0.35em;
}

.vfaq-ask-bubble--menu-spacing-roomy {
	margin-block: 0.75em;
}
