.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:99999;padding:20px}body.smart-chat-open{overflow:hidden!important;position:fixed!important;width:100%!important;height:100vh!important;height:100dvh!important}body.smart-chat-open .bottom-nav{display:none!important;visibility:hidden!important;pointer-events:none!important}.smart-chat-modal{background:#fff;border-radius:16px;max-width:600px;width:100%;max-height:80vh;display:flex;flex-direction:column;box-shadow:0 20px 50px rgba(0,0,0,.3);overflow:hidden}.chat-header{justify-content:space-between;padding:20px 24px;border-bottom:1px solid #e2e8f0;background:linear-gradient(135deg,#f8fafc,#e2e8f0)}.chat-header,.chat-info{display:flex;align-items:center}.chat-info{gap:12px}.provider-avatar{width:40px;height:40px;background:linear-gradient(135deg,#3b82f6,#1d4ed8);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff}.provider-details h3{font-size:16px;font-weight:600;color:#1e293b;margin:0 0 4px}.provider-details p{font-size:14px;color:#64748b;margin:0}.chat-controls{display:flex;align-items:center;gap:12px}.security-indicator{display:flex;align-items:center;gap:6px;background:#10b981;color:#fff;padding:6px 12px;border-radius:20px;font-size:12px;font-weight:500}.close-chat{background:none;border:none;color:#64748b;cursor:pointer;padding:4px;border-radius:4px;transition:all .2s ease}.close-chat:hover{background:#f1f5f9;color:#475569}.security-warning{display:flex;align-items:center;gap:8px;padding:12px 24px;background:#fef3c7;border-bottom:1px solid #f59e0b;color:#92400e;font-size:14px;font-weight:500}.blocked-status{display:flex;align-items:center;gap:4px;background:#fee2e2;color:#991b1b;padding:4px 8px;border-radius:12px;font-size:12px;margin-left:auto}.common-questions{padding:16px 24px;border-bottom:1px solid #e2e8f0;background:#f8fafc}.common-questions h4{font-size:14px;font-weight:600;color:#374151;margin:0 0 12px}.questions-grid{display:flex;flex-wrap:wrap;gap:8px}.question-btn{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:6px 12px;font-size:12px;color:#475569;cursor:pointer;transition:all .2s ease}.question-btn:hover{background:#3b82f6;color:#fff;border-color:#3b82f6}.chat-messages{flex:1;padding:20px;overflow-y:auto;display:flex;flex-direction:column;gap:16px;max-height:400px}.message{display:flex;gap:12px;align-items:flex-start}.message.user{flex-direction:row-reverse}.message-avatar{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#fff}.message.user .message-avatar{background:#3b82f6}.message.bot .message-avatar{background:#10b981}.message-content{flex:1;max-width:70%}.message.user .message-content{text-align:right}.message-header{display:flex;align-items:center;gap:8px;margin-bottom:4px}.message.user .message-header{justify-content:flex-end}.sender-name{font-weight:600;color:#1e293b;font-size:12px}.auto-reply-badge{display:flex;align-items:center;gap:4px;background:#10b981;color:#fff;padding:2px 6px;border-radius:8px;font-size:10px;font-weight:500}.message-time{color:#64748b;font-size:11px;margin-left:auto}.message.user .message-time{margin-left:0;margin-right:auto}.message-text{background:#f1f5f9;padding:12px 16px;border-radius:16px;color:#1e293b;line-height:1.4;font-size:14px;position:relative}.message.user .message-text{background:#3b82f6;color:#fff}.message.bot .message-text{background:#f0fdf4;border:1px solid #bbf7d0}.violation-notice{display:flex;align-items:center;gap:6px;margin-top:8px;padding:8px 12px;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;font-size:12px;color:#991b1b}.original-text{margin-top:8px}.original-text summary{cursor:pointer;font-weight:500;color:#dc2626;font-size:11px}.original-text p{margin:4px 0 0;padding:8px;background:#fee2e2;border-radius:6px;font-size:12px;color:#7f1d1d}.typing-indicator{display:flex;gap:4px;padding:12px 16px;background:#f0fdf4;border-radius:16px;align-items:center}.typing-indicator span{width:8px;height:8px;background:#10b981;border-radius:50%;animation:typing 1.4s ease-in-out infinite}.typing-indicator span:nth-child(2){animation-delay:.2s}.typing-indicator span:nth-child(3){animation-delay:.4s}@keyframes typing{0%,60%,to{transform:translateY(0);opacity:.5}30%{transform:translateY(-10px);opacity:1}}.chat-input{padding:20px 24px;border-top:1px solid #e2e8f0;background:#f8fafc}.blocked-input{display:flex;align-items:center;gap:12px;padding:16px;background:#fee2e2;border:1px solid #fecaca;border-radius:12px;color:#991b1b;font-weight:500;text-align:center}.input-wrapper{display:flex;gap:12px;align-items:flex-end}.message-input{flex:1;padding:12px 16px;border:2px solid #e2e8f0;border-radius:12px;resize:none;font-size:14px;line-height:1.4;max-height:100px;transition:border-color .3s ease}.message-input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.1)}.send-btn{background:#3b82f6;color:#fff;border:none;border-radius:12px;padding:12px 16px;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;flex-shrink:0}.send-btn:hover:not(:disabled){background:#2563eb;transform:translateY(-1px)}.send-btn:disabled{opacity:.5;cursor:not-allowed}.input-footer{justify-content:space-between;margin-top:8px}.input-footer,.security-notice{display:flex;align-items:center}.security-notice{gap:6px}.char-count,.security-notice{font-size:12px;color:#64748b}@media (max-width:768px){.smart-chat-modal{max-width:95vw;max-height:90vh;margin:20px}.chat-header{padding:16px 20px}.provider-details h3{font-size:14px}.provider-details p{font-size:12px}.security-indicator{display:none}.common-questions{padding:12px 20px}.questions-grid{flex-direction:column}.question-btn{text-align:center;padding:8px 12px}.chat-messages{padding:16px;max-height:300px}.message-content{max-width:85%}.chat-input{padding:16px 20px}.input-wrapper{flex-direction:column;gap:8px}.send-btn{width:100%;justify-content:center}.input-footer{flex-direction:column;gap:4px;align-items:flex-start}}@media (max-width:480px){.smart-chat-modal{margin:10px;max-height:95vh}.chat-header{padding:12px 16px}.provider-avatar{width:32px;height:32px}.common-questions{padding:8px 16px}.chat-messages{padding:12px;max-height:250px}.message-text{padding:10px 12px;font-size:13px}.chat-input{padding:12px 16px}.message-input{padding:10px 12px;font-size:13px}}@media (max-width:768px){.modal-overlay:has(.smart-chat-modal){padding:0!important;align-items:stretch!important;justify-content:stretch!important}.smart-chat-modal{max-width:100%!important;width:100%!important;max-height:100vh!important;max-height:100dvh!important;height:100vh!important;height:100dvh!important;border-radius:0!important;margin:0!important}.chat-messages{flex:1!important;max-height:none!important;min-height:0!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important}.chat-input{position:sticky!important;bottom:0!important;background:#fff!important;z-index:100!important;padding-bottom:max(16px,env(safe-area-inset-bottom))!important}.chat-input,.common-questions{flex-shrink:0!important}.questions-grid{flex-wrap:nowrap!important;overflow-x:auto!important;gap:8px!important;padding-bottom:8px!important}.question-btn{flex-shrink:0!important;white-space:nowrap!important}}