/* ==========================================================================
   Vakil Hooshmand — live chat (customer widget)
   ========================================================================== */

.vh-chat {
	--vc-maroon: var(--vh-maroon, #6E1A2C);
	--vc-maroon-700: var(--vh-maroon-700, #561322);
	--vc-green: var(--vh-green, #3E4A2A);
	--vc-gold: var(--vh-gold, #B8945A);
	--vc-cream: var(--vh-cream, #F7F5F0);
	--vc-border: var(--vh-border, #ECE7DE);
	--vc-muted: var(--vh-muted, #6E6B66);
	--vc-text: var(--vh-text, #1E1E1C);
	--vc-radius: 22px;
	font-family: var(--vh-font, Tahoma, sans-serif);
	color: var(--vc-text);
}

/* ---------- Floating launcher ---------- */
.vh-chat[data-mode="floating"] { position: fixed; bottom: 24px; z-index: 950; }
.vh-chat--left[data-mode="floating"] { left: 24px; }
.vh-chat--right[data-mode="floating"] { right: 24px; }

.vh-chat__launcher {
	position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; display: grid; place-items: center;
	background: linear-gradient(145deg, var(--vc-maroon), var(--vc-maroon-700)); color: #fff; cursor: pointer;
	box-shadow: 0 14px 30px -8px rgba(110, 26, 44, .55), 0 2px 6px rgba(0, 0, 0, .12);
	transition: transform .25s cubic-bezier(.22, .61, .36, 1), box-shadow .25s;
}
.vh-chat__launcher:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 36px -8px rgba(110, 26, 44, .6); }
.vh-chat__launcher::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--vc-gold); opacity: 0;
}
.vh-chat__launcher.is-pulse::after { animation: vc-ring 1.4s ease-out 3; }
@keyframes vc-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.55); } }
.vh-chat__launcher-icon { position: absolute; display: grid; place-items: center; transition: transform .3s, opacity .2s; }
.vh-chat__launcher-icon .vh-icon { width: 27px; height: 27px; }
.vh-chat__launcher-icon--close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.vh-chat.is-open .vh-chat__launcher-icon--open { opacity: 0; transform: rotate(90deg) scale(.6); }
.vh-chat.is-open .vh-chat__launcher-icon--close { opacity: 1; transform: none; }
.vh-chat__badge {
	position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
	background: var(--vc-gold); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center;
	border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.vh-chat__badge[hidden] { display: none; }
.vh-chat__launcher-dot { position: absolute; bottom: 4px; left: 4px; width: 13px; height: 13px; border-radius: 50%; background: #3FB66F; border: 2px solid #fff; }
.vh-chat.is-open .vh-chat__badge, .vh-chat.is-open .vh-chat__launcher-dot { display: none; }

.vh-chat__teaser {
	position: absolute; bottom: 12px; white-space: nowrap; padding: 10px 16px; border-radius: 16px; background: #fff; color: var(--vc-text);
	font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px rgba(30, 24, 16, .14); cursor: pointer; animation: vc-pop .35s cubic-bezier(.22, .61, .36, 1);
}
.vh-chat--left .vh-chat__teaser { left: 76px; }
.vh-chat--right .vh-chat__teaser { right: 76px; }
.vh-chat__teaser[hidden] { display: none; }

/* ---------- Panel ---------- */
.vh-chat__panel {
	position: absolute; bottom: 78px; width: 384px; height: min(640px, calc(100vh - 130px));
	display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: var(--vc-radius);
	box-shadow: 0 30px 80px -10px rgba(30, 24, 16, .28), 0 4px 18px rgba(30, 24, 16, .08); border: 1px solid rgba(0, 0, 0, .04);
	opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .22s ease, transform .25s cubic-bezier(.22, .61, .36, 1);
}
.vh-chat--left .vh-chat__panel { left: 0; transform-origin: bottom left; }
.vh-chat--right .vh-chat__panel { right: 0; transform-origin: bottom right; }
.vh-chat.is-open .vh-chat__panel { opacity: 1; transform: none; }
.vh-chat__panel[hidden] { display: none; }

.vh-chat__head {
	position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px;
	background: radial-gradient(260px 140px at 0% 0%, rgba(184, 148, 90, .35), transparent 70%), linear-gradient(135deg, var(--vc-maroon), var(--vc-maroon-700));
	color: #fff;
}
.vh-chat__head-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vh-chat__team { display: flex; flex-direction: row-reverse; }
.vh-chat__team img, .vh-chat__team-icon { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); object-fit: cover; background: rgba(255, 255, 255, .15); }
.vh-chat__team img + img { margin-left: -12px; }
.vh-chat__team-icon { display: grid; place-items: center; color: var(--vc-gold); }
.vh-chat__team-icon .vh-icon { width: 20px; height: 20px; }
.vh-chat__head-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.vh-chat__title { font-size: 15.5px; font-weight: 800; }
.vh-chat__presence { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; opacity: .9; }
.vh-chat__presence i { width: 8px; height: 8px; border-radius: 50%; background: #E3C68F; }
.vh-chat__presence.is-online i { background: #48D17F; box-shadow: 0 0 0 3px rgba(72, 209, 127, .25); }

.vh-chat__icon-btn {
	width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent;
	color: inherit; cursor: pointer; transition: background-color .2s, color .2s;
}
.vh-chat__icon-btn .vh-icon { width: 20px; height: 20px; }
.vh-chat__head .vh-chat__icon-btn { background: rgba(255, 255, 255, .12); color: #fff; }
.vh-chat__head .vh-chat__icon-btn:hover { background: rgba(255, 255, 255, .22); }

.vh-chat__body { position: relative; flex: 1; min-height: 0; background: var(--vc-cream); }

/* Floating mode: one region at a time. */
.vh-chat[data-mode="floating"] .vh-chat__side,
.vh-chat[data-mode="floating"] .vh-chat__main { position: absolute; inset: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .28s cubic-bezier(.22, .61, .36, 1), opacity .2s; }
.vh-chat[data-mode="floating"] .vh-chat__side { overflow-y: auto; }
.vh-chat[data-mode="floating"].view-home .vh-chat__main { transform: translateX(-100%); opacity: 0; pointer-events: none; }
.vh-chat[data-mode="floating"].view-main .vh-chat__side { transform: translateX(30%); opacity: 0; pointer-events: none; }

/* Skeleton */
.vh-chat__skeleton { padding: 20px; display: grid; gap: 12px; }
.vh-chat__skeleton span { display: block; height: 58px; border-radius: 16px; background: linear-gradient(90deg, #EFEBE3 0%, #F8F5EF 50%, #EFEBE3 100%); background-size: 200% 100%; animation: vc-shimmer 1.2s infinite linear; }
.vh-chat__skeleton--conv span:nth-child(odd) { width: 70%; margin-right: auto; }
.vh-chat__skeleton--conv span:nth-child(even) { width: 60%; }
@keyframes vc-shimmer { to { background-position: -200% 0; } }

/* ---------- Home ---------- */
.vh-chat__home { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.vh-chat__hello { background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 2px 10px rgba(30, 24, 16, .05); border: 1px solid var(--vc-border); }
.vh-chat__hello strong { display: block; font-size: 17px; margin-bottom: 4px; }
.vh-chat__hello p { margin: 0 0 12px; font-size: 14px; color: var(--vc-muted); line-height: 1.9; }
.vh-chat__notice { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; margin-bottom: 12px; border-radius: 12px; background: #FFF7E8; color: #8A5A12; font-size: 13px; line-height: 1.8; }
.vh-chat__notice .vh-icon { width: 17px; height: 17px; margin-top: 3px; flex-shrink: 0; }
.vh-chat__start {
	width: 100%; display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 14px; border: 0; cursor: pointer;
	background: linear-gradient(135deg, var(--vc-maroon), var(--vc-maroon-700)); color: #fff; font: inherit; font-weight: 800; font-size: 15px;
	box-shadow: 0 10px 22px -10px rgba(110, 26, 44, .7); transition: transform .2s;
}
.vh-chat__start span { flex: 1; text-align: start; }
.vh-chat__start .vh-icon { width: 19px; height: 19px; }
.vh-chat__start:hover { transform: translateY(-2px); }
.vh-chat__list-head { font-size: 13px; font-weight: 800; color: var(--vc-muted); padding-inline: 4px; }
.vh-chat__threads { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vh-chat__thread {
	width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 1px solid var(--vc-border);
	background: #fff; cursor: pointer; font: inherit; text-align: start; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.vh-chat__thread:hover { border-color: rgba(110, 26, 44, .25); box-shadow: 0 6px 16px rgba(30, 24, 16, .06); transform: translateY(-1px); }
.vh-chat__thread.is-active { border-color: var(--vc-maroon); box-shadow: 0 0 0 3px rgba(110, 26, 44, .08); }
.vh-chat__thread.is-closed { opacity: .75; }
.vh-chat__thread-avatar { position: relative; flex-shrink: 0; }
.vh-chat__thread-avatar img, .vh-chat__avatar-icon { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--vc-cream); color: var(--vc-maroon); }
.vh-chat__avatar-icon .vh-icon { width: 21px; height: 21px; }
.vh-chat__dot { position: absolute; bottom: 1px; left: 1px; width: 11px; height: 11px; border-radius: 50%; background: #3FB66F; border: 2px solid #fff; }
.vh-chat__thread-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vh-chat__thread-top, .vh-chat__thread-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vh-chat__thread-top strong { font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vh-chat__thread-top time { font-size: 11.5px; color: var(--vc-muted); flex-shrink: 0; }
.vh-chat__thread-preview { font-size: 13px; color: var(--vc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vh-chat__thread-preview em { font-style: normal; color: var(--vc-text); }
.vh-chat__thread.has-unread .vh-chat__thread-preview { color: var(--vc-text); font-weight: 700; }
.vh-chat__count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--vc-maroon); color: #fff; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.vh-chat__status-pill { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: #EEE; color: var(--vc-muted); flex-shrink: 0; }
.vh-chat__empty { text-align: center; padding: 22px 10px; color: var(--vc-muted); font-size: 14px; }
.vh-chat__empty .vh-icon { width: 34px; height: 34px; color: var(--vc-gold); }
.vh-chat__empty p { margin: 8px 0 0; }
.vh-chat__error { padding: 24px; text-align: center; color: var(--vh-danger, #B42318); }

/* ---------- Conversation ---------- */
.vh-chat__conv { display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--vc-cream); }
.vh-chat__conv-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--vc-border); }
.vh-chat__conv-head .vh-chat__icon-btn:hover { background: var(--vc-cream); color: var(--vc-maroon); }
.vh-chat__conv-avatar img, .vh-chat__conv-avatar .vh-chat__avatar-icon { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.vh-chat__conv-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.5; }
.vh-chat__conv-title strong { font-size: 14.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vh-chat__conv-title > span { font-size: 12px; color: var(--vc-muted); }
.vh-chat__conv-status { display: inline-flex; align-items: center; gap: 6px; }
.vh-chat__conv-status i { width: 7px; height: 7px; border-radius: 50%; background: #CFC6B5; }
.vh-chat__conv-status.is-online i { background: #3FB66F; }
.vh-chat__menu-wrap { position: relative; }
.vh-chat__menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 5; min-width: 200px; padding: 6px; background: #fff; border-radius: 14px; border: 1px solid var(--vc-border); box-shadow: 0 16px 40px rgba(30, 24, 16, .16); }
.vh-chat__menu[hidden] { display: none; }
.vh-chat__menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; background: none; border-radius: 10px; font: inherit; font-size: 14px; cursor: pointer; color: var(--vc-text); text-align: start; }
.vh-chat__menu button span { flex: 1; }
.vh-chat__menu button em { font-style: normal; font-size: 12px; color: var(--vc-muted); }
.vh-chat__menu button .vh-icon { width: 18px; height: 18px; color: var(--vc-muted); }
.vh-chat__menu button:hover { background: var(--vc-cream); }
.vh-chat__menu button.is-danger:hover { color: var(--vh-danger, #B42318); background: #FDF2F1; }
.vh-chat__subject { display: flex; align-items: center; gap: 6px; padding: 7px 14px; font-size: 12.5px; color: var(--vc-muted); background: #FBFAF7; border-bottom: 1px solid var(--vc-border); }
.vh-chat__subject .vh-icon { width: 15px; height: 15px; color: var(--vc-gold); }
.vh-chat__subject span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vh-chat__messages {
	flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 3px; scroll-behavior: smooth;
	background-image: radial-gradient(rgba(184, 148, 90, .09) 1px, transparent 1px); background-size: 18px 18px;
}
.vh-chat__messages:focus { outline: none; }
.vh-chat__older { align-self: center; margin-bottom: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--vc-border); background: #fff; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--vc-muted); }
.vh-chat__older:hover { color: var(--vc-maroon); border-color: var(--vc-maroon); }
.vh-chat__day { display: flex; justify-content: center; margin: 10px 0 6px; }
.vh-chat__day span { padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .9); border: 1px solid var(--vc-border); font-size: 11.5px; color: var(--vc-muted); font-weight: 600; }

.vh-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; margin-top: 6px; animation: vc-in .25s ease; }
.vh-msg.is-cont { margin-top: 1px; }
.vh-msg--mine { justify-content: flex-start; }
.vh-msg--theirs { justify-content: flex-start; flex-direction: row-reverse; align-self: flex-end; }
.vh-msg--mine { align-self: flex-start; }
.vh-msg__avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.vh-msg__avatar--empty { visibility: hidden; }
.vh-msg__bubble { max-width: min(78%, 420px); padding: 9px 13px 6px; border-radius: 18px; position: relative; box-shadow: 0 1px 2px rgba(30, 24, 16, .06); word-wrap: break-word; overflow-wrap: anywhere; }
.vh-msg--mine .vh-msg__bubble { background: linear-gradient(160deg, var(--vc-maroon), var(--vc-maroon-700)); color: #fff; border-top-right-radius: 6px; }
.vh-msg--mine.is-cont .vh-msg__bubble { border-top-right-radius: 18px; border-bottom-right-radius: 6px; }
.vh-msg--theirs .vh-msg__bubble { background: #fff; color: var(--vc-text); border-top-left-radius: 6px; border: 1px solid var(--vc-border); }
.vh-msg--theirs.is-cont .vh-msg__bubble { border-top-left-radius: 18px; }
.vh-msg__name { display: block; font-size: 12px; font-weight: 800; color: var(--vc-green); margin-bottom: 2px; }
.vh-msg__text { font-size: 14.5px; line-height: 1.9; white-space: normal; }
.vh-msg__text a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.vh-msg--theirs .vh-msg__text a { color: var(--vc-maroon); }
.vh-msg__meta { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 2px; font-size: 11px; opacity: .75; direction: ltr; }
.vh-msg__ticks { display: inline-flex; }
.vh-msg__ticks .vh-icon { width: 15px; height: 15px; }
.vh-msg__ticks.is-read { color: #9BE0B4; opacity: 1; }
.vh-msg--mine .vh-msg__meta .vh-icon--clock { width: 12px; height: 12px; }
.vh-msg.is-pending { opacity: .7; }
.vh-msg.is-failed .vh-msg__bubble { background: #FDF2F1; color: var(--vh-danger, #B42318); }
.vh-msg__image { display: block; margin: 2px 0 4px; border-radius: 12px; overflow: hidden; max-width: 240px; }
.vh-msg__image img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: cover; }
.vh-msg__file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 2px 0 4px; border-radius: 12px; background: rgba(0, 0, 0, .06); color: inherit; text-decoration: none; }
.vh-msg--theirs .vh-msg__file { background: var(--vc-cream); }
.vh-msg__file span { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.5; }
.vh-msg__file strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vh-msg__file small { font-size: 11.5px; opacity: .75; }
.vh-msg__file .vh-icon { width: 20px; height: 20px; flex-shrink: 0; }
.vh-msg--system { justify-content: center; align-self: center; margin: 8px 0; }
.vh-msg--system span { padding: 5px 14px; border-radius: 999px; background: rgba(62, 74, 42, .08); color: var(--vc-green); font-size: 12px; font-weight: 600; text-align: center; max-width: 92%; line-height: 1.8; }
@keyframes vc-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes vc-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }

.vh-chat__typing { display: flex; align-items: center; gap: 8px; padding: 4px 18px 6px; font-size: 12.5px; color: var(--vc-muted); }
.vh-chat__typing[hidden] { display: none; }
.vh-chat__typing-dots { display: inline-flex; gap: 3px; padding: 7px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--vc-border); }
.vh-chat__typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--vc-gold); animation: vc-dot 1.2s infinite ease-in-out; }
.vh-chat__typing-dots i:nth-child(2) { animation-delay: .15s; }
.vh-chat__typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes vc-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-4px); opacity: 1; } }

.vh-chat__closed { margin: 0 12px 8px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px dashed rgba(110, 26, 44, .3); font-size: 13px; }
.vh-chat__closed[hidden] { display: none; }
.vh-chat__closed p { display: flex; gap: 8px; margin: 0; color: var(--vc-muted); line-height: 1.8; }
.vh-chat__closed p .vh-icon { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; color: var(--vc-gold); }
.vh-chat__rate { display: grid; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--vc-border); }
.vh-chat__rate strong { font-size: 13.5px; }
.vh-chat__stars { display: flex; gap: 4px; direction: ltr; justify-content: center; }
.vh-chat__stars button { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; color: #D6CDBD; display: grid; place-items: center; border-radius: 10px; transition: transform .15s, color .15s; }
.vh-chat__stars button .vh-icon { width: 26px; height: 26px; }
.vh-chat__stars button.is-on { color: var(--vc-gold); }
.vh-chat__stars button.is-on .vh-icon { fill: currentColor; }
.vh-chat__stars button:hover { transform: scale(1.12); }
.vh-chat__rate textarea { min-height: 60px; font-size: 13.5px; }
.vh-chat__thanks { display: flex; align-items: center; gap: 6px; color: var(--vh-success, #2F7D4F); }

/* Composer */
.vh-chat__composer { position: relative; padding: 8px 10px 10px; background: #fff; border-top: 1px solid var(--vc-border); }
.vh-chat__composer-row { display: flex; align-items: flex-end; gap: 4px; padding: 4px; border-radius: 18px; background: var(--vc-cream); border: 1.5px solid transparent; transition: border-color .2s, box-shadow .2s; }
.vh-chat__composer-row:focus-within { border-color: rgba(110, 26, 44, .35); box-shadow: 0 0 0 4px rgba(110, 26, 44, .07); background: #fff; }
.vh-chat__composer .vh-chat__icon-btn { color: var(--vc-muted); width: 38px; height: 38px; }
.vh-chat__composer .vh-chat__icon-btn:hover { color: var(--vc-maroon); background: rgba(110, 26, 44, .06); }
.vh-chat__input { flex: 1; min-width: 0; min-height: 38px; max-height: 140px; resize: none; border: 0; background: transparent; padding: 8px 4px; font: inherit; font-size: 14.5px; line-height: 1.7; color: var(--vc-text); outline: none; }
.vh-chat__send { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 14px; background: var(--vc-maroon); color: #fff; cursor: pointer; transition: transform .15s, background-color .2s; }
.vh-chat__send .vh-icon { width: 19px; height: 19px; transform: scaleX(-1); }
.vh-chat__send:hover { background: var(--vc-maroon-700); transform: scale(1.05); }
.vh-chat__file-chip { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; padding: 6px 10px; border-radius: 12px; background: var(--vc-cream); font-size: 13px; }
.vh-chat__file-chip[hidden] { display: none; }
.vh-chat__file-chip span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vh-chat__file-chip .vh-icon { width: 16px; height: 16px; color: var(--vc-gold); }
.vh-chat__file-chip button { border: 0; background: none; cursor: pointer; color: var(--vc-muted); display: grid; }
.vh-chat__emoji { position: absolute; bottom: calc(100% + 6px); left: 10px; right: 10px; z-index: 5; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; background: #fff; border-radius: 16px; border: 1px solid var(--vc-border); box-shadow: 0 16px 40px rgba(30, 24, 16, .16); animation: vc-pop .2s ease; }
.vh-chat__emoji[hidden] { display: none; }
.vh-chat__emoji button { border: 0; background: none; font-size: 21px; line-height: 1; padding: 6px 0; border-radius: 10px; cursor: pointer; }
.vh-chat__emoji button:hover { background: var(--vc-cream); }

/* New conversation */
.vh-chat__conv--new { background: #fff; }
.vh-chat__new-form { padding: 16px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.vh-chat__label { font-size: 13.5px; font-weight: 800; margin-top: 4px; }
.vh-chat__new-form textarea { min-height: 130px; }
.vh-chat__new-form .vh-btn { margin-top: 8px; }

/* Guest */
.vh-chat__guest { height: 100%; overflow-y: auto; padding: 16px; display: grid; gap: 14px; align-content: start; }
.vh-chat__welcome { background: #fff; border-radius: 18px; padding: 16px; border: 1px solid var(--vc-border); }
.vh-chat__welcome-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(110, 26, 44, .08); color: var(--vc-maroon); margin-bottom: 8px; }
.vh-chat__welcome p { margin: 0 0 10px; font-size: 14px; line-height: 1.9; color: var(--vc-muted); }
.vh-chat__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13px; }
.vh-chat__perks li { display: flex; align-items: center; gap: 8px; }
.vh-chat__perks .vh-icon { width: 17px; height: 17px; color: var(--vc-gold); }
.vh-chat__guest .vh-auth { background: #fff; border-radius: 18px; padding: 16px; border: 1px solid var(--vc-border); box-shadow: none; }

/* Embedded placeholder */
.vh-chat__placeholder { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; color: var(--vc-muted); }
.vh-chat__placeholder-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: #fff; color: var(--vc-gold); margin-bottom: 14px; box-shadow: 0 6px 20px rgba(30, 24, 16, .06); }
.vh-chat__placeholder-icon .vh-icon { width: 34px; height: 34px; }
.vh-chat__placeholder strong { color: var(--vc-text); font-size: 16px; }
.vh-chat__placeholder p { margin: 6px 0 0; font-size: 14px; }

/* ---------- Embedded (panel tab) ---------- */
.vh-chat--embed { border: 1px solid var(--vc-border); border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 6px 24px rgba(30, 24, 16, .05); }
.vh-chat--embed .vh-chat__body { display: grid; grid-template-columns: 330px minmax(0, 1fr); height: clamp(520px, calc(100vh - 230px), 760px); }
.vh-chat--embed .vh-chat__side { overflow-y: auto; border-left: 1px solid var(--vc-border); background: #FBFAF7; }
.vh-chat--embed .vh-chat__main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.vh-chat--embed .vh-chat__back { display: none; }
.vh-chat--embed .vh-chat__skeleton { grid-column: 1 / -1; }
@media (max-width: 860px) {
	.vh-chat--embed .vh-chat__body { grid-template-columns: 1fr; height: calc(100vh - 170px); min-height: 480px; }
	.vh-chat--embed.view-home .vh-chat__main { display: none; }
	.vh-chat--embed.view-main .vh-chat__side { display: none; }
	.vh-chat--embed .vh-chat__back { display: grid; }
}

/* ---------- Trigger buttons (vh_chat_button) ---------- */
.vh-chat-trigger { position: relative; }
.vh-chat-trigger__dot { width: 9px; height: 9px; border-radius: 50%; background: #3FB66F; box-shadow: 0 0 0 3px rgba(63, 182, 111, .22); display: inline-block; }

/* ---------- Mobile: full-screen sheet ---------- */
@media (max-width: 640px) {
	.vh-chat[data-mode="floating"] { bottom: 16px; }
	.vh-chat--left[data-mode="floating"] { left: 16px; }
	.vh-chat--right[data-mode="floating"] { right: 16px; }
	.vh-chat__launcher { width: 56px; height: 56px; }
	.vh-chat__panel { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; bottom: 0; transform: translateY(24px); }
	.vh-chat.is-open .vh-chat__launcher { display: none; }
	.vh-chat__head { padding-top: max(14px, env(safe-area-inset-top)); }
	.vh-chat__composer { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
	.vh-chat__teaser { display: none !important; }
	.vh-msg__bubble { max-width: 84%; }
}
html.vh-chat-locked, html.vh-chat-locked body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.vh-chat *, .vh-chat *::before, .vh-chat *::after { animation: none !important; transition: none !important; }
}

/* Keep the toasts above the launcher. */
.vh-toasts { bottom: 100px; }
