.chat-bubble-btn{z-index:9999;cursor:pointer;background:linear-gradient(135deg,#e91e8c,#c4167a);border:none;border-radius:50%;justify-content:center;align-items:center;width:60px;height:60px;transition:all .3s cubic-bezier(.34,1.56,.64,1);animation:.5s cubic-bezier(.34,1.56,.64,1) 1s both chat-bubble-entrance;display:flex;position:fixed;bottom:24px;right:24px;box-shadow:0 4px 20px #e91e8c66,0 2px 8px #00000026}.chat-bubble-btn:hover{transform:scale(1.08);box-shadow:0 6px 28px #e91e8c80,0 4px 12px #0003}.chat-bubble-btn:active{transform:scale(.95)}.chat-bubble-hidden{opacity:0;pointer-events:none;transform:scale(.5)}@keyframes chat-bubble-entrance{0%{opacity:0;transform:scale(.3)translateY(20px)}to{opacity:1;transform:scale(1)translateY(0)}}.chat-unread-badge{color:#fff;background:#ff3b30;border:2px solid #fff;border-radius:50%;justify-content:center;align-items:center;width:22px;height:22px;font-size:11px;font-weight:700;animation:.3s cubic-bezier(.34,1.56,.64,1) badge-pop;display:flex;position:absolute;top:-4px;right:-4px}@keyframes badge-pop{0%{transform:scale(0)}to{transform:scale(1)}}.chat-window{z-index:10000;transform-origin:100% 100%;background:#fff;border-radius:20px;flex-direction:column;width:400px;height:560px;max-height:calc(100dvh - 48px);transition:all .35s cubic-bezier(.34,1.56,.64,1);display:flex;position:fixed;bottom:24px;right:24px;overflow:hidden;box-shadow:0 20px 60px #00000026,0 8px 20px #00000014,0 0 0 1px #0000000a}.chat-window-open{opacity:1;pointer-events:auto;transform:scale(1)translateY(0)}.chat-window-closed{opacity:0;pointer-events:none;transform:scale(.6)translateY(20px)}@media (max-width:480px){.chat-window{border-radius:0;flex-direction:column;width:100vw;height:100dvh;max-height:100dvh;display:flex;position:fixed;bottom:0;left:0;right:0}.chat-input{font-size:16px}.chat-bubble-btn{bottom:calc(var(--mobile-bottom-space) + 16px);width:54px;height:54px;right:16px}}@media (min-width:481px) and (max-width:768px){.chat-bubble-btn{bottom:calc(var(--mobile-bottom-space) + 16px);right:16px}.chat-window{right:12px;bottom:calc(var(--mobile-bottom-space) + 12px);width:min(400px,100vw - 24px);max-height:calc(100dvh - var(--mobile-bottom-space) - 24px)}}.chat-header{color:#fff;background:linear-gradient(135deg,#1d1d1f,#2d2d2f);flex-shrink:0;justify-content:space-between;align-items:center;padding:14px 16px;display:flex}.chat-header-info{align-items:center;gap:12px;display:flex}.chat-header-avatar{background:linear-gradient(135deg,#e91e8c,#c4167a);border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:38px;height:38px;display:flex}.chat-header-title{letter-spacing:-.01em;font-size:15px;font-weight:700}.chat-header-status{color:#fff9;align-items:center;gap:6px;margin-top:1px;font-size:12px;display:flex}.chat-online-dot{background:#34c759;border-radius:50%;width:7px;height:7px;animation:2s ease-in-out infinite pulse-dot}@keyframes pulse-dot{0%,to{opacity:1}50%{opacity:.4}}.chat-close-btn{color:#fff;cursor:pointer;background:#ffffff1a;border:none;border-radius:10px;justify-content:center;align-items:center;width:34px;height:34px;transition:background .15s;display:flex}.chat-close-btn:hover{background:#fff3}.chat-status-banner{flex-shrink:0;align-items:center;gap:8px;padding:8px 16px;font-size:12px;font-weight:600;display:flex}.chat-status-waiting{color:#856404;background:#fff3cd;border-bottom:1px solid #ffc107}.chat-status-connected{color:#0c5460;background:#d1ecf1;border-bottom:1px solid #bee5eb}.chat-messages{scroll-behavior:smooth;background:#f8f8fa;flex-direction:column;flex:1;gap:12px;min-height:0;padding:16px;display:flex;overflow-y:auto}.chat-messages::-webkit-scrollbar{width:4px}.chat-messages::-webkit-scrollbar-track{background:0 0}.chat-messages::-webkit-scrollbar-thumb{background:#0000001a;border-radius:4px}.chat-msg{gap:8px;max-width:88%;animation:.25s cubic-bezier(.16,1,.3,1) both msg-in;display:flex}@keyframes msg-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.chat-msg-customer{flex-direction:row-reverse;align-self:flex-end}.chat-msg-ai{align-self:flex-start}.chat-avatar{border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;margin-top:2px;display:flex}.chat-avatar-ai{color:#636366;background:linear-gradient(135deg,#e8e8ed,#d1d1d6)}.chat-avatar-agent{color:#fff;background:linear-gradient(135deg,#1b6bb0,#1558a0)}.chat-bubble{border-radius:16px;padding:10px 14px;line-height:1.45}.chat-bubble-customer{color:#fff;background:linear-gradient(135deg,#e91e8c,#d11a7f);border-bottom-right-radius:6px}.chat-bubble-ai{color:#1d1d1f;background:#fff;border:1px solid #e5e5ea;border-bottom-left-radius:6px}.chat-text{white-space:pre-wrap;word-break:break-word;margin:0;font-size:14px}.chat-system-msg{text-align:center;color:#8e8e93;padding:4px 12px;font-size:11px;font-style:italic}.chat-products{flex-direction:column;gap:6px;margin-top:8px;display:flex}.chat-product-card{color:inherit;cursor:pointer;background:#f8f8fa;border:1px solid #e5e5ea;border-radius:12px;align-items:center;gap:10px;padding:8px 10px;text-decoration:none;transition:all .15s;display:flex}.chat-product-card:hover{background:#f0f0f5;border-color:#e91e8c;transform:translate(2px)}.chat-product-image{background:#fff;border:1px solid #eee;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;display:flex;overflow:hidden}.chat-product-info{flex:1;min-width:0}.chat-product-name{color:#1d1d1f;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:12px;font-weight:600;line-height:1.3;display:-webkit-box;overflow:hidden}.chat-product-price{color:#e91e8c;margin:2px 0 0;font-size:13px;font-weight:700}.typing-dots{gap:4px;padding:4px 0;display:flex}.typing-dots span{background:#8e8e93;border-radius:50%;width:7px;height:7px;animation:1.4s ease-in-out infinite typing-bounce}.typing-dots span:nth-child(2){animation-delay:.2s}.typing-dots span:nth-child(3){animation-delay:.4s}@keyframes typing-bounce{0%,60%,to{opacity:.4;transform:translateY(0)}30%{opacity:1;transform:translateY(-6px)}}.chat-suggestions{-webkit-overflow-scrolling:touch;background:#f8f8fa;border-top:1px solid #eee;flex-wrap:nowrap;flex-shrink:0;gap:6px;max-height:44px;padding:8px 16px;display:flex;overflow-x:auto}.chat-suggestions::-webkit-scrollbar{display:none}.chat-chip{color:#1d1d1f;cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #e0e0e5;border-radius:100px;flex-shrink:0;align-items:center;gap:5px;padding:6px 12px;font-family:inherit;font-size:12px;font-weight:500;transition:all .15s;display:flex}.chat-chip:hover{color:#e91e8c;background:#fef0f7;border-color:#e91e8c;transform:translateY(-1px)}.chat-input-area{padding:12px 14px;padding-bottom:max(12px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #eee;flex-shrink:0;align-items:center;gap:8px;display:flex}.chat-input{color:#1d1d1f;background:#f8f8fa;border:1px solid #e5e5ea;border-radius:12px;outline:none;flex:1;min-width:0;padding:10px 14px;font-family:inherit;font-size:14px;transition:border-color .15s,background .15s}.chat-input:focus{background:#fff;border-color:#e91e8c}.chat-input::placeholder{color:#aaa}.chat-input:disabled{opacity:.5;cursor:not-allowed}.chat-send-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#e91e8c,#c4167a);border:none;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;transition:all .15s;display:flex}.chat-send-btn:hover:not(:disabled){transform:scale(1.05);box-shadow:0 4px 12px #e91e8c4d}.chat-send-btn:disabled{opacity:.4;cursor:not-allowed}.chat-bubble-wrapper{flex-direction:column;gap:8px;max-width:100%;display:flex}.chat-message-options{flex-direction:column;gap:6px;margin-top:2px;display:flex}.chat-message-option-btn{color:#e91e8c;cursor:pointer;text-align:left;background:#fff;border:1px solid #e91e8c;border-radius:12px;justify-content:space-between;align-items:center;padding:8px 12px;font-size:13px;font-weight:500;line-height:1.3;transition:all .15s;display:flex}.chat-message-option-btn:hover{background:#fef0f7;transform:translate(2px)}.chat-contact-form{background:#fffaf0;border:1px solid #ffe08a;border-radius:14px;flex-direction:column;gap:8px;padding:12px;display:flex}.chat-contact-title{color:#2d2c2a;margin:0;font-size:13px;font-weight:700}.chat-contact-hint{color:#6b6a68;margin:0 0 2px;font-size:12px;line-height:1.45}.chat-contact-input{color:#2d2c2a;background:#fff;border:1px solid #d6d3ce;border-radius:10px;outline:none;width:100%;height:38px;padding:0 12px;font-size:16px}.chat-contact-input:focus{border-color:#111;box-shadow:0 0 0 3px #1111111f}.chat-contact-error{color:#b42318;margin:0;font-size:12px}.chat-contact-actions{justify-content:flex-end;gap:8px;margin-top:2px;display:flex}.chat-contact-skip{color:#6b6a68;cursor:pointer;background:#fff;border:1px solid #d6d3ce;border-radius:10px;padding:8px 12px;font-size:12px;font-weight:600}.chat-contact-submit{color:#fff;cursor:pointer;background:linear-gradient(135deg,#111,#333);border:none;border-radius:10px;padding:8px 14px;font-size:12px;font-weight:700}.chat-contact-submit:disabled,.chat-contact-skip:disabled{opacity:.6;cursor:default}.chat-wa-btn{background:#25d366;border-radius:100px;align-items:center;gap:7px;margin:4px 0;padding:8px 14px;font-size:13px;font-weight:700;display:inline-flex;box-shadow:0 2px 8px #25d36659;color:#fff!important;text-decoration:none!important}.chat-wa-btn svg{flex-shrink:0;width:18px;height:18px}.chat-wa-btn:hover{background:#1fb858}.chat-link{color:inherit;word-break:break-all;text-decoration:underline}.chat-tel{color:inherit;text-underline-offset:2px;white-space:nowrap;font-weight:700;text-decoration:underline}.chat-header.chat-header-light{color:#111;background:#fff;border-bottom:1px solid #eceae6;padding:14px 16px 12px}.chat-header-light .chat-header-title{color:#111;font-size:16px}.chat-header-light .chat-header-status{color:#6b6a68}.chat-header-light .chat-close-btn{color:#111;background:#f3f2f0}.chat-header-light .chat-close-btn:hover{background:#e8e6e2}.chat-header-logo{object-fit:contain;flex-shrink:0;width:auto;max-width:150px;height:34px}.chat-human-row{background:#fff;border-bottom:1px solid #eceae6;flex-shrink:0;padding:0 16px 12px}.chat-human-btn{color:#e91e8c;cursor:pointer;background:#fff;border:1px solid #d6d3ce;border-radius:12px;justify-content:center;align-items:center;gap:8px;width:100%;height:44px;font-size:14px;font-weight:600;transition:background .15s,border-color .15s;display:flex}.chat-human-btn:hover{background:#fafaf8;border-color:#e91e8c}.chat-human-btn:disabled{opacity:.6;cursor:default}.chat-welcome{text-align:center;flex-direction:column;align-items:center;gap:10px;padding:10px 2px 4px;display:flex}.chat-welcome-icon{object-fit:contain;width:72px;height:72px}.chat-welcome-title{letter-spacing:-.02em;color:#111;margin:4px 0 0;font-size:20px;font-weight:800;line-height:1.2}.chat-welcome-sub{color:#6b6a68;max-width:300px;margin:0;font-size:14px;line-height:1.5}.chat-suggest-list{flex-direction:column;gap:8px;width:100%;margin-top:8px;display:flex}.chat-suggest-row{color:#1d1d1f;text-align:start;cursor:pointer;background:#fff;border:1px solid #e8e6e2;border-radius:12px;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:12px 14px;font-size:14px;font-weight:500;transition:background .15s,border-color .15s;display:flex}.chat-suggest-row:hover{background:#fafaf8;border-color:#e91e8c}.chat-suggest-arrow{color:#e91e8c;font-weight:700}.chat-input-area{padding-bottom:8px}.chat-footer-note{padding:0 14px max(10px,env(safe-area-inset-bottom));color:#8a8986;background:#fff;flex-shrink:0;margin:0;font-size:11px}@media (max-width:1023px){html.has-sticky-bar .chat-bubble-btn{bottom:calc(var(--sticky-bar-h,0px) + 12px);right:16px}}
