/* TETAMET native AI chatbot — RevZ-HF86 */
.tetamet-chatbot{position:fixed;z-index:9500;bottom:22px;display:flex;flex-direction:column;align-items:flex-end;gap:12px;font-family:var(--site-font,Manrope,Arial,sans-serif);color:#102844;pointer-events:none}
.tetamet-chatbot.tcb-pos-right{right:22px}.tetamet-chatbot.tcb-pos-left{left:22px;align-items:flex-start}
.tcb-launcher,.tcb-panel{pointer-events:auto}.tcb-launcher{min-height:54px;border:0;border-radius:999px;background:var(--tcb-primary,#004494);color:#fff;padding:7px 16px 7px 8px;display:flex;align-items:center;gap:9px;box-shadow:0 16px 38px rgba(2,25,58,.25);font:inherit;font-weight:750;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}
.tcb-launcher:hover{transform:translateY(-2px);box-shadow:0 19px 44px rgba(2,25,58,.3)}.tcb-launcher:focus-visible,.tcb-icon-btn:focus-visible,.tcb-compose button:focus-visible,.tcb-action:focus-visible{outline:3px solid rgba(36,154,230,.35);outline-offset:3px}
.tcb-launcher-icon,.tcb-avatar{display:grid;place-items:center;flex:0 0 auto;overflow:hidden;background:#fff}.tcb-launcher-icon{width:40px;height:40px;border-radius:50%}.tcb-avatar{width:42px;height:42px;border-radius:12px}.tcb-launcher-icon img,.tcb-avatar img{width:100%;height:100%;object-fit:contain;padding:3px}.tcb-launcher-icon svg{width:23px;height:23px;color:var(--tcb-primary,#004494)}.tcb-avatar svg{width:24px;height:24px;color:var(--tcb-primary,#004494)}
.tcb-panel{width:min(410px,calc(100vw - 28px));height:min(650px,calc(100dvh - 105px));min-height:430px;background:#fff;border:1px solid #d7e3ef;border-radius:22px;box-shadow:0 26px 70px rgba(4,30,66,.28);overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr) auto;transform-origin:bottom right}
.tcb-panel[hidden]{display:none!important}.tcb-pos-left .tcb-panel{transform-origin:bottom left}
.tcb-head{display:flex;align-items:center;gap:10px;padding:14px 14px 13px;background:linear-gradient(135deg,var(--tcb-primary,#004494),#086da9);color:#fff}.tcb-head-copy{min-width:0;display:flex;flex:1;flex-direction:column}.tcb-head-copy strong{font-size:16px;line-height:1.3}.tcb-head-copy small{font-size:12px;opacity:.82;margin-top:2px}.tcb-icon-btn{width:36px;height:36px;border:1px solid rgba(255,255,255,.28);border-radius:10px;background:rgba(255,255,255,.12);color:#fff;font-size:22px;line-height:1;display:grid;place-items:center;cursor:pointer}.tcb-icon-btn:hover{background:rgba(255,255,255,.2)}
.tcb-body{min-height:0;display:flex;flex-direction:column;padding:14px;background:#f7faff}.tcb-messages{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:9px;padding:1px 2px 12px;scrollbar-width:thin}.tcb-message{max-width:88%;padding:10px 12px;border-radius:14px;font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.tcb-message.is-assistant{align-self:flex-start;background:#fff;border:1px solid #dbe7f2;border-bottom-left-radius:5px}.tcb-message.is-user{align-self:flex-end;background:var(--tcb-primary,#004494);color:#fff;border-bottom-right-radius:5px}.tcb-message.is-error{align-self:center;max-width:100%;background:#fff4f4;color:#9f1d1d;border:1px solid #f1c9c9}.tcb-typing{align-self:flex-start;display:flex;gap:4px;padding:11px 13px;background:#fff;border:1px solid #dbe7f2;border-radius:14px}.tcb-typing i{width:6px;height:6px;border-radius:50%;background:#6d8298;animation:tcb-bounce .9s infinite alternate}.tcb-typing i:nth-child(2){animation-delay:.15s}.tcb-typing i:nth-child(3){animation-delay:.3s}@keyframes tcb-bounce{to{transform:translateY(-4px);opacity:.5}}
.tcb-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding-top:2px}.tcb-action{min-height:38px;border:1px solid #cbddeb;border-radius:10px;background:#fff;color:#0a4f85;padding:7px 9px;text-align:center;text-decoration:none;font:inherit;font-size:12px;font-weight:720;display:grid;place-items:center;cursor:pointer}.tcb-action:hover{background:#edf7ff;border-color:#9bc8e6}.tcb-turnstile{margin-top:9px;min-height:0;overflow:hidden}
.tcb-compose{display:grid;grid-template-columns:minmax(0,1fr) 46px;gap:8px;padding:11px;border-top:1px solid #dbe7f2;background:#fff}.tcb-compose textarea{resize:none;width:100%;max-height:112px;min-height:46px;border:1px solid #cbddeb;border-radius:13px;padding:11px 12px;font:inherit;font-size:14px;line-height:1.45;color:#102844;outline:none}.tcb-compose textarea:focus{border-color:#5aa7d5;box-shadow:0 0 0 3px rgba(40,145,210,.12)}.tcb-compose button{width:46px;height:46px;border:0;border-radius:13px;background:var(--tcb-primary,#004494);color:#fff;display:grid;place-items:center;cursor:pointer}.tcb-compose button[disabled]{opacity:.55;cursor:wait}.tcb-compose button svg{width:22px;height:22px}
@media(max-width:560px){.tetamet-chatbot{bottom:12px;right:10px!important;left:10px!important;align-items:stretch!important}.tcb-launcher{align-self:flex-end}.tcb-pos-left .tcb-launcher{align-self:flex-start}.tcb-panel{width:100%;height:min(720px,calc(100dvh - 24px));min-height:0;border-radius:20px}.tetamet-chatbot.is-open .tcb-launcher{display:none}.tcb-head{padding:13px}.tcb-body{padding:12px}.tcb-message{max-width:91%;font-size:14px}.tcb-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.tcb-compose textarea{font-size:16px}}
@media(max-width:360px){.tcb-launcher-label{display:none}.tcb-launcher{padding-right:8px}.tcb-actions{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){.tcb-launcher{transition:none}.tcb-typing i{animation:none}}


/* HF86 integration layering: chatbot sits above the normal floating rail, but below system/modals. */
.tcb-chat-open .floating-action-rail{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
@media(min-width:561px){
  body:has(.translation-progress) .tetamet-chatbot:not(.is-open){bottom:88px}
}
@media(max-width:560px){
  body:has(.translation-progress) .tetamet-chatbot:not(.is-open){bottom:76px}
}
/* RevZ-HF98 — compact circular mobile chatbot launcher */
@media(max-width:560px){.tetamet-chatbot:not(.is-open){left:auto!important;right:12px!important;bottom:14px!important;align-items:flex-end!important}.tcb-launcher{width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important;padding:5px!important;border-radius:50%!important;gap:0!important;justify-content:center!important}.tcb-launcher-label{display:none!important}.tcb-launcher-icon{width:40px!important;height:40px!important;border-radius:50%!important}.tcb-launcher-icon img{padding:4px!important}.tcb-launcher-icon svg{width:22px!important;height:22px!important}}


/* RevZ-HF125 — visible reCAPTCHA v2 inside chat composer */
.tcb-compose .aicms-recaptcha-shell{grid-column:1/-1;width:100%;min-height:70px;margin:0 0 2px;overflow:hidden}
.tcb-compose .aicms-recaptcha-box{width:304px;min-height:78px;transform:scale(.90);transform-origin:left top}
@media(max-width:340px){.tcb-compose .aicms-recaptcha-shell{min-height:64px}.tcb-compose .aicms-recaptcha-box{transform:scale(.82)}}
