.umt-chat-widget { position: fixed; bottom: 30px; right: 30px; z-index: 2147483647; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.umt-chat-launcher { position: relative; width: 64px; height: 64px; border-radius: 50%; background-color: #a80202; color: #ffffff; border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(168, 2, 2, 0.4); display: flex; align-items: center; justify-content: center; box-sizing: border-box; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s; outline: none; -webkit-tap-highlight-color: transparent; }
.umt-chat-launcher::before, .umt-chat-launcher::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 50%; border: 2px solid #a80202; animation: umt-signal 2s cubic-bezier(0.165, 0.84, 0.44, 1) infinite; z-index: -1; }
.umt-chat-launcher::after { animation-delay: 1s; }
@keyframes umt-signal { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.8); opacity: 0; } }
.umt-chat-launcher.active::before, .umt-chat-launcher.active::after { display: none; animation: none; }
.umt-chat-launcher:hover { transform: scale(1.08); box-shadow: 0 8px 25px rgba(168, 2, 2, 0.6); }
.umt-chat-launcher .material-icons-round { position: absolute; font-size: 32px; transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease; }
.icon-open { opacity: 1; transform: scale(1) rotate(0deg); }
.icon-close { opacity: 0; transform: scale(0.5) rotate(-90deg); }
.umt-chat-launcher.active .icon-open { opacity: 0; transform: scale(0.5) rotate(90deg); }
.umt-chat-launcher.active .icon-close { opacity: 1; transform: scale(1) rotate(0deg); }
.umt-chat-badge-slot { pointer-events: none; position: absolute; top: 0; right: 0; transform: translate(25%, -25%); display: flex; justify-content: center; align-items: center; z-index: 2; }
.umt-chat-badge { display: flex; justify-content: center; align-items: center; border-radius: 50%; padding: 0 6px; box-sizing: border-box; font-weight: 700; font-size: 12px; line-height: 1.2; box-shadow: 0 2px 5px rgba(0,0,0,0.3); min-width: 22px; height: 22px; background-color: #ff3b30; color: #ffffff; border: 2px solid #ffffff; }
.umt-chat-window { position: absolute; bottom: 85px; right: 0; width: 380px; height: calc(100vh - 120px); max-height: 650px; background: #ffffff; border-radius: 20px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18); display: flex; flex-direction: column; overflow: hidden; opacity: 0; pointer-events: none; transform: translateY(20px) scale(0.95); transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 1px solid rgba(0,0,0,0.05); }
.umt-chat-window.active { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.umt-chat-window.fullscreen { position: fixed; bottom: 0; right: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; border-radius: 0; border: none; box-shadow: none; z-index: 2147483647; }
.umt-chat-header { background: #ffffff; padding: 20px 24px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f1f5f9; z-index: 10; }
.umt-chat-header-info { display: flex; align-items: center; gap: 14px; }
.umt-chat-avatar { width: 44px; height: 44px; background: linear-gradient(135deg, #a80202, #e00303); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #ffffff; box-shadow: 0 4px 12px rgba(168, 2, 2, 0.3); }
.umt-chat-avatar .material-icons-round { font-size: 24px; }
.umt-chat-title-group { display: flex; flex-direction: column; }
.umt-chat-title { font-weight: 800; font-size: 17px; margin: 0; color: #0f172a; letter-spacing: -0.3px; }
.umt-chat-subtitle { font-size: 12px; color: #64748b; margin-top: 3px; display: flex; align-items: center; gap: 5px; font-weight: 600; }
.umt-chat-subtitle::before { content: ''; width: 7px; height: 7px; background: #22c55e; border-radius: 50%; display: block; box-shadow: 0 0 6px rgba(34,197,94,0.5); }
.umt-chat-header-actions { display: flex; align-items: center; gap: 4px; }
.umt-chat-action-btn { background: transparent; border: none; color: #94a3b8; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; }
.umt-chat-action-btn:hover { background: #f1f5f9; color: #0f172a; transform: scale(1.05); }
.umt-chat-action-btn .material-icons-round { font-size: 22px; }
.umt-chat-body { flex: 1; overflow-y: auto; padding: 24px; background: #f8fafc; display: flex; flex-direction: column; gap: 20px; scroll-behavior: smooth; }
.umt-chat-body::-webkit-scrollbar { width: 6px; }
.umt-chat-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.umt-message-wrapper { display: flex; flex-direction: column; max-width: 85%; animation: umt-msg-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
@keyframes umt-msg-in { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.umt-message-wrapper.bot { align-self: flex-start; }
.umt-message-wrapper.user { align-self: flex-end; align-items: flex-end; }
.umt-message-bubble { padding: 14px 18px; font-size: 14.5px; line-height: 1.5; word-wrap: break-word; }
.umt-message-wrapper.bot .umt-message-bubble { background: #ffffff; color: #1e293b; border-radius: 6px 18px 18px 18px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; }
.umt-message-wrapper.user .umt-message-bubble { background: #a80202; color: #ffffff; border-radius: 18px 6px 18px 18px; box-shadow: 0 4px 12px rgba(168,2,2,0.25); }
.umt-message-bubble a { color: #a80202; text-decoration: none; font-weight: 700; border-bottom: 2px solid rgba(168,2,2,0.2); transition: all 0.2s ease; }
.umt-message-wrapper.user .umt-message-bubble a { color: #ffffff; border-bottom-color: rgba(255,255,255,0.4); }
.umt-message-bubble a:hover { border-bottom-color: currentColor; opacity: 0.8; }
.umt-quick-replies { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; margin-top: 4px; }
.umt-quick-reply-btn { background: #ffffff; border: 1px solid #e2e8f0; color: #334155; padding: 12px 18px; border-radius: 24px; font-size: 13.5px; cursor: pointer; transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); font-weight: 600; box-shadow: 0 2px 6px rgba(0,0,0,0.02); text-align: right; }
.umt-quick-reply-btn:hover { border-color: #a80202; color: #a80202; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(168,2,2,0.1); }
.umt-typing-indicator { display: flex; gap: 5px; padding: 6px 4px; }
.umt-typing-dot { width: 6px; height: 6px; background: #94a3b8; border-radius: 50%; animation: umt-typing 1.4s infinite ease-in-out; }
.umt-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.umt-typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes umt-typing { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }
.umt-chat-footer { padding: 16px 24px 20px; background: #ffffff; border-top: 1px solid #f1f5f9; z-index: 2; }
.umt-chat-input-wrapper { display: flex; align-items: center; border: 1px solid #cbd5e1; border-radius: 30px; padding: 6px 6px 6px 18px; background: #f8fafc; transition: all 0.3s ease; }
.umt-chat-input-wrapper:focus-within { border-color: #a80202; background: #ffffff; box-shadow: 0 0 0 3px rgba(168,2,2,0.1); }
.umt-chat-input { flex: 1; border: none; background: transparent; padding: 10px 0; font-size: 14px; outline: none; color: #0f172a; }
.umt-chat-input::placeholder { color: #94a3b8; }
.umt-chat-send { background: #f1f5f9; color: #94a3b8; border: none; cursor: pointer; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; margin-left: 8px; }
.umt-chat-input:valid ~ .umt-chat-send { background: #a80202; color: #ffffff; }
.umt-chat-send:hover { transform: scale(1.05); }
.umt-chat-input:valid ~ .umt-chat-send:hover { background: #8a0101; box-shadow: 0 4px 10px rgba(168,2,2,0.3); }
.umt-chat-send .material-icons-round { font-size: 18px; margin-left: 2px; }
.umt-chat-disclaimer { text-align: center; font-size: 12px; color: #94a3b8; margin-top: 14px; font-weight: 500; }
.umt-chat-disclaimer a { color: #2563eb; text-decoration: none; font-weight: 700; transition: all 0.2s ease; }
.umt-chat-disclaimer a:hover { color: #1d4ed8; text-decoration: underline; }