/* WhatsApp float ile aynı sağ hiza; WA altında, sohbet üstte */
.tk-chat-root{position:fixed;right:20px;bottom:88px;z-index:1040;font-family:Poppins,system-ui,sans-serif}
.tk-chat-toggle{position:relative;width:56px;height:56px;border:0;border-radius:50%;background:#f0953b;color:#fff;box-shadow:0 2px 8px rgba(0,0,0,.2);cursor:pointer;display:flex;align-items:center;justify-content:center}
.tk-chat-toggle:hover{filter:brightness(1.05);box-shadow:0 4px 16px rgba(240,149,59,.35)}
.tk-chat-toggle svg{width:26px;height:26px}
.tk-chat-badge{position:absolute;top:-2px;right:-2px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#e53935;color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center;box-shadow:0 0 0 2px #fff}
.tk-chat-badge[hidden]{display:none !important}
.tk-chat-panel{display:none;position:absolute;right:0;bottom:70px;width:min(400px,calc(100vw - 24px));height:min(620px,calc(100vh - 110px));background:#fff;border-radius:16px;box-shadow:0 20px 50px rgba(0,0,0,.22);overflow:hidden;flex-direction:column;border:1px solid #ececec}
.tk-chat-root.is-open .tk-chat-panel{display:flex}
.tk-chat-head{background:linear-gradient(135deg,#231f20 0%,#3a3435 100%);color:#fff;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.tk-chat-brand{display:flex;align-items:center;gap:10px;min-width:0}
.tk-chat-brand-mark{width:34px;height:34px;border-radius:10px;background:#f0953b;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex-shrink:0}
.tk-chat-head h3{margin:0;font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tk-chat-status{font-size:11px;opacity:.85;line-height:1.3;margin-top:2px}
.tk-chat-agent{font-size:11px;opacity:.85;line-height:1.3;margin-top:2px}
.tk-chat-agent[hidden]{display:none !important}
.tk-chat-head button{border:0;background:transparent;color:#fff;font-size:22px;line-height:1;cursor:pointer;opacity:.85}
.tk-chat-context{font-size:11px;color:#8a5a26;background:#fdf1e3;padding:8px 14px;border-bottom:1px solid #f3e2c8;line-height:1.4}
.tk-chat-context[hidden]{display:none !important}
.tk-chat-prechat{flex:1;overflow:auto;padding:16px;background:#f6f5f4;display:flex;flex-direction:column}
.tk-chat-prechat[hidden]{display:none !important}
.tk-chat-step[hidden]{display:none !important}
.tk-chat-lead{margin:0 0 14px;font-size:13px;color:#444;line-height:1.45}
.tk-chat-hours-note{margin:-6px 0 14px;font-size:12px;color:#777;line-height:1.4}
.tk-chat-region-grid{display:grid;gap:10px}
.tk-chat-region-btn{text-align:left;border:1px solid #e5e2df;background:#fff;border-radius:12px;padding:14px;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.tk-chat-region-btn:hover{border-color:#f0953b;box-shadow:0 4px 14px rgba(240,149,59,.15)}
.tk-chat-region-title{display:block;font-size:14px;font-weight:600;color:#231f20}
.tk-chat-region-sub{display:block;font-size:12px;color:#777;margin-top:3px}
.tk-chat-back{align-self:flex-start;border:0;background:transparent;color:#666;font-size:12px;padding:0 0 10px;cursor:pointer}
.tk-chat-field{display:flex;flex-direction:column;gap:5px;margin-bottom:10px;font-size:12px;color:#555}
.tk-chat-field input,.tk-chat-field select{border:1px solid #ddd;border-radius:10px;padding:10px 12px;font-size:13px;background:#fff;color:#231f20}
.tk-chat-field input:focus,.tk-chat-field select:focus{outline:none;border-color:#f0953b;box-shadow:0 0 0 3px rgba(240,149,59,.15)}
.tk-chat-chip-group{display:flex;flex-wrap:wrap;gap:6px}
.tk-chat-chip{border:1px solid #ddd;background:#fff;color:#444;border-radius:999px;padding:7px 13px;font-size:12px;cursor:pointer;transition:border-color .15s,background .15s,color .15s}
.tk-chat-chip:hover{border-color:#f0953b}
.tk-chat-chip.is-active{background:#f0953b;border-color:#f0953b;color:#fff}
.tk-chat-primary{border:0;border-radius:10px;background:#f0953b;color:#fff;padding:12px;font-weight:600;cursor:pointer;margin-top:4px}
.tk-chat-primary:disabled{opacity:.6;cursor:not-allowed}
.tk-chat-body{flex:1;overflow:auto;padding:14px;background:#f6f5f4;display:flex;flex-direction:column;gap:8px}
.tk-chat-body[hidden]{display:none !important}
.tk-chat-msg{max-width:85%;padding:9px 11px;border-radius:12px;font-size:13px;line-height:1.45;word-break:break-word;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.tk-chat-msg-body{white-space:pre-wrap}
.tk-chat-msg.visitor{align-self:flex-end;background:#f0953b;color:#fff;border-bottom-right-radius:4px}
.tk-chat-msg.agent,.tk-chat-msg.system{align-self:flex-start;background:#fff;border:1px solid #eee;color:#231f20;border-bottom-left-radius:4px}
.tk-chat-msg.system{font-size:12px;color:#555;background:#efece9;border:0}
.tk-chat-msg-time{display:block;font-size:10px;opacity:.65;margin-top:3px}
.tk-chat-typing{font-size:11px;color:#777;padding:0 14px 8px;background:#f6f5f4}
.tk-chat-typing[hidden]{display:none !important}
.tk-chat-foot{border-top:1px solid #ececec;padding:10px;background:#fff}
.tk-chat-foot[hidden]{display:none !important}
.tk-chat-csat{border-top:1px solid #ececec;padding:14px;background:#fff;text-align:center}
.tk-chat-csat[hidden]{display:none !important}
.tk-chat-csat p{margin:0 0 10px;font-size:13px;color:#444}
.tk-chat-csat-stars{display:flex;gap:6px;justify-content:center}
.tk-chat-csat-stars button{width:36px;height:36px;border-radius:8px;border:1px solid #ddd;background:#fff;font-weight:600;cursor:pointer;color:#555}
.tk-chat-csat-stars button:hover{border-color:#f0953b;color:#f0953b}
.tk-chat-csat-thanks{font-size:13px;color:#2e7d32;font-weight:600}
.tk-chat-privacy{font-size:10px;color:#777;margin:0 0 8px;line-height:1.35}
.tk-chat-privacy a{color:#f0953b}
.tk-chat-form{display:flex;gap:6px;align-items:flex-end}
.tk-chat-form textarea{flex:1;resize:none;min-height:42px;max-height:90px;border:1px solid #ddd;border-radius:10px;padding:10px;font-size:13px}
.tk-chat-form button[type=submit]{border:0;border-radius:10px;background:#f0953b;color:#fff;padding:0 14px;height:42px;font-weight:600;cursor:pointer}
.tk-chat-form button:disabled{opacity:.6;cursor:not-allowed}
.tk-chat-attach{width:42px;height:42px;border:1px solid #ddd;border-radius:10px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:20px;color:#555;flex-shrink:0;background:#fff}
.tk-chat-file-name{font-size:11px;color:#666;margin-top:6px}
.tk-chat-file-name[hidden]{display:none !important}
.tk-chat-attach-link{display:inline-block;margin-top:4px;color:inherit;text-decoration:underline;font-size:12px}
.tk-chat-attach-link img{display:block;max-width:180px;border-radius:8px;margin-top:4px}

.whatsapp-float{right:20px !important;bottom:20px !important;z-index:1040}
.whatsapp-float .whatsapp-icon{width:56px !important;height:56px !important;filter:drop-shadow(0 2px 8px rgba(0,0,0,.2)) !important}

@media (max-width:992px){
  .tk-chat-root{right:16px;bottom:76px}
  .tk-chat-toggle{width:48px;height:48px}
  .tk-chat-toggle svg{width:22px;height:22px}
  .whatsapp-float{right:16px !important;bottom:16px !important}
  .whatsapp-float .whatsapp-icon{width:48px !important;height:48px !important}
}
@media (max-width:575.98px){
  .tk-chat-panel{width:calc(100vw - 24px);height:min(78vh,640px);bottom:64px}
}
