/* AZ Sales AI — khung chat */
.azsai-root { --az-c1: #071a2b; --az-c2: #7cb342; --az-c3: #94d14f; position: fixed; right: 20px; bottom: calc(20px + var(--az-bottom-offset, 0px)); z-index: 9990; font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; font-size: 15px; line-height: 1.5; color: #0f1d2a; }
.azsai-root *, .azsai-root *::before, .azsai-root *::after { box-sizing: border-box; }
.azsai-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.azsai-launcher { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--az-c1); color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 12px 30px rgba(7, 26, 43, .35); transition: transform .15s; }
.azsai-launcher svg { color: var(--az-c3); }
.azsai-launcher:hover { transform: translateY(-2px); }
.azsai-open .azsai-launcher, .azsai-no-launcher .azsai-launcher { display: none; }
.azsai-panel { width: 380px; height: min(620px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(7, 26, 43, .35); }
.azsai-panel[hidden] { display: none; }
.azsai-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--az-c1); color: #fff; }
.azsai-avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--az-c2); color: #08210a; font-weight: 900; flex: none; }
.azsai-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.azsai-title small { color: #a9bfd1; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.azsai-title small i { width: 8px; height: 8px; border-radius: 50%; background: var(--az-c3); display: inline-block; }
.azsai-close { width: 40px; height: 40px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.azsai-log { flex: 1; overflow-y: auto; padding: 16px; background: #f3f7fa; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.azsai-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; word-wrap: break-word; overflow-wrap: anywhere; }
.azsai-msg a { color: inherit; font-weight: 700; }
.azsai-bot { align-self: flex-start; background: #fff; border: 1px solid #dbe3ea; border-bottom-left-radius: 4px; }
.azsai-me { align-self: flex-end; background: var(--az-c2); color: #08210a; border-bottom-right-radius: 4px; }
.azsai-typing { display: inline-flex; gap: 4px; padding: 14px; }
.azsai-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa9b6; animation: azsai-b 1s infinite; }
.azsai-typing span:nth-child(2) { animation-delay: .15s; }
.azsai-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes azsai-b { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.azsai-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px; background: #f3f7fa; }
.azsai-quick:not(:empty) { padding-bottom: 10px; }
.azsai-chip { border: 1px solid #136199; color: #0f4c75; background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.azsai-chip:hover { background: #0f4c75; color: #fff; }
.azsai-contact { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid #dbe3ea; }
.azsai-contact[hidden] { display: none; }
.azsai-btn { flex: 1; text-align: center; padding: 10px; border-radius: 10px; font-weight: 700; text-decoration: none; font-size: 14px; }
.azsai-call { background: var(--az-c2); color: #08210a; }
.azsai-zalo { background: #0068ff; color: #fff; }
.azsai-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid #dbe3ea; background: #fff; }
.azsai-form textarea { flex: 1; resize: none; border: 1px solid #dbe3ea; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 16px; max-height: 120px; color: #0f1d2a; }
.azsai-form textarea:focus { outline: none; border-color: #136199; }
.azsai-send { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--az-c1); color: var(--az-c3); cursor: pointer; display: grid; place-items: center; flex: none; }
.azsai-send:disabled { opacity: .5; cursor: wait; }
.azsai-note { margin: 0; padding: 0 12px 10px; font-size: 11px; color: #6b7a87; background: #fff; }

@media (max-width: 767px) {
	.azsai-root { right: 12px; bottom: calc(12px + var(--az-bottom-offset, 0px)); }
	.has-az-bottom-bar .azsai-launcher { display: none; }
	.azsai-launcher-label { display: none; }
	.azsai-launcher { width: 56px; padding: 0; justify-content: center; }
	.azsai-open { inset: 0; right: 0; bottom: 0; }
	.azsai-open .azsai-panel { width: 100%; height: 100%; border-radius: 0; height: 100dvh; }
	html.azsai-lock, html.azsai-lock body { overflow: hidden; }
}

.azsai-avatar-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--az-c2); }
.azsai-launcher.has-avatar { position: relative; padding-left: 6px; }
.azsai-launcher-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--az-c3); animation: azsai-ring 2.2s ease-out infinite; }
.azsai-online { position: absolute; left: 40px; bottom: 8px; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid var(--az-c1); }
@keyframes azsai-ring { 0% { box-shadow: 0 0 0 0 rgba(148, 209, 79, .6); } 100% { box-shadow: 0 0 0 12px rgba(148, 209, 79, 0); } }
@media (max-width: 767px) { .azsai-launcher.has-avatar { width: auto; padding: 0 6px; } }
