/* Live Visitors & Chat — website widget */
#lvc-root {
	--lvc-color: #4f46e5;
	--lvc-ink: #111827;
	--lvc-muted: #6b7280;
	--lvc-line: #e5e7eb;
	--lvc-bg: #f7f7fb;
	position: fixed;
	bottom: 20px;
	z-index: 2147483000;
	font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--lvc-ink);
	display: flex;
	flex-direction: column;
	-webkit-font-smoothing: antialiased;
}
#lvc-root *, #lvc-root *::before, #lvc-root *::after { box-sizing: border-box; }
#lvc-root [hidden] { display: none !important; }
#lvc-root button { font: inherit; }
#lvc-root.lvc-pos-right { right: 20px; align-items: flex-end; }
#lvc-root.lvc-pos-left { left: 20px; align-items: flex-start; }

/* Launcher */
#lvc-root .lvc-bubble {
	position: relative; width: 60px; height: 60px; border: 0; border-radius: 50%;
	background: var(--lvc-color); color: #fff; cursor: pointer; padding: 0; margin: 0;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 24px rgba(0,0,0,.2), 0 2px 6px rgba(0,0,0,.12);
	transition: transform .18s ease, box-shadow .18s ease;
}
#lvc-root.lvc-launcher-hidden:not(.lvc-active) .lvc-bubble { display: none; }
#lvc-root .lvc-bubble:hover { transform: translateY(-2px) scale(1.04); }
#lvc-root .lvc-bubble:focus-visible { outline: 3px solid rgba(0,0,0,.35); outline-offset: 3px; }
#lvc-root .lvc-bubble > span { display: flex; transition: transform .2s ease, opacity .2s ease; }
#lvc-root .lvc-ico-close { position: absolute; opacity: 0; transform: rotate(-90deg); }
#lvc-root.lvc-open .lvc-ico-chat { opacity: 0; transform: rotate(90deg); }
#lvc-root.lvc-open .lvc-ico-close { opacity: 1; transform: none; }
#lvc-root .lvc-badge {
	position: absolute; top: -3px; right: -3px; min-width: 22px; height: 22px; padding: 0 6px;
	border-radius: 11px; background: #ef4444; color: #fff; font-size: 12px; font-weight: 700;
	line-height: 18px; text-align: center; border: 2px solid #fff;
}

/* Invitation popup */
#lvc-root .lvc-popup {
	position: relative; width: 300px; max-width: calc(100vw - 40px); margin-bottom: 14px;
	background: #fff; border-radius: 16px; padding: 14px 16px 14px;
	box-shadow: 0 12px 36px rgba(0,0,0,.18); animation: lvc-pop .25s ease-out;
}
#lvc-root .lvc-popup-x {
	position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; border-radius: 50%;
	border: 0; background: #374151; color: #fff; cursor: pointer; padding: 5px; display: flex;
	box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
#lvc-root .lvc-popup-x svg { width: 16px; height: 16px; }
#lvc-root .lvc-popup-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; color: var(--lvc-muted); }
#lvc-root .lvc-popup-text { margin: 8px 0 12px; font-size: 15px; cursor: pointer; white-space: pre-wrap; overflow-wrap: anywhere; }
#lvc-root .lvc-popup-reply {
	width: 100%; border: 0; border-radius: 10px; padding: 9px; cursor: pointer;
	background: var(--lvc-color); color: #fff; font-weight: 600;
}
@keyframes lvc-pop { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

/* Avatars */
#lvc-root .lvc-av {
	flex: none; width: 32px; height: 32px; border-radius: 50%; overflow: hidden;
	display: inline-flex; align-items: center; justify-content: center;
	background: #e0e7ff; color: #3730a3; font-weight: 700; font-size: 13px;
}
#lvc-root .lvc-av img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Panel */
#lvc-root .lvc-panel {
	width: 380px; max-width: calc(100vw - 32px); height: 600px; max-height: calc(100vh - 110px);
	margin-bottom: 14px; background: #fff; border-radius: 20px; overflow: hidden;
	box-shadow: 0 20px 50px rgba(0,0,0,.22), 0 4px 12px rgba(0,0,0,.08);
	display: flex; flex-direction: column; animation: lvc-pop .22s ease-out;
}
#lvc-root .lvc-head {
	position: relative; color: #fff; padding: 18px 20px 20px;
	background: linear-gradient(135deg, var(--lvc-color), color-mix(in srgb, var(--lvc-color) 70%, #000));
}
#lvc-root .lvc-head-top { display: flex; justify-content: space-between; align-items: flex-start; }
#lvc-root .lvc-team { display: flex; align-items: center; }
#lvc-root .lvc-team .lvc-av { width: 40px; height: 40px; border: 2px solid rgba(255,255,255,.9); margin-right: -10px; font-size: 15px; }
#lvc-root .lvc-team-who { display: flex; flex-direction: column; margin-left: 20px; line-height: 1.25; }
#lvc-root .lvc-team-who strong { font-size: 14px; }
#lvc-root .lvc-team-who span { font-size: 12px; opacity: .85; }
#lvc-root .lvc-close {
	background: rgba(255,255,255,.16); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%;
	cursor: pointer; padding: 6px; display: flex; transition: background .15s;
}
#lvc-root .lvc-close:hover { background: rgba(255,255,255,.28); }
#lvc-root .lvc-close svg { width: 20px; height: 20px; }
#lvc-root .lvc-title { font-size: 20px; font-weight: 700; margin-top: 14px; letter-spacing: -.01em; }
#lvc-root .lvc-sub { display: flex; align-items: center; gap: 7px; font-size: 13px; opacity: .92; margin-top: 3px; }
#lvc-root .lvc-dot { width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,.25); }
#lvc-root .lvc-dot.on { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.3); }

/* Messages */
#lvc-root .lvc-msgs {
	flex: 1; overflow-y: auto; padding: 18px 16px; background: var(--lvc-bg);
	display: flex; flex-direction: column; gap: 4px; scroll-behavior: smooth;
}
#lvc-root .lvc-msg { display: flex; gap: 8px; max-width: 86%; margin-top: 8px; }
#lvc-root .lvc-msg.lvc-cont { margin-top: 0; }
#lvc-root .lvc-agent { align-self: flex-start; }
#lvc-root .lvc-me { align-self: flex-end; }
#lvc-root .lvc-msg-side { width: 28px; flex: none; display: flex; align-items: flex-start; }
#lvc-root .lvc-msg-side .lvc-av { font-size: 11px; }
#lvc-root .lvc-msg-col { display: flex; flex-direction: column; min-width: 0; }
#lvc-root .lvc-me .lvc-msg-col { align-items: flex-end; }
#lvc-root .lvc-msg-name { font-size: 12px; color: var(--lvc-muted); margin: 0 0 3px 4px; font-weight: 600; }
#lvc-root .lvc-b { padding: 10px 14px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
#lvc-root .lvc-b a { color: inherit; text-decoration: underline; }
#lvc-root .lvc-agent .lvc-b { background: #fff; border-top-left-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
#lvc-root .lvc-me .lvc-b { background: var(--lvc-color); color: #fff; border-bottom-right-radius: 6px; }
#lvc-root .lvc-msg.pending { opacity: .55; }
#lvc-root .lvc-msg.lvc-failed .lvc-b { background: #fee2e2; color: #991b1b; }
#lvc-root .lvc-retry { color: #b91c1c !important; cursor: pointer; }
#lvc-root .lvc-t { font-size: 11px; color: #9ca3af; margin-top: 3px; padding: 0 4px; }
#lvc-root .lvc-note {
	align-self: center; text-align: center; font-size: 12.5px; color: var(--lvc-muted); margin: 10px 0;
	background: #fff; border: 1px dashed #d1d5db; border-radius: 12px; padding: 8px 12px; max-width: 92%;
}
#lvc-root .lvc-note-ok { border-style: solid; border-color: #bbf7d0; background: #f0fdf4; color: #166534; }

/* Typing dots */
#lvc-root .lvc-typing { display: flex; gap: 4px; align-items: center; padding: 14px 16px; }
#lvc-root .lvc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9ca3af; animation: lvc-blink 1.2s infinite; }
#lvc-root .lvc-typing i:nth-child(2) { animation-delay: .2s; }
#lvc-root .lvc-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes lvc-blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* Contact card */
#lvc-root .lvc-card {
	background: #fff; border-radius: 16px; padding: 16px; margin: 12px 0 4px;
	box-shadow: 0 1px 3px rgba(0,0,0,.08); border-top: 3px solid var(--lvc-color);
	display: flex; flex-direction: column; gap: 8px;
}
#lvc-root .lvc-card-title { font-weight: 700; font-size: 15px; }
#lvc-root .lvc-card-text { color: var(--lvc-muted); font-size: 13px; margin-bottom: 4px; }
#lvc-root .lvc-card input {
	width: 100%; border: 1px solid #d1d5db; border-radius: 10px; padding: 9px 12px; font: inherit;
	color: inherit; background: #fff; margin: 0; outline: none; box-shadow: none; height: auto;
}
#lvc-root .lvc-card input:focus { border-color: var(--lvc-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lvc-color) 20%, transparent); }
#lvc-root .lvc-card-err { color: #b91c1c; font-size: 12px; }
#lvc-root .lvc-card-err:empty { display: none; }
#lvc-root .lvc-card-actions { display: flex; gap: 8px; }
#lvc-root .lvc-card-go { flex: 1; border: 0; border-radius: 10px; padding: 10px; background: var(--lvc-color); color: #fff; font-weight: 600; cursor: pointer; }
#lvc-root .lvc-card-go:disabled { opacity: .6; }
#lvc-root .lvc-card-skip { border: 0; background: transparent; color: var(--lvc-muted); cursor: pointer; padding: 10px 12px; }

/* Emoji picker */
#lvc-root .lvc-emojis {
	display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px;
	border-top: 1px solid var(--lvc-line); background: #fff;
}
#lvc-root .lvc-emojis button { border: 0; background: transparent; font-size: 20px; padding: 4px; border-radius: 8px; cursor: pointer; line-height: 1.2; }
#lvc-root .lvc-emojis button:hover { background: #f3f4f6; }

/* Composer */
#lvc-root .lvc-form {
	display: flex; align-items: flex-end; gap: 6px; padding: 10px 12px; margin: 0;
	border-top: 1px solid var(--lvc-line); background: #fff;
}
#lvc-root .lvc-form textarea {
	flex: 1; resize: none; border: 0; padding: 10px 6px; font: inherit; color: inherit; background: transparent;
	min-height: 40px; max-height: 120px; margin: 0; outline: none; box-shadow: none; line-height: 1.4;
}
#lvc-root .lvc-form textarea:disabled { opacity: .6; }
#lvc-root .lvc-emoji-btn {
	width: 36px; height: 40px; flex: none; border: 0; background: transparent; color: #9ca3af;
	cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center;
}
#lvc-root .lvc-emoji-btn:hover { color: var(--lvc-color); }
#lvc-root .lvc-send {
	width: 40px; height: 40px; flex: none; border: 0; border-radius: 12px; background: var(--lvc-color);
	color: #fff; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center;
}
#lvc-root .lvc-send:disabled { opacity: .5; cursor: default; }

@media (max-width: 480px) {
	#lvc-root { bottom: 14px; }
	#lvc-root.lvc-pos-right { right: 14px; }
	#lvc-root.lvc-pos-left { left: 14px; }
	#lvc-root.lvc-open { left: 0; right: 0; bottom: 0; top: 0; }
	#lvc-root.lvc-open .lvc-panel { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border-radius: 0; }
	#lvc-root.lvc-open .lvc-bubble { display: none; }
}

/* [lvc_online_count] */
.lvc-online-count { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.lvc-oc-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: lvc-oc 1.8s infinite; }
@keyframes lvc-oc { 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* "Powered by" (Free plan) */
#lvc-root .lvc-brandline { text-align: center; font-size: 11.5px; color: #9ca3af; padding: 0 0 8px; background: #fff; }
#lvc-root .lvc-brandline a { color: #6b7280; font-weight: 600; text-decoration: none; }
#lvc-root .lvc-brandline a:hover { text-decoration: underline; }

/* Images */
#lvc-root .lvc-attach-btn {
	width: 32px; height: 40px; flex: none; border: 0; background: transparent; color: #9ca3af;
	cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; margin-left: -6px;
}
#lvc-root .lvc-attach-btn:hover { color: var(--lvc-color); }
#lvc-root .lvc-img { display: block; border-radius: 14px; overflow: hidden; max-width: 240px; background: #e5e7eb; margin-bottom: 4px; line-height: 0; }
#lvc-root .lvc-img img { display: block; max-width: 240px; max-height: 280px; width: auto; height: auto; object-fit: cover; }
#lvc-root .lvc-me .lvc-img { border-bottom-right-radius: 6px; }
#lvc-root .lvc-agent .lvc-img { border-top-left-radius: 6px; }
#lvc-root .lvc-panel.lvc-drop { outline: 3px dashed var(--lvc-color); outline-offset: -8px; }

/* Full-page chat (chat links) */
#lvc-root.lvc-fullpage { position: fixed; inset: 0; right: 0; left: 0; bottom: 0; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
#lvc-root.lvc-fullpage .lvc-bubble, #lvc-root.lvc-fullpage .lvc-close, #lvc-root.lvc-fullpage .lvc-popup { display: none !important; }
#lvc-root.lvc-fullpage .lvc-panel { width: 100%; max-width: 680px; height: 100%; max-height: 860px; margin: 0; }
@media (max-width: 600px) {
	#lvc-root.lvc-fullpage { padding: 0; }
	#lvc-root.lvc-fullpage .lvc-panel { max-height: none; border-radius: 0; }
}

/* Location request */
#lvc-root .lvc-loc-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; max-width: 280px; }
#lvc-root .lvc-loc-actions[hidden] { display: none !important; }
#lvc-root .lvc-loc-share { flex: 1 1 auto; border: 0; border-radius: 12px; padding: 9px 12px; background: var(--lvc-color); color: #fff; font-weight: 600; cursor: pointer; }
#lvc-root .lvc-loc-no { border: 1px solid #d1d5db; border-radius: 12px; padding: 9px 12px; background: #fff; color: #374151; cursor: pointer; }
#lvc-root .lvc-loc-share:disabled, #lvc-root .lvc-loc-no:disabled { opacity: .6; cursor: default; }
#lvc-root .lvc-loc-note { width: 100%; font-size: 11.5px; color: #9ca3af; }

/* Quick actions (e.g. Mobile top-up) */
#lvc-root .lvc-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px 0; background: #fff; border-top: 1px solid var(--lvc-line); }
#lvc-root .lvc-quick[hidden] { display: none; }
#lvc-root .lvc-chip { border: 1px solid color-mix(in srgb, var(--lvc-color) 40%, #fff); background: color-mix(in srgb, var(--lvc-color) 8%, #fff); color: var(--lvc-color); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 13px; cursor: pointer; }
#lvc-root .lvc-chip:hover { background: color-mix(in srgb, var(--lvc-color) 15%, #fff); }
#lvc-root .lvc-quick + .lvc-emojis + .lvc-form, #lvc-root .lvc-quick:not([hidden]) ~ .lvc-form { border-top: 0; }

/* Top-up bot cards */
#lvc-root .lvc-av-bot { background: color-mix(in srgb, var(--lvc-color) 14%, #fff); font-size: 14px; }
#lvc-root .lvc-bot { max-width: 94%; }
#lvc-root .lvc-tcard { background: #fff; border-radius: 16px; border-top-left-radius: 6px; padding: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 9px; min-width: 0; flex: 1; }
#lvc-root .lvc-tcard.is-done { opacity: .72; }
#lvc-root .lvc-tcard-h { font-weight: 700; font-size: 14px; }
#lvc-root .lvc-tcard-test { font-size: 11px; font-weight: 700; color: #b45309; background: #fef3c7; border-radius: 6px; padding: 3px 8px; align-self: flex-start; }
#lvc-root .lvc-tcard-err { color: #b91c1c; font-size: 12.5px; }
#lvc-root .lvc-tcard-err[hidden] { display: none; }
#lvc-root .lvc-trow { display: flex; gap: 6px; align-items: center; }
#lvc-root .lvc-tdial { font-weight: 600; white-space: nowrap; color: #374151; }
#lvc-root .lvc-tin, #lvc-root .lvc-tsel { border: 1px solid #d1d5db; border-radius: 10px; padding: 9px 11px; font: inherit; color: inherit; background: #fff; min-width: 0; margin: 0; height: auto; box-shadow: none; outline: none; }
#lvc-root .lvc-tin { flex: 1; width: 100%; }
#lvc-root .lvc-tin:focus, #lvc-root .lvc-tsel:focus { border-color: var(--lvc-color); }
#lvc-root .lvc-tsel-wide { width: 100%; }
#lvc-root .lvc-tlabel { font-size: 12.5px; color: var(--lvc-muted); }
#lvc-root .lvc-tbtn { border: 1px solid #d1d5db; background: #fff; color: #111827; border-radius: 10px; padding: 9px 12px; font: inherit; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; display: inline-block; }
#lvc-root .lvc-tbtn.is-primary { background: var(--lvc-color); border-color: var(--lvc-color); color: #fff; }
#lvc-root .lvc-tbtn.is-link { border: 0; background: transparent; color: var(--lvc-muted); font-weight: 500; }
#lvc-root .lvc-tbtn:disabled { opacity: .55; cursor: default; }
#lvc-root .lvc-tamounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
#lvc-root .lvc-tamt { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; font-weight: 400; }
#lvc-root .lvc-tamt strong { font-size: 16px; }
#lvc-root .lvc-tamt span { font-size: 11.5px; color: #4b5563; line-height: 1.3; }
#lvc-root .lvc-tamt .lvc-tlocal { color: #059669; }
#lvc-root .lvc-tamt em { font-style: normal; font-size: 11.5px; color: var(--lvc-color); font-weight: 600; }
#lvc-root .lvc-tamt:hover:not(:disabled) { border-color: var(--lvc-color); }
#lvc-root .lvc-tsum { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 13.5px; }
#lvc-root .lvc-tsum dt { color: var(--lvc-muted); }
#lvc-root .lvc-tsum dd { margin: 0; text-align: right; font-weight: 600; }
#lvc-root .lvc-tsum dd.is-total { font-size: 16px; color: var(--lvc-color); }
#lvc-root .lvc-tinfo { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 9px 11px; font-size: 13px; white-space: pre-wrap; color: #374151; }
#lvc-root .lvc-tinfo a { color: var(--lvc-color); }
#lvc-root .lvc-ttotal { font-weight: 700; }
#lvc-root .lvc-tpay { display: flex; flex-direction: column; gap: 6px; }
#lvc-root .lvc-tstatus { font-weight: 600; padding: 9px 11px; border-radius: 10px; background: #eff6ff; color: #1e40af; }
#lvc-root .lvc-tstatus.is-success { background: #ecfdf5; color: #065f46; }
#lvc-root .lvc-tstatus.is-failed, #lvc-root .lvc-tstatus.is-rejected, #lvc-root .lvc-tstatus.is-expired { background: #fef2f2; color: #991b1b; }
#lvc-root .lvc-tstatus.is-refunded { background: #fffbeb; color: #92400e; }
