.tkpia{--tkpia-c:#0b5cff;clear:both;margin:28px 0;padding:20px;border:1px solid #e3e7ee;border-radius:16px;background:#fff;box-shadow:0 4px 18px rgba(15,23,42,.06);font-size:15px;line-height:1.5;color:#1e293b;box-sizing:border-box;width:100%}
.tkpia *{box-sizing:border-box}
.tkpia-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.tkpia-ico{flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:var(--tkpia-c);display:flex;align-items:center;justify-content:center}
.tkpia-title{margin:0!important;font-size:18px!important;font-weight:700;line-height:1.25;color:#0f172a}
.tkpia-sub{margin:2px 0 0!important;font-size:14px;color:#64748b}

.tkpia-msgs{display:none;flex-direction:column;gap:10px;max-height:380px;overflow-y:auto;padding:12px;margin-bottom:12px;background:#f6f8fb;border-radius:12px}
.tkpia-msgs.has{display:flex}
.tkpia-msg{max-width:88%;padding:10px 14px;border-radius:14px;word-wrap:break-word}
.tkpia-msg p{margin:0 0 6px}.tkpia-msg p:last-child{margin:0}
.tkpia-msg ul{margin:4px 0 6px 18px;padding:0}.tkpia-msg li{margin:2px 0}
.tkpia-user{align-self:flex-end;background:var(--tkpia-c);color:#fff;border-bottom-right-radius:4px}
.tkpia-bot{align-self:flex-start;background:#fff;border:1px solid #e3e7ee;border-bottom-left-radius:4px}

.tkpia-dots{display:inline-flex;gap:4px;padding:4px 0}
.tkpia-dots i{width:7px;height:7px;border-radius:50%;background:#94a3b8;animation:tkpia-b 1s infinite ease-in-out}
.tkpia-dots i:nth-child(2){animation-delay:.15s}.tkpia-dots i:nth-child(3){animation-delay:.3s}
@keyframes tkpia-b{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}

.tkpia-chips{display:flex;flex-direction:column;gap:10px;margin-bottom:14px}
.tkpia-chips button{appearance:none;position:relative;display:block;width:100%;text-align:left;border:0;background:#eef0f6;color:#1e293b;padding:16px 48px 16px 20px;border-radius:999px;font-size:15px;font-weight:600;line-height:1.3;cursor:pointer;transition:background .15s,color .15s;margin:0;box-shadow:none;text-transform:none;white-space:normal;letter-spacing:0}
.tkpia-chips button::after{content:"";position:absolute;right:22px;top:50%;width:9px;height:9px;border-right:2.5px solid currentColor;border-top:2.5px solid currentColor;transform:translateY(-50%) rotate(45deg)}
.tkpia-chips button:hover,.tkpia-chips button:focus-visible{background:#e3e7f1;color:var(--tkpia-c);outline:none}

.tkpia-form{display:flex;gap:8px;margin:0}
.tkpia-input{flex:1;min-width:0;height:46px;padding:0 16px!important;border:1px solid #d6dce6!important;border-radius:999px!important;font-size:15px;background:#fff;color:#0f172a;outline:none;margin:0!important}
.tkpia-input:focus{border-color:var(--tkpia-c)!important;box-shadow:0 0 0 3px rgba(11,92,255,.12)}
.tkpia-send{flex:0 0 46px;width:46px;height:46px;padding:0!important;margin:0;border:0;border-radius:50%!important;background:var(--tkpia-c)!important;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:opacity .15s}
.tkpia-send svg{display:block;stroke:#fff}
.tkpia-send:disabled{opacity:.5;cursor:wait}
.tkpia-note{margin:10px 0 0!important;font-size:12px;color:#94a3b8}

@media (max-width:600px){
	.tkpia{padding:16px;border-radius:14px}
	.tkpia-msgs{max-height:320px}
	.tkpia-msg{max-width:94%}
	.tkpia-chips button{padding:14px 44px 14px 18px;font-size:14px}
}
