.store-chat{position:fixed;right:22px;bottom:22px;z-index:45}
.store-chat [hidden]{display:none!important}
.chat-launcher{display:flex;align-items:center;gap:8px;padding:12px 17px;border:0;border-radius:999px;background:var(--blue);color:#fff;font-weight:800;box-shadow:0 10px 35px rgba(8,26,44,.25);cursor:pointer}
.chat-launcher span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#fff;color:var(--blue)}
.chat-panel{position:absolute;right:0;bottom:58px;display:flex;flex-direction:column;width:min(370px,calc(100vw - 28px));max-height:calc(100dvh - 100px);overflow:hidden;border:1px solid #d9e0e5;border-radius:17px;background:#fff;box-shadow:0 22px 65px rgba(8,26,44,.25)}
.chat-panel header{display:flex;flex-shrink:0;justify-content:space-between;align-items:center;padding:16px;background:var(--navy);color:#fff}
.chat-panel header div{display:grid}
.chat-panel header small{color:#b9cad7}
.chat-panel header button{border:0;background:none;color:#fff;font-size:25px;cursor:pointer}
.chat-conversation{display:flex;flex-direction:column;min-height:0;height:420px}
.chat-messages{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:14px;background:#f5f7f8;overscroll-behavior:contain}
.chat-messages p{width:fit-content;max-width:88%;box-sizing:border-box;margin:7px 0;padding:10px 12px;border-radius:14px;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-bot{background:#fff;border-bottom-left-radius:4px!important}
.chat-user{margin-left:auto!important;background:#dff4f8;border-bottom-right-radius:4px!important}
.chat-ask{flex-shrink:0;margin:0;padding:12px;border-top:1px solid #e3e7e9;background:#fff}
.chat-ask>div{display:flex;gap:8px}
.chat-ask input{flex:1;width:0;min-width:0;box-sizing:border-box;margin:0;padding:11px;border:1px solid #d9e0e5;border-radius:10px;font-size:16px}
.chat-ask button{flex-shrink:0;padding:10px 14px;border:0;border-radius:10px;background:var(--blue);color:#fff;font-weight:700;cursor:pointer}
.chat-team-action{display:block;margin-top:10px;padding:8px 12px;border:1px solid var(--blue);border-radius:8px;background:#fff;color:var(--blue);font-size:13px;font-weight:700;cursor:pointer}
.chat-team-action:disabled{opacity:.65;cursor:default}
.chat-start{display:grid;gap:7px;min-height:0;overflow-y:auto;padding:16px}
.chat-start p{margin:0 0 5px;font-size:14px}
.chat-start label{font-size:13px;font-weight:700}
.chat-start input,.chat-start textarea{box-sizing:border-box;width:100%;min-width:0;margin:0;padding:9px;font-size:16px}
.chat-start textarea{resize:vertical}
.chat-start .button{margin-top:5px;padding:10px}
.chat-start small{font-size:12px;color:var(--muted)}
.chat-visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:500px){.store-chat{right:14px;bottom:14px}.chat-panel{position:fixed;right:14px;bottom:70px;max-height:calc(100dvh - 84px)}}
.chat-live-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;border-top:1px solid #e3e7e9;font-size:12px;background:#fff}
.chat-live-bar button{border:0;background:none;color:var(--blue);font-size:12px;font-weight:700;cursor:pointer}
.chat-live-bar small{flex:1;min-width:100px;color:var(--muted)}
.chat-rep{background:#e9e7ff;border-bottom-left-radius:4px!important}
.chat-typing{color:var(--muted);animation:chat-typing-pulse 1s ease-in-out infinite}
@keyframes chat-typing-pulse{50%{opacity:.45}}
@media(prefers-reduced-motion:reduce){.chat-typing{animation:none}}

.chat-team-avatar{width:40px;height:40px;object-fit:contain;border-radius:50%;background:#fff;padding:4px;box-sizing:border-box;flex-shrink:0;margin-right:10px}
.chat-panel header>div{flex:1}.chat-live-typing{display:flex;align-items:center;gap:8px;padding:10px 14px;font-size:13px;color:#526173;background:#fff}
.chat-dots{display:inline-flex;gap:4px}.chat-dots i{width:6px;height:6px;border-radius:50%;background:currentColor;animation:chat-dot 1.2s infinite}.chat-dots i:nth-child(2){animation-delay:.2s}.chat-dots i:nth-child(3){animation-delay:.4s}@keyframes chat-dot{50%{opacity:.3;transform:translateY(-3px)}}@media(prefers-reduced-motion:reduce){.chat-dots i{animation:none}}

.chat-typing .chat-dots{margin-left:8px}

.chat-messages .chat-rep{position:relative;margin-left:42px;max-width:calc(100% - 42px)}
.chat-reply-avatar{position:absolute;left:-42px;top:2px;width:34px;height:34px;object-fit:contain;border-radius:50%;border:1px solid #dce4ed;background:#fff;padding:3px;box-sizing:border-box}
