.posi-root { --posi-color: #4DB8E8; --posi-on: #10222f; --posi-navy: #10222f; position: fixed; bottom: 20px; z-index: 2147483000; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.45; }
.posi-pos-right { right: 20px; }
.posi-pos-left { left: 20px; }

/* ---------- launcher: small logo circle ---------- */
.posi-launcher { position: relative; display: inline-flex; }
.posi-fab { box-sizing: border-box; height: 56px; border-radius: 999px; border: 2px solid var(--posi-accent, var(--posi-color)); background: #fff; color: var(--posi-navy); cursor: pointer; box-shadow: 0 4px 14px rgba(16,34,47,.28); display: flex; align-items: center; padding: 0 8px; margin: 0; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; }
.posi-fab-icon { flex: none; display: block; width: 36px; height: 36px; }
.posi-logo { display: block; width: 36px; height: 36px; border-radius: 0; }
.posi-fab-label { max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; margin-left: 0; }
.posi-badge { flex: none; display: flex; width: 0; height: 26px; opacity: 0; overflow: hidden; }

.posi-expanded .posi-fab-label { max-width: 180px; opacity: 1; margin-left: 8px; }
.posi-expanded .posi-badge { width: 26px; opacity: 1; margin: 0 6px 0 8px; }
@media (hover: hover) {
	.posi-root:not(.posi-open) .posi-fab:hover .posi-fab-label { max-width: 180px; opacity: 1; margin-left: 8px; }
	.posi-root:not(.posi-open) .posi-fab:hover .posi-badge { width: 26px; opacity: 1; margin: 0 6px 0 8px; }
}
.posi-fab:hover { box-shadow: 0 6px 18px rgba(16,34,47,.38); }

/* small cross to hide the launcher */
.posi-dismiss { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1.5px solid var(--posi-navy); background: #fff; color: var(--posi-navy); font-size: 14px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(16,34,47,.25); font-family: inherit; }
.posi-dismiss:hover { background: #eef3f6; }
.posi-open .posi-dismiss { display: none; }

.posi-fab:focus-visible, .posi-dismiss:focus-visible, .posi-send:focus-visible, .posi-close:focus-visible, .posi-chip:focus-visible, .posi-input:focus-visible, .posi-link:focus-visible { outline: 3px solid #10222f; outline-offset: 2px; }

/* ---------- chat panel ---------- */
.posi-panel { position: absolute; bottom: 70px; width: 360px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 110px); background: #fff; color: #222; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
.posi-panel[hidden] { display: none; }
.posi-pos-right .posi-panel { right: 0; }
.posi-pos-left .posi-panel { left: 0; }

.posi-head { background: var(--posi-color); color: var(--posi-on); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.posi-title { font-weight: 600; font-size: 16px; }
.posi-close { background: transparent; border: 0; color: inherit; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }

.posi-list { flex: 1; overflow-y: auto; padding: 14px; background: #f7f9fa; }
.posi-msg { display: flex; margin-bottom: 10px; }
.posi-me { justify-content: flex-end; }
.posi-bubble { max-width: 86%; padding: 10px 13px; border-radius: 14px; word-wrap: break-word; }
.posi-bot .posi-bubble { background: #fff; border: 1px solid #e3e8ea; border-bottom-left-radius: 4px; }
.posi-me .posi-bubble { background: var(--posi-color); color: var(--posi-on); border-bottom-right-radius: 4px; }
.posi-bubble p { margin: 0; }
.posi-linkrow { margin-top: 8px !important; }

.posi-card { margin-top: 10px; padding: 10px; border: 1.5px solid #c9d3d8; border-left: 5px solid var(--posi-color); border-radius: 10px; background: #fff; display: flex; flex-direction: column; gap: 2px; }
.posi-card-name { font-size: 14px; }
.posi-card-price { color: #3b3b3b; font-size: 13px; }
.posi-link { color: #124f73; font-weight: 600; text-decoration: underline; }

.posi-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.posi-chip { background: #fff; border: 1.5px solid #9aa9b4; border-color: color-mix(in srgb, var(--posi-color) 60%, #10222f); color: #10222f; border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.posi-chip:hover { background: #eef3f6; background: color-mix(in srgb, var(--posi-color) 22%, #fff); }

.posi-typing { padding: 0 16px 8px; font-size: 13px; color: #555; background: #f7f9fa; }
.posi-typing[hidden] { display: none; }

.posi-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e3e8ea; background: #fff; }
.posi-input { flex: 1; border: 1px solid #b4c0c7; border-radius: 10px; padding: 9px 11px; font-size: 15px; min-width: 0; }
.posi-send { background: var(--posi-color); color: var(--posi-on); border: 0; border-radius: 10px; padding: 0 16px; font-size: 15px; font-weight: 600; cursor: pointer; }
.posi-send:disabled { opacity: .55; cursor: default; }

.posi-note { margin: 0; padding: 6px 12px 10px; font-size: 11.5px; color: #555; text-align: center; background: #fff; }

@media (max-width: 480px) {
	.posi-root { bottom: 14px; }
	.posi-pos-right { right: 14px; }
	.posi-pos-left { left: 14px; }
	.posi-panel { width: calc(100vw - 28px); height: calc(100vh - 100px); }
}
@media (prefers-reduced-motion: no-preference) {
	.posi-fab-label, .posi-badge { transition: max-width .3s ease, width .3s ease, opacity .25s ease, margin .3s ease; }
	.posi-panel { animation: posi-in .18s ease-out; }
	@keyframes posi-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

.posi-card-img { display: block; width: 100%; max-height: 130px; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }
.posi-card-btn { align-self: flex-start; margin-top: 4px; font-weight: 600; }
