.chat-widget-container{--widget-primary:#0056b3;--widget-header:#0056b3;--widget-user-bubble:#0056b3;--widget-assistant-bubble:#fff;--widget-bg-from:#ebf8ff;--widget-bg-to:#fff;--widget-header-text:#fff;--widget-user-text:#fff;--widget-assistant-text:#171717;--widget-button-hover:#0047a0;--widget-button-icon:#fff;position:fixed!important;bottom:1rem!important;right:1rem!important;z-index:9999!important;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif!important;font-size:14px}.chat-widget-container button{all:unset;-webkit-font-smoothing:antialiased;cursor:pointer;box-sizing:border-box}.chat-widget-container .chat-widget-inner{display:flex;flex-direction:column;width:21rem;height:32rem;background:linear-gradient(to bottom right,var(--widget-bg-from),var(--widget-bg-to));border-radius:.5rem;box-shadow:0 8px 20px rgba(0,0,0,.15);overflow:hidden}.chat-widget-container .chat-header{display:flex;justify-content:space-between;align-items:center;background-color:var(--widget-header);color:var(--widget-header-text);padding:.75rem;border-top-left-radius:.5rem;border-top-right-radius:.5rem}.chat-widget-container .header-logo-container{display:flex;align-items:center;gap:.5rem}.chat-widget-container .header-logo{width:1.5rem;height:1.5rem;border-radius:4px;object-fit:contain}.chat-widget-container .default-header-icon{width:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center;border-radius:4px}.chat-widget-container .icon-message-header{width:1.5rem;height:1.5rem;color:var(--widget-header-text)}.chat-widget-container .chat-header h2{margin:0;font-size:1.25rem;font-weight:700;color:var(--widget-header-text)}.chat-widget-container .header-actions{display:flex;align-items:center;gap:.375rem}.chat-widget-container .header-button{color:var(--widget-header-text);display:flex;align-items:center;justify-content:center;padding:.25rem;border-radius:.25rem;transition:background-color .2s}.chat-widget-container .header-button:hover{background-color:hsla(0,0%,100%,.2)}.chat-widget-container .icon-close,.chat-widget-container .icon-trash{width:1.25rem;height:1.25rem;color:var(--widget-header-text)}.chat-widget-container .icon-close{width:1.5rem;height:1.5rem}.chat-widget-container .scroll-area{flex:1;overflow-y:auto;padding:1rem;height:calc(100% - 120px);min-height:250px}.chat-widget-container .message-row{display:flex;margin-bottom:.75rem;align-items:flex-start}.chat-widget-container .message-row.user-message{justify-content:flex-end}.chat-widget-container .message-row.assistant-message{justify-content:flex-start}.chat-widget-container .chat-bubble{max-width:85%;padding:.75rem 1rem;border-radius:1rem;word-wrap:break-word;line-height:1.4;font-size:14px}.chat-widget-container .user-bubble{background-color:var(--widget-user-bubble);color:var(--widget-user-text);border-radius:1rem 1rem 0 1rem}.chat-widget-container .assistant-bubble{background-color:var(--widget-assistant-bubble);color:var(--widget-assistant-text);border-radius:1rem 1rem 1rem 0;box-shadow:0 1px 3px rgba(0,0,0,.1)}.chat-widget-container .chat-bubble p{margin:.25rem 0}.chat-widget-container .chat-bubble p:first-child{margin-top:0}.chat-widget-container .chat-bubble p:last-child{margin-bottom:0}.chat-widget-container .chat-bubble ol,.chat-widget-container .chat-bubble ul{margin:.25rem 0 .25rem 1.25rem}.chat-widget-container .chat-bubble li{margin:.125rem 0}.chat-widget-container .chat-bubble a{color:inherit;text-decoration:underline}.chat-widget-container .chat-bubble code{background:rgba(0,0,0,.06);padding:.125rem .25rem;border-radius:.25rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.9em}.chat-widget-container .chat-bubble pre{background:rgba(0,0,0,.06);padding:.5rem .75rem;border-radius:.5rem;overflow-x:auto}.chat-widget-container .chat-bubble blockquote{border-left:3px solid rgba(0,0,0,.15);margin:.5rem 0;padding-left:.75rem;color:inherit;opacity:.9}@keyframes dotPulse{0%,20%{opacity:.2;transform:translateY(0)}50%{opacity:1;transform:translateY(-4px)}to{opacity:.2;transform:translateY(0)}}.chat-widget-container .typing-indicator{display:flex;align-items:center;gap:4px}.chat-widget-container .typing-dot{width:6px;height:6px;background-color:#4b5563;border-radius:9999px;animation:dotPulse 1.2s ease-in-out infinite;opacity:.2}.chat-widget-container .typing-dot:nth-child(2){animation-delay:.2s}.chat-widget-container .typing-dot:nth-child(3){animation-delay:.4s}.chat-widget-container .chat-input-bar{background:var(--widget-footer-bg,#fff);border-top:1px solid var(--widget-footer-border,#cbd5e1);padding:.75rem}.chat-widget-container .chat-input-bar form{display:flex;gap:.5rem;align-items:flex-end}.chat-widget-container .chat-input{background:#fff;border:1px solid #cbd5e1;border-radius:.5rem;padding:.5rem .75rem;flex:1;font-size:14px;color:#333;width:100%;box-sizing:border-box;outline:none;resize:none;line-height:1.4;min-height:2.5rem;max-height:8rem;font-family:inherit;overflow-y:hidden}.chat-widget-container .chat-input:focus{border-color:var(--widget-primary);box-shadow:0 0 0 2px rgba(0,86,179,.1)}.chat-widget-container .send-button{background-color:var(--widget-primary);color:#fff;padding:.5rem .75rem;border-radius:.5rem;display:flex;align-items:center;gap:.25rem;transition:background .2s;border:none;font-size:14px;white-space:nowrap}.chat-widget-container .send-button:hover{background-color:var(--widget-button-hover)}.chat-widget-container .icon-send{width:1rem;height:1rem}.chat-widget-container .open-button{background-color:var(--widget-primary);color:var(--widget-header-text);width:3.5rem!important;height:3.5rem!important;border-radius:9999px!important;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 10px rgba(0,0,0,.15);transition:transform .2s ease,background-color .2s ease;padding:0;border:none}.chat-widget-container .open-button:hover{transform:scale(1.07);background-color:var(--widget-button-hover)}.chat-widget-container .icon-message{width:1.5rem;height:1.5rem;color:var(--widget-button-icon)}.chat-widget-container .chat-popup-message{position:absolute;bottom:5rem;right:0;background-color:#fff;border-radius:.75rem;box-shadow:0 4px 12px rgba(0,0,0,.15);max-width:18rem;width:max-content;animation:popupFadeIn .3s ease-in-out;cursor:pointer;z-index:10000;font-size:14px;line-height:1.5;color:#333;border:1px solid #e5e7eb;transition:transform .2s ease;padding:1rem 2.5rem 1rem 1rem}.chat-widget-container .popup-close-button{position:absolute;top:.5rem;right:.5rem;width:1.5rem;height:1.5rem;display:flex;align-items:center;justify-content:center;background-color:transparent;border-radius:9999px;border:none;cursor:pointer;padding:0;color:#6b7280;transition:background-color .2s;z-index:2}.chat-widget-container .popup-close-button:hover{background-color:rgba(0,0,0,.05);color:#374151}.chat-widget-container .icon-close-small{width:1rem;height:1rem}.chat-widget-container .popup-arrow{position:absolute;bottom:-8px;right:28px;width:16px;height:8px;overflow:hidden}.chat-widget-container .popup-arrow:after{content:"";position:absolute;width:12px;height:12px;background:#fff;border-right:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;top:-6px;left:2px;transform:rotate(45deg)}.chat-widget-container .chat-popup-message:hover{transform:translateY(-3px)}@keyframes popupFadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@media (max-width:640px){.chat-widget-container .chat-widget-inner{width:calc(100vw - 2rem);max-width:24rem;height:80vh;min-height:450px}.chat-widget-container .chat-popup-message{max-width:calc(100vw - 6rem);right:.5rem}}