@keyframes xkc-in { from { opacity:0; transform:translateY(8px);} to { opacity:1; transform:none;} }
#xk-chat-win.xkc-anim { animation:xkc-in .18s ease; }
#xk-chat-open:hover { transform:scale(1.07); }
.xkc-msg { max-width:84%; padding:.55rem .75rem; border-radius:14px; line-height:1.6; white-space:pre-wrap; word-wrap:break-word; }
.xkc-bot { align-self:flex-start; background:rgba(255,255,255,.07); }
.xkc-user{ align-self:flex-end; background:var(--xkc); color:#fff; }
#xk-chat[dir="ltr"] .xkc-bot { border-bottom-left-radius:4px; }
#xk-chat[dir="ltr"] .xkc-user { border-bottom-right-radius:4px; }
#xk-chat[dir="rtl"] .xkc-bot { border-bottom-right-radius:4px; }
#xk-chat[dir="rtl"] .xkc-user { border-bottom-left-radius:4px; }
.xkc-typing span{ display:inline-block;width:6px;height:6px;margin:0 1px;border-radius:50%;background:currentColor;opacity:.5;animation:xkc-b 1s infinite; }
.xkc-typing span:nth-child(2){ animation-delay:.15s;} .xkc-typing span:nth-child(3){ animation-delay:.3s;}
@keyframes xkc-b { 0%,60%,100%{transform:translateY(0);opacity:.4} 30%{transform:translateY(-4px);opacity:1} }
.xkc-chips { display:flex; flex-wrap:wrap; gap:.4rem; align-self:flex-start; max-width:95%; }
.xkc-chip { background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.16); color:inherit; border-radius:14px; padding:.35rem .6rem; font-size:.78rem; cursor:pointer; }
.xkc-chip:hover { background:var(--xkc); color:#fff; }
.xkc-fb { display:flex; gap:.4rem; align-self:flex-start; margin-top:-.3rem; opacity:.7; }
.xkc-fb button { background:none; border:none; cursor:pointer; font-size:.9rem; }
.xkc-form { align-self:stretch; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12); border-radius:12px; padding:.7rem; display:flex; flex-direction:column; gap:.45rem; }
.xkc-form > input { padding:.45rem .6rem; border-radius:8px; border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.05); color:inherit; }
.xkc-form .xkc-consent { width:1rem; height:1rem; margin:0; accent-color:var(--xkc); flex:0 0 auto; }
.xkc-form button { background:var(--xkc); color:#fff; border:none; border-radius:8px; padding:.5rem; cursor:pointer; font-weight:600; }
.xkc-cards { display:flex; flex-direction:column; gap:.5rem; align-self:stretch; }
.xkc-card { display:flex; gap:.6rem; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12);border-radius:12px; overflow:hidden; color:inherit; transition:border-color .15s; }
.xkc-card:hover { border-color:var(--xkc); }
.xkc-card img { width:74px; height:74px; object-fit:cover; flex-shrink:0; }
.xkc-card-b { padding:.55rem .65rem; display:flex; flex:1; flex-direction:column; gap:.22rem; min-width:0; }
.xkc-card-l { font-size:.64rem; color:var(--xkc); font-weight:700; }
.xkc-card-t { font-weight:700; font-size:.84rem; }
.xkc-card-s { font-size:.72rem; opacity:.75; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.xkc-card-c { font-size:.72rem; color:var(--xkc); font-weight:700; margin-top:.1rem; }
.xkc-card-facts { display:flex; flex-wrap:wrap; gap:.25rem .45rem; font-size:.67rem; opacity:.84; }
.xkc-card-fact { display:inline-flex; gap:.18rem; }
.xkc-card-meta { display:flex; flex-wrap:wrap; align-items:center; gap:.3rem .6rem; margin-top:.1rem; font-size:.7rem; }
.xkc-card-price { color:var(--xkc); font-weight:800; }
.xkc-card-status { padding:.12rem .35rem; border-radius:999px; background:rgba(52,211,153,.14); color:#6ee7b7; font-weight:700; }
.xkc-card-a { align-self:flex-start; margin-top:.2rem; color:var(--xkc); font-size:.72rem; font-weight:800; text-decoration:none; }
.xkc-card-a:hover { text-decoration:underline; }
.xkc-retry { display:flex; align-items:center; gap:.55rem; align-self:stretch; padding:.55rem .7rem; border:1px solid rgba(248,113,113,.5); border-radius:12px; background:rgba(127,29,29,.18); }
.xkc-retry span { flex:1; font-size:.78rem; }
.xkc-retry button { border:1px solid currentColor; border-radius:9px; background:transparent; color:inherit; padding:.35rem .65rem; cursor:pointer; font:inherit; font-size:.76rem; font-weight:700; }
#xk-chat button:focus-visible, #xk-chat input:focus-visible, #xk-chat select:focus-visible, #xk-chat a:focus-visible { outline:3px solid #fff; outline-offset:2px; box-shadow:0 0 0 5px var(--xkc); }
#xk-chat button:disabled { cursor:not-allowed; opacity:.55; }
@media (max-width: 480px) {
    #xk-chat { inset:auto 0 0 0 !important; bottom:max(10px, env(safe-area-inset-bottom)) !important; padding-inline:12px; display:flex; justify-content:flex-end; pointer-events:none; }
    #xk-chat > * { pointer-events:auto; }
    #xk-chat-open { width:58px !important; height:58px !important; }
    #xk-chat-win { position:fixed !important; inset:0 !important; width:100vw !important; max-width:none !important; height:100dvh !important; max-height:none !important; border-radius:0 !important; border:0 !important; padding-top:env(safe-area-inset-top); padding-bottom:env(safe-area-inset-bottom); }
    #xk-chat-form { padding-bottom:max(.7rem, env(safe-area-inset-bottom)) !important; }
    .xkc-msg { max-width:90%; }
    .xkc-card img { width:68px; height:68px; }
}
@media (prefers-reduced-motion: reduce) {
    #xk-chat *, #xk-chat *::before, #xk-chat *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}
