/* LiveChat Lite — widget (v1.5.1) : scoped + theme-proof + gradient */
#clc-widget-root {
	--clc: #4f46e5;
	--clc-ink: #16151f;
	--clc-body: #3a3947;
	--clc-muted: #5f5e6c;
	--clc-line: #d4d3df;
	--clc-surface: #ffffff;
	--clc-canvas: #f7f7fb;
	--clc-grad: linear-gradient(135deg, color-mix(in srgb, var(--clc) 74%, #fff) 0%, var(--clc) 52%, color-mix(in srgb, var(--clc) 82%, #000) 100%);
	--clc-shadow: 0 1px 2px rgba(16,15,31,.04), 0 12px 28px -8px rgba(16,15,31,.18), 0 32px 64px -20px rgba(16,15,31,.28);
	--clc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", sans-serif;
	position: fixed; right: var(--clc-dx, 24px); bottom: var(--clc-dy, 24px); z-index: 2147483000;
	font-family: var(--clc-font); font-size: 15px; line-height: 1.55; color: var(--clc-body);
	-webkit-font-smoothing: antialiased;
}
#clc-widget-root *, #clc-widget-root *::before, #clc-widget-root *::after { box-sizing: border-box; margin: 0; }

/* ---- Reset chống theme (rất quan trọng) ---- */
#clc-widget-root button {
	-webkit-appearance: none !important; appearance: none !important;
	font-family: inherit !important; line-height: normal !important;
	border: 0 !important; margin: 0 !important; background: transparent;
	box-shadow: none !important; text-transform: none !important; letter-spacing: normal !important;
	text-shadow: none !important; text-decoration: none !important;
	min-height: 0 !important; min-width: 0 !important; width: auto !important; height: auto !important;
	outline: none; cursor: pointer;
}
#clc-widget-root input, #clc-widget-root textarea {
	-webkit-appearance: none !important; appearance: none !important;
	font-family: inherit !important; margin: 0 !important; box-shadow: none !important;
	min-height: 0 !important; max-width: none; text-transform: none !important; letter-spacing: normal !important;
	line-height: 1.5; color: var(--clc-ink); background: #fff;
}
#clc-widget-root h3, #clc-widget-root h4, #clc-widget-root p {
	margin: 0 !important; padding: 0 !important; font-family: inherit !important;
	text-transform: none !important; text-shadow: none !important; border: 0 !important;
}
#clc-widget-root .clc-messages::-webkit-scrollbar, #clc-widget-root .clc-prechat::-webkit-scrollbar { width: 6px; }
#clc-widget-root .clc-messages::-webkit-scrollbar-thumb, #clc-widget-root .clc-prechat::-webkit-scrollbar-thumb { background: rgba(16,15,31,.14); border-radius: 3px; }

/* ---------- Launcher (nút ngoài) ---------- */
#clc-widget-root .clc-launcher {
	position: relative; display: inline-flex; align-items: center; gap: 9px;
	color: #fff !important; background: var(--clc); background-image: var(--clc-grad) !important;
	padding: 14px 22px 14px 18px !important; border-radius: 999px !important;
	font-size: 15px !important; font-weight: 650 !important;
	box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--clc) 55%, transparent), 0 14px 34px -10px rgba(16,15,31,.4) !important;
	transition: transform .22s cubic-bezier(.34,1.56,.64,1), filter .2s ease, box-shadow .22s ease;
}
#clc-widget-root .clc-launcher:hover { transform: translateY(-2px); filter: brightness(1.06); }
#clc-widget-root .clc-launcher:active { transform: translateY(0) scale(.98); }
#clc-widget-root .clc-launcher svg { width: 21px; height: 21px; color: #fff; }
#clc-widget-root .clc-launcher span { color: #fff !important; }
#clc-widget-root .clc-launcher-badge {
	position: absolute; top: -4px; right: -4px; min-width: 21px; height: 21px; padding: 0 5px;
	background: #f43f5e !important; color: #fff !important; border: 2.5px solid #fff; border-radius: 999px;
	font-size: 11px; font-weight: 800; line-height: 16px; text-align: center; display: none;
	box-shadow: 0 2px 6px rgba(244,63,94,.5);
}
#clc-widget-root .clc-launcher-badge.show { display: block; animation: clc-badge .3s cubic-bezier(.34,1.56,.64,1); }
@keyframes clc-badge { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- Panel ---------- */
#clc-widget-root .clc-panel {
	position: absolute; right: 0; bottom: 0;
	width: 392px; max-width: calc(100vw - 40px);
	height: 600px; max-height: calc(100vh - 40px);
	background: var(--clc-surface); border-radius: 22px;
	box-shadow: var(--clc-shadow); display: none; flex-direction: column; overflow: hidden;
	transform-origin: bottom right;
}
#clc-widget-root .clc-panel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(16,15,31,.05); }
#clc-widget-root .clc-panel.clc-open { display: flex; animation: clc-pop .3s cubic-bezier(.16,1,.3,1); }
@keyframes clc-pop { from { opacity: 0; transform: translateY(18px) scale(.965); } to { opacity: 1; transform: none; } }

/* ---------- Header ---------- */
#clc-widget-root .clc-header {
	position: relative; color: #fff !important; padding: 19px 18px;
	display: flex; align-items: center; gap: 13px; flex: none;
	background: var(--clc); background-image: var(--clc-grad) !important;
}
#clc-widget-root .clc-avatar {
	width: 44px; height: 44px; flex: none; border-radius: 50%;
	background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center;
	box-shadow: 0 0 0 4px rgba(255,255,255,.12);
}
#clc-widget-root .clc-avatar svg { width: 23px; height: 23px; color: #fff; }
#clc-widget-root .clc-head-text { flex: 1; min-width: 0; }
#clc-widget-root .clc-title { color: #fff !important; font-size: 16.5px !important; font-weight: 750 !important; letter-spacing: -.01em; line-height: 1.25 !important; }
#clc-widget-root .clc-status { display: flex; align-items: center; gap: 6px; margin-top: 3px !important; font-size: 12.5px !important; color: rgba(255,255,255,.92) !important; font-weight: 450 !important; }
#clc-widget-root .clc-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.3); animation: clc-pulse 2.4s ease-in-out infinite; }
#clc-widget-root .clc-status--off .clc-dot { background: #cbd5e1; box-shadow: 0 0 0 3px rgba(203,213,225,.35); animation: none; }
@keyframes clc-pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(74,222,128,.3);} 50% { box-shadow: 0 0 0 5px rgba(74,222,128,.12);} }
#clc-widget-root .clc-close {
	background: rgba(255,255,255,.16) !important; color: #fff !important; width: 33px; height: 33px !important;
	border-radius: 10px !important; font-size: 20px !important; line-height: 1 !important; flex: none;
	display: flex; align-items: center; justify-content: center; transition: background .15s ease, transform .15s ease;
}
#clc-widget-root .clc-close:hover { background: rgba(255,255,255,.3) !important; }
#clc-widget-root .clc-close:active { transform: scale(.92); }
#clc-widget-root .clc-expand {
	background: rgba(255,255,255,.16) !important; color: #fff !important; width: 33px; height: 33px !important;
	border-radius: 10px !important; flex: none; display: flex; align-items: center; justify-content: center;
	transition: background .15s ease, transform .15s ease;
}
#clc-widget-root .clc-expand:hover { background: rgba(255,255,255,.3) !important; }
#clc-widget-root .clc-expand:active { transform: scale(.92); }
#clc-widget-root .clc-expand svg { width: 18px; height: 18px; color: #fff; }

/* ---------- Body ---------- */
#clc-widget-root .clc-body { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--clc-canvas); }

/* Pre-chat */
#clc-widget-root .clc-prechat { display: none; flex-direction: column; padding: 28px 24px; overflow-y: auto; }
#clc-widget-root .clc-panel.clc-state-prechat .clc-prechat { display: flex; animation: clc-fade .3s ease; }
@keyframes clc-fade { from { opacity: 0; } to { opacity: 1; } }
#clc-widget-root .clc-prechat-icon {
	width: 56px; height: 56px; border-radius: 17px; margin-bottom: 18px;
	background: color-mix(in srgb, var(--clc) 12%, #fff); display: flex; align-items: center; justify-content: center;
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--clc) 18%, transparent);
}
#clc-widget-root .clc-prechat-icon svg { width: 28px; height: 28px; color: var(--clc); }
#clc-widget-root .clc-prechat h4 { font-size: 19px !important; font-weight: 750 !important; color: var(--clc-ink) !important; letter-spacing: -.015em; margin-bottom: 7px !important; }
#clc-widget-root .clc-prechat p { font-size: 14px !important; color: var(--clc-muted) !important; margin-bottom: 22px !important; line-height: 1.5 !important; }
#clc-widget-root .clc-field { margin-bottom: 15px; }
#clc-widget-root .clc-field label { display: block; font-size: 12.5px; font-weight: 650; color: var(--clc-body); margin-bottom: 7px; }
#clc-widget-root .clc-field input {
	width: 100%; border: 1.5px solid var(--clc-line) !important; border-radius: 12px !important; padding: 12px 14px !important;
	font-size: 16px !important; color: var(--clc-ink); background: #fff; outline: none;
	transition: border-color .16s ease, box-shadow .16s ease;
}
#clc-widget-root .clc-field input:focus { border-color: var(--clc) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--clc) 15%, transparent) !important; }
#clc-widget-root .clc-field input.clc-invalid { border-color: #f43f5e !important; box-shadow: 0 0 0 4px rgba(244,63,94,.14) !important; }
#clc-widget-root .clc-error { color: #e11d48 !important; font-size: 12.5px !important; margin: -6px 0 13px !important; display: none; }
#clc-widget-root .clc-error.show { display: block; }
#clc-widget-root .clc-btn {
	width: 100% !important; color: #fff !important; font-weight: 700 !important; font-size: 15px !important;
	padding: 14px !important; border-radius: 13px !important; margin-top: 6px;
	background: var(--clc); background-image: var(--clc-grad) !important;
	box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--clc) 60%, transparent) !important;
	transition: transform .15s ease, filter .15s ease;
}
#clc-widget-root .clc-btn:hover { filter: brightness(1.06); }
#clc-widget-root .clc-btn:active { transform: scale(.985); }
#clc-widget-root .clc-btn:disabled { opacity: .6; cursor: default; }

/* Messages */
#clc-widget-root .clc-messages { display: none; flex: 1; overflow-y: auto; padding: 20px 18px 10px; scroll-behavior: smooth; }
#clc-widget-root .clc-panel.clc-state-chat .clc-messages { display: block; }
#clc-widget-root .clc-row { display: flex; align-items: flex-end; gap: 9px; margin-top: 6px; animation: clc-in .26s cubic-bezier(.16,1,.3,1); }
#clc-widget-root .clc-row + .clc-row { margin-top: 12px; }
@keyframes clc-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
#clc-widget-root .clc-row--visitor { flex-direction: row-reverse; }
#clc-widget-root .clc-avatar-sm {
	width: 29px; height: 29px; flex: none; border-radius: 50%; margin-bottom: 17px;
	background: var(--clc); background-image: var(--clc-grad); display: flex; align-items: center; justify-content: center;
	box-shadow: 0 2px 6px -1px color-mix(in srgb, var(--clc) 45%, transparent);
}
#clc-widget-root .clc-avatar-sm.bot { background: linear-gradient(140deg,#8b5cf6,#6d28d9); box-shadow: 0 2px 6px -1px rgba(124,58,237,.45); }
#clc-widget-root .clc-avatar-sm svg { width: 15px; height: 15px; color: #fff; }
#clc-widget-root .clc-stack { max-width: 78%; display: flex; flex-direction: column; }
#clc-widget-root .clc-row--visitor .clc-stack { align-items: flex-end; }
#clc-widget-root .clc-bubble { padding: 11px 15px; border-radius: 18px; white-space: pre-wrap; word-wrap: break-word; font-size: 14.5px; line-height: 1.5; }
#clc-widget-root .clc-row--visitor .clc-bubble {
	color: #fff !important; background: var(--clc); background-image: var(--clc-grad); border-bottom-right-radius: 6px;
	box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--clc) 55%, transparent);
}
#clc-widget-root .clc-row--agent .clc-bubble, #clc-widget-root .clc-row--bot .clc-bubble {
	background: #fff; color: var(--clc-ink); border: 1px solid var(--clc-line); border-bottom-left-radius: 6px;
	box-shadow: 0 2px 6px -3px rgba(16,15,31,.1);
}
#clc-widget-root .clc-av-img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; padding: 3px; }
#clc-widget-root.clc-branded .clc-avatar, #clc-widget-root.clc-branded .clc-avatar-sm { background: #000 !important; background-image: none !important; }

#clc-widget-root .clc-meta { font-size: 11px; color: var(--clc-muted); margin: 5px 5px 0; }
#clc-widget-root .clc-bubble a { color: inherit; text-decoration: underline; word-break: break-word; }
#clc-widget-root .clc-row--agent .clc-bubble a, #clc-widget-root .clc-row--bot .clc-bubble a { color: var(--clc); }

/* Typing */
#clc-widget-root .clc-typing { display: none; align-items: flex-end; gap: 9px; margin-top: 12px; }
#clc-widget-root .clc-typing.show { display: flex; }
#clc-widget-root .clc-typing .clc-avatar-sm { margin-bottom: 0; }
#clc-widget-root .clc-typing-bubble { background: #fff; border: 1px solid var(--clc-line); border-radius: 18px; border-bottom-left-radius: 6px; padding: 13px 15px; display: flex; gap: 5px; box-shadow: 0 2px 6px -3px rgba(16,15,31,.1); }
#clc-widget-root .clc-typing-bubble span { width: 7px; height: 7px; border-radius: 50%; background: var(--clc-muted); animation: clc-blink 1.3s infinite; }
#clc-widget-root .clc-typing-bubble span:nth-child(2) { animation-delay: .18s; }
#clc-widget-root .clc-typing-bubble span:nth-child(3) { animation-delay: .36s; }
/* 1.18.0: chữ chờ ("Em đang kiểm tra sản phẩm…") + 3 chấm nhỏ */
#clc-widget-root .clc-typing-text { display: none; font-style: normal; font-size: 13px; line-height: 1.35; color: var(--clc-muted); margin-right: 3px; }
#clc-widget-root .clc-typing.clc-typing-label .clc-typing-bubble { align-items: center; gap: 3px; padding: 10px 14px; max-width: 260px; flex-wrap: wrap; }
#clc-widget-root .clc-typing.clc-typing-label .clc-typing-text { display: inline; }
#clc-widget-root .clc-typing.clc-typing-label .clc-typing-bubble span { width: 4px; height: 4px; margin-top: 4px; }
@keyframes clc-blink { 0%,60%,100% { opacity: .3; transform: translateY(0);} 30% { opacity: 1; transform: translateY(-4px);} }

/* Input */
#clc-widget-root .clc-input { display: none; gap: 9px; padding: 12px 14px 14px; background: var(--clc-surface); border-top: 1px solid var(--clc-line); align-items: flex-end; flex: none; }
#clc-widget-root .clc-panel.clc-state-chat .clc-input { display: flex; }
#clc-widget-root .clc-input textarea {
	flex: 1; resize: none !important; border: 1.5px solid var(--clc-line) !important; border-radius: 22px !important;
	padding: 11px 16px !important; font-size: 16px !important; color: var(--clc-ink); max-height: 104px !important; height: 44px;
	outline: none; transition: border-color .16s ease, box-shadow .16s ease;
}
#clc-widget-root .clc-input textarea:focus { border-color: var(--clc) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--clc) 13%, transparent) !important; }
#clc-widget-root .clc-send {
	color: #fff !important; height: 43px !important; width: auto !important; min-width: 66px !important; padding: 0 20px !important;
	border-radius: 14px !important; flex: none; font-size: 14.5px !important; font-weight: 700 !important; letter-spacing: .01em;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--clc); background-image: var(--clc-grad) !important;
	box-shadow: 0 6px 14px -5px color-mix(in srgb, var(--clc) 55%, transparent) !important;
	transition: filter .15s ease, transform .15s ease;
}
#clc-widget-root .clc-send > * { display: none !important; }
#clc-widget-root .clc-send::after { content: "Gửi"; color: #fff; }
#clc-widget-root .clc-send:hover { filter: brightness(1.07); }
#clc-widget-root .clc-send:active { transform: scale(.96); }
#clc-widget-root .clc-send:disabled { opacity: .45; cursor: default; box-shadow: none !important; }

#clc-widget-root .clc-input textarea { overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
#clc-widget-root .clc-input textarea::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }

#clc-widget-root .clc-endbar { display: none; padding: 8px 14px 0; background: var(--clc-surface); flex: none; text-align: center; }
#clc-widget-root .clc-panel.clc-state-chat .clc-endbar { display: block; }
#clc-widget-root .clc-end, #clc-widget-root .clc-editinfo { background: transparent !important; color: var(--clc-muted) !important; font-size: 12px !important; font-weight: 600 !important; padding: 4px 10px !important; border-radius: 8px !important; text-decoration: underline !important; }
#clc-widget-root .clc-end:hover, #clc-widget-root .clc-editinfo:hover { color: var(--clc-body) !important; }
#clc-widget-root .clc-endbar-sep { color: var(--clc-line); font-size: 12px; }
#clc-widget-root .clc-note { margin-top: 14px !important; font-size: 12px !important; color: var(--clc-muted) !important; text-align: center; line-height: 1.5; }
#clc-widget-root .clc-ended .clc-input, #clc-widget-root .clc-ended .clc-endbar { display: none !important; }

#clc-widget-root .clc-newbar { display: none; padding: 14px; background: var(--clc-surface); flex: none; }
#clc-widget-root .clc-ended .clc-newbar { display: block; }
#clc-widget-root .clc-new {
	width: 100% !important; color: #fff !important; font-weight: 700 !important; font-size: 14.5px !important;
	padding: 13px !important; border-radius: 13px !important;
	background: var(--clc); background-image: var(--clc-grad) !important;
	box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--clc) 60%, transparent) !important;
	transition: filter .15s ease, transform .15s ease;
}
#clc-widget-root .clc-new:hover { filter: brightness(1.06); }
#clc-widget-root .clc-new:active { transform: scale(.985); }

#clc-widget-root .clc-footer { text-align: center; font-size: 10.5px; color: var(--clc-muted); padding: 8px; background: var(--clc-surface); flex: none; letter-spacing: .02em; }
#clc-widget-root .clc-footer b { color: var(--clc-body); font-weight: 650; }

@media (max-width: 480px) {
	#clc-widget-root { bottom: var(--clc-my, 14px); }
	#clc-widget-root.clc-m-right { right: var(--clc-mx, 14px); left: auto; text-align: initial; }
	#clc-widget-root.clc-m-left { left: var(--clc-mx, 14px); right: auto; text-align: initial; }
	#clc-widget-root.clc-m-center { left: 0; right: 0; text-align: center; }
	/* Full màn hình theo viewport động (dvh) + biến JS visualViewport để bàn phím không che ô nhập */
	#clc-widget-root .clc-panel {
		position: fixed; inset: 0; width: auto;
		height: 100vh;               /* fallback trình duyệt cũ */
		height: 100dvh;              /* iOS 16+/Chrome: co theo thanh địa chỉ */
		height: var(--clc-vh, 100dvh); /* JS ghi đè bằng chiều cao vùng nhìn thấy */
		max-height: none; border-radius: 0;
	}
	/* Chừa tai thỏ / Dynamic Island và thanh Home */
	#clc-widget-root .clc-header { padding-top: calc(19px + env(safe-area-inset-top)); }
	#clc-widget-root .clc-input { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
	#clc-widget-root .clc-newbar { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
	#clc-widget-root .clc-endbar { padding-bottom: calc(0px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
	#clc-widget-root .clc-panel.clc-open, #clc-widget-root .clc-row, #clc-widget-root .clc-launcher, #clc-widget-root .clc-prechat, #clc-widget-root .clc-dot, #clc-widget-root .clc-launcher-badge { animation: none !important; transition: none !important; }
	#clc-widget-root .clc-typing-bubble span { animation: none; }
}

/* Vị trí trên máy tính */
#clc-widget-root.clc-d-left { left: var(--clc-dx, 24px); right: auto; }
#clc-widget-root.clc-d-left .clc-panel { left: 0; right: auto; transform-origin: bottom left; }

/* Hình dạng nút */
#clc-widget-root.clc-shape-round .clc-launcher,
#clc-widget-root.clc-shape-square .clc-launcher { width: 60px !important; height: 60px !important; padding: 0 !important; gap: 0 !important; justify-content: center; }
#clc-widget-root.clc-shape-round .clc-launcher { border-radius: 50% !important; }
#clc-widget-root.clc-shape-square .clc-launcher { border-radius: 18px !important; }
#clc-widget-root.clc-shape-round .clc-launcher-label,
#clc-widget-root.clc-shape-square .clc-launcher-label { display: none !important; }
#clc-widget-root.clc-shape-round .clc-launcher svg,
#clc-widget-root.clc-shape-square .clc-launcher svg { width: 26px; height: 26px; }

#clc-widget-root .clc-attach { background: transparent !important; color: var(--clc-muted) !important; width: 38px !important; height: 38px !important; min-width: 0 !important; padding: 0 !important; border-radius: 50% !important; flex: none; display: inline-flex; align-items: center; justify-content: center; }
#clc-widget-root .clc-attach:hover { color: var(--clc) !important; }
#clc-widget-root .clc-attach svg { width: 22px; height: 22px; }
#clc-widget-root .clc-img { max-width: 220px; max-height: 260px; border-radius: 12px; display: block; cursor: pointer; }

#clc-widget-root .clc-req { color: #f43f5e; }
#clc-widget-root .clc-endmail { display: none; flex: 1; min-height: 0; padding: 26px 24px; background: var(--clc-surface); flex-direction: column; justify-content: center; }
#clc-widget-root .clc-panel.clc-asking-email .clc-body { display: none; }
#clc-widget-root .clc-panel.clc-asking-email .clc-endmail { display: flex; }
#clc-widget-root .clc-panel.clc-asking-email .clc-input, #clc-widget-root .clc-panel.clc-asking-email .clc-endbar { display: none !important; }
#clc-widget-root .clc-ended .clc-endmail { display: none !important; }
#clc-widget-root .clc-endmail-title { font-size: 15px; color: var(--clc-ink); margin: 0 0 18px !important; font-weight: 650; text-align: center; line-height: 1.5; }
#clc-widget-root .clc-endmail-input { width: 100%; border: 1.5px solid var(--clc-line) !important; border-radius: 12px !important; padding: 13px 15px !important; font-size: 16px !important; color: var(--clc-ink); outline: none !important; box-shadow: none !important; margin: 0 0 16px !important; transition: border-color .16s ease, box-shadow .16s ease; }
#clc-widget-root .clc-endmail-input:focus { border-color: var(--clc) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--clc) 12%, transparent) !important; }
#clc-widget-root .clc-endmail-send { width: 100% !important; color: #fff !important; font-weight: 700 !important; font-size: 15px !important; padding: 13px !important; border-radius: 12px !important; background: var(--clc); background-image: var(--clc-grad) !important; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--clc) 50%, transparent) !important; transition: filter .15s ease; }
#clc-widget-root .clc-endmail-send:hover { filter: brightness(1.05); }
#clc-widget-root .clc-endmail-skip { width: 100% !important; background: transparent !important; color: var(--clc-muted) !important; font-size: 13px !important; font-weight: 500 !important; text-decoration: underline !important; padding: 14px 8px 0 !important; }
#clc-widget-root .clc-endmail-skip:hover { color: var(--clc-body) !important; }
#clc-widget-root .clc-endmail-err { margin: -6px 0 10px; text-align: center; }

/* ============================================================
   PAGE MODE — trang chat độc lập /chatbox (toàn màn hình / PWA)
   ============================================================ */
#clc-widget-root.clc-page {
	position: fixed; inset: 0; width: 100%; height: 100%;
	box-sizing: border-box;
	display: flex; align-items: stretch;
	background: linear-gradient(160deg, color-mix(in srgb, var(--clc) 12%, #f3f4f8), #f3f4f8);
	padding: 50px;
}
/* Desktop: khung chat full-width, chỉ thu nhẹ 4 cạnh */
#clc-widget-root.clc-page .clc-panel {
	position: relative; inset: auto; flex: 1 1 auto;
	display: flex; width: 100%; max-width: 100%;
	height: auto; max-height: 100%;
	border-radius: 22px; animation: none;
}
/* Form (pre-chat / cập nhật thông tin / nhận email) không giãn full-width, căn giữa */
#clc-widget-root.clc-page .clc-prechat,
#clc-widget-root.clc-page .clc-endmail {
	width: min(100%, 460px); margin-left: auto; margin-right: auto;
}
#clc-widget-root.clc-page .clc-launcher { display: none !important; }
/* Nút cài đặt (thêm vào màn hình chính) nằm trong header */
#clc-widget-root .clc-install {
	background: rgba(255,255,255,.16) !important; color: #fff !important;
	width: 33px; height: 33px !important; border-radius: 10px !important;
	flex: none; display: none; align-items: center; justify-content: center;
	transition: background .15s ease, transform .15s ease; margin-right: 4px;
}
#clc-widget-root .clc-install.show { display: flex; }
#clc-widget-root .clc-install:hover { background: rgba(255,255,255,.3) !important; }
#clc-widget-root .clc-install:active { transform: scale(.92); }
#clc-widget-root .clc-install svg { width: 19px; height: 19px; color: #fff; }

/* Mobile: full màn hình như app, co theo bàn phím */
@media (max-width: 480px) {
	#clc-widget-root.clc-page { padding: 0; }
	#clc-widget-root.clc-page .clc-panel {
		width: 100%; border-radius: 0;
		height: 100vh; height: 100dvh; height: var(--clc-vh, 100dvh);
		max-height: none;
	}
}

/* Lớp hướng dẫn cài đặt cho iPhone (iOS không cho cài tự động) */
.clc-ios-sheet {
	position: fixed; inset: 0; z-index: 2147483600; display: none;
	align-items: flex-end; justify-content: center;
	background: rgba(16,15,31,.5); padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.clc-ios-sheet.show { display: flex; }
.clc-ios-card {
	background: #fff; width: 100%; max-width: 460px;
	border-radius: 20px 20px 0 0; padding: 22px 22px calc(26px + env(safe-area-inset-bottom));
	box-shadow: 0 -10px 40px rgba(16,15,31,.3); animation: clc-ios-up .28s cubic-bezier(.16,1,.3,1);
}
@keyframes clc-ios-up { from { transform: translateY(100%); } to { transform: none; } }
.clc-ios-card h3 { margin: 0 0 6px; font-size: 17px; color: #16151f; font-weight: 750; }
.clc-ios-card p { margin: 0 0 14px; font-size: 14px; color: #57566a; line-height: 1.5; }
.clc-ios-step { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid #cbd5e1; font-size: 14.5px; color: #16151f; }
.clc-ios-step svg { width: 26px; height: 26px; flex: none; color: #4f46e5; }
.clc-ios-close { width: 100%; margin-top: 16px; border: 0; border-radius: 13px; padding: 13px; font-size: 15px; font-weight: 700; color: #fff; background: #4f46e5; cursor: pointer; }

/* ============================================================
   HIỆU ỨNG THU HÚT: nút nhún nhẹ + bong bóng chào (teaser)
   ============================================================ */
#clc-widget-root.clc-pulse .clc-launcher { animation: clc-attn 5s ease-in-out 3s infinite; }
@keyframes clc-attn {
	0%, 86%, 100% { transform: translateY(0) rotate(0); }
	88% { transform: translateY(-6px) rotate(-6deg); }
	91% { transform: translateY(0) rotate(5deg); }
	94% { transform: translateY(-4px) rotate(-4deg); }
	97% { transform: translateY(0) rotate(0); }
}

#clc-widget-root .clc-teaser {
	position: absolute; bottom: calc(100% + 14px); right: 0;
	width: max-content; max-width: 260px;
	background: var(--clc-surface); color: var(--clc-ink);
	border-radius: 16px; border-bottom-right-radius: 6px;
	padding: 13px 34px 13px 15px; font-size: 14px; line-height: 1.45; font-weight: 500;
	box-shadow: var(--clc-shadow); cursor: pointer; display: none;
	animation: clc-teaser-in .3s cubic-bezier(.16,1,.3,1);
}
#clc-widget-root .clc-teaser.show { display: block; }
#clc-widget-root.clc-d-left .clc-teaser { right: auto; left: 0; border-bottom-right-radius: 16px; border-bottom-left-radius: 6px; }
#clc-widget-root .clc-teaser-x {
	position: absolute; top: 6px; right: 8px; background: transparent !important; color: var(--clc-muted) !important;
	width: 20px; height: 20px !important; font-size: 16px !important; line-height: 1 !important; border-radius: 6px !important;
	display: flex; align-items: center; justify-content: center;
}
#clc-widget-root .clc-teaser-x:hover { color: var(--clc-body) !important; }
@keyframes clc-teaser-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
	#clc-widget-root .clc-teaser { max-width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
	#clc-widget-root.clc-pulse .clc-launcher { animation: none !important; }
	#clc-widget-root .clc-teaser { animation: none !important; }
}

/* ---- 1.14.0: ô đồng ý xử lý dữ liệu & ghi chú email ---- */
#clc-widget-root .clc-consent { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 16px; font-size: 12.5px; line-height: 1.5; color: var(--clc-body); cursor: pointer; text-align: left; }
#clc-widget-root .clc-consent input[type="checkbox"] {
	-webkit-appearance: checkbox !important; appearance: auto !important;
	flex: none; width: 18px !important; height: 18px !important; margin: 1px 0 0 !important; padding: 0 !important;
	accent-color: var(--clc); cursor: pointer; background: transparent;
}
#clc-widget-root .clc-consent input.clc-invalid { outline: 2px solid #f43f5e !important; outline-offset: 2px; }
#clc-widget-root .clc-consent a, #clc-widget-root .clc-endmail-note a { color: var(--clc) !important; text-decoration: underline !important; }
#clc-widget-root .clc-endmail-note { margin-top: 12px !important; font-size: 12px !important; color: var(--clc-muted) !important; text-align: center; line-height: 1.5 !important; }

/* ---- 1.14.1: thông báo hệ thống (lỗi, trạng thái) — không gắn nhãn "Nhân viên" ---- */
#clc-widget-root .clc-row--system { justify-content: center; }
#clc-widget-root .clc-sysnote { max-width: 88%; text-align: center; font-size: 12.5px; line-height: 1.5; color: var(--clc-body); background: var(--clc-canvas); border: 1px solid var(--clc-line); padding: 7px 12px; border-radius: 12px; }

/* ---- 1.15.0: xác minh SĐT bằng OTP ---- */
#clc-widget-root .clc-otp-open { background: transparent !important; color: var(--clc) !important; font-size: 12px !important; font-weight: 700 !important; padding: 4px 10px !important; border-radius: 8px !important; }
#clc-widget-root .clc-otp-open:hover { text-decoration: underline !important; }
#clc-widget-root .clc-otp-open.done { color: #15803d !important; cursor: default !important; text-decoration: none !important; }
#clc-widget-root .clc-otp { display: none; flex: 1; min-height: 0; padding: 26px 24px; background: var(--clc-surface); flex-direction: column; justify-content: center; overflow-y: auto; }
#clc-widget-root .clc-panel.clc-asking-otp .clc-body { display: none; }
#clc-widget-root .clc-panel.clc-asking-otp .clc-otp { display: flex; }
#clc-widget-root .clc-panel.clc-asking-otp .clc-input, #clc-widget-root .clc-panel.clc-asking-otp .clc-endbar { display: none !important; }
#clc-widget-root .clc-ended .clc-otp { display: none !important; }
#clc-widget-root .clc-otp-title { font-size: 17px !important; font-weight: 750 !important; color: var(--clc-ink) !important; text-align: center; margin: 0 0 6px !important; }
#clc-widget-root .clc-otp-desc, #clc-widget-root .clc-otp-sent { font-size: 13px !important; color: var(--clc-muted) !important; text-align: center; line-height: 1.5 !important; margin: 0 0 16px !important; }
#clc-widget-root .clc-otp-sent { color: var(--clc-body) !important; }
#clc-widget-root .clc-otp-s2 { display: none; }
#clc-widget-root .clc-otp.step2 .clc-otp-s1 { display: none; }
#clc-widget-root .clc-otp.step2 .clc-otp-s2 { display: block; }
#clc-widget-root .clc-otp-phone, #clc-widget-root .clc-otp-code { width: 100%; border: 1.5px solid var(--clc-line) !important; border-radius: 12px !important; padding: 13px 15px !important; font-size: 16px !important; color: var(--clc-ink); outline: none !important; margin: 0 0 14px !important; }
#clc-widget-root .clc-otp-code { text-align: center; letter-spacing: .4em !important; font-size: 20px !important; font-weight: 700; }
#clc-widget-root .clc-otp-phone:focus, #clc-widget-root .clc-otp-code:focus { border-color: var(--clc) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--clc) 12%, transparent) !important; }
#clc-widget-root .clc-otp-send, #clc-widget-root .clc-otp-verify { width: 100% !important; color: #fff !important; font-weight: 700 !important; font-size: 15px !important; padding: 13px !important; border-radius: 12px !important; background: var(--clc); background-image: var(--clc-grad) !important; }
#clc-widget-root .clc-otp-send:disabled, #clc-widget-root .clc-otp-verify:disabled { opacity: .6; cursor: default; }
#clc-widget-root .clc-otp-resend, #clc-widget-root .clc-otp-cancel { width: 100% !important; background: transparent !important; color: var(--clc-muted) !important; font-size: 13px !important; padding: 12px 8px 0 !important; text-decoration: underline !important; }
#clc-widget-root .clc-otp-resend:disabled { text-decoration: none !important; cursor: default; }
#clc-widget-root .clc-otp-err { margin: 10px 0 0 !important; text-align: center; }

/* ---- 1.15.0: đánh giá cuộc trò chuyện ---- */
#clc-widget-root .clc-rate { width: 100%; max-width: 300px; background: var(--clc-surface); border: 1px solid var(--clc-line); border-radius: 16px; padding: 14px 16px; text-align: center; }
#clc-widget-root .clc-rate-q { font-size: 13.5px !important; font-weight: 650 !important; color: var(--clc-ink) !important; margin: 0 0 6px !important; }
#clc-widget-root .clc-stars { display: flex; justify-content: center; gap: 2px; margin-bottom: 8px; }
#clc-widget-root .clc-star { font-size: 28px !important; line-height: 1 !important; color: #9a98a8 !important; padding: 2px 3px !important; transition: transform .12s ease, color .12s ease; }
#clc-widget-root .clc-star.on { color: #f5a524 !important; }
#clc-widget-root .clc-star:hover { transform: scale(1.12); }
#clc-widget-root .clc-star:focus-visible, #clc-widget-root .clc-otp-open:focus-visible { outline: 2px solid var(--clc) !important; outline-offset: 2px; }
#clc-widget-root .clc-rate-cmt { width: 100%; border: 1.5px solid var(--clc-line) !important; border-radius: 10px !important; padding: 8px 10px !important; font-size: 14px !important; resize: none; outline: none !important; margin: 0 0 10px !important; }
#clc-widget-root .clc-rate-cmt:focus { border-color: var(--clc) !important; }
#clc-widget-root .clc-rate-send { width: 100% !important; color: #fff !important; font-weight: 700 !important; font-size: 14px !important; padding: 10px !important; border-radius: 10px !important; background: var(--clc) !important; }
#clc-widget-root .clc-rate-send:disabled { opacity: .45; cursor: default; }
#clc-widget-root .clc-rate-err { color: #e11d48; font-size: 12.5px; margin-top: 6px; }
#clc-widget-root .clc-rate-done { font-size: 14px !important; color: var(--clc-body) !important; margin: 0 !important; }
@media (prefers-reduced-motion: reduce) { #clc-widget-root .clc-star { transition: none; } #clc-widget-root .clc-star:hover { transform: none; } }

/* 1.16.0 — Thẻ thanh toán báo giá */
#clc-widget-root .clc-row .clc-bubble.clc-bubble--pay { padding: 0; background: transparent; box-shadow: none; border: 0; white-space: normal; max-width: 100%; }
#clc-widget-root .clc-pay { border: 1px solid #cbd5e1; border-radius: 14px; background: #fff; color: #0f2942; padding: 12px 14px; min-width: 230px; }
#clc-widget-root .clc-pay-h { font-weight: 600; font-size: 14px; }
#clc-widget-root .clc-pay-stage { font-size: 12px; color: #475569; margin-top: 2px; }
#clc-widget-root .clc-pay-amt { font-size: 22px; font-weight: 700; margin: 4px 0 2px; color: #0f2942; }
#clc-widget-root .clc-pay-sub { font-size: 12px; color: #475569; }
#clc-widget-root .clc-pay-qr { display: block; width: 180px; max-width: 100%; height: auto; margin: 10px auto; border-radius: 8px; border: 1px solid #cbd5e1; }
#clc-widget-root .clc-pay-hint { font-size: 12px; color: #475569; margin: 6px 0 4px; }
/* 1.18.6: nhãn nằm trên, giá trị một dòng (số tài khoản / nội dung CK không bị bẻ giữa chừng), nút chép gọn bên phải */
#clc-widget-root .clc-pay-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l c" "v c"; align-items: center; column-gap: 8px; font-size: 12.5px; padding: 6px 0; border-top: 1px solid #cbd5e1; }
#clc-widget-root .clc-pay-row span { grid-area: l; color: #475569; font-size: 11.5px; line-height: 1.3; }
#clc-widget-root .clc-pay-row b { grid-area: v; font-weight: 650; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
#clc-widget-root .clc-pay-copy { grid-area: c; border: 1px solid #cbd5e1 !important; background: #f8fafc !important; color: #0f2942 !important; border-radius: 8px !important; font-size: 12px !important; font-weight: 600 !important; padding: 6px 10px !important; cursor: pointer; white-space: nowrap; min-height: 34px !important; }
#clc-widget-root .clc-pay-copy:active { transform: scale(.96); }
#clc-widget-root .clc-stack.clc-stack--wide { max-width: 100%; flex: 1; }
#clc-widget-root .clc-row--wide > .clc-avatar-sm { display: none; }
#clc-widget-root .clc-stack--wide .clc-bubble--pay, #clc-widget-root .clc-stack--wide .clc-pay { min-width: 0; width: 100%; box-sizing: border-box; }
#clc-widget-root .clc-pay-note { font-size: 11.5px; color: #92400e; background: #fffbeb; border-radius: 8px; padding: 6px 8px; margin-top: 8px; }
#clc-widget-root .clc-pay-pp { display: block; text-align: center; margin-top: 10px; padding: 7px 10px; border-radius: 8px; background: #fff; border: 2px solid #0070ba; color: #0070ba !important; font-size: 12.5px; font-weight: 700; text-decoration: none; }
#clc-widget-root .clc-pay-pp:hover { background: #eef6fc; }
#clc-widget-root .clc-pay-page { min-height: 42px; display: flex; align-items: center; justify-content: center; background: #0F0092; border-color: #0F0092; color: #fff !important; font-size: 13px; }
#clc-widget-root .clc-pay-page:hover { background: #0a0068; }
#clc-widget-root .clc-pay--old { opacity: .6; }
#clc-widget-root .clc-pay--old .clc-pay-qr, #clc-widget-root .clc-pay--old .clc-pay-copy, #clc-widget-root .clc-pay--old .clc-pay-hint, #clc-widget-root .clc-pay--old .clc-pay-pp { display: none; }
#clc-widget-root .clc-pay-oldnote { font-size: 11.5px; color: #b45309; background: #fff7ed; border-radius: 8px; padding: 4px 8px; margin-bottom: 6px; }

/* ============================================================
   1.18.6 — gợi ý nhanh, nút quay lại
   ============================================================ */
#clc-widget-root .clc-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 6px 44px; }
#clc-widget-root .clc-quick-btn {
	background: var(--clc-surface) !important; color: var(--clc-ink) !important; border: 1.5px solid color-mix(in srgb, var(--clc) 28%, var(--clc-line)) !important;
	border-radius: 999px !important; padding: 8px 13px !important; font-size: 13.5px !important; font-weight: 600 !important; line-height: 1.25 !important;
	cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease; text-align: left;
}
#clc-widget-root .clc-quick-btn:hover { background: color-mix(in srgb, var(--clc) 7%, #fff) !important; border-color: var(--clc) !important; }
#clc-widget-root .clc-quick-btn:active { transform: scale(.97); }
#clc-widget-root .clc-endmail-back, #clc-widget-root .clc-prechat-back {
	width: 100% !important; background: transparent !important; color: var(--clc-muted) !important; font-size: 13px !important; font-weight: 500 !important;
	padding: 12px 8px 0 !important; text-decoration: underline !important;
}
#clc-widget-root .clc-endmail-back:hover, #clc-widget-root .clc-prechat-back:hover { color: var(--clc-body) !important; }
#clc-widget-root .clc-endbar { white-space: nowrap; }

/* 1.18.6 — sửa lỗi hiển thị / truy cập */
#clc-widget-root .clc-messages { overscroll-behavior: contain; }
#clc-widget-root .clc-rate textarea, #clc-widget-root .clc-rate-cmt { font-size: 16px !important; }
#clc-widget-root button:focus-visible, #clc-widget-root a:focus-visible, #clc-widget-root input:focus-visible { outline: 2px solid var(--clc) !important; outline-offset: 2px !important; }
#clc-widget-root .clc-row--failed .clc-bubble { opacity: .6; }
#clc-widget-root .clc-row--failed .clc-meta { color: #d63638 !important; font-weight: 600; }
#clc-widget-root .clc-retry { display: block; margin: 8px auto 0 !important; background: var(--clc) !important; color: #fff !important; border-radius: 10px !important; padding: 7px 16px !important; font-size: 13px !important; font-weight: 700 !important; }

/* ============================================================
   1.19.0 — mời để lại email · mời cài app
   ============================================================ */
#clc-widget-root .clc-askmail, #clc-widget-root .clc-pwa { justify-content: center; }
#clc-widget-root .clc-askmail-card, #clc-widget-root .clc-pwa-card {
	width: 100%; box-sizing: border-box; background: var(--clc-surface); border: 1.5px solid color-mix(in srgb, var(--clc) 22%, var(--clc-line));
	border-radius: 16px; padding: 13px 14px; box-shadow: 0 8px 20px -14px color-mix(in srgb, var(--clc) 60%, transparent);
}
#clc-widget-root .clc-askmail-t, #clc-widget-root .clc-pwa-t { font-size: 14px; font-weight: 700; color: var(--clc-ink); line-height: 1.35; }
#clc-widget-root .clc-askmail-d, #clc-widget-root .clc-pwa-d { font-size: 12.5px; color: var(--clc-body); line-height: 1.45; margin: 3px 0 10px; }
#clc-widget-root .clc-askmail-f { display: flex; gap: 8px; }
#clc-widget-root .clc-askmail-in { flex: 1; min-width: 0; border: 1.5px solid var(--clc-line) !important; border-radius: 10px !important; padding: 9px 11px !important; font-size: 16px !important; outline: none; }
#clc-widget-root .clc-askmail-in:focus { border-color: var(--clc) !important; }
#clc-widget-root .clc-askmail-ok, #clc-widget-root .clc-pwa-go {
	background: var(--clc) !important; background-image: var(--clc-grad) !important; color: #fff !important; border-radius: 10px !important;
	padding: 9px 16px !important; font-size: 13.5px !important; font-weight: 700 !important; white-space: nowrap; flex: none;
}
#clc-widget-root .clc-askmail-ok:disabled { opacity: .5; }
#clc-widget-root .clc-askmail-no, #clc-widget-root .clc-pwa-later { background: transparent !important; color: var(--clc-muted) !important; font-size: 12.5px !important; font-weight: 600 !important; padding: 8px 6px 0 !important; }
#clc-widget-root .clc-askmail-n { font-size: 11.5px; color: var(--clc-muted); margin-top: 6px; line-height: 1.4; }
#clc-widget-root .clc-askmail-err { margin: 6px 0 0 !important; }
#clc-widget-root .clc-pwa-card { display: flex; gap: 11px; align-items: flex-start; }
#clc-widget-root .clc-pwa-logo { width: 44px; height: 44px; flex: none; border-radius: 12px; overflow: hidden; background: var(--clc); background-image: var(--clc-grad); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 18px; }
#clc-widget-root .clc-pwa-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
#clc-widget-root .clc-pwa-body { flex: 1; min-width: 0; }
#clc-widget-root .clc-pwa-b { display: flex; gap: 6px; align-items: center; }
#clc-widget-root .clc-pwa-later { padding: 8px 8px !important; }

/* ============================================================
   1.22.0 — nút "Tin mới ↓" (khách đang kéo lên đọc) · kéo-thả ảnh
   ============================================================ */
#clc-widget-root .clc-body { position: relative; }
#clc-widget-root .clc-newpill {
	position: absolute; left: 50%; bottom: 12px; z-index: 3; display: none;
	transform: translateX(-50%); min-height: 36px !important; padding: 0 16px !important; margin: 0 !important;
	border-radius: 999px !important; border: 1px solid rgba(16,15,31,.08) !important; background: #fff !important; background-image: none !important; color: var(--clc) !important;
	font-size: 13px !important; font-weight: 700 !important; line-height: 36px !important; cursor: pointer;
	box-shadow: 0 6px 18px rgba(16,15,31,.22) !important; white-space: nowrap;
}
#clc-widget-root .clc-panel.clc-state-chat .clc-newpill.show { display: block; animation: clc-pill-in .25s ease; }
@keyframes clc-pill-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translateX(-50%); } }
#clc-widget-root .clc-panel.clc-dragging .clc-body::after {
	content: "Thả ảnh vào đây để gửi"; position: absolute; inset: 10px; z-index: 4; display: flex; align-items: center; justify-content: center;
	border: 2px dashed var(--clc); border-radius: 16px; background: rgba(255,255,255,.92); color: var(--clc); font-weight: 700; font-size: 15px; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { #clc-widget-root .clc-panel.clc-state-chat .clc-newpill.show { animation: none; } }

/* 1.23.0 — Thẻ theo dõi đơn */
#clc-widget-root .clc-trk { border: 1px solid #cbd5e1; border-radius: 14px; background: #fff; color: #1e293b; padding: 12px 14px; min-width: 0; width: 100%; box-sizing: border-box; font-size: 13px; line-height: 1.45; }
#clc-widget-root .clc-trk--ev { border-color: #c9c6f5; box-shadow: 0 0 0 3px #f3f2ff; }
#clc-widget-root .clc-trk-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
#clc-widget-root .clc-trk-ttl { font-size: 12px; color: #475569; line-height: 1.35; padding-top: 2px; }
#clc-widget-root .clc-trk-ttl b { display: block; font-size: 16px; color: #0F0092; font-weight: 700; letter-spacing: .01em; }
#clc-widget-root .clc-trk-st { flex: none; max-width: 58%; text-align: right; font-size: 11.5px; font-weight: 650; padding: 4px 9px; border-radius: 999px; background: #eef0ff; color: #0F0092; line-height: 1.3; }
#clc-widget-root .clc-trk-st.is-done { background: #dcfce7; color: #166534; }
#clc-widget-root .clc-trk-st.is-x { background: #fee2e2; color: #991b1b; }
#clc-widget-root .clc-trk-now { margin-top: 6px; font-weight: 600; color: #1e293b; }
#clc-widget-root .clc-trk-steps { list-style: none; margin: 12px 0 2px; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); }
#clc-widget-root .clc-trk-steps li { position: relative; text-align: center; padding: 0 1px; min-width: 0; margin: 0; }
#clc-widget-root .clc-trk-steps li::before { content: ""; position: absolute; top: 5px; left: -50%; width: 100%; height: 2px; background: #e2e8f0; }
#clc-widget-root .clc-trk-steps li:first-child::before { display: none; }
#clc-widget-root .clc-trk-steps li.is-d::before, #clc-widget-root .clc-trk-steps li.is-n::before { background: #0F0092; }
#clc-widget-root .clc-trk-steps i { position: relative; z-index: 1; display: block; width: 12px; height: 12px; margin: 0 auto 4px; border-radius: 50%; background: #e2e8f0; box-sizing: border-box; }
#clc-widget-root .clc-trk-steps li.is-d i { background: #0F0092; }
#clc-widget-root .clc-trk-steps li.is-n i { background: #fff; border: 3px solid #0F0092; box-shadow: 0 0 0 3px #e3e1fb; }
#clc-widget-root .clc-trk-steps span { display: block; font-size: 10px; line-height: 1.25; color: #64748b; overflow-wrap: anywhere; }
#clc-widget-root .clc-trk-steps li.is-d span { color: #475569; }
#clc-widget-root .clc-trk-steps li.is-n span { color: #0F0092; font-weight: 700; }
#clc-widget-root .clc-trk-steps em { display: block; font-style: normal; font-size: 9.5px; color: #64748b; margin-top: 1px; }
#clc-widget-root .clc-trk-gh { margin-top: 10px; padding: 9px 10px; border-radius: 10px; background: #f8fafc; border: 1px solid #cbd5e1; }
#clc-widget-root .clc-trk-gh--p { color: #475569; font-size: 12.5px; }
#clc-widget-root .clc-trk-ghh { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #475569; }
#clc-widget-root .clc-trk-ghrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
#clc-widget-root .clc-trk-ghrow b { font-size: 14px; font-weight: 650; color: #0f172a; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
#clc-widget-root .clc-trk-ghtx { margin-top: 4px; font-size: 12.5px; color: #166534; font-weight: 600; }
#clc-widget-root .clc-trk-link, #clc-widget-root .clc-trk-more { display: inline-flex; align-items: center; min-height: 32px; margin-top: 4px; font-size: 12.5px; font-weight: 650; color: #0F0092 !important; text-decoration: none; }
#clc-widget-root .clc-trk-link:hover, #clc-widget-root .clc-trk-more:hover { text-decoration: underline; }
#clc-widget-root .clc-trk-more { display: flex; justify-content: center; min-height: 40px; margin-top: 10px; border-radius: 10px; background: #0F0092; color: #fff !important; }
#clc-widget-root .clc-trk-more:hover { background: #0a0068; text-decoration: none; }
#clc-widget-root .clc-trk-eta { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: #f3f2ff; }
#clc-widget-root .clc-trk-eta b { display: block; font-size: 13px; color: #0F0092; }
#clc-widget-root .clc-trk-eta span { display: block; font-size: 11.5px; color: #475569; margin-top: 1px; }
#clc-widget-root .clc-trk-owe { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: #fffbeb; color: #92400e; font-size: 12.5px; }
#clc-widget-root .clc-trk-foot { margin-top: 8px; font-size: 11.5px; color: #475569; }
#clc-widget-root .clc-trk--old { opacity: .55; }
#clc-widget-root .clc-trk--old .clc-trk-link, #clc-widget-root .clc-trk--old .clc-pay-copy, #clc-widget-root .clc-trk--old .clc-trk-foot { display: none; }
#clc-widget-root .clc-trk-oldnote { font-size: 11.5px; color: #475569; background: #f1f5f9; border-radius: 8px; padding: 4px 8px; margin-bottom: 8px; }
#clc-widget-root .clc-trk-ghrow .clc-pay-copy { flex: none; }
#clc-widget-root .clc-trk-more, #clc-widget-root .clc-trk-more:hover { text-decoration: none !important; }
#clc-widget-root .clc-trk-ghtx span { font-weight: 500; color: #475569; }
#clc-widget-root .clc-trk-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
#clc-widget-root .clc-trk-foot span { flex: 1 1 160px; }
#clc-widget-root .clc-trk-mute { flex: none; min-height: 32px !important; padding: 4px 10px !important; border-radius: 8px !important; border: 1px solid #cbd5e1 !important; background: #fff !important; color: #475569 !important; font-size: 12px !important; font-weight: 600 !important; cursor: pointer; }
#clc-widget-root .clc-trk-mute:hover { border-color: #94a3b8 !important; color: #1e293b !important; }
#clc-widget-root .clc-trk-foot--off { color: #475569; font-style: italic; }
#clc-widget-root .clc-trk-foot:focus { outline: none; }
#clc-widget-root .clc-trk-foot:focus-visible { outline: 2px solid #0F0092; outline-offset: 2px; border-radius: 6px; }
#clc-widget-root .clc-ended .clc-trk-mute { display: none !important; } /* 1.23.1: cuộc trò chuyện đã kết thúc → không gửi yêu cầu */
