/* Visitor Interact — frontend styles */

:root { --vi-accent: #8222EE; }

.vi-btn {
	background: var(--vi-accent);
	color: #fff;
	border: 0;
	padding: 10px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
}
.vi-btn:hover { filter: brightness(0.95); }
.vi-btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* Contact form */
.vi-form-wrap { max-width: 560px; margin: 1em 0; }
.vi-form-title { margin: 0 0 0.6em; font-size: 1.25rem; }
.vi-form label { display: block; font-size: 0.9rem; margin-bottom: 6px; }
.vi-form input[type="text"],
.vi-form input[type="email"],
.vi-form textarea {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	font: inherit;
	box-sizing: border-box;
}
.vi-form-status { margin-top: 8px; font-size: 0.95rem; }
.vi-form-status.vi-ok { color: #1a7f37; }
.vi-form-status.vi-err { color: #b32d2e; }

/* Floating contact widget — positioned via CSS variables so admin can move it. */
.vi-contact {
	position: fixed !important;
	z-index: var(--vi-zmax, 99998) !important;
	pointer-events: auto !important;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
/* Position variants */
.vi-contact--pos-br { right: var(--vi-offset-x, 20px); bottom: var(--vi-offset-y, 20px); align-items: flex-end; }
.vi-contact--pos-bl { left:  var(--vi-offset-x, 20px); bottom: var(--vi-offset-y, 20px); align-items: flex-start; }
.vi-contact--pos-tr { right: var(--vi-offset-x, 20px); top:    var(--vi-offset-y, 20px); align-items: flex-end; flex-direction: column-reverse; }
.vi-contact--pos-tl { left:  var(--vi-offset-x, 20px); top:    var(--vi-offset-y, 20px); align-items: flex-start; flex-direction: column-reverse; }
/* zmax hardening — sit above tawk.to (2147483000), Messenger Customer Chat, Drift, Intercom, Crisp */
.vi-contact--zmax { z-index: 2147483000 !important; }

/* Bar = (optional) label pill + toggle button */
.vi-contact-bar {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	pointer-events: auto;
}
.vi-contact--pos-bl .vi-contact-bar,
.vi-contact--pos-tl .vi-contact-bar { flex-direction: row-reverse; }

.vi-contact-pill {
	background: #ffffff;
	color: #111827;
	padding: 9px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	box-shadow: 0 6px 18px rgba(0,0,0,0.18);
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
	animation: vi-contact-pill-bounce 2.8s ease-in-out 1s 3;
	pointer-events: auto;
}
.vi-contact[aria-expanded="true"] .vi-contact-pill { display: none; }
@keyframes vi-contact-pill-bounce {
	0%, 100% { transform: translateX(0); }
	5%       { transform: translateX(-3px); }
	10%      { transform: translateX(2px); }
	15%      { transform: translateX(0); }
}

.vi-contact-toggle {
	width: 58px; height: 58px;
	border-radius: 50%;
	border: 0;
	background: var(--vi-accent);
	color: #fff;
	box-shadow: 0 6px 16px rgba(0,0,0,0.22);
	cursor: pointer !important;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease;
	position: relative;
	pointer-events: auto !important;
	-webkit-tap-highlight-color: rgba(0,0,0,0.1);
}
.vi-contact-toggle:hover  { transform: scale(1.05); }
.vi-contact-toggle:focus-visible { outline: 3px solid rgba(var(--vi-accent-rgb, 130, 34, 238), 0.4); outline-offset: 3px; }
.vi-contact-toggle .vi-contact-icon { display: flex; align-items: center; justify-content: center; }
.vi-contact-toggle .vi-icon-close { font-size: 28px; line-height: 1; display: none; }
.vi-contact[aria-expanded="true"] .vi-icon-open  { display: none; }
.vi-contact[aria-expanded="true"] .vi-icon-close { display: flex; }

.vi-contact-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}
.vi-contact-actions[hidden] { display: none; }

.vi-action {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px 10px 12px;
	background: #ffffff;
	color: #111;
	border-radius: 999px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 6px 18px rgba(0,0,0,0.18);
	transform: translateY(6px);
	opacity: 0;
	transition: transform 0.2s ease, opacity 0.2s ease, background 0.15s ease;
	white-space: nowrap;
}
.vi-contact[aria-expanded="true"] .vi-action { transform: translateY(0); opacity: 1; }
.vi-action:hover { background: #f3f4f6; }
.vi-action-icon {
	width: 36px; height: 36px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	color: #fff;
}
.vi-action--wa   .vi-action-icon { background: #25D366; }
.vi-action--call .vi-action-icon { background: var(--vi-accent); }

@media (max-width: 480px) {
	.vi-contact { right: 14px; bottom: 14px; }
	.vi-action-label { display: inline; }
}

/* Chat panel */
.vi-chatbox {
	width: 340px;
	max-width: calc(100vw - 28px);
	height: 460px;
	max-height: calc(100vh - 120px);
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 20px 50px rgba(0,0,0,0.22);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e5e7eb;
}
.vi-chatbox[hidden] { display: none; }
.vi-chat-header {
	background: var(--vi-accent);
	color: #fff;
	padding: 10px 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-weight: 600;
}
.vi-chat-agent {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	position: relative;
}
.vi-chat-agent-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	background: rgba(255,255,255,0.2);
	flex: 0 0 auto;
}
.vi-chat-agent-dot {
	position: absolute;
	left: 26px;
	bottom: 4px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #22c55e;
	border: 2px solid var(--vi-accent);
	box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
	animation: vi-online-pulse 1.8s ease-out infinite;
}
@keyframes vi-online-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
	70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
	100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.vi-chat-agent-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.vi-chat-agent-name { font-size: 0.98rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vi-chat-agent-status { font-size: 0.76rem; font-weight: 400; opacity: 0.9; }
.vi-chat-agent--offline .vi-chat-agent-status { opacity: 0.85; }
.vi-chat-x {
	background: transparent; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.vi-chat-header-actions {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}
.vi-chat-call,
.vi-chat-wa {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px; height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.15s ease;
}
.vi-chat-call:hover, .vi-chat-call:focus,
.vi-chat-wa:hover,   .vi-chat-wa:focus {
	background: rgba(255, 255, 255, 0.32);
	transform: scale(1.05);
	color: #fff;
}
.vi-chat-wa { background: #25D366; }
.vi-chat-wa:hover, .vi-chat-wa:focus { background: #1ebe57; }
.vi-chat-call:focus-visible,
.vi-chat-wa:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* AI-first: agent header is just a title (no avatar/dot). */
.vi-chat-agent--ai {
	display: flex; align-items: center; gap: 8px; min-width: 0;
}
.vi-chat-agent--ai .vi-chat-agent-name {
	font-size: 1rem; font-weight: 700; color: #fff;
}

/* Counselor chip rail (AI-first). */
.vi-chat-counselors {
	background: var(--vi-accent);
	color: #fff;
	padding: 8px 10px;
	border-top: 1px solid rgba(255,255,255,0.15);
}
.vi-chat-counselors-label {
	margin: 0 0 5px;
	font-size: 0.74rem;
	opacity: 0.95;
	font-weight: 600;
}
.vi-chat-counselors-list {
	display: flex; flex-wrap: wrap; gap: 4px;
}
.vi-chat-counselors-empty {
	display: inline-block;
	font-size: 0.74rem;
	opacity: 0.85;
	padding: 3px 8px;
	background: rgba(0, 0, 0, 0.18);
	border-radius: 999px;
}
.vi-chat-counselor-chip {
	display: inline-flex; align-items: center; gap: 4px;
	background: #fff; color: var(--vi-accent);
	border: 0; padding: 3px 9px;
	border-radius: 999px;
	font-size: 0.75rem; font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
	box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.vi-chat-counselor-chip:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,0.18); }
.vi-chat-counselor-chip[disabled] { opacity: 0.65; cursor: wait; }
.vi-chat-counselor-chip img {
	width: 14px; height: 14px; border-radius: 50%; object-fit: cover;
}
.vi-chat-counselor-chip--active {
	background: rgba(0,0,0,0.22); color: #fff;
}

/* Inline contact-capture prompt. */
.vi-chat-contact-prompt {
	background: rgba(var(--vi-accent-rgb, 130, 34, 238), 0.08);
	border-top: 1px solid rgba(var(--vi-accent-rgb, 130, 34, 238), 0.2);
	padding: 10px 12px;
}
.vi-chat-contact-text {
	margin: 0 0 8px;
	font-size: 0.85rem;
	color: #1f2937;
}
.vi-chat-contact-form {
	display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.vi-chat-contact-form input {
	flex: 1 1 0; min-width: 0;
	padding: 7px 10px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font: inherit; font-size: 0.85rem;
	box-sizing: border-box;
}
.vi-btn--small {
	padding: 6px 12px; font-size: 0.85rem;
	background: var(--vi-accent); color: #fff; border: 0; border-radius: 8px;
	cursor: pointer; font-weight: 600;
}
.vi-chat-contact-skip {
	background: transparent; border: 0; color: #6b7280;
	font-size: 18px; cursor: pointer; padding: 0 4px;
}
.vi-chat-contact-skip:hover { color: #1f2937; }
.vi-chat-intro { padding: 14px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.vi-chat-intro-line { margin: 0 0 2px; color: #4b5563; font-size: 0.88rem; line-height: 1.35; }
.vi-chat-start { display: grid; gap: 6px; }
.vi-chat-start input,
.vi-chat-start textarea {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font: inherit;
	box-sizing: border-box;
}
.vi-chat-start-status { font-size: 0.85rem; }
.vi-chat-start-status.vi-ok  { color: #1a7f37; }
.vi-chat-start-status.vi-err { color: #b32d2e; }

.vi-chat-thread { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.vi-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	background: #f6f7f8;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.vi-msg { display: flex; flex-direction: column; max-width: 80%; }
.vi-msg--visitor { align-self: flex-end; align-items: flex-end; }
.vi-msg--staff   { align-self: flex-start; align-items: flex-start; }
.vi-msg-bubble {
	padding: 6px 10px;
	border-radius: 12px;
	font-size: 11px;
	line-height: 1.4;
	white-space: pre-wrap;
	word-wrap: break-word;
}
.vi-msg--visitor .vi-msg-bubble { background: var(--vi-accent); color: #fff; border-bottom-right-radius: 4px; }
.vi-msg--staff   .vi-msg-bubble { background: #fff; color: #111; border: 1px solid #e5e7eb; border-bottom-left-radius: 4px; }
.vi-msg-time { font-size: 0.72rem; color: #6b7280; margin-top: 2px; }
.vi-msg-who { font-size: 0.72rem; color: #6b7280; margin-bottom: 2px; display: flex; align-items: center; gap: 4px; }
.vi-msg-ai-badge {
	display: inline-block;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 1px 5px;
	border-radius: 4px;
	background: linear-gradient(135deg, var(--vi-accent), rgba(var(--vi-accent-rgb, 130, 34, 238), 0.7));
	color: #fff;
	line-height: 1.3;
}
.vi-msg--ai .vi-msg-bubble {
	background: rgba(var(--vi-accent-rgb, 130, 34, 238), 0.06);
	border: 1px solid rgba(var(--vi-accent-rgb, 130, 34, 238), 0.22);
	color: #1f2937;
}

.vi-chat-reply {
	display: flex; gap: 6px; align-items: flex-end;
	padding: 8px 10px; border-top: 1px solid #e5e7eb; background: #fff;
}
.vi-chat-reply textarea {
	flex: 1;
	resize: none;
	padding: 9px 10px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font: inherit;
	max-height: 100px;
	min-height: 38px;
	box-sizing: border-box;
}
.vi-chat-send {
	background: var(--vi-accent); color: #fff; border: 0;
	width: 38px; height: 38px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.vi-chat-status { font-size: 0.8rem; padding: 4px 12px 8px; color: #6b7280; }
.vi-chat-status.vi-err { color: #b32d2e; }

/* Sidebar contact panel [vi_sidebar] */
.vi-sidebar {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	box-shadow: 0 6px 22px rgba(0,0,0,0.06);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #111827;
}
.vi-sidebar--sticky {
	position: sticky;
	top: 20px;
}
.vi-sidebar-title {
	margin: 0;
	font-size: 1.05rem;
	color: #1f2937;
}

/* Call / WhatsApp button pair */
.vi-sidebar-quick {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.vi-sidebar-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 12px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	color: #fff;
	transition: filter 0.15s ease;
}
.vi-sidebar-btn:hover { filter: brightness(0.95); color: #fff; }
.vi-sidebar-btn--call { background: var(--vi-accent, #8222EE); }
.vi-sidebar-btn--wa   { background: #25D366; }
.vi-sidebar-btn-icon  { display: inline-flex; }

/* Counselor accordion */
.vi-sidebar-counselor {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #f9fafb;
}
.vi-sidebar-counselor summary {
	list-style: none;
	cursor: pointer;
	padding: 10px 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 600;
	color: #111827;
}
.vi-sidebar-counselor summary::-webkit-details-marker { display: none; }
.vi-sidebar-counselor[open] .vi-sidebar-counselor-caret { transform: rotate(180deg); }
.vi-sidebar-counselor-caret { transition: transform 0.2s; }
.vi-sidebar-counselor-body {
	padding: 12px 14px 14px;
	display: flex;
	gap: 12px;
	align-items: flex-start;
	border-top: 1px solid #e5e7eb;
	background: #fff;
	border-radius: 0 0 10px 10px;
}
.vi-sidebar-counselor-photo {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.vi-sidebar-counselor-info { flex: 1; min-width: 0; }
.vi-sidebar-counselor-name { font-weight: 600; }
.vi-sidebar-counselor-role { color: #6b7280; font-size: 0.85rem; margin-bottom: 6px; }
.vi-sidebar-counselor-bio  { margin: 0 0 8px; font-size: 0.9rem; color: #374151; }
.vi-sidebar-counselor-links { list-style: none; margin: 0; padding: 0; font-size: 0.88rem; }
.vi-sidebar-counselor-links li { margin: 2px 0; }
.vi-sidebar-counselor-links a { color: var(--vi-accent, #8222EE); text-decoration: none; }
.vi-sidebar-counselor-links a:hover { text-decoration: underline; }

/* Message box */
.vi-sidebar-msg-title { font-weight: 600; font-size: 1rem; }
.vi-sidebar-msg-hint  { margin: 4px 0 10px; color: #6b7280; font-size: 0.88rem; }
.vi-sidebar-form, .vi-sidebar-reply { display: grid; gap: 8px; }
.vi-sidebar-form input,
.vi-sidebar-form textarea,
.vi-sidebar-reply textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	font: inherit;
	background: #fff;
}
.vi-sidebar-form textarea { resize: vertical; min-height: 96px; }
.vi-sidebar-send { justify-self: start; padding: 10px 18px; border-radius: 10px; }
.vi-sidebar-status { font-size: 0.85rem; }
.vi-sidebar-status.vi-ok  { color: #1a7f37; }
.vi-sidebar-status.vi-err { color: #b32d2e; }

.vi-sidebar-messages {
	max-height: 260px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 10px;
}
.vi-smsg { display: flex; flex-direction: column; max-width: 90%; }
.vi-smsg--visitor { align-self: flex-end; align-items: flex-end; }
.vi-smsg--staff   { align-self: flex-start; align-items: flex-start; }
.vi-smsg-bubble {
	padding: 7px 10px;
	border-radius: 12px;
	font-size: 0.9rem;
	white-space: pre-wrap;
	word-wrap: break-word;
}
.vi-smsg--visitor .vi-smsg-bubble { background: var(--vi-accent, #8222EE); color: #fff; border-bottom-right-radius: 4px; }
.vi-smsg--staff   .vi-smsg-bubble { background: #fff; color: #111; border: 1px solid #e5e7eb; border-bottom-left-radius: 4px; }
.vi-smsg-time { font-size: 0.7rem; color: #6b7280; margin-top: 2px; }

@media (max-width: 480px) {
	.vi-sidebar-quick { grid-template-columns: 1fr; }
}

/* Animated ticker / rotating banner */
.vi-ticker {
	position: relative;
	display: block;
	width: 100%;
	max-width: 460px;
	min-height: 44px;
	padding: 10px 18px;
	background: #ffffff;
	border-radius: 999px;
	box-shadow: 0 6px 18px rgba(0,0,0,0.08);
	border: 1px solid #e5e7eb;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.vi-ticker--align-left   { margin-right: auto; }
.vi-ticker--align-right  { margin-left: auto; }
.vi-ticker--align-center { margin-left: auto; margin-right: auto; }
.vi-ticker-list {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
	height: 24px;
}
.vi-ticker-item {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.45s ease, transform 0.45s ease;
}
.vi-ticker-item.is-active {
	opacity: 1;
	pointer-events: auto;
}
.vi-ticker-item::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--vi-accent, #8222EE);
	box-shadow: 0 0 0 0 rgba(var(--vi-accent-rgb, 130, 34, 238), 0.6);
	animation: vi-pulse 1.6s infinite;
	flex-shrink: 0;
}
@keyframes vi-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(var(--vi-accent-rgb, 130, 34, 238), 0.55); }
	70%  { box-shadow: 0 0 0 10px rgba(var(--vi-accent-rgb, 130, 34, 238), 0); }
	100% { box-shadow: 0 0 0 0 rgba(var(--vi-accent-rgb, 130, 34, 238), 0); }
}
.vi-ticker-link {
	color: #111827;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0;
	font-family: inherit;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 360px;
}
.vi-ticker-link:hover { color: var(--vi-accent, #8222EE); text-decoration: underline; }

/* Slide-up variant */
.vi-ticker--slide .vi-ticker-item            { transform: translateY(100%); opacity: 1; }
.vi-ticker--slide .vi-ticker-item.is-active  { transform: translateY(0); }
.vi-ticker--slide .vi-ticker-item.was-active { transform: translateY(-100%); }

@media (max-width: 480px) {
	.vi-ticker { padding: 8px 12px; }
	.vi-ticker-link { font-size: 0.88rem; max-width: 220px; }
}

/* Unread badge on the toggle */
.vi-contact-toggle { position: relative; }
.vi-badge {
	position: absolute;
	top: -4px; right: -4px;
	min-width: 14px; height: 14px;
	background: #e11d48;
	border: 2px solid #fff;
	border-radius: 50%;
}
.vi-badge[hidden] { display: none; }


/* Popup — sits above the floating widget even when widget is in zmax mode */
.vi-popup { position: fixed; inset: 0; z-index: 2147483001; display: flex; align-items: center; justify-content: center; }
.vi-popup[hidden] { display: none; }
.vi-popup-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.vi-popup-card {
	position: relative;
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	max-width: 420px;
	width: calc(100% - 40px);
	box-shadow: 0 20px 60px rgba(0,0,0,0.3);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.vi-popup-card h3 { margin: 0 0 0.4em; }
.vi-popup-close { position: absolute; top: 8px; right: 10px; background: transparent; border: 0; font-size: 24px; cursor: pointer; color: #6b7280; }
.vi-popup-form { display: grid; gap: 8px; margin-top: 10px; }
.vi-popup-form input,
.vi-popup-form textarea {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	font: inherit;
	box-sizing: border-box;
}
.vi-popup-status { font-size: 0.9rem; }
.vi-popup-status.vi-ok { color: #1a7f37; }
.vi-popup-status.vi-err { color: #b32d2e; }
