/* دکمه واتساپ */
#ws-whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    padding: 10px 16px;
    border-radius: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

#ws-whatsapp-button:hover {
    background-color: #1ebc5c;
    transform: scale(1.05);
}

#ws-whatsapp-button img {
    width: 24px;
    height: 24px;
}

/* جعبه پشتیبانی */
#ws-whatsapp-box {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 320px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none;
    z-index: 9999;
    animation: fadeIn 0.3s ease forwards;
}

/* انیمیشن */
@keyframes fadeIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#ws-whatsapp-box.open {
    display: block;
}

/* هدر پشتیبانی */
.ws-header {
    background: #25D366;
    color: white;
    padding: 16px;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid #e1e1e1;
}

/* پشتیبان‌ها */
.ws-agent {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ws-agent:hover {
    background: #f9f9f9;
}

.ws-agent img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-right: 12px;
}

.ws-agent div {
    flex: 1;
}

.ws-agent .name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.ws-agent .status {
    font-size: 13px;
    color: #888;
}

/* واکنش‌گرا */
@media (max-width: 768px) {
    #ws-whatsapp-box {
        width: 90%;
        right: 5%;
    }
}
