.wwsp-wrapper {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wwsp-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}
.wwsp-button:hover { transform: scale(1.1); }

/* Animations */
@keyframes wwsp-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@keyframes wwsp-bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-20px); } 60% { transform: translateY(-10px); } }

.wwsp-anim-pulse { animation: wwsp-pulse 2s infinite; }
.wwsp-anim-bounce { animation: wwsp-bounce 2s infinite; }

/* Popup */
.wwsp-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    display: none;
    overflow: hidden;
    transform-origin: bottom right;
    animation: wwsp-fade-in 0.3s ease forwards;
}
.wwsp-left .wwsp-popup { 
    transform-origin: bottom left; 
    left: 0;
    right: auto;
}
@keyframes wwsp-fade-in { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.wwsp-popup.active { display: block; }
.wwsp-popup-header {
    padding: 20px;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    position: relative;
}
#wwsp-close { position: absolute; right: 15px; top: 15px; cursor: pointer; font-size: 24px; line-height: 1; }
.wwsp-popup-body { padding: 10px; max-height: 350px; overflow-y: auto; }

/* Agents */
.wwsp-agent {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 5px;
    background: #f9f9f9;
}
.wwsp-agent:hover { background: #f1f1f1; }
.wwsp-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #555;
    font-size: 20px;
    margin-right: 15px;
    position: relative;
}
.wwsp-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
}
.wwsp-online { background: #4CAF50; }
.wwsp-offline { background: #ccc; }
.wwsp-agent-info strong { display: block; color: #333; font-size: 14px; }
.wwsp-agent-info span { font-size: 12px; color: #777; }