:root { --mcw-c: #007bff; }
#mcw-container { position: fixed; bottom: 20px; right: 20px; z-index: 999999; font-family: -apple-system, sans-serif; }
#mcw-trig { width: 60px; height: 60px; border-radius: 50%; background: var(--mcw-c); box-shadow: 0 4px 12px rgba(0,0,0,0.2); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.3s; }
#mcw-trig:hover { transform: scale(1.1); }
.mcw-icon { width: 32px; height: 32px; fill: white; }
#mcw-badge { position: absolute; top: -5px; right: -5px; background: #ff3b30; color: white; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: bold; display: flex; align-items: center; justify-content: center; border: 2px solid white; }
#mcw-card { position: absolute; bottom: 80px; right: 0; width: 280px; background: white; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); padding: 20px; display: none; flex-direction: column; gap: 12px; animation: mcw-pop 0.4s ease-out; }
.mcw-c-close { position: absolute; top: 10px; right: 10px; cursor: pointer; color: #ccc; font-size: 14px; }
.mcw-c-title { font-weight: bold; font-size: 16px; color: #333; }
.mcw-c-text { font-size: 14px; color: #666; line-height: 1.4; }
.mcw-c-btn { background: var(--mcw-c); color: white; border: 0; padding: 10px; border-radius: 8px; cursor: pointer; font-weight: bold; text-align: center; }
#mcw-win { position: fixed; bottom: 20px; right: 20px; width: 360px; height: 500px; max-height: 80vh; background: #f4f7f9; border-radius: 16px; box-shadow: 0 15px 50px rgba(0,0,0,0.2); display: none; flex-direction: column; overflow: hidden; z-index: 999999; }
.mcw-head { background: var(--mcw-c); padding: 20px; color: white; display: flex; align-items: center; justify-content: space-between; }
.mcw-profile { display: flex; align-items: center; gap: 12px; }
.mcw-av { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.3); }
.mcw-info { display: flex; flex-direction: column; }
.mcw-name { font-weight: bold; font-size: 16px; }
.mcw-status { font-size: 12px; opacity: 0.9; }
.mcw-close-win { cursor: pointer; font-size: 20px; opacity: 0.8; }
.mcw-msgs { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.mcw-m { max-width: 85%; padding: 10px 15px; border-radius: 15px; font-size: 14px; line-height: 1.5; word-wrap: break-word; }
.mcw-bot { background: white; color: #333; align-self: flex-start; border-bottom-left-radius: 2px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.mcw-user { background: var(--mcw-c); color: white; align-self: flex-end; border-bottom-right-radius: 2px; }
#mcw-inp-area { background: white; padding: 15px; display: flex; gap: 10px; border-top: 1px solid #eee; }
#mcw-inp { flex: 1; border: 1px solid #ddd; padding: 10px 15px; border-radius: 25px; outline: none; font-size: 14px; }
.btn-send { background: var(--mcw-c); border: 0; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mcw-opts-container { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; padding: 0 20px 20px; }
.mcw-opt-btn { background: white; border: 1px solid var(--mcw-c); color: var(--mcw-c); padding: 8px 15px; border-radius: 20px; cursor: pointer; font-size: 13px; transition: all 0.2s; }
.mcw-opt-btn:hover { background: var(--mcw-c); color: white; }
.mcw-wa-btn { background: #25D366; color: white; text-decoration: none; padding: 12px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: bold; width: 100%; transition: background 0.3s; }
.mcw-wa-btn:hover { background: #128C7E; }
.mcw-wa-icon { width: 20px; height: 20px; fill: white; }
.typing-dots { display: none; padding: 10px 25px; align-self: flex-start; }
.dot { width: 6px; height: 6px; background: #999; border-radius: 50%; display: inline-block; animation: bounce 1.3s infinite; margin-right: 3px; }
.dot:nth-child(2) { animation-delay: 0.15s; }
.dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }
@keyframes mcw-pop { from { transform: scale(0.8) translateY(20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
@media (max-width: 480px) { #mcw-win { width: calc(100% - 40px); bottom: 10px; right: 20px; } }