/* VIP Live Chat – visitor widget */
.vlc-root {
	--vlc-primary: #1c1c1c;
	--vlc-accent: #b8956a;
	--vlc-bg: #ffffff;
	--vlc-soft: #f6f3ef;
	--vlc-line: #e7e2db;
	--vlc-text: #222222;
	--vlc-muted: #7a746c;
	--vlc-radius: 18px;
	position: fixed;
	bottom: 22px;
	z-index: 2147483000;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.45;
	color: var(--vlc-text);
}
.vlc-root.vlc-pos-right { right: 22px; }
.vlc-root.vlc-pos-left { left: 22px; }
.vlc-root *, .vlc-root *::before, .vlc-root *::after { box-sizing: border-box; }
.vlc-root [hidden] { display: none !important; }
.vlc-root svg { width: 1em; height: 1em; fill: currentColor; display: block; }

/* ---------- Launcher ---------- */
.vlc-root .vlc-launcher {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 60px;
	min-width: 60px;
	padding: 0 18px;
	margin: 0;
	border: 0;
	border-radius: 999px;
	background: var(--vlc-primary);
	color: #fff;
	font: inherit;
	font-weight: 600;
	letter-spacing: .01em;
	cursor: pointer;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .22), 0 0 0 0 var(--vlc-accent);
	transition: transform .2s ease, box-shadow .2s ease;
	margin-left: auto;
}
.vlc-root.vlc-pos-left .vlc-launcher { margin-left: 0; }
.vlc-root .vlc-launcher:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
.vlc-root .vlc-launcher:focus { outline: none; }
.vlc-root .vlc-launcher:focus-visible { outline: 3px solid var(--vlc-accent); outline-offset: 3px; }
.vlc-root button:focus:not(:focus-visible) { outline: none; }
.vlc-root .vlc-ic { font-size: 26px; color: var(--vlc-accent); display: flex; }
.vlc-root .vlc-ic-close { display: none; font-size: 24px; color: #fff; }
.vlc-root.vlc-open .vlc-ic-chat, .vlc-root.vlc-open .vlc-launch-label { display: none; }
.vlc-root.vlc-open .vlc-ic-close { display: flex; }
.vlc-root.vlc-open .vlc-launcher { padding: 0; width: 60px; justify-content: center; }
.vlc-root .vlc-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 11px;
	background: #d93f3f;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
	border: 2px solid #fff;
}

/* ---------- Teaser ---------- */
.vlc-root .vlc-teaser {
	position: absolute;
	bottom: 76px;
	width: 290px;
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 16px 34px 16px 16px;
	background: var(--vlc-bg);
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .16);
	cursor: pointer;
	animation: vlc-pop .35s cubic-bezier(.2, .9, .3, 1.2);
}
.vlc-root.vlc-pos-right .vlc-teaser { right: 0; }
.vlc-root.vlc-pos-left .vlc-teaser { left: 0; }
.vlc-root .vlc-teaser p { margin: 0; font-size: 14px; }
.vlc-root .vlc-teaser-av, .vlc-root .vlc-av {
	flex: 0 0 auto;
	position: relative;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--vlc-accent);
	color: #fff;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
}
.vlc-root .vlc-teaser-x {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 22px;
	height: 22px;
	padding: 3px;
	border: 0;
	border-radius: 50%;
	background: var(--vlc-soft);
	color: var(--vlc-muted);
	cursor: pointer;
	font-size: 16px;
}

/* ---------- Panel ---------- */
.vlc-root .vlc-panel {
	position: absolute;
	bottom: 76px;
	width: 380px;
	height: min(620px, calc(100vh - 120px));
	display: flex;
	flex-direction: column;
	background: var(--vlc-bg);
	border-radius: var(--vlc-radius);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
	overflow: hidden;
	animation: vlc-pop .3s cubic-bezier(.2, .9, .3, 1.1);
	transform-origin: bottom right;
}
.vlc-root.vlc-pos-right .vlc-panel { right: 0; }
.vlc-root.vlc-pos-left .vlc-panel { left: 0; transform-origin: bottom left; }

.vlc-root .vlc-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 16px 16px 18px;
	background: var(--vlc-primary);
	color: #fff;
}
.vlc-root .vlc-head-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vlc-root .vlc-head-txt strong { font-size: 16px; font-weight: 600; color: #fff; }
.vlc-root .vlc-sub { font-size: 12.5px; opacity: .78; }
.vlc-root .vlc-dot {
	position: absolute;
	right: -1px;
	bottom: -1px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #a8a29a;
	border: 2px solid var(--vlc-primary);
}
.vlc-root.vlc-online .vlc-dot { background: #38c172; }
.vlc-root .vlc-x {
	width: 34px;
	height: 34px;
	padding: 7px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	cursor: pointer;
	font-size: 20px;
}
.vlc-root .vlc-x:hover { background: rgba(255, 255, 255, .2); }

.vlc-root .vlc-body { flex: 1; min-height: 0; overflow-y: auto; background: var(--vlc-bg); }
.vlc-root .vlc-view { padding: 18px; }
.vlc-root .vlc-chat { padding: 0; height: 100%; display: flex; flex-direction: column; }

/* ---------- Forms ---------- */
.vlc-root .vlc-intro { margin: 0 0 14px; color: var(--vlc-muted); font-size: 14px; }
.vlc-root .vlc-form { display: flex; flex-direction: column; gap: 11px; margin: 0; }
.vlc-root .vlc-row { display: flex; gap: 10px; }
.vlc-root .vlc-row > label { flex: 1; min-width: 0; }
.vlc-root .vlc-form label { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.vlc-root .vlc-form label > span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--vlc-muted); }
.vlc-root input, .vlc-root select, .vlc-root textarea {
	width: 100%;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--vlc-line);
	border-radius: 10px;
	background: #fff;
	color: var(--vlc-text);
	font: inherit;
	font-size: 15px;
	line-height: 1.35;
	box-shadow: none;
	height: auto;
	min-height: 0;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.vlc-root select { appearance: auto; }
.vlc-root input:focus, .vlc-root select:focus, .vlc-root textarea:focus {
	border-color: var(--vlc-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--vlc-accent) 22%, transparent);
}
.vlc-root .vlc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.vlc-root .vlc-form label.vlc-check { flex-direction: row; align-items: flex-start; gap: 9px; }
.vlc-root .vlc-check input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; padding: 0; accent-color: var(--vlc-accent); }
.vlc-root .vlc-form label.vlc-check > span { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12.5px; line-height: 1.45; }
.vlc-root .vlc-err { padding: 9px 12px; border-radius: 9px; background: #fdecec; color: #b42323; font-size: 13.5px; }

.vlc-root .vlc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 13px 18px;
	margin: 4px 0 0;
	border: 0;
	border-radius: 10px;
	background: var(--vlc-accent);
	color: #fff;
	font: inherit;
	font-weight: 700;
	font-size: 14.5px;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: filter .15s, transform .15s;
}
.vlc-root .vlc-btn:hover { filter: brightness(1.07); color: #fff; }
.vlc-root .vlc-btn:active { transform: translateY(1px); }
.vlc-root .vlc-btn:disabled { opacity: .6; cursor: default; }
.vlc-root .vlc-btn.is-loading { color: transparent; position: relative; }
.vlc-root .vlc-btn.is-loading::after {
	content: '';
	position: absolute;
	width: 18px;
	height: 18px;
	border: 2px solid #fff;
	border-right-color: transparent;
	border-radius: 50%;
	animation: vlc-spin .7s linear infinite;
}

/* ---------- Verify / redirect ---------- */
.vlc-root .vlc-center { text-align: center; padding: 14px 6px; }
.vlc-root .vlc-center h3 { margin: 10px 0 6px; font-size: 20px; color: var(--vlc-text); }
.vlc-root .vlc-center p { margin: 0 0 16px; color: var(--vlc-muted); font-size: 14px; }
.vlc-root .vlc-big-ic {
	width: 58px;
	height: 58px;
	margin: 0 auto;
	border-radius: 50%;
	background: var(--vlc-soft);
	color: var(--vlc-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
}
.vlc-root .vlc-code {
	text-align: center;
	font-size: 26px;
	letter-spacing: .5em;
	padding: 12px 0 12px .5em;
	font-weight: 600;
	margin-bottom: 10px;
}
.vlc-root .vlc-verify-form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.vlc-root .vlc-links { display: flex; justify-content: space-between; margin-top: 14px; }
.vlc-root .vlc-link {
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--vlc-muted);
	font: inherit;
	font-size: 13.5px;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.vlc-root .vlc-link:hover { color: var(--vlc-text); }
.vlc-root .vlc-link:disabled { text-decoration: none; cursor: default; }
.vlc-root .vlc-muted { font-size: 12.5px !important; margin-top: 12px !important; }

/* ---------- Messages ---------- */
.vlc-root .vlc-msgs {
	flex: 1;
	overflow-y: auto;
	padding: 18px 16px 8px;
	background: var(--vlc-soft);
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.vlc-root .vlc-msg { display: flex; flex-direction: column; max-width: 82%; }
.vlc-root .vlc-msg time { font-size: 11px; color: var(--vlc-muted); margin-top: 3px; }
.vlc-root .vlc-name { font-size: 11.5px; font-weight: 600; color: var(--vlc-muted); margin: 0 0 3px 4px; }
.vlc-root .vlc-bubble {
	padding: 10px 14px;
	border-radius: 16px;
	white-space: pre-wrap;
	word-wrap: break-word;
	overflow-wrap: anywhere;
	font-size: 14.5px;
}
.vlc-root .vlc-bubble a { color: inherit; text-decoration: underline; }
.vlc-root .vlc-agent { align-self: flex-start; }
.vlc-root .vlc-agent .vlc-bubble { background: #fff; border: 1px solid var(--vlc-line); border-bottom-left-radius: 5px; }
.vlc-root .vlc-agent time { margin-left: 4px; }
.vlc-root .vlc-visitor { align-self: flex-end; align-items: flex-end; }
.vlc-root .vlc-visitor .vlc-bubble { background: var(--vlc-primary); color: #fff; border-bottom-right-radius: 5px; }
.vlc-root .vlc-pending { opacity: .6; }
.vlc-root .vlc-failed .vlc-bubble { background: #b42323; }
.vlc-root .vlc-failed time { color: #b42323; }
.vlc-root .vlc-system { align-self: center; max-width: 92%; text-align: center; }
.vlc-root .vlc-system p {
	margin: 0;
	padding: 8px 14px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--vlc-accent) 13%, #fff);
	color: var(--vlc-text);
	font-size: 13px;
}
.vlc-root .vlc-bot .vlc-bubble { background: color-mix(in srgb, var(--vlc-accent) 14%, #fff); border: 1px solid color-mix(in srgb, var(--vlc-accent) 30%, #fff); border-bottom-left-radius: 5px; }
.vlc-root .vlc-bot { align-self: flex-start; }
.vlc-root .vlc-bot time { margin-left: 4px; }
.vlc-root .vlc-bot .vlc-name::before { content: '⚙ '; }
.vlc-root .vlc-typing { display: flex; gap: 4px; padding: 0 16px 10px 20px; background: var(--vlc-soft); }
.vlc-root .vlc-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--vlc-muted); opacity: .4; animation: vlc-blink 1.2s infinite; }
.vlc-root .vlc-typing span:nth-child(2) { animation-delay: .2s; }
.vlc-root .vlc-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes vlc-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: .9; } }
.vlc-root .vlc-ended { padding: 12px 16px 16px; background: var(--vlc-soft); }

/* ---------- Compose / footer ---------- */
.vlc-root .vlc-compose {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	margin: 0;
	padding: 10px 12px;
	border-top: 1px solid var(--vlc-line);
	background: #fff;
}
.vlc-root .vlc-compose textarea { resize: none; max-height: 120px; border-radius: 20px; padding: 10px 14px; }
.vlc-root .vlc-compose button {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	padding: 10px;
	border: 0;
	border-radius: 50%;
	background: var(--vlc-accent);
	color: #fff;
	cursor: pointer;
	font-size: 20px;
}
.vlc-root .vlc-foot {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 8px 14px;
	border-top: 1px solid var(--vlc-line);
	background: #fff;
	font-size: 11.5px;
	color: var(--vlc-muted);
	text-align: center;
}
.vlc-root .vlc-end {
	padding: 0;
	border: 0;
	background: none;
	color: var(--vlc-muted);
	font: inherit;
	font-size: 12px;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.vlc-root .vlc-end:hover { color: #b42323; }

@keyframes vlc-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes vlc-spin { to { transform: rotate(360deg); } }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
	.vlc-root { bottom: 14px; }
	.vlc-root.vlc-pos-right { right: 14px; }
	.vlc-root.vlc-pos-left { left: 14px; }
	.vlc-root .vlc-launch-label { display: none; }
	.vlc-root .vlc-launcher { padding: 0; width: 58px; height: 58px; min-width: 58px; justify-content: center; }
	.vlc-root.vlc-open .vlc-launcher { display: none; }
	.vlc-root .vlc-panel {
		position: fixed;
		inset: 0;
		width: 100%;
		height: 100%;
		height: 100dvh;
		border-radius: 0;
	}
	.vlc-root .vlc-teaser { width: calc(100vw - 28px); max-width: 320px; }
	.vlc-root input, .vlc-root select, .vlc-root textarea { font-size: 16px; } /* prevents iOS zoom */
}

@media (prefers-reduced-motion: reduce) {
	.vlc-root .vlc-panel, .vlc-root .vlc-teaser { animation: none; }
}
