#tfchat-root{--tfc:#c8527f;font-family:"Exo",system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:15px;line-height:1.45;color:#41413E}
#tfchat-root *{box-sizing:border-box}
.tfc-btn{position:fixed;bottom:20px;z-index:99998;width:60px;height:60px;border:0;border-radius:50%;background:var(--tfc);color:#fff;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.22);display:flex;align-items:center;justify-content:center;transition:transform .2s}
.tfc-btn:hover{transform:scale(1.06)}
.tfc-btn:focus-visible,.tfc-send:focus-visible,.tfc-q:focus-visible,.tfc-x:focus-visible{outline:3px solid #41413E;outline-offset:2px}
.tfc-btn svg{width:28px;height:28px}
.tfc-cards{display:flex;flex-direction:column;gap:8px;margin:4px 0 10px;max-width:88%}
.tfc-card{display:flex;gap:10px;align-items:stretch;background:#fff;border:1px solid #e6e3e3;border-radius:12px;overflow:hidden;text-decoration:none;color:#41413E;box-shadow:0 2px 8px rgba(0,0,0,.06);transition:box-shadow .2s,transform .2s}
.tfc-card:hover{box-shadow:0 6px 16px rgba(0,0,0,.12);transform:translateY(-1px)}
.tfc-ci{flex:0 0 84px;background:#f3f1f1;display:block}
.tfc-ci img{width:84px;height:100%;min-height:84px;object-fit:cover;display:block}
.tfc-cb{display:flex;flex-direction:column;gap:2px;padding:8px 10px 8px 0;min-width:0;justify-content:center}
.tfc-cb small{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#c8527f}
.tfc-cb b{font-size:14px;line-height:1.25;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tfc-cb em{font-style:normal;font-size:13px;color:#41413E;opacity:.8}
.tfc-cb u{text-decoration:none;font-size:12px;font-weight:600;color:#c8527f;margin-top:2px}
.tfc-right .tfc-btn{right:20px}.tfc-left .tfc-btn{left:20px}
.tfc-panel{position:fixed;bottom:92px;z-index:99999;width:400px;max-width:calc(100vw - 24px);height:min(780px,calc(100vh - 110px));max-height:calc(100vh - 110px);background:#fff;border-radius:18px;box-shadow:0 18px 60px rgba(0,0,0,.28);display:none;flex-direction:column;overflow:hidden}
.tfc-right .tfc-panel{right:20px}.tfc-left .tfc-panel{left:20px}
.tfc-open .tfc-panel{display:flex}
.tfc-head{background:var(--tfc);color:#fff;padding:14px 16px;display:flex;align-items:center;gap:10px}
.tfc-head b{flex:1;font-size:16px;font-weight:600}
.tfc-x{background:transparent;border:0;color:#fff;font-size:26px;line-height:1;cursor:pointer;padding:0 4px}
.tfc-body{position:relative;flex:1;overflow-y:auto;padding:14px;background:#f7f4f5;display:flex;flex-direction:column;gap:10px}
.tfc-m{max-width:86%;padding:10px 13px;border-radius:14px;word-wrap:break-word;overflow-wrap:anywhere}
.tfc-m a{color:inherit;text-decoration:underline}
.tfc-m ul{margin:6px 0 6px 18px;padding:0}
.tfc-bot{background:#fff;border:1px solid #ece6e9;align-self:flex-start;border-bottom-left-radius:4px}
.tfc-me{background:var(--tfc);color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.tfc-typing{display:flex;flex-direction:column;gap:10px;padding:12px 14px;min-width:230px}
.tfc-ty-row{display:flex;align-items:center;gap:9px;font-size:13.5px;color:#7c7077}
.tfc-spin{width:16px;height:16px;border-radius:50%;border:2px solid #eadde3;border-top-color:var(--tfc);animation:tfcs .8s linear infinite;flex:none}
.tfc-dots{display:inline-flex;gap:3px;align-items:center}
.tfc-dots i{width:5px;height:5px;border-radius:50%;background:#b9aab1;animation:tfcb 1s infinite}
.tfc-dots i:nth-child(2){animation-delay:.15s}.tfc-dots i:nth-child(3){animation-delay:.3s}
.tfc-sk{display:flex;flex-direction:column;gap:7px}
.tfc-sk b{display:block;height:9px;border-radius:6px;background:linear-gradient(90deg,#f1eaed 25%,#fbf8f9 50%,#f1eaed 75%);background-size:200% 100%;animation:tfcsh 1.3s linear infinite}
.tfc-sk b:nth-child(1){width:92%}.tfc-sk b:nth-child(2){width:74%}.tfc-sk b:nth-child(3){width:52%}
@keyframes tfcb{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}
@keyframes tfcs{to{transform:rotate(360deg)}}
@keyframes tfcsh{to{background-position:-200% 0}}
.tfc-quick{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}
.tfc-q{background:#fff;border:1.5px solid var(--tfc);color:var(--tfc);border-radius:99px;padding:7px 13px;font:inherit;font-size:13.5px;cursor:pointer}
.tfc-q:hover{background:var(--tfc);color:#fff}
.tfc-contact{background:#fff;border:1px solid #ece6e9;border-radius:14px;padding:12px;align-self:stretch}
.tfc-contact input{width:100%;padding:9px 11px;border:1px solid #cfc6cb;border-radius:10px;font:inherit;margin:8px 0}
.tfc-contact button{background:var(--tfc);color:#fff;border:0;border-radius:10px;padding:9px 14px;font:inherit;cursor:pointer}
.tfc-foot{border-top:1px solid #ece6e9;padding:10px 12px 8px;background:#fff}
.tfc-form{display:flex;gap:8px}
.tfc-form textarea{flex:1;resize:none;border:1px solid #cfc6cb;border-radius:12px;padding:10px 12px;font:inherit;height:44px;max-height:96px}
.tfc-form textarea:focus{outline:2px solid var(--tfc);border-color:transparent}
.tfc-send{background:var(--tfc);color:#fff;border:0;border-radius:12px;width:46px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.tfc-send:disabled{opacity:.5;cursor:default}
.tfc-send svg{width:20px;height:20px}
.tfc-priv{font-size:11px;color:#7c7077;margin:6px 2px 0;line-height:1.35}
.tfc-human{background:none;border:0;padding:0;font:inherit;font-size:11px;color:var(--tfc);text-decoration:underline;cursor:pointer}
.tfc-hp{position:absolute;left:-9999px;opacity:0;height:0;width:0}
@media(max-width:520px){
.tfc-panel{inset:0;width:100%;max-width:none;height:100%;max-height:none;border-radius:0;bottom:0}
.tfc-right .tfc-panel,.tfc-left .tfc-panel{right:0;left:0}
}
@media(prefers-reduced-motion:reduce){.tfc-btn{transition:none}.tfc-typing i,.tfc-spin,.tfc-sk b{animation:none}}
