/* Chatbot widget (resources/views/components/chatbot.blade.php). Bottom-right, stacked above the WhatsApp button; the cookie notice is bottom-left. */
.tfl-chat [hidden]{display:none!important}
.tfl-chat-launcher{position:fixed;right:23px;bottom:88px;z-index:44;width:54px;height:54px;display:flex;align-items:center;justify-content:center;padding:0;background:var(--green);color:var(--paper);border:3px solid var(--paper);border-radius:50%;box-shadow:var(--shadow);cursor:pointer;transition:transform .2s,background .2s}
.tfl-chat-launcher:hover{background:var(--green-dark);transform:translateY(-3px)}
.tfl-chat-launcher:focus-visible,.tfl-chat-close:focus-visible,.tfl-chat-chip:focus-visible,.tfl-chat-send:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.tfl-chat.is-open .tfl-chat-launcher{display:none}
.tfl-chat-panel{position:fixed;right:23px;bottom:23px;z-index:66;width:372px;max-width:calc(100vw - 24px);height:min(580px,calc(100vh - 60px));display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 56px #26311d33;overflow:visible}
.tfl-chat-head{display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--green);color:var(--paper);border-radius:13px 13px 0 0}
.tfl-chat-head>div{flex:1;min-width:0;line-height:1.3}
.tfl-chat-head strong{display:block;font:600 15px/1.3 var(--heading);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tfl-chat-head small{display:block;font-size:12px;opacity:.85}
.tfl-chat-avatar{flex:none;width:38px;height:38px;border-radius:50%;background:var(--gold);color:var(--green-dark);display:flex;align-items:center;justify-content:center;font:700 13px/1 var(--heading)}
.tfl-chat-close{flex:none;width:34px;height:34px;display:flex;align-items:center;justify-content:center;padding:0;background:transparent;color:inherit;border:0;border-radius:50%;cursor:pointer}
.tfl-chat-close:hover{background:#ffffff26}
.tfl-chat-log{flex:1;min-height:0;overflow-y:auto;padding:16px 14px;display:flex;flex-direction:column;gap:10px;background:var(--cream);overscroll-behavior:contain}
.tfl-chat-msg{max-width:86%;padding:10px 13px;border-radius:14px;font-size:14.5px;line-height:1.5;overflow-wrap:anywhere;animation:tfl-chat-in .2s ease both}
.tfl-chat-msg p{margin:0;white-space:pre-line}
.tfl-chat-msg--bot{align-self:flex-start;background:var(--paper);border:1px solid var(--line);border-bottom-left-radius:4px}
.tfl-chat-msg--user{align-self:flex-end;background:var(--green);color:var(--paper);border-bottom-right-radius:4px}
.tfl-chat-link{display:inline-block;margin-top:9px;padding:7px 13px;border:1px solid var(--green);border-radius:999px;color:var(--green);font-size:13px;font-weight:600;text-decoration:none}
.tfl-chat-link:hover{background:var(--green);color:var(--paper)}
.tfl-chat-typing{display:flex;gap:5px;align-items:center;padding:13px 15px}
.tfl-chat-typing span{width:7px;height:7px;border-radius:50%;background:var(--muted);opacity:.45;animation:tfl-chat-dot 1.1s infinite ease-in-out}
.tfl-chat-typing span:nth-child(2){animation-delay:.18s}
.tfl-chat-typing span:nth-child(3){animation-delay:.36s}
.tfl-chat-chips{display:flex;flex-wrap:wrap;gap:7px;padding:2px 0 0}
.tfl-chat-chip{padding:7px 12px;background:var(--paper);border:1px solid var(--green);border-radius:999px;color:var(--green);font-size:13px;line-height:1.3;text-align:left;cursor:pointer}
.tfl-chat-chip:hover{background:var(--green-light)}
.tfl-chat-form,.tfl-chat-contact{display:flex;gap:8px;padding:12px 14px;background:var(--paper);border-top:1px solid var(--line);border-radius:0 0 13px 13px}
.tfl-chat-form input{flex:1;min-width:0;font-size:16px}
.tfl-chat-contact{flex-wrap:wrap;align-items:stretch}
.tfl-chat-contact .identity-field{flex:1 1 100%;margin:0;width:auto;min-width:0}
.tfl-chat-contact .identity-field input{font-size:16px}
.tfl-chat-contact .country-options{top:auto;bottom:calc(100% + 7px);width:min(280px,calc(100vw - 48px))}
.tfl-chat-contact .form-result{flex:1 1 100%;margin:0}
.tfl-chat-send{flex:none;min-width:46px;height:46px;display:flex;align-items:center;justify-content:center;padding:0 14px;background:var(--green);color:var(--paper);border:0;border-radius:5px;font-weight:600;cursor:pointer}
.tfl-chat-send:hover{background:var(--green-dark)}
.tfl-chat-send:disabled{opacity:.6;cursor:wait}
.tfl-chat-continue{flex:1 1 100%}
@keyframes tfl-chat-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes tfl-chat-dot{0%,80%,100%{transform:translateY(0);opacity:.35}40%{transform:translateY(-4px);opacity:1}}
body.has-sticky-product .tfl-chat-launcher,body.xp-sticky-keep .tfl-chat-launcher{bottom:157px}
@media(prefers-reduced-motion:reduce){.tfl-chat-msg{animation:none}.tfl-chat-typing span{animation:none;opacity:.7}.tfl-chat-launcher{transition:none}}
@media(max-width:700px){
 .tfl-chat-launcher{right:14px;bottom:calc(78px + env(safe-area-inset-bottom));width:48px;height:48px}
 body.has-sticky-product .tfl-chat-launcher,body.xp-sticky-keep .tfl-chat-launcher{bottom:calc(136px + env(safe-area-inset-bottom))}
 .tfl-chat-panel{left:0;right:0;bottom:0;width:100%;max-width:none;height:min(82vh,640px);border-radius:16px 16px 0 0;padding-bottom:env(safe-area-inset-bottom);background:var(--paper)}
 .tfl-chat-head{border-radius:15px 15px 0 0}
 .tfl-chat-form,.tfl-chat-contact{border-radius:0}
}
