/* AINIC website chatbot (floating, every public page), same look and support line as AINIC Marketplace and AINIC Invoice */
.acb { position: fixed; right: 1rem; bottom: 1rem; z-index: 1070; display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; font-size: .9rem; }
.acb-launcher { position: relative; width: 3.75rem; height: 3.75rem; border: 0; padding: 0; border-radius: 1rem; background: #BE1E2D; color: #fff; box-shadow: 0 8px 24px rgba(35,31,32,.28); outline: 4px solid #fff; transition: transform .15s ease; }
.acb-launcher:hover { transform: scale(1.05); }
.acb-launcher:focus-visible { outline-color: #f4a3aa; }
.acb-launcher-img { width: 100%; height: 100%; border-radius: 1rem; display: block; }
.acb-badge { position: absolute; right: -.4rem; bottom: -.4rem; width: 1.55rem; height: 1.55rem; border-radius: 50%; background: #fff; color: #BE1E2D; display: flex; align-items: center; justify-content: center; font-size: .8rem; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.acb-x { display: none; }
.acb-open .acb-launcher-img, .acb-open .acb-badge { display: none; }
.acb-open .acb-x { display: inline-block; }
.acb-hint { position: absolute; right: 4.6rem; bottom: .9rem; background: #fff; color: #231F20; border-radius: 999px; padding: .45rem .85rem; font-weight: 600; font-size: .82rem; white-space: nowrap; box-shadow: 0 6px 20px rgba(35,31,32,.18); cursor: pointer; animation: acb-pop .35s ease; }
.acb-panel { width: 23rem; max-width: calc(100vw - 2rem); height: 34rem; max-height: calc(100vh - 7rem); background: #fff; border-radius: 1.1rem; box-shadow: 0 18px 50px rgba(35,31,32,.3); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #ece7e7; animation: acb-pop .2s ease; }
.acb-panel[hidden] { display: none; }
.acb-head { display: flex; align-items: center; gap: .65rem; padding: .8rem .9rem; background: linear-gradient(135deg, #231F20, #3a2f30); color: #fff; position: relative; }
.acb-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, #BE1E2D, transparent 75%); }
.acb-avatar { width: 2.35rem; height: 2.35rem; border-radius: .6rem; flex-shrink: 0; }
.acb-title { flex: 1; min-width: 0; line-height: 1.2; }
.acb-title strong { display: block; font-size: .92rem; }
.acb-title span { font-size: .72rem; color: rgba(255,255,255,.72); }
.acb-dot { display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: #3ddc84; margin-right: .3rem; vertical-align: middle; box-shadow: 0 0 0 3px rgba(61,220,132,.2); }
.acb-icon { border: 0; background: transparent; color: rgba(255,255,255,.8); width: 2rem; height: 2rem; border-radius: .5rem; }
.acb-icon:hover { background: rgba(255,255,255,.12); color: #fff; }
.acb-contact { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .6rem .75rem; background: #faf7f7; border-bottom: 1px solid #f0ebeb; }
.acb-contact a { display: flex; align-items: center; justify-content: center; gap: .35rem; padding: .45rem .5rem; border-radius: .6rem; font-weight: 600; font-size: .78rem; text-decoration: none; }
.acb-wa { background: #1fa855; color: #fff; }
.acb-wa:hover { background: #178a45; color: #fff; }
.acb-call { background: #fff; color: #231F20; border: 1px solid #ddd5d5; }
.acb-call:hover { border-color: #BE1E2D; color: #BE1E2D; }
.acb-log { flex: 1; overflow-y: auto; padding: .9rem; display: flex; flex-direction: column; gap: .6rem; background: #fff; }
.acb-row { display: flex; }
.acb-me { justify-content: flex-end; }
.acb-bubble { max-width: 86%; padding: .55rem .8rem; border-radius: 1rem; line-height: 1.45; }
.acb-bubble p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.acb-bot .acb-bubble { background: #f3efef; color: #2b2526; border-bottom-left-radius: .3rem; }
.acb-me .acb-bubble { background: #BE1E2D; color: #fff; border-bottom-right-radius: .3rem; }
.acb-link { display: flex; align-items: center; gap: .35rem; margin-top: .45rem; padding: .35rem .6rem; background: #fff; border: 1px solid #e6dede; border-radius: .55rem; color: #BE1E2D; font-weight: 600; font-size: .8rem; text-decoration: none; }
.acb-link:hover { border-color: #BE1E2D; }
.acb-typing .acb-bubble { display: flex; gap: .25rem; padding: .7rem .8rem; }
.acb-typing span { width: .45rem; height: .45rem; border-radius: 50%; background: #b9aeae; animation: acb-dot 1s infinite ease-in-out; }
.acb-typing span:nth-child(2) { animation-delay: .15s; } .acb-typing span:nth-child(3) { animation-delay: .3s; }
.acb-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 .9rem .5rem; }
.acb-chips:empty { display: none; }
.acb-chip { border: 1px solid #f1c4c8; background: #fdf1f2; color: #9c1825; border-radius: 999px; padding: .28rem .7rem; font-size: .76rem; font-weight: 600; }
.acb-chip:hover { background: #fbe1e4; }
.acb-form { display: flex; gap: .45rem; padding: .6rem .75rem; border-top: 1px solid #f0ebeb; }
.acb-form input { flex: 1; min-width: 0; border: 1px solid #ddd5d5; border-radius: .7rem; padding: .5rem .75rem; font-size: .88rem; }
.acb-form input:focus { outline: none; border-color: #BE1E2D; box-shadow: 0 0 0 3px rgba(190,30,45,.15); }
.acb-send { border: 0; width: 2.5rem; border-radius: .7rem; background: #BE1E2D; color: #fff; }
.acb-send:hover { background: #a01926; }
.acb-note { margin: 0; padding: 0 .75rem .55rem; font-size: .68rem; color: #8a8080; text-align: center; }
@keyframes acb-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes acb-dot { 0%, 80%, 100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }
@media (max-width: 575.98px) { .acb { right: .75rem; bottom: .75rem; } .acb-panel { height: calc(100vh - 6.5rem); } .acb-hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .acb-panel, .acb-hint, .acb-typing span, .acb-launcher { animation: none; transition: none; } }
@media print { .acb { display: none !important; } }
.acb, .acb button, .acb input { font-family: inherit; }
.acb button { cursor: pointer; }
.acb-launcher { display: flex; align-items: center; justify-content: center; }
.acb-icon { display: inline-flex; align-items: center; justify-content: center; }
.acb-link svg { flex-shrink: 0; }
.acb .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }