/* qStom AI – živa ponazoritev pogovora (js/q-aip-demo.js). 23. 11. 2026 (Claude) */
.q-aip-chat .q-aip-chat__body.q-aip-demo { display: block; height: 422px; overflow: hidden; overscroll-behavior: contain; contain: inline-size; }
.q-aip-demo__track { display: flex; flex-direction: column; gap: 10px; transition: opacity .45s ease; }
.q-aip-demo__track.is-out { opacity: 0; }
.q-aip-demo__in { animation: qAipDemoIn .38s ease both; }
@keyframes qAipDemoIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.q-aip-demo__sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.q-aip-chat .q-aip-demo__typing { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; color: var(--muted); font-size: 13px; }
.q-aip-demo__dots { display: inline-flex; gap: 3px; }
.q-aip-demo__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--bordo); opacity: .35; animation: qAipDemoDot 1s infinite ease-in-out; }
.q-aip-demo__dots i:nth-child(2) { animation-delay: .15s; }
.q-aip-demo__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes qAipDemoDot { 0%, 80%, 100% { opacity: .35; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }

.q-aip-demo__slider { position: relative; width: 0; min-width: 100%; }
.q-aip-demo__row { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-right: 18px; }
.q-aip-demo__row::-webkit-scrollbar { display: none; }
.q-aip-demo__card { flex: 0 0 118px; scroll-snap-align: start; display: flex; flex-direction: column; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.q-aip-demo__card img { display: block; width: 100%; height: 84px; object-fit: cover; border-radius: 8px; background: #f4ecea; }
.q-aip-demo__title { margin: 6px 0 6px; font-size: 12px; font-weight: 600; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.q-aip-demo__foot { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: auto; }
.q-aip-demo__price { font-size: 12px; color: var(--muted); white-space: nowrap; }
.q-aip-chat .q-aip-demo__foot .q-aip-btn { padding: 4px 9px; font-size: 11px; }
.q-aip-demo__next { position: absolute; top: 34px; right: -4px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--bordo); font-size: 14px; font-weight: 700; box-shadow: 0 6px 14px -6px rgba(14, 12, 18, .35); transition: transform .15s ease, background-color .15s ease, color .15s ease; }
.q-aip-demo__next.is-pressed { transform: scale(.88); background: var(--bordo); color: #fff; }

.q-aip-chat .q-aip-demo__pick { max-width: 100%; }
.q-aip-demo__thumb { flex: none; width: 46px; height: 46px; border-radius: 9px; object-fit: cover; }
.q-aip-demo__opts { margin: 3px 0 2px; }
.q-aip-demo__opt { display: inline-block; margin: 0 4px 2px 0; padding: 1px 8px; border-radius: 999px; background: #f6e9ea; color: var(--bordo); font-size: 11px; font-weight: 600; }
.q-aip-chat .q-aip-btn { transition: transform .15s ease, filter .15s ease; }
.q-aip-chat .q-aip-btn.is-pressed { transform: scale(.92); filter: brightness(.85); }

@media (max-width: 991px) {
	.q-aip-chat .q-aip-chat__body.q-aip-demo { height: 400px; }
}
@media (prefers-reduced-motion: reduce) {
	.q-aip-demo__in, .q-aip-demo__dots i { animation: none; }
	.q-aip-demo__track, .q-aip-demo__next, .q-aip-chat .q-aip-btn { transition: none; }
}
