/* Trợ lý AI Phạm Hòa – định dạng câu trả lời + nút chat nổi */
.cb-msg p { margin: 0 0 6px; }
.cb-msg p:last-child { margin-bottom: 0; }
.cb-msg ul { margin: 4px 0 6px; padding-left: 18px; }
.cb-msg li { margin: 2px 0; }
.cb-bot a { color: var(--accent-2, #c25309); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cb-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.cb-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9a9a9a; animation: pdaiDot 1.2s infinite; }
.cb-typing i:nth-child(2) { animation-delay: .15s; }
.cb-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pdaiDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.cb-wait { font-style: normal !important; }

/* Nút nổi */
.has-pdai .fc-ask { display: none !important; }
.has-pdai .float-cta { bottom: 88px; }
.pdai-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 70; font-family: var(--sans, system-ui, sans-serif); }
.pdai-fab { display: inline-flex; align-items: center; gap: 9px; height: 56px; padding: 0 22px 0 18px; border: 0; border-radius: 999px; cursor: pointer; color: #fff; font: 600 .98rem/1 var(--sans, system-ui); background: linear-gradient(135deg, #f08a3e, var(--accent, #e3630c) 55%, #c25309); box-shadow: 0 12px 30px rgba(227, 99, 12, .45), 0 0 0 1px rgba(255, 255, 255, .15) inset; transition: transform .2s; }
.pdai-fab:hover { transform: translateY(-2px); }
.pdai-fab svg { width: 22px; height: 22px; }
.pdai-float.is-open .pdai-fab { display: none; }
.pdai-panel { position: absolute; right: 0; bottom: 0; width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100vh - 110px)); display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .06); overflow: hidden; padding: 0 !important; }
.pdai-panel[hidden] { display: none; }
.pdai-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #181818; color: #fff; }
.pdai-head .cb-who small { color: rgba(255, 255, 255, .6); }
.pdai-close { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.pdai-close:hover { background: rgba(255, 255, 255, .2); }
.pdai-panel .cb-log { flex: 1; max-height: none; overflow-y: auto; padding: 16px; margin: 0; background: var(--gray-50, #f5f5f5); }
.pdai-chips { display: flex; gap: 6px; padding: 10px 12px 0; overflow-x: auto; scrollbar-width: none; }
.pdai-chips .cb-chip { flex: none; text-decoration: none; }
.pdai-panel .cb-form { margin: 10px 12px 0; }
.pdai-panel .cb-form textarea { font-size: 1rem; max-height: 120px; }
.pdai-panel .cb-send { width: 42px; height: 42px; }
.pdai-panel .cb-note { margin: 8px 14px 12px; font-size: .72rem; }
@media (max-width: 560px) {
	.pdai-fab span { display: none; }
	.pdai-fab { width: 56px; padding: 0; justify-content: center; }
	.pdai-float.is-open { inset: 0; right: 0; bottom: 0; }
	.pdai-panel { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; }
}
